/* ==================== */
/* CSS 变量定义 */
/* ==================== */
:root {
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #e0e7ff;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --bg-white: #ffffff;
  --bg-gray: #fff; /* #f9fafb; */
  --bg-light: #f3f4f6;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --success-color: #10b981;
  --success-hover: #059669;
}

/* ==================== */
/* 基础重置 */
/* ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-gray);
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* ==================== */
/* 导航栏 */
/* ==================== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 32px;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-left {
  display: flex;
  align-items: center;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-color), #818cf8);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background-color: var(--bg-light);
}

/* 当前页导航高亮：蓝色背景，其他为默认 */
.nav-link.active {
  color: var(--primary-color);
  background-color: var(--primary-light);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* 导航里带 btn-primary 的项（如 VIP）：选中时保持白字+深蓝底 */
.nav-link.btn-primary.active {
  color: #fff;
  background-color: var(--primary-hover);
}
.nav-link.btn-primary.active::after {
  display: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 全站主内容区：导航栏下方统一间距，避免各页“顶栏下方这块”位置不一致 */
.page-main {
  padding-top: 24px;
  min-height: calc(100vh - 64px - 100px);
}

/* 内容页统一容器：题库/抽题/模拟面试/VIP 共用 */
.content-container {
  max-width: 1000px;
  margin: 0 auto 40px;
  padding: 0 24px;
}

/* 内容页标题区（与首页 tools-section 一致） */
.content-container .section-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.content-container .section-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ==================== */
/* 按钮 */
/* ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);

}

.btn-outline:hover {
  background-color: var(--primary-light);
}


.form-input-group {
  display: flex;
  gap: 8px; /* 输入框和按钮之间的间距，可按需调整 */
}

.form-input-group .form-input {
  flex: 1;
}

.form-input-group .btn {
  flex: 1;
}


.btn-secondary {
  background-color: var(--bg-light);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--border-color);
}

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

.btn-danger:hover {
  background-color: #dc2626;
}

.btn-block {
  width: 100%;
}

/* ==================== */
/* 首页 Hero */
/* ==================== */
.hero {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: white;
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, rgba(99,102,241,0.3), var(--bg-gray));
}

.hero-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto;
}

/* ==================== */
/* 首页工具列表 */
/* ==================== */
.tools-section {
  padding: 60px 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 40px;
}

.tools-category {
  margin-bottom: 48px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.tool-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.tool-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-light), #c7d2fe);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.tool-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.tool-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.tool-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 500;
}

.tool-card-btn::after {
  content: '→';
  transition: transform 0.2s ease;
}

.tool-card:hover .tool-card-btn::after {
  transform: translateX(4px);
}

/* ==================== */
/* 表单 */
/* ==================== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-label .required {
  color: #ef4444;
  margin-left: 2px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: var(--bg-white);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input.error {
  border-color: #ef4444;
}

.form-error {
  color: #ef4444;
  font-size: 12px;
  margin-top: 6px;
}

.form-hint {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* ==================== */
/* 卡片 */
/* ==================== */
.card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.card-body {
  padding: 24px;
}

/* ==================== */
/* 登录注册页 */
/* ==================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  box-sizing: border-box;
}

/* 带导航时的登录/注册：与内容页统一，使用 page-main + content-container + card */
.auth-page.auth-page-with-nav {
  min-height: calc(100vh - 64px - 100px);
  padding: 48px 24px 60px;
  background: var(--bg-gray);
}

/* 登录/注册表单窄栏居中（与全局 card 一致） */
.auth-form-wrap {
  max-width: 420px;
  margin: 0 auto;
}

.auth-form-wrap .card {
  margin-bottom: 0;
}

.auth-form-wrap .section-title {
  margin-bottom: 6px;
}

.auth-form-wrap .section-subtitle {
  margin-bottom: 24px;
}

/* 登录/注册页按钮与全局 .btn 一致 */
.auth-form-wrap .btn,
.auth-form-wrap button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: var(--primary-color);
  color: #fff;
}

.auth-form-wrap .btn:hover,
.auth-form-wrap button[type="submit"]:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-md);
}

.auth-form-wrap .btn-block {
  width: 100%;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--primary-color);
  font-weight: 500;
  margin-left: 4px;
}

