/* 学到汇AI 官网落地页样式（index.html / product.html 共用，无外部依赖）
   R2 方向05清爽白换肤（2026-09-24）：token 与 h5/theme-xdh.css 同源；
   渠道主色机制：brand.js apply() 内联写 --brand（landing 另有 --violet 渐变端变量，本版仅 logo 方块保留渐变） */
:root {
  --brand: #2f6bff;
  --brand-hover: #1f56e0;
  --brand-deep: #1f56e0;
  --violet: #2f6bff;
  --soft: #eaf1ff;
  --ink: #111318;
  --text: #3d4657;
  --text-secondary: #6b7280;
  --faint: #9aa3af;
  --line: #eceef2;
  --bg: #f7f8fa;
  --card: #ffffff;
  --green: #16a34a;   --green-soft: #e8f7ee;
  --orange: #d97706;  --orange-soft: #fdf1e3;
  --purple: #7c3aed;  --purple-soft: #f1ebfe;
  --cyan: #0891b2;    --cyan-soft: #e3f6fa;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 14px 30px -14px rgba(17, 19, 24, .14);
  --shadow-sm: 0 4px 14px -6px rgba(17, 19, 24, .10);
  --maxw: 1120px;
}
@supports (color: color-mix(in srgb, red, blue)) {
  :root { --soft: color-mix(in srgb, var(--brand) 10%, #ffffff); }
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
/* SVG 图标（stroke 随 currentColor） */
.xdh-ic { width: 15px; height: 15px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; height: 60px; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: 0.5px; }
/* 批次1.5补充 联合品牌：合作方标由 brand.js partnerMark() 注入（logo 图/文字均带行内样式） */
.logo-img { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.logo-badge {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, #3b82f6, #7b5bf0);  /* 规范特例：仅 logo 方块允许渐变 */
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800;
  box-shadow: 0 4px 12px rgba(47, 107, 255, 0.35);
}
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14px; color: var(--text-secondary); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--brand); font-weight: 600; }
/* 按钮类链接颜色不被 .nav-links a 覆盖（特异性对齐） */
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; background: var(--brand-hover); }
.nav-links a.btn-ghost { color: var(--text-secondary); }
.nav-links a.btn-ghost:hover { color: var(--ink); }
/* 按钮只有两种：主(蓝)/次(白描边)，统一胶囊 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  cursor: pointer; border: none; transition: all .15s;
  white-space: nowrap;
}
.btn-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 8px 18px -8px rgba(47, 107, 255, .55);
}
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost {
  color: var(--text-secondary); background: #fff;
  border: 1px solid var(--line);
}
.btn-ghost:hover { color: var(--ink); border-color: #d8dce4; }
.btn-lg { padding: 12px 28px; font-size: 15px; }

/* ---------- Hero（R2：白底清爽化，去蓝紫渐变；装饰仅浅色光斑） ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--card);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  background: var(--soft); pointer-events: none;
}
.hero::before { width: 420px; height: 420px; top: -200px; right: -120px; opacity: .55; }
.hero::after { width: 360px; height: 360px; bottom: -220px; left: -140px; opacity: .4; }
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  padding: 76px 0 88px;
}
.hero-tag {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: var(--soft); color: var(--brand);
  font-size: 13px; font-weight: 600; letter-spacing: 1px; margin-bottom: 22px;
}
.hero h1 {
  font-size: 40px; line-height: 1.28; font-weight: 800; letter-spacing: 0.5px;
  margin-bottom: 20px; color: var(--ink);
}
.hero-sub { font-size: 16px; line-height: 1.9; color: var(--text-secondary); margin-bottom: 34px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; font-size: 13px; color: var(--text-secondary); }
.hero-points span { display: inline-flex; align-items: center; gap: 6px; }
.hero-points i {
  font-style: normal; width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--green-soft); color: var(--green);
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
}
/* 产品截图卡片（仿浏览器窗口） */
.hero-shot {
  background: #fff; border-radius: var(--radius-lg); padding: 10px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.hero-shot-bar { display: flex; gap: 6px; padding: 4px 6px 10px; }
.hero-shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e5e8f0; }
.hero-shot-bar i:first-child { background: #ff5f57; }
.hero-shot-bar i:nth-child(2) { background: #febc2e; }
.hero-shot-bar i:nth-child(3) { background: #28c840; }
.hero-shot img { border-radius: 14px; }

/* ---------- 通用分区 ---------- */
.section { padding: 80px 0; }
.section-alt { background: #fff; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.sec-kicker { color: var(--brand); font-size: 13px; font-weight: 700; letter-spacing: 2px; margin-bottom: 10px; }
.sec-head h2 { font-size: 30px; color: var(--ink); font-weight: 800; letter-spacing: 0.5px; }
.sec-head p { margin-top: 12px; color: var(--text-secondary); font-size: 16px; }

/* ---------- 功能卡片（白卡 + 彩色软底图标块，§5.4a） ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
/* 2026-10-17 首页核心功能区 2-4-4 排列：首行=评职称+拍照判作业 */
.feat-row { display: grid; gap: 16px; margin-bottom: 16px; }
.feat-row-2 { grid-template-columns: repeat(2, 1fr); }
.feat-row-4 { grid-template-columns: repeat(4, 1fr); }
.feat-row:last-child { margin-bottom: 0; }
.feat-card.feat-card-lead { border-color: #ffd39b; box-shadow: 0 8px 22px rgba(255,143,43,.14); }
.feat-card {
  border-radius: var(--radius-lg); padding: 24px 20px;
  border: 1px solid var(--line);
  transition: box-shadow .15s, transform .15s;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.feat-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.feat-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.feat-icon .xdh-ic { width: 19px; height: 19px; vertical-align: 0; }
.feat-card h3 { font-size: 16px; color: var(--ink); margin-bottom: 6px; font-weight: 700; }
.feat-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.75; }
/* tone-* 类保留作图标调色板（卡面统一白底） */
.tone-blue   .feat-icon { background: var(--soft); color: var(--brand); }
.tone-violet .feat-icon { background: var(--purple-soft); color: var(--purple); }
.tone-teal   .feat-icon { background: var(--cyan-soft); color: var(--cyan); }
.tone-pink   .feat-icon { background: var(--green-soft); color: var(--green); }
.tone-amber  .feat-icon { background: var(--orange-soft); color: var(--orange); }
.tone-green  .feat-icon { background: var(--green-soft); color: var(--green); }
.tone-cyan   .feat-icon { background: var(--cyan-soft); color: var(--cyan); }
.tone-indigo .feat-icon { background: var(--purple-soft); color: var(--purple); }

/* ---------- 角色价值卡片 ---------- */
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.role-card {
  background: var(--card); border-radius: var(--radius-lg); padding: 30px 26px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.role-card h3 { font-size: 18px; color: var(--ink); margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.role-tag { font-size: 11px; color: var(--brand); background: var(--soft); padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.role-card ul { list-style: none; margin-top: 16px; }
.role-card li { position: relative; padding-left: 22px; margin-bottom: 10px; font-size: 14px; color: var(--text); }
.role-card li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
}

/* ---------- 承诺条 ---------- */
.promise-band {
  background: var(--card);
  border-radius: var(--radius-lg); padding: 40px 44px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.promise-item h4 { font-size: 16px; color: var(--ink); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.promise-item h4 .xdh-ic { color: var(--brand); width: 17px; height: 17px; }
.promise-item p { font-size: 13.5px; color: var(--text-secondary); }

/* ---------- CTA 横幅（R2：软蓝底卡，主+次按钮） ---------- */
.cta-band {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 52px 48px;
  color: var(--ink); text-align: center;
}
.cta-band h2 { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.cta-band p { color: var(--text-secondary); margin-bottom: 28px; font-size: 15px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- 产品详情页 ---------- */
.page-hero {
  background: var(--card);
  color: var(--ink); text-align: center; padding: 72px 0 76px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero::after {
  content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%;
  background: var(--soft); opacity: .5; bottom: -220px; right: -100px;
}
.page-hero h1 { font-size: 34px; font-weight: 800; letter-spacing: 1px; position: relative; z-index: 1; }
.page-hero p { margin-top: 14px; font-size: 16px; color: var(--text-secondary); position: relative; z-index: 1; }

.detail-block { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 30px 0; }
.detail-block + .detail-block { border-top: 1px solid var(--line); }
.detail-block .d-text h3 { font-size: 22px; color: var(--ink); font-weight: 800; margin-bottom: 6px; }
.d-tag { display: inline-block; font-size: 11px; color: var(--brand); background: var(--soft); padding: 2px 8px; border-radius: 999px; font-weight: 600; margin-bottom: 12px; }
.detail-block .d-text > p { color: var(--text-secondary); font-size: 15px; margin: 12px 0 16px; }
.detail-block ul { list-style: none; }
.detail-block li { position: relative; padding-left: 24px; margin-bottom: 9px; font-size: 14.5px; }
.detail-block li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--brand); font-weight: 800;
}
.detail-shot { background: #fff; border-radius: var(--radius-lg); padding: 8px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.detail-shot img { border-radius: 14px; }

/* 流程步骤 */
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step-card {
  background: var(--card); border-radius: var(--radius-lg); padding: 24px 20px; text-align: center;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative;
}
.step-no {
  width: 40px; height: 40px; margin: 0 auto 14px; border-radius: 12px;
  background: var(--soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px;
  font-family: ui-monospace, "SF Mono", Consolas, monospace; font-variant-numeric: tabular-nums;
}
.step-card h4 { font-size: 16px; color: var(--ink); margin-bottom: 6px; }
.step-card p { font-size: 13px; color: var(--text-secondary); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 22px; margin-bottom: 14px; box-shadow: var(--shadow-sm);
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); font-size: 15.5px; list-style: none; position: relative; padding-right: 28px; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: -2px; font-size: 20px; color: var(--brand); font-weight: 600; transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; font-size: 14px; color: var(--text); }

/* ---------- 合规页脚（同 h5 site-footer 字段与行为） ---------- */
.site-footer { padding: 30px 16px 26px; text-align: center; font-size: 12px; color: var(--text-secondary); line-height: 1.9; background: var(--bg); }
.section-alt ~ .site-footer { background: #fff; }
.sf-text { margin-bottom: 6px; color: #b0b4bc; }
.sf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.sf-links a { color: var(--text-secondary); }
.sf-links a:hover { color: var(--brand); }
/* 任务C：警徽图标与备案号作为一个整体参与换行，图标不再单独串行 */
.sf-beian-link { display: inline-flex; align-items: center; white-space: nowrap; }
.sf-beian-icon { width: 14px; height: 14px; margin-right: 4px; }
.sf-copy { margin-top: 4px; color: #b0b4bc; }
/* 品牌定制 2.0（P58）：页脚合作方行（公司名行上一行，landing-footer.js 注入） */
.sf-partner { margin-top: 4px; }

/* ---------- 渠道槽位（2026-09-16 骨架固定+槽位可配） ----------
   设计纪律：字体/字号/排版永远平台定，渠道只选档填字（PILL/BAR/CORNER），不开放自由排版；
   未配置任何槽位的渠道（含自营主站）不注入任何元素，页面零变化 */
/* 徽章 PILL 胶囊：hero 标题上方白底胶囊 */
.channel-badge {
  display: inline-block; padding: 7px 20px; border-radius: 999px;
  background: var(--card); color: var(--brand);
  border: 1px solid var(--line);
  font-size: 14px; font-weight: 700; letter-spacing: 1px;
  margin-bottom: 18px; box-shadow: var(--shadow-sm);
}
/* 徽章 BAR 横条：hero 标题上方整行软底横条 */
.channel-badge-bar {
  display: block; text-align: center; padding: 10px 18px; border-radius: 12px;
  background: var(--soft); color: var(--brand); border: 1px solid var(--line);
  font-size: 15px; font-weight: 600; letter-spacing: 1px; margin-bottom: 20px;
}
/* 徽章 CORNER 角标：hero 右上角斜角绶带（hero 区 overflow:hidden 裁切两端 padding 属正常绶带美学；
   几何保证文字段始终落在可见区：top≥文字纵向半径，max-width 超长省略不破版） */
.channel-badge-corner {
  position: absolute; top: 110px; right: -58px; z-index: 2;
  transform: rotate(45deg);
  background: var(--brand); color: #fff;
  padding: 7px 80px; font-size: 13px; font-weight: 700; letter-spacing: 1px;
  box-shadow: var(--shadow-sm);
  max-width: 470px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Hero 背景图：JS 注入半透明遮罩+图片，此处负责铺满与隐藏装饰光斑（文字 DOM 在 .hero-inner z-index:1 上层） */
.hero.hero-has-bg { background-size: cover; background-position: center; color: #fff; }
.hero-has-bg::before, .hero-has-bg::after { display: none; }
.hero-has-bg h1, .hero-has-bg .hero-sub, .hero-has-bg .hero-points { color: #fff; }
/* 专属内容区块：hero 下方插入，卡片容器承接消毒后的白名单富文本 */
.channel-custom { padding-top: 64px; }
.channel-custom-block {
  background: var(--card); border-radius: var(--radius-lg); padding: 40px 44px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  color: var(--text); font-size: 15px; line-height: 1.9; overflow-wrap: break-word;
}
.channel-custom-block h3 { font-size: 20px; color: var(--ink); margin: 0 0 12px; font-weight: 800; }
.channel-custom-block h4 { font-size: 17px; color: var(--ink); margin: 18px 0 8px; font-weight: 700; }
.channel-custom-block p { margin: 8px 0; }
.channel-custom-block ul, .channel-custom-block ol { padding-left: 22px; margin: 8px 0; }
.channel-custom-block li { margin-bottom: 6px; }
.channel-custom-block a { color: var(--brand); text-decoration: underline; }
.channel-custom-block img { max-width: 100%; height: auto; border-radius: 12px; margin: 12px 0; }
/* 草稿预览提示条（仅管理员持预览令牌可见） */
.slots-preview-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: #b45309; color: #fff; text-align: center;
  font-size: 13px; padding: 8px 12px; letter-spacing: 0.5px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding: 64px 0 72px; }
  .hero h1 { font-size: 32px; }
  .channel-custom { padding-top: 48px; }
  .channel-custom-block { padding: 28px 24px; }
  .channel-badge-corner { font-size: 12px; padding: 6px 64px; top: 88px; right: -60px; max-width: 350px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-row-2, .feat-row-4 { grid-template-columns: repeat(2, 1fr); }
  .role-grid { grid-template-columns: 1fr; }
  .promise-band { grid-template-columns: 1fr; padding: 32px 28px; }
  .detail-block { grid-template-columns: 1fr; gap: 26px; }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 16px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 27px; }
  .channel-badge { font-size: 12.5px; padding: 6px 14px; margin-bottom: 14px; }
  .channel-badge-bar { font-size: 13px; padding: 8px 12px; margin-bottom: 16px; }
  .channel-badge-corner { font-size: 11px; padding: 5px 52px; top: 70px; right: -58px; max-width: 280px; }
  .channel-custom { padding-top: 40px; }
  .channel-custom-block { padding: 22px 18px; font-size: 14px; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat-row-2, .feat-row-4 { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .sec-head h2 { font-size: 25px; }
  .cta-band { padding: 40px 24px; }
  .nav-links a.nav-link-text { display: none; }
}
