/* MyCodex 产品官网 · 品牌样式 */
:root {
  --primary: #6C5CE7;
  --primary-2: #AB8BFF;
  --primary-deep: #4E2DB8;
  --grad: linear-gradient(135deg, #4E5AC4 0%, #7A4FE0 52%, #BA25AE 100%);
  --grad-soft: linear-gradient(135deg, #EDEBFF 0%, #F6EEFF 100%);
  --ink: #1B1830;
  --muted: #6B6885;
  --line: #ECEAF6;
  --bg: #FBFAFF;
  --card: #FFFFFF;
  --ok: #1FA971;
  --radius: 16px;
  --shadow-sm: 0 2px 10px rgba(76, 60, 160, .06);
  --shadow-md: 0 12px 34px rgba(76, 60, 160, .12);
  --shadow-lg: 0 26px 60px rgba(76, 60, 160, .20);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 92px 0; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--primary);
  background: #F1EEFF; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; letter-spacing: -.02em; }
.h-sub { color: var(--muted); font-size: 18px; margin-top: 14px; max-width: 640px; }

/* ---- Header ---- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,250,255,.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 13px; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand .logo { width: 44px; height: 44px; border-radius: 11px; box-shadow: var(--shadow-sm); object-fit: cover; display: block; }
.nav-links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 12px; align-items: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-weight: 600; font-size: 15px; border: none; cursor: pointer;
  padding: 12px 22px; border-radius: 12px; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--primary-2); color: var(--primary); }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; padding: 104px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 760px;
  background: radial-gradient(60% 60% at 70% 20%, rgba(186,37,174,.18), transparent 70%),
              radial-gradient(50% 50% at 20% 10%, rgba(78,90,196,.22), transparent 70%);
  filter: blur(10px); z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(36px, 5.4vw, 58px); line-height: 1.08; letter-spacing: -.03em; font-weight: 850;
}
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 22px 0 32px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.trust { display: flex; gap: 26px; margin-top: 38px; flex-wrap: wrap; }
.trust span { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.trust svg { width: 17px; height: 17px; color: var(--ok); }

/* ---- Hero visual (mock UI) ---- */
.mock {
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); overflow: hidden; transform: perspective(1400px) rotateY(-7deg) rotateX(2.5deg);
}
.mock-bar { display: flex; gap: 7px; padding: 13px 16px; background: #F7F5FF; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #D8D3EE; display: inline-block; }
.mock-body { display: grid; grid-template-columns: 150px 1fr; min-height: 300px; }
.mock-side { background: #FAF9FF; border-right: 1px solid var(--line); padding: 14px 12px; }
.mock-side .s-item { font-size: 13px; color: var(--muted); padding: 7px 10px; border-radius: 8px; margin-bottom: 4px; }
.mock-side .s-item.active { background: #EFE9FF; color: var(--primary); font-weight: 600; }
.mock-chat { padding: 16px; }
.bubble { border-radius: 12px; padding: 10px 13px; font-size: 13px; margin-bottom: 12px; max-width: 88%; }
.bubble.ai { background: #F2EFFF; color: #3a2f6b; }
.bubble.me { background: var(--grad); color: #fff; margin-left: auto; }
.mock-tool { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font-size: 12px; color: var(--muted); margin-bottom: 12px; background: #fff; }
.mock-tool b { color: var(--primary); }
.mock-tag { display: inline-block; font-size: 11px; background: #EFE9FF; color: var(--primary); padding: 2px 8px; border-radius: 6px; margin-top: 4px; }

/* ---- Stats ---- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 8px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow-sm); }
.stat .n { font-size: 34px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.02em; }
.stat .l { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---- Section heads ---- */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.sec-head .h-sub { margin-left: auto; margin-right: auto; }

/* ---- Features ---- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-2); }
.feature .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--grad-soft); display: grid; place-items: center; margin-bottom: 18px; }
.feature .ico svg { width: 24px; height: 24px; color: var(--primary); }
.feature h3 { font-size: 19px; margin-bottom: 9px; letter-spacing: -.01em; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---- Why local (split) ---- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.why ul { list-style: none; margin-top: 8px; }
.why li { display: flex; gap: 13px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.why li:last-child { border-bottom: none; }
.why li .chk { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #E7F8F0; color: var(--ok); display: grid; place-items: center; font-size: 14px; font-weight: 800; margin-top: 2px; }
.why li b { display: block; font-size: 16px; margin-bottom: 2px; }
.why li span { color: var(--muted); font-size: 14px; }
.why-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow-md); }
.why-card h4 { font-size: 16px; margin-bottom: 14px; }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.compare th { color: var(--muted); font-weight: 600; font-size: 13px; }
.compare td .yes { color: var(--ok); font-weight: 700; }
.compare td .no { color: #C2BFD4; }
.compare tr:last-child td { border-bottom: none; }

/* ---- Roadmap ---- */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.phase { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.phase::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }
.phase .tag { font-size: 12px; font-weight: 700; color: var(--primary); letter-spacing: .06em; }
.phase h3 { font-size: 21px; margin: 8px 0 14px; }
.phase ul { list-style: none; }
.phase li { font-size: 14px; color: var(--muted); padding: 6px 0 6px 20px; position: relative; }
.phase li::before { content: "›"; position: absolute; left: 4px; color: var(--primary); font-weight: 800; }
.phase li.done { color: var(--ink); }
.phase li.done::before { content: "✓"; color: var(--ok); }

/* ---- Download ---- */
.download { background: var(--grad); color: #fff; border-radius: 24px; padding: 56px 48px; text-align: center; box-shadow: var(--shadow-lg); }
.download h2 { color: #fff; }
.download p { color: rgba(255,255,255,.85); font-size: 17px; margin: 14px auto 30px; max-width: 540px; }
.download .btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); }
.download .btn-ghost:hover { background: rgba(255,255,255,.24); }
.dl-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* ---- FAQ ---- */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; margin-bottom: 14px; background: var(--card); box-shadow: var(--shadow-sm); }
.faq-item h3 { font-size: 17px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.faq-item h3::before { content: "?"; width: 22px; height: 22px; border-radius: 50%; background: #EFE9FF; color: var(--primary); display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }
.faq-item p { color: var(--muted); font-size: 15px; }

/* ---- Footer ---- */
footer.foot { border-top: 1px solid var(--line); padding: 46px 0; background: #fff; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.foot .brand { font-size: 17px; }
.foot-links { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.foot-links a:hover { color: var(--primary); }
.foot small { color: #A9A6BD; display: block; margin-top: 14px; font-size: 13px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid, .why, .features, .timeline, .stats { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .nav-links { display: none; }
  .mock { transform: none; }
  .features, .timeline { gap: 16px; }
  section { padding: 68px 0; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .download { padding: 40px 24px; }
}