.auth-back-home {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-back-home:hover {
  color: var(--primary-color);
}

/* ==================== */
/* 计算器页 */
/* ==================== */
.calculator-page {
  min-height: calc(100vh - 64px);
  padding: 40px 32px;
}

.calculator-container {
  max-width: 1000px;
  margin: 0 auto;
}

.calculator-header {
  margin-bottom: 32px;
}

.calculator-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.calculator-desc {
  font-size: 15px;
  color: var(--text-secondary);
}

.calculator-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.calculator-form,
.calculator-result {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 24px;
}

/* 计算结果 */
.result-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.result-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.result-content {
  display: none;
}

.result-content.show {
  display: block;
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.result-item:last-child {
  border-bottom: none;
}

.result-label {
  color: var(--text-secondary);
  font-size: 14px;
}

.result-value {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.result-highlight {
  background: linear-gradient(135deg, var(--primary-light), #c7d2fe);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin-top: 20px;
}

.result-highlight-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.result-highlight-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
}

.result-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

/* ==================== */
/* 控制台页 */
/* ==================== */
.dashboard-page {
  display: flex;
  min-height: calc(100vh - 64px);
}

.dashboard-sidebar {
  width: 240px;
  background-color: var(--bg-white);
  border-right: 1px solid var(--border-color);
  padding: 24px 16px;
  flex-shrink: 0;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.sidebar-item:hover {
  background-color: var(--bg-light);
  color: var(--text-primary);
}

.sidebar-item.active {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.dashboard-content {
  flex: 1;
  padding: 32px;
  background-color: var(--bg-gray);
  overflow-y: auto;
}

.dashboard-header {
  margin-bottom: 24px;
}

.dashboard-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.dashboard-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

/* 记录表格 */
.records-alert {
  background-color: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.records-alert-text {
  color: #92400e;
  font-size: 14px;
}

.records-table {
  width: 100%;
  border-collapse: collapse;
}

.records-table th,
.records-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.records-table th {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 13px;
}

.records-table td {
  color: var(--text-primary);
  font-size: 14px;
}

.records-actions {
  display: flex;
  gap: 8px;
}

.records-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

/* VIP 状态 */
.vip-status {
  background: linear-gradient(135deg, var(--primary-light), #c7d2fe);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
  text-align: center;
}

.vip-status-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.vip-status-value {
  font-size: 20px;
  font-weight: 600;
  color: var(--primary-color);
}

/* VIP 套餐 */
.vip-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.vip-plan {
  background-color: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.vip-plan:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.vip-plan.recommended {
  border-color: var(--primary-color);
  position: relative;
}

.vip-plan.recommended::before {
  content: '推荐';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: white;
  padding: 4px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.vip-plan-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.vip-plan-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.vip-plan-period {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.vip-plan-features {
  text-align: left;
  margin-bottom: 24px;
}

.vip-plan-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.vip-plan-feature::before {
  content: '✓';
  color: #10b981;
  font-weight: 600;
}

/* ==================== */
/* 模态框 */
/* ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: var(--bg-white);
  border-radius: var(--radius-xl);
  max-width: 440px;
  width: 90%;
  padding: 32px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.show .modal {
  transform: scale(1);
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-login-form .form-group { margin-bottom: 16px; }
.modal-login-form .form-group:last-of-type { margin-bottom: 20px; }
.modal-login-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}
.modal-login-footer a { color: var(--primary-color); cursor: pointer; }
.form-error { font-size: 12px; color: #ef4444; margin-top: 4px; }
.modal-auth-tabs { display: flex; gap: 0; margin-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.modal-auth-tab { flex: 1; padding: 12px; text-align: center; font-size: 15px; font-weight: 500; color: var(--text-secondary); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.modal-auth-tab:hover { color: var(--primary-color); }
.modal-auth-tab.active { color: var(--primary-color); border-bottom-color: var(--primary-color); }
.modal-auth-pane { display: none; }
.modal-auth-pane.active { display: block; }
.modal-login-form .form-input-group { display: flex; gap: 8px; }
.modal-login-form .form-input-group .form-input { flex: 1; }

/* ==================== */
/* Toast 提示 */
/* ==================== */
.toast {
  position: fixed;
  top: 80px;
  right: 20px;
  padding: 16px 24px;
  background-color: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  z-index: 3000;
}

.toast.show {
  transform: translateX(0);
}

.toast-success {
  border-left: 4px solid #10b981;
}

.toast-error {
  border-left: 4px solid #ef4444;
}

.toast-warning {
  border-left: 4px solid #f59e0b;
}

.toast-info {
  border-left: 4px solid #3b82f6;
}

/* ==================== */
/* 响应式适配 */
/* ==================== */
@media (max-width: 768px) {
  .navbar {
    padding: 0 16px;
  }

  .nav-center {
    display: none;
  }

  .hero {
    padding: 60px 20px;
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
  }

  .hero-title {
    font-size: 28px;
  }

  .tools-section {
    padding: 40px 16px;
  }

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

  .calculator-page {
    padding: 24px 16px;
  }

  .calculator-content {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .dashboard-page {
    flex-direction: column;
  }

  .dashboard-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
  }

  .sidebar-menu {
    flex-direction: row;
    overflow-x: auto;
  }

  .dashboard-content {
    padding: 24px 16px;
  }

  .vip-plans {
    grid-template-columns: 1fr;
  }
}

/* ==================== */
/* 用户下拉菜单 */
/* ==================== */
.nav-dropdown {
  position: relative;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease;
}

.nav-user:hover {
  background-color: var(--bg-light);
}

.nav-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-color), #818cf8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  min-width: 160px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 10px 16px;
  color: var(--text-secondary);
  font-size: 14px;
  transition: all 0.2s ease;
}

.nav-dropdown-item:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
}

.nav-dropdown-item:first-child {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.nav-dropdown-item:last-child {
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* ==================== */
/* 页脚 */
/* ==================== */
.site-footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  font-size: 14px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-white);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

/* ==================== */
/* 首页 Hero 按钮（支持 a.btn 与 button） */
/* ==================== */
.hero-buttons {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}

.hero-buttons .btn,
.hero-buttons button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  min-width: 140px;
  text-decoration: none;
}

.hero-buttons .btn-primary,
.hero-buttons button.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.hero-buttons .btn-primary:hover,
.hero-buttons button.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #fff;
}


@media (max-width: 768px) {
  .hero-buttons {
    flex-direction: column;
    gap: 14px;
  }

  .hero-buttons .btn,
  .hero-buttons button {
    width: 100%;
    max-width: 300px;
  }
}

.seo-content, .seo-extra, .tools-section {
  background-color: var(--bg-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 40px;
}

.hero-buttons .btn-secondary {
  background-color: #fff;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}
.hero-buttons .btn-secondary:hover {
  background-color: var(--primary-light);
}

.seo-content, .seo-extra {
  padding: 48px 0;
  margin: 0 auto 40px;
  line-height: 1.8;
}
.seo-content ul li::before {
  content: '✓';
  color: var(--success-color);
  margin-right: 6px;
}

.seo-content p {
  margin-bottom: 18px;
  color: var(--text-secondary);
}

.seo-content ul {
  margin: 16px 0 24px;
}

.seo-content li {
  margin-bottom: 8px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-block {
  padding: 0 0;
}

.section-white {
  background-color: var(--bg-white);
}

.section-gray {
  background-color: var(--bg-light);
}

/* 首页 Hero 在灰底 section 时：副标题需深色保证可读性 */
.section-gray .hero-title {
  color: var(--text-primary);
  text-align: center;
}
.section-gray .hero-subtitle {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-gray .hero-buttons {
  justify-content: center;
}

/* 全页 section 内容统一：容器居中、正文对比度与字号 */
.section-block .container {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.section-block .container p,
.section-block .container li {
  color: #374151;
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 14px;
}
.section-block .container p:last-child {
  margin-bottom: 0;
}
.section-block .container h2 {
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 12px;
}
.section-block .container h2:first-child {
  margin-top: 0;
}
.section-block .container h3 {
  color: var(--text-primary);
  font-size: 18px;
  margin-top: 20px;
  margin-bottom: 8px;
}
.section-block .container ul {
  margin: 12px 0 20px;
  padding-left: 1.4em;
  list-style: disc;
}
.section-block .container li {
  margin-bottom: 8px;
}

h1 { font-size: 40px; }
h2 { font-size: 28px; margin-bottom: 20px; }
h3 { font-size: 20px; margin-bottom: 12px; }
