/* =========================================================
   SEOAISpiderX 产品展示页样式
   分区：变量 → 基础 → 组件 → 区块 → 响应式
   ========================================================= */

/* ===== 1. 主题变量（复刻软件真实主题 src/style.css）===== */
:root {
  --background: #f0f4f8;
  --foreground: #1f2937;
  --card: #ffffff;
  --card-foreground: #1f2937;
  --popover: #ffffff;
  --popover-foreground: #1f2937;
  --muted: #f0f4f8;
  --muted-foreground: #6b7280;
  --border: #d0d7de;
  --input: #ffffff;
  --ring: #1f4aa8;
  --primary: #1f4aa8;
  --primary-foreground: #ffffff;
  --accent: #1f4aa8;
  --secondary: #e9eef5;
  --secondary-foreground: #1f2937;
  --destructive: #dc2626;
  --header-bg: #ffffff;
  --shadow: rgba(0, 0, 0, 0.08);
  --st-good: #22c55e;
  --st-warning: #f59e0b;
  --st-error: #ef4444;
  --st-info: #1F4AA8;
}

/* ===== 2. 基础重置 ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Segoe UI', sans-serif;
  font-size: 14px;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 94vw); margin: 0 auto; }

/* ===== 3. 通用按钮 ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px;
  border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer;
  border: none; transition: 0.18s;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 12px 30px rgba(31,74,168,.22); }
.btn-primary:hover { transform: translateY(-2px); background: #17365D; }
.btn-ghost { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn-ghost:hover { background: #f0f4f8; }

/* ===== 4. 顶部导航（复刻 HeaderMenu .top-bar）===== */
header.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg); border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; height: 56px;
  padding: 0 16px; gap: 8px; max-width: 1280px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; margin-right: 16px; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #2f6bff); color: #fff; font-size: 16px; font-weight: 800;
}
.menu-item {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px; background: none;
  border: none; cursor: pointer; font-size: 14px; color: var(--muted-foreground);
  border-radius: 6px; transition: background-color .2s, color .2s; font-family: inherit;
}
.menu-item:hover { background: var(--muted); }
.menu-item.active { background: var(--secondary); color: var(--primary); }
.menu-item.pro.active { color: #b45309; background: #fef3e2; }
.menu-text { white-space: nowrap; font-weight: 500; }

/* 主导航链接 */
.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  display: flex; align-items: center; padding: 8px 14px; border-radius: 6px;
  font-size: 14px; font-weight: 700; color: var(--foreground);
  transition: background-color .2s, color .2s;
}
.nav-link:hover { background: var(--muted); color: var(--primary); }

/* 语言选择 */
.lang { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; }
.lang .globe { font-size: 14px; line-height: 1; }
.lang-select {
  height: 32px; padding: 0 8px; font-family: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--foreground); background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; transition: .18s;
}
.lang-select:hover { border-color: var(--primary); color: var(--primary); }
.lang-select:focus { outline: 2px solid rgba(31,74,168,.25); outline-offset: 1px; border-color: var(--primary); }

/* 移动端汉堡按钮（窄屏才显示） */
.nav-toggle {
  display: none; margin-left: auto; width: 36px; height: 36px;
  align-items: center; justify-content: center; font-size: 17px; line-height: 1;
  background: var(--card); color: var(--foreground); border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; transition: .18s;
}
.nav-toggle:hover { border-color: var(--primary); color: var(--primary); }

/* 窄屏：导航折叠为右侧下拉面板 */
@media (max-width: 900px) {
  .nav-inner { position: relative; }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; margin-left: 0;
    background: var(--card); border: 1px solid var(--border); border-radius: 12px;
    padding: 8px; box-shadow: 0 16px 40px rgba(16,24,40,.12); z-index: 120;
  }
  .nav-menu.open { display: flex; }
  .nav-menu .nav-link { padding: 11px 12px; font-size: 14px; }
  .nav-menu .lang {
    margin-left: 0; margin-top: 6px; padding: 10px 12px 2px;
    border-top: 1px solid var(--border);
  }
  .nav-menu .lang .lang-select { flex: 1; }
}

