/* 学到汇AI 官网落地页样式（index.html / product.html 共用，无外部依赖） */
:root {
  --brand: #2f6bff;
  --brand-deep: #2456d6;
  --violet: #7b5bf0;
  --ink: #1c2333;
  --text: #3d4657;
  --text-secondary: #7a8299;
  --bg: #f6f8fc;
  --card: #ffffff;
  --radius: 18px;
  --radius-lg: 24px;
  --shadow: 0 12px 32px rgba(47, 74, 140, 0.10);
  --shadow-sm: 0 4px 14px rgba(47, 74, 140, 0.08);
  --maxw: 1120px;
}
* { 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; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(47, 74, 140, 0.08);
}
.nav-inner { display: flex; align-items: center; height: 64px; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; 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);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800;
  box-shadow: 0 4px 12px rgba(91, 95, 240, 0.35);
}
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 15px; color: var(--text); transition: color .15s; }
.nav-links a:hover { color: var(--brand); }
.nav-links a.active { color: var(--brand); font-weight: 600; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 24px; border-radius: 12px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: none; transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #2f6bff);
  box-shadow: 0 6px 18px rgba(47, 107, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(47, 107, 255, 0.42); }
.btn-ghost {
  color: var(--brand); background: #fff;
  border: 1.5px solid rgba(47, 107, 255, 0.45);
}
.btn-ghost:hover { background: rgba(47, 107, 255, 0.06); }
.btn-lg { padding: 14px 34px; font-size: 16px; border-radius: 14px; }
.btn-light { color: var(--brand); background: #fff; box-shadow: 0 6px 18px rgba(10, 20, 60, 0.18); }
.btn-light:hover { transform: translateY(-2px); }
.btn-outline-light { color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.75); background: rgba(255,255,255,0.08); }
.btn-outline-light:hover { background: rgba(255,255,255,0.18); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(130deg, #5f83f2 0%, #6f6bf0 42%, #8a55e8 78%, #9350e3 100%);
  color: #fff;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(70px); opacity: .5; pointer-events: none;
}
.hero::before { width: 480px; height: 480px; background: #7dd3fc; top: -180px; right: -120px; opacity: .35; }
.hero::after { width: 420px; height: 420px; background: #c084fc; bottom: -200px; 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: 84px 0 96px;
}
.hero-tag {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.32);
  font-size: 13px; letter-spacing: 1px; margin-bottom: 22px;
}
.hero h1 {
  font-size: 44px; line-height: 1.28; font-weight: 800; letter-spacing: 1px;
  margin-bottom: 20px; color: #fff;
}
.hero-sub { font-size: 17px; line-height: 1.9; color: rgba(255, 255, 255, 0.88); margin-bottom: 34px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; font-size: 13.5px; color: rgba(255,255,255,0.82); }
.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: rgba(255,255,255,0.22); display: inline-flex; align-items: center; justify-content: center; font-size: 11px;
}
/* 产品截图卡片（仿浏览器窗口） */
.hero-shot {
  background: #fff; border-radius: var(--radius-lg); padding: 10px;
  box-shadow: 0 30px 70px rgba(20, 25, 70, 0.35);
  transform: rotate(1.2deg);
}
.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: 84px 0; }
.section-alt { background: #fff; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.sec-kicker { color: var(--brand); font-size: 14px; font-weight: 700; letter-spacing: 2px; margin-bottom: 10px; }
.sec-head h2 { font-size: 32px; color: var(--ink); font-weight: 800; letter-spacing: 0.5px; }
.sec-head p { margin-top: 12px; color: var(--text-secondary); font-size: 16px; }

/* ---------- 功能卡片（马卡龙色，参考设计语言） ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feat-card {
  border-radius: var(--radius); padding: 26px 22px;
  border: 1px solid rgba(47, 74, 140, 0.07);
  transition: transform .18s, box-shadow .18s;
  background: #fff;
}
.feat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feat-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
}
.feat-card h3 { font-size: 17px; color: var(--ink); margin-bottom: 6px; font-weight: 700; }
.feat-card p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.75; }
.tone-blue   { background: linear-gradient(160deg, #eef4ff, #e3edff); }
.tone-blue   .feat-icon { background: #dbe7ff; }
.tone-violet { background: linear-gradient(160deg, #f4efff, #ece4ff); }
.tone-violet .feat-icon { background: #e6dbff; }
.tone-teal   { background: linear-gradient(160deg, #e9faf6, #dff7f0); }
.tone-teal   .feat-icon { background: #d2f2e6; }
.tone-pink   { background: linear-gradient(160deg, #fff0f3, #ffe7ec); }
.tone-pink   .feat-icon { background: #ffdbe3; }
.tone-amber  { background: linear-gradient(160deg, #fff8e8, #fff1d6); }
.tone-amber  .feat-icon { background: #ffe9c2; }
.tone-green  { background: linear-gradient(160deg, #effae4, #e6f6d6); }
.tone-green  .feat-icon { background: #ddf0c4; }
.tone-cyan   { background: linear-gradient(160deg, #e9f7ff, #dff2ff); }
.tone-cyan   .feat-icon { background: #d0eaff; }
.tone-indigo { background: linear-gradient(160deg, #eef0ff, #e5e8ff); }
.tone-indigo .feat-icon { background: #dde1ff; }

/* ---------- 角色价值卡片 ---------- */
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.role-card {
  background: var(--card); border-radius: var(--radius-lg); padding: 32px 28px;
  border: 1px solid rgba(47, 74, 140, 0.08); box-shadow: var(--shadow-sm);
}
.role-card h3 { font-size: 19px; color: var(--ink); margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.role-tag { font-size: 12px; color: var(--brand); background: rgba(47,107,255,.09); padding: 3px 10px; 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: linear-gradient(135deg, #3b82f6, #7b5bf0);
}

/* ---------- 承诺条 ---------- */
.promise-band {
  background: linear-gradient(120deg, #f0f5ff, #f5f0ff);
  border-radius: var(--radius-lg); padding: 44px 48px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  border: 1px solid rgba(47, 74, 140, 0.08);
}
.promise-item h4 { font-size: 16px; color: var(--ink); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.promise-item p { font-size: 13.5px; color: var(--text-secondary); }

/* ---------- CTA 横幅 ---------- */
.cta-band {
  background: linear-gradient(120deg, #2f6bff, #7b5bf0);
  border-radius: var(--radius-lg); padding: 56px 48px;
  color: #fff; text-align: center;
  box-shadow: 0 20px 50px rgba(63, 78, 220, 0.3);
}
.cta-band h2 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 28px; font-size: 16px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- 产品详情页 ---------- */
.page-hero {
  background: linear-gradient(130deg, #5f83f2 0%, #6f6bf0 42%, #8a55e8 78%, #9350e3 100%);
  color: #fff; text-align: center; padding: 76px 0 84px;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: #c084fc; filter: blur(80px); opacity: .35; bottom: -220px; right: -100px;
}
.page-hero h1 { font-size: 38px; font-weight: 800; letter-spacing: 1px; }
.page-hero p { margin-top: 14px; font-size: 16.5px; color: rgba(255,255,255,0.88); }

.detail-block { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 30px 0; }
.detail-block + .detail-block { border-top: 1px dashed rgba(47, 74, 140, 0.14); }
.detail-block .d-text h3 { font-size: 24px; color: var(--ink); font-weight: 800; margin-bottom: 6px; }
.d-tag { display: inline-block; font-size: 12.5px; color: var(--brand); background: rgba(47,107,255,.09); padding: 3px 12px; 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; box-shadow: var(--shadow); }
.detail-shot img { border-radius: 14px; }

/* 流程步骤 */
.step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step-card {
  background: #fff; border-radius: var(--radius); padding: 26px 22px; text-align: center;
  border: 1px solid rgba(47, 74, 140, 0.08); box-shadow: var(--shadow-sm); position: relative;
}
.step-no {
  width: 42px; height: 42px; margin: 0 auto 14px; border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #7b5bf0); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px;
  box-shadow: 0 6px 14px rgba(91, 95, 240, 0.35);
}
.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: #fff; border: 1px solid rgba(47, 74, 140, 0.09);
  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; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding: 64px 0 72px; }
  .hero h1 { font-size: 34px; }
  .feat-grid { 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: 28px; }
  .feat-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .sec-head h2 { font-size: 26px; }
  .cta-band { padding: 40px 24px; }
  .nav-links a.nav-link-text { display: none; }
}
