/* 智映引擎 · 官网响应式样式
   桌面宽屏展开，移动端收拢；浅色留白、精致干净。
   与 app.css 共用同一套视觉变量（品牌色、圆角、阴影），保证官网与产品页观感一致。 */

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f1f2f7;
  --ink: #1c1f2a;
  --ink-2: #4a4f5e;
  --ink-3: #8a90a2;
  --line: #e9ebf2;
  --brand: #5b5bf0;
  --brand-ink: #4a3fd6;
  --brand-soft: #eef0ff;
  --green: #18a058;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 8px 30px rgba(28, 31, 42, 0.06);
  --shadow-lg: 0 18px 50px rgba(28, 31, 42, 0.10);
  --wrap: 1160px;
  font-synthesis: none;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 247, 251, 0.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, 0.9); }
.nav-inner { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, #6a6af5, #4a3fd6);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(90, 91, 240, .3);
}
.brand-mark-i { width: 14px; height: 14px; border: 2.6px solid #fff; border-radius: 5px; transform: rotate(-12deg); position: relative; }
.brand-mark-i::after { content: ''; position: absolute; width: 5px; height: 5px; background: #fff; border-radius: 50%; top: 2px; left: 2px; }
.brand-mark.sm { width: 30px; height: 30px; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -.5px; }
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: 24px; }
.nav-links a { font-size: 15px; color: var(--ink-2); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--brand); }
.nav-actions { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.nav-toggle { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; background: none; flex-direction: column; gap: 5px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; text-align: center; padding: 11px 20px; border-radius: 12px; font-weight: 600; font-size: 14px; white-space: nowrap; transition: transform .15s, box-shadow .2s, background .2s; border: 1px solid transparent; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(90, 91, 240, .26); }
.btn-primary:hover { background: var(--brand-ink); box-shadow: 0 12px 26px rgba(90, 91, 240, .34); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { color: var(--brand); background: var(--brand-soft); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--brand-ink); box-shadow: 0 10px 26px rgba(0,0,0,.12); }
.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 96px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background:
  radial-gradient(680px 420px at 78% 18%, rgba(122, 122, 246, .16), transparent 62%),
  radial-gradient(520px 380px at 8% 82%, rgba(88, 200, 160, .10), transparent 60%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px; background: var(--brand-soft); color: var(--brand-ink); border-radius: 999px; font-size: 13px; font-weight: 600; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.hero h1 { font-size: clamp(38px, 4.6vw, 60px); line-height: 1.16; letter-spacing: -1.6px; margin: 24px 0 20px; font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #5b5bf0, #8a5bf0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 18px; color: var(--ink-2); line-height: 1.85; max-width: 540px; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 9px; margin-top: 26px; color: var(--ink-3); font-size: 14px; }
.hero-trust .check { width: 20px; height: 20px; color: var(--green); }

/* Hero 视觉：层叠的内容卡片 */
.hero-visual { position: relative; height: 420px; }
.vcard { position: absolute; border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.vcard-back { width: 78%; height: 300px; top: 12px; right: -6px; transform: rotate(6deg); background: #f0efff; padding: 30px 26px; }
.vcard-front { width: 82%; height: 340px; top: 58px; left: -4px; transform: rotate(-3deg); padding: 0 0 18px; overflow: hidden; }
.vhead { display: flex; gap: 6px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.vdot { width: 8px; height: 8px; border-radius: 50%; background: #d9dce6; }
.vblock { margin: 16px 20px; }
.vblock.soft { background: var(--surface-2); border-radius: 12px; padding: 14px 16px; margin-top: 10px; }
.vline { height: 10px; border-radius: 6px; background: #e6e8f0; margin: 9px 0; width: 100%; }
.vline.short { width: 55%; }
.vline.mid { width: 74%; }
.vline.title { height: 15px; width: 62%; background: #cfd2e6; margin-bottom: 14px; }
.vchip-row { display: flex; gap: 8px; margin-top: 14px; }
.vchip { width: 54px; height: 26px; border-radius: 8px; background: var(--brand-soft); }
.vchip:nth-child(2) { background: #e7f7ee; }
.vchip:nth-child(3) { background: #fdf0e0; }
.v-play { position: absolute; bottom: 16px; right: 18px; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(90,91,240,.4); }
.v-play span { width: 0; height: 0; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.vfloat { position: absolute; padding: 9px 15px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; z-index: 2; }
.vfloat-a { top: 30px; left: -30px; }
.vfloat-b { bottom: 46px; right: -22px; }

/* ---------- 通用区块 ---------- */
.section { padding: 92px 0; }
.section-soft { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 54px; }
.sec-tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: 2px; margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -1px; margin: 0 0 14px; font-weight: 800; line-height: 1.3; }
.sec-head p { font-size: 16px; color: var(--ink-2); margin: 0; }

/* 功能矩阵 */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); transition: transform .22s, box-shadow .22s, border-color .22s; }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #d9dbf7; }
.f-ic { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; padding: 12px; margin-bottom: 20px; }
.f-ic svg { stroke-width: 1.7; }
.ic-script { background: #eef0ff; color: #5b5bf0; }
.ic-viral { background: #e7f7ee; color: #18a058; }
.ic-drama { background: #f0ecff; color: #7a4ad6; }
.ic-video { background: #fdf0e0; color: #d98b1a; }
.ic-material { background: #e6f4fb; color: #2a8fc4; }
.ic-market { background: #fdecef; color: #d9485f; }
.feature h3 { font-size: 19px; margin: 0 0 10px; font-weight: 700; }
.feature p { font-size: 14.5px; color: var(--ink-2); line-height: 1.8; margin: 0; }

/* 使用流程 */
.flow-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: center; }
.step { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px 30px; text-align: center; }
.step-no { position: absolute; top: 18px; right: 22px; font-size: 30px; font-weight: 800; color: #eceef6; }
.step-ic { width: 58px; height: 58px; margin: 0 auto 18px; padding: 15px; border-radius: 18px; background: var(--brand-soft); color: var(--brand); }
.step h3 { font-size: 19px; margin: 0 0 10px; }
.step p { font-size: 14.5px; color: var(--ink-2); margin: 0; line-height: 1.75; }
.step-arrow { font-size: 26px; color: #c7cada; }

/* 身份卡 */
.role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.role-card { display: block; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 34px 32px; box-shadow: var(--shadow); transition: transform .22s, box-shadow .22s, border-color .22s; }
.role-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--brand); }
.role-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.role-ic { width: 52px; height: 52px; padding: 13px; border-radius: 15px; }
.role-card.merchant .role-ic { background: #eef0ff; color: #5b5bf0; }
.role-card.opc .role-ic { background: #e7f7ee; color: #18a058; }
.role-badge { font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 6px 13px; background: var(--surface-2); border-radius: 999px; }
.role-card h3 { font-size: 24px; margin: 0 0 6px; }
.role-sub { color: var(--ink-2); font-size: 15px; margin: 0 0 22px; }
.role-bullets { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.role-bullets li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.tick { width: 19px; height: 19px; flex: none; color: var(--green); }
.role-enter { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 20px; color: var(--brand); font-weight: 700; font-size: 16px; }
.role-enter span { transition: transform .2s; }
.role-card:hover .role-enter span { transform: translateX(5px); }

/* CTA */
.cta { padding: 0 0 92px; }
.cta-inner { background: linear-gradient(120deg, #5b5bf0, #7a4ad6); border-radius: 26px; padding: 52px 56px; display: flex; align-items: center; justify-content: space-between; gap: 30px; box-shadow: 0 20px 50px rgba(90, 91, 240, .28); }
.cta h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin: 0 0 8px; letter-spacing: -.6px; }
.cta p { color: rgba(255,255,255,.82); margin: 0; font-size: 16px; }

/* 页脚 */
.footer { background: #1c1f2a; color: #c6c9d4; padding: 58px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer-brand { display: flex; gap: 13px; align-items: flex-start; }
.footer-brand .brand-mark { background: linear-gradient(135deg, #6a6af5, #4a3fd6); }
.footer-brand strong { color: #fff; font-size: 19px; display: block; margin-bottom: 4px; }
.footer-brand p { margin: 0; font-size: 13.5px; color: #8a90a2; }
.footer-col h4 { color: #fff; font-size: 15px; margin: 0 0 16px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; margin: 0 0 10px; color: #a8adbb; }
.footer-col a:hover { color: #fff; }
.footer-col .icp { font-size: 12.5px; color: #6f7484; }
.footer-bottom { border-top: 1px solid #313540; padding: 22px 28px; display: flex; justify-content: space-between; font-size: 13px; color: #6f7484; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-visual { height: 360px; max-width: 480px; margin: 0 auto; width: 100%; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 10px 28px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .nav-actions { display: none; }
}
@media (max-width: 640px) {
  .wrap, .nav-inner { padding: 0 20px; }
  .hero { padding: 54px 0 64px; }
  .hero h1 { font-size: 38px; letter-spacing: -1px; }
  .hero-sub { font-size: 16px; }
  .section { padding: 64px 0; }
  .sec-head { margin-bottom: 38px; }
  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature { padding: 26px 24px; }
  .flow-grid { grid-template-columns: 1fr; gap: 14px; }
  .step-arrow { transform: rotate(90deg); }
  .role-grid { grid-template-columns: 1fr; gap: 18px; }
  .cta { padding-bottom: 64px; }
  .cta-inner { flex-direction: column; align-items: flex-start; padding: 36px 30px; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .hero-visual { height: 300px; }
  .vcard-front { height: 280px; }
  .vcard-back { height: 240px; }
  .vfloat-a { left: -6px; }
  .vfloat-b { right: -6px; }
}
