/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 安装引导页面 */
.install-guide {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.guide-container {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.guide-header {
  text-align: center;
  margin-bottom: 40px;
}

.guide-header h1 {
  font-size: 28px;
  color: #4A90E2;
  margin-bottom: 10px;
}

.guide-header p {
  color: #666;
  font-size: 16px;
}

.guide-steps {
  margin-bottom: 30px;
}

.step {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: #4A90E2;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
}

.step-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #333;
}

.step-content p {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.share-icon {
  display: inline-block;
  font-size: 24px;
  color: #4A90E2;
  font-weight: bold;
}

.arrow-down {
  font-size: 32px;
  color: #4A90E2;
  text-align: center;
  margin-top: 10px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.guide-footer {
  background: #f0f4ff;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
}

.guide-footer .note {
  color: #4A90E2;
  font-size: 14px;
  margin: 0;
}

.guide-footer .note-secondary {
  color: #666;
  font-size: 13px;
  margin: 8px 0 0 0;
}

/* 新增：iOS 版本特定样式 */
.guide-notice {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  padding: 15px;
  margin: 0 0 25px 0;
  border-radius: 8px;
}

.guide-notice.notice-warning {
  background: #fff3e0;
  border-left-color: #ff9800;
}

.guide-notice.notice-info {
  background: #e8f5e9;
  border-left-color: #4caf50;
}

.step-icon {
  font-size: 24px;
  margin-right: 8px;
  display: inline-block;
}

.step-description {
  margin-bottom: 6px !important;
}

.step-detail {
  color: #888 !important;
  font-size: 13px !important;
  font-style: italic;
  margin-top: 6px;
}

.step-highlight {
  background: #fff9e6;
  border: 2px solid #ffd740;
  border-radius: 12px;
  padding: 15px;
  margin: 20px 0;
}

.step-highlight .step-number {
  background: #ffa726;
}

/* 主应用界面 */
.main-app {
  min-height: 100vh;
  padding: 20px;
}

.app-container {
  max-width: 800px;
  margin: 0 auto;
}

.app-header {
  background: white;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.app-header h1 {
  font-size: 26px;
  color: #4A90E2;
  margin-bottom: 10px;
}

.subtitle {
  color: #666;
  font-size: 14px;
}

/* 通用 section 样式 */
section {
  background: white;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

section h2 {
  font-size: 20px;
  color: #333;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 状态网格 */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.status-item {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-label {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.status-value {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

/* 按钮 */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 15px;
}

.btn {
  flex: 1;
  min-width: 150px;
  padding: 14px 24px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn:not(:disabled):active {
  transform: translateY(0);
}

.btn-primary {
  background: #4A90E2;
  color: white;
}

.btn-success {
  background: #5cb85c;
  color: white;
}

.btn-danger {
  background: #d9534f;
  color: white;
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
  min-width: auto;
}

.action-note {
  color: #666;
  font-size: 13px;
  margin: 0;
  padding: 0 5px;
}

/* 日志区域 */
.log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.log-header h2 {
  margin-bottom: 0;
}

.notification-log {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 15px;
  max-height: 400px;
  overflow-y: auto;
}

.log-empty {
  text-align: center;
  color: #999;
  padding: 20px;
  font-size: 14px;
}

.log-entry {
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  border-left: 4px solid;
  background: white;
}

.log-entry:last-child {
  margin-bottom: 0;
}

.log-info {
  border-left-color: #4A90E2;
}

.log-success {
  border-left-color: #5cb85c;
}

.log-warning {
  border-left-color: #f0ad4e;
}

.log-error {
  border-left-color: #d9534f;
}

.log-notification {
  border-left-color: #9b59b6;
}

.log-time {
  color: #999;
  font-size: 12px;
  margin-right: 8px;
}

.log-message {
  color: #333;
}

/* 调试信息 */
.debug-section details {
  cursor: pointer;
}

.debug-section summary {
  font-size: 18px;
  font-weight: 600;
  padding: 10px 0;
  color: #4A90E2;
  user-select: none;
}

.debug-section summary:hover {
  color: #357ab8;
}

.debug-content {
  margin-top: 15px;
}

.debug-content pre {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.5;
  color: #333;
}

/* 响应式设计 */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .guide-container {
    padding: 30px 20px;
  }

  .guide-header h1 {
    font-size: 24px;
  }

  .app-header h1 {
    font-size: 22px;
  }

  section {
    padding: 20px;
  }

  section h2 {
    font-size: 18px;
  }

  .status-grid {
    grid-template-columns: 1fr;
  }

  .button-group {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    min-width: auto;
  }
}

/* 滚动条样式 */
.notification-log::-webkit-scrollbar {
  width: 8px;
}

.notification-log::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.notification-log::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

.notification-log::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}