/* ===== 5. 标签导航（复刻 TabNavigation）===== */
.tab-navigation {
  display: flex; gap: 8px; padding: 8px 16px; background: var(--header-bg);
  border-bottom: 1px solid var(--border); max-width: 1280px; margin: 0 auto;
  overflow-x: auto;
}
.tab-item {
  display: flex; align-items: center; gap: 8px; padding: 10px 22px; margin-right: 0;
  background: var(--secondary); border: none; border-radius: 6px 6px 0 0;
  cursor: pointer; font-size: 14px; color: var(--muted-foreground);
  transition: all .2s; white-space: nowrap; font-family: inherit;
}
.tab-item:hover { background: var(--muted); color: var(--foreground); }
.tab-item.active { background: var(--primary); color: var(--primary-foreground); }
.tab-item .ic { font-size: 14px; }
.tab-lock { margin-left: 2px; opacity: .8; }

/* ===== 6. 营销 Hero ===== */
.hero {
  background:
    radial-gradient(1000px 400px at 85% -10%, rgba(47,107,255,.10), transparent 55%),
    linear-gradient(180deg, #ffffff, var(--background));
  padding: 40px 0 20px;
}
.hero-flush { padding-top: 0; }
.hero-head { text-align: center; padding: 20px 0 26px; }
.hero-head h1 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.2; letter-spacing: -.5px; margin-bottom: 12px; }
.hero-head .grad { background: linear-gradient(90deg, var(--primary), #2f6bff, #16b364); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-head p { font-size: 16px; color: var(--muted-foreground); max-width: 640px; margin: 0 auto; }

/* ===== 7. 下载区 ===== */
.download-cta { text-align: center; padding: 4px 0 36px; }
.download-cta .btn { padding: 15px 40px; font-size: 16px; }
.download-cta .hint { margin-top: 12px; font-size: 13px; color: var(--muted-foreground); }

/* ===== 8. 样板预览标题 ===== */
.preview-title {
  text-align: center; font-family: 'SimHei', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  font-weight: 900; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.3px;
  color: var(--foreground); padding-bottom: 0; margin-bottom: 10px;
}

/* ===== 9. 应用界面展示框（高仿真实软件）===== */
.app-frame {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 24px 60px rgba(16,24,40,.16); overflow: hidden; margin-bottom: 24px;
}
.app-frame .topbar {
  display: flex; align-items: center; flex-wrap: wrap; min-height: 44px; padding: 6px 12px;
  background: var(--header-bg); border-bottom: 1px solid var(--border); gap: 6px 4px;
}
.app-frame .brand { font-size: 14px; }
.app-frame .logo { width: 22px; height: 22px; font-size: 12px; }
.topbar-menu { display: flex; flex-wrap: wrap; gap: 4px; flex-basis: 100%; }
.topbar-menu .menu-item { padding: 4px 10px; }

/* 应用窗口内的语言按钮 */
.app-lang { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.app-lang .globe { font-size: 13px; line-height: 1; }
.app-lang-select {
  height: 26px; padding: 0 6px; font-family: inherit; font-size: 12px; font-weight: 600;
  color: var(--muted-foreground); background: var(--card); border: 1px solid var(--border);
  border-radius: 6px; cursor: pointer; transition: .18s;
}
.app-lang-select:hover { border-color: var(--primary); color: var(--primary); }
.app-lang-select:focus { outline: 2px solid rgba(31,74,168,.25); outline-offset: 1px; border-color: var(--primary); }

/* 应用内部 tab 导航 */
.app-tabs { display: flex; gap: 4px; padding: 6px 12px; background: var(--header-bg); border-bottom: 1px solid var(--border); overflow-x: auto; }
.app-tab {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 6px 6px 0 0;
  font-size: 13px; color: var(--muted-foreground); background: var(--secondary); white-space: nowrap;
}
.app-tab.on { background: var(--primary); color: #fff; }

/* 应用主区 */
.app-body { display: grid; grid-template-columns: 1fr 380px; gap: 14px; padding: 14px; background: var(--background); }
.app-left { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.app-right { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* 输入区（复刻 .input-section）*/
.input-section { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.url-input {
  flex: 1; min-width: 200px; padding: 11px 15px; border: 1px solid #d0d4d8; border-radius: 6px;
  font-size: 14px; outline: none; color: #98a2b3; background: #fff;
}
.fetch-btn { padding: 11px 22px; background: #1F4AA8; color: #fff; border: none; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; }
.secondary-btn { padding: 11px 18px; background: #fff; color: #1F4AA8; border: 1px solid #1F4AA8; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; }
.divider-left { border-left: 2px solid #9aa0a6; margin-left: 10px; padding-left: 18px; }

/* 表格容器（复刻 .table-container + AG Grid 表头 #1F4AA8）*/
.table-container { flex: 1; min-height: 260px; background: #fff; border: 1px solid #e0e4e8; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.ag-header { display: flex; background: #1F4AA8; color: #fff; }
.ag-header .ag-cell { padding: 10px 8px; font-size: 13px; font-weight: 600; text-align: center; border-right: 1px solid #e0e4e8; position: relative; }
.ag-header .ag-cell:last-child { border-right: none; }
.ag-header .ag-cell::after { content: ''; position: absolute; top: 0; right: 0; width: 8px; height: 100%; cursor: col-resize; z-index: 2; }
.ag-header .ag-cell::after:hover { background: rgba(255,255,255,.28); }
body.col-resizing { cursor: col-resize; user-select: none; }
.ag-cell.w-50 { width: 50px; flex: none; }
.ag-cell.w-70 { width: 70px; flex: none; }
.ag-cell.f-1 { flex: 1; }
.ag-cell.f-15 { flex: 1.5; }
.ag-rows { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; }
.ag-empty { text-align: center; color: #98a2b3; font-size: 13px; padding: 40px 0; }
.ag-row { display: flex; align-items: center; border-bottom: 1px solid #eef1f5; }
.ag-row:last-child { border-bottom: none; }
.ag-row .ag-cell { padding: 10px 8px; font-size: 13px; color: var(--foreground); text-align: center; border-right: 1px solid #eef1f5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-row .ag-cell:last-child { border-right: none; }
.ag-row .ag-url { text-align: left; color: var(--primary); }
.ag-row .ag-status { color: var(--st-good); font-weight: 600; }

/* 资源标签（复刻 .resource-tabs）*/
.outer-links-section { background: #fff; border: 1px solid #e0e4e8; border-radius: 8px; padding: 14px; }
.resource-tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.resource-tab { padding: 4px 14px; font-size: 13px; border: 1px solid transparent; border-radius: 6px; background: #409eff; color: #fff; cursor: pointer; font-weight: 500; }
.resource-tab.active { background: #1a6dd4; border-color: #1559b0; box-shadow: 0 2px 6px rgba(64,158,255,.35); }
.outer-links-container { height: 90px; overflow-y: auto; font-size: 13px; color: #666; }
.empty-hint { color: #98a2b3; font-size: 13px; text-align: center; padding: 12px 0; }

/* 右侧 SEO 审计（复刻 .seo-title-row / .seo-tab-switch）*/
.seo-title-row { display: flex; align-items: center; gap: 8px; }
.section-title { font-size: 15px; font-weight: 700; color: var(--foreground); }
.seo-tab-switch { display: flex; margin-left: auto; background: var(--muted); border-radius: 6px; padding: 2px; gap: 2px; }
.seo-tab { padding: 4px 12px; font-size: 12px; font-weight: 600; border: none; border-radius: 5px; cursor: pointer; color: var(--muted-foreground); background: transparent; font-family: inherit; }
.seo-tab.active { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 1px 3px var(--shadow); }
.seo-open-chatgpt { width: 26px; height: 26px; border: 1px solid var(--border); border-radius: 6px; background: var(--card); color: var(--primary); cursor: pointer; }

/* SEO 环形评分（复刻 .seo-overview / .seo-ring）*/
.seo-overview { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 14px; background: var(--muted); border: 1px solid var(--border); }
.seo-ring {
  position: relative; width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--st-good) 0 60%, var(--st-warning) 60% 82%, var(--st-error) 82% 100%);
}
.seo-ring::after { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: var(--card); box-shadow: inset 0 1px 3px var(--shadow); }
.seo-ring-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.seo-ring-score { font-size: 24px; font-weight: 800; color: var(--foreground); }
.seo-ring-label { margin-top: 3px; font-size: 10px; color: var(--muted-foreground); letter-spacing: .5px; }
.seo-overview-meta { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.seo-overview-grade { display: inline-flex; align-self: flex-start; font-size: 14px; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.seo-overview-grade.good { background: rgba(34,197,94,.16); color: var(--st-good); }
.seo-dist { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.seo-dist-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted-foreground); }
.seo-dist-dot { width: 8px; height: 8px; border-radius: 50%; }
.seo-dist-item.good .seo-dist-dot { background: var(--st-good); }
.seo-dist-item.warning .seo-dist-dot { background: var(--st-warning); }
.seo-dist-item.error .seo-dist-dot { background: var(--st-error); }
.seo-dist-item.info .seo-dist-dot { background: var(--st-info); }

/* SEO 审计列表项（复刻 .seo-item）*/
.seo-list {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 400px; overflow-y: auto; padding-right: 6px;
}
/* 右侧滑条（自定义滚动条）*/
.seo-list::-webkit-scrollbar { width: 8px; }
.seo-list::-webkit-scrollbar-track { background: transparent; border-radius: 8px; }
.seo-list::-webkit-scrollbar-thumb { background: #c3d0e4; border-radius: 8px; }
.seo-list::-webkit-scrollbar-thumb:hover { background: #a9bad4; }
.seo-list { scrollbar-width: thin; scrollbar-color: #c3d0e4 transparent; }
.seo-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--card);
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: background-color .15s;
}
.seo-item:hover { background: #f5f8fc; }
.seo-item-icon { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.seo-item-icon.good { background: rgba(34,197,94,.16); color: var(--st-good); }
.seo-item-icon.warning { background: rgba(245,158,11,.18); color: var(--st-warning); }
.seo-item-icon.error { background: rgba(239,68,68,.16); color: var(--st-error); }
.seo-item-icon.info { background: rgba(31,74,168,.14); color: var(--st-info); }
.seo-item-main { flex: 1; min-width: 0; }
.seo-item-top { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.seo-name { font-size: 13px; font-weight: 600; color: var(--foreground); }
.seo-score-badge { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 8px; }
.seo-score-badge.good { background: rgba(34,197,94,.16); color: var(--st-good); }
.seo-score-badge.warning { background: rgba(245,158,11,.18); color: var(--st-warning); }
.seo-score-badge.error { background: rgba(239,68,68,.16); color: var(--st-error); }
.seo-score-badge.info { background: rgba(31,74,168,.14); color: var(--st-info); }
.seo-description { font-size: 12px; color: var(--muted-foreground); overflow-wrap: break-word; word-break: break-word; }
.seo-status-pill { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; flex-shrink: 0; }
.seo-status-pill.good { background: rgba(34,197,94,.16); color: var(--st-good); }
.seo-status-pill.warning { background: rgba(245,158,11,.18); color: var(--st-warning); }
.seo-status-pill.error { background: rgba(239,68,68,.16); color: var(--st-error); }
.seo-status-pill.info { background: rgba(31,74,168,.14); color: var(--st-info); }

/* ===== 10. 通用区块 ===== */
section { padding: 60px 0; }
.section-flush { padding-top: 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--primary); background: #e7efff; padding: 5px 14px; border-radius: 20px; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 10px; letter-spacing: -.3px; }
.section-head p { color: var(--muted-foreground); font-size: 15px; }

/* ===== 11. 功能区 ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; transition: .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(16,24,40,.08); border-color: #d6e1ff; }
.feature .icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; font-size: 21px; margin-bottom: 14px; background: #e7efff; }
.feature h3 { font-size: 16px; margin-bottom: 8px; }
.feature p { font-size: 13.5px; color: var(--muted-foreground); }
.feature ul { list-style: none; margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.feature ul li { font-size: 12px; padding: 3px 10px; border-radius: 6px; background: var(--muted); color: var(--muted-foreground); }

/* ===== 12. 工作流（浅色卡片 + 序号水印）===== */
.workflow {
  background: linear-gradient(180deg, #e9eff7 0%, var(--background) 48%);
}
/* 该区块略宽，四步更舒展 */
.workflow .container { width: min(1280px, 94vw); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  position: relative;
  padding: 28px 24px 30px; border-radius: 16px;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: 0 4px 14px rgba(16,24,40,.05);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.step > * { position: relative; z-index: 1; }
.step:hover {
  transform: translateY(-4px);
  border-color: #c3d7ff;
  box-shadow: 0 16px 34px rgba(16,24,40,.10);
}
.step .no {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  font-size: 15px; font-weight: 800; color: var(--primary);
  background: #e7efff; margin-bottom: 16px;
}
.step h3 { font-size: 16px; margin-bottom: 8px; color: var(--foreground); letter-spacing: .2px; }
.step p { font-size: 13.5px; line-height: 1.8; color: var(--muted-foreground); }
/* 右上角大号序号水印 */
.step::after {
  content: attr(data-step);
  position: absolute; right: 16px; top: 8px;
  font-size: 46px; font-weight: 800; line-height: 1;
  color: rgba(31,74,168,.07); pointer-events: none;
}

/* 四列布局下的步骤连接短线 */
@media (min-width: 961px) {
  .step:not(:last-child)::before {
    content: ""; position: absolute;
    top: 47px; left: calc(100% + 6px); width: 10px; height: 2px;
    border-radius: 2px; background: #c3d7ff;
  }
}

/* ===== 13. 工具箱 ===== */
.tools-wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tool-chip { background: var(--card); border: 1px solid var(--border); border-radius: 11px; padding: 16px; display: flex; align-items: center; gap: 12px; transition: .18s; }
.tool-chip:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(16,24,40,.06); }
.tool-chip .ic { font-size: 19px; }
.tool-chip .t { font-size: 13.5px; font-weight: 600; }
.tool-chip .d { font-size: 12px; color: var(--muted-foreground); }

/* ===== 14. 定价 ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1080px; margin: 0 auto; }
.plan { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 32px; position: relative; }
.plan.pro { border-color: var(--primary); box-shadow: 0 20px 50px rgba(31,74,168,.18); }
.plan .flag { position: absolute; top: -13px; right: 26px; background: #16b364; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.plan h3 { font-size: 18px; margin-bottom: 6px; }
.plan .price { font-size: 34px; font-weight: 800; margin: 12px 0 4px; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--muted-foreground); }
.plan .desc { color: var(--muted-foreground); font-size: 13.5px; margin-bottom: 18px; }
.plan ul { list-style: none; margin-bottom: 24px; }
.plan ul li { padding: 6px 0; font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; }
.plan ul li::before { content: "✓"; color: #16b364; font-weight: 700; }
.plan .btn { width: 100%; justify-content: center; }

/* ===== 15. 结尾 CTA ===== */
.cta { background: linear-gradient(135deg, var(--primary), #2f6bff); color: #fff; border-radius: 22px; padding: 52px; text-align: center; }
.cta h2 { font-size: 28px; margin-bottom: 12px; }
.cta p { color: #dbe6ff; margin-bottom: 24px; font-size: 15px; }
.cta .btn { background: #fff; color: var(--primary); }

/* ===== 16. 页脚 ===== */
footer { border-top: 1px solid var(--border); padding: 36px 0; background: #fff; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
footer .copy { color: var(--muted-foreground); font-size: 13px; }

/* ===== 17. 文档页（隐私政策等）===== */
.doc { padding: 44px 0 64px; }
.doc-card {
  margin: 0 auto; background: var(--card);
  border: 1px solid var(--border); border-radius: 18px; padding: 40px 44px 48px;
  box-shadow: 0 10px 30px rgba(16,24,40,.06);
}
.doc-title { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.3px; margin-bottom: 10px; }
.doc-meta { color: var(--muted-foreground); font-size: 13px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.doc h2 { font-size: 18px; margin: 32px 0 12px; padding-left: 12px; border-left: 3px solid var(--primary); }
.doc h3 { font-size: 15px; margin: 20px 0 8px; color: var(--foreground); }
.doc p { font-size: 14.5px; line-height: 1.9; color: #374151; margin-bottom: 10px; }
.doc ul { list-style: none; margin: 8px 0 12px; }
.doc ul li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.9; color: #374151; margin-bottom: 4px; }
.doc ul li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); opacity: .45; }
.doc a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.doc-toc { background: var(--muted); border-radius: 12px; padding: 18px 24px; margin-bottom: 30px; }
.doc-toc .t { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.doc-toc ol { margin-left: 20px; list-style: decimal; columns: 2; column-gap: 32px; }
.doc-toc a { font-size: 14px; line-height: 2; text-decoration: none; }
.doc-toc a:hover { text-decoration: underline; }

/* ===== 18. 帮助中心 ===== */
.help { padding: 36px 0 64px; }
.help-header { text-align: center; margin-bottom: 28px; }
.help-header h1 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.3px; }
.help-header p { color: var(--muted-foreground); margin-top: 8px; font-size: 15px; }
.help-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
.help-nav {
  position: sticky; top: 76px; background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 10px; box-shadow: 0 8px 24px rgba(16,24,40,.05);
}
.help-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px;
  font-size: 14px; color: var(--muted-foreground); transition: .18s;
}
.help-nav a .ic { font-size: 15px; width: 18px; text-align: center; }
.help-nav a:hover { background: var(--muted); color: var(--primary); }
.help-nav a.active { background: var(--primary); color: #fff; }
.help-content {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 36px 40px 44px; box-shadow: 0 10px 30px rgba(16,24,40,.06);
}
.help-section { margin-bottom: 36px; scroll-margin-top: 80px; }
.help-section:last-child { margin-bottom: 0; }
.help-section h2 {
  font-size: 19px; margin: 0 0 10px; padding-left: 12px; border-left: 3px solid var(--primary);
  display: flex; align-items: center; gap: 8px;
}
.help-section h2 .ic { font-size: 18px; }
.help-section p { font-size: 14.5px; line-height: 1.9; color: #374151; margin-bottom: 10px; }
.help-section ul { list-style: none; margin: 8px 0 12px; }
.help-section ul li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.9; color: #374151; margin-bottom: 4px; }
.help-section ul li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); opacity: .45; }
.help-tip { background: var(--muted); border-radius: 10px; padding: 12px 16px; font-size: 13.5px; color: var(--muted-foreground); margin-top: 8px; line-height: 1.7; }

/* ===== 19. 版本徽章与更新弹窗 ===== */
.version-badge {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--primary);
  background: #e7efff; border: 1px solid rgba(31,74,168,.18);
  padding: 7px 16px; border-radius: 20px; margin: 20px 0 18px; transition: .18s;
}
.version-badge:hover { background: #d8e6ff; transform: translateY(-1px); }
.version-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--st-good); box-shadow: 0 0 0 3px rgba(34,197,94,.22); }

.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.open { display: block; }
.modal-overlay { position: absolute; inset: 0; background: rgba(15,23,42,.5); backdrop-filter: blur(2px); }
.modal-box {
  position: relative; width: min(520px, 92vw); margin: 10vh auto 0;
  background: var(--card); border-radius: 18px; padding: 32px 36px 36px;
  box-shadow: 0 24px 60px rgba(16,24,40,.25); animation: modalIn .2s ease;
  display: flex; flex-direction: column; max-height: 76vh; overflow: hidden;
}
.modal-head { flex: none; padding-right: 40px; }
.modal-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding-right: 8px; }
.modal-body::-webkit-scrollbar { width: 8px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
.modal-body::-webkit-scrollbar-thumb:hover { background: var(--muted-foreground); }
body.modal-open { overflow: hidden; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
  border: none; border-radius: 8px; background: var(--muted); color: var(--muted-foreground);
  font-size: 20px; line-height: 1; cursor: pointer; transition: .18s;
}
.modal-close:hover { background: var(--secondary); color: var(--foreground); }
.modal-box h3 { font-size: 20px; letter-spacing: -.3px; margin-bottom: 4px; }
.modal-sub { color: var(--muted-foreground); font-size: 13px; margin-bottom: 18px; }
.modal-box ul { list-style: none; margin: 0; }
.modal-box ul li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.9; color: #374151; margin-bottom: 6px; }
.modal-box ul li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); opacity: .5; }
.modal-box .tag-new { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: var(--st-good); padding: 1px 7px; border-radius: 6px; margin-left: 6px; vertical-align: middle; }

/* ===== 20. 响应式 ===== */
@media (max-width: 960px) {
  .app-body { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .tools-wrap { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; }
  .menu-item:not(.pro) { display: none; }
  .menu-item.pro { display: flex; }
  .brand { margin-right: 0; }
}
@media (max-width: 560px) {
  .features-grid, .steps, .tools-wrap { grid-template-columns: 1fr; }
  .cta { padding: 34px 20px; }
  .nav-link { padding: 8px 9px; font-size: 13px; }
  .menu-item.pro .menu-text { display: none; }
  .doc-card { padding: 26px 20px 32px; }
  .doc-toc ol { columns: 1; }
  .help-layout { grid-template-columns: 1fr; }
  .help-nav { position: static; display: flex; gap: 6px; overflow-x: auto; padding: 8px; }
  .help-nav a { white-space: nowrap; }
  .help-content { padding: 26px 20px 32px; }
  .modal-box { padding: 26px 20px 30px; margin-top: 8vh; }
}
