:root {
  color-scheme: light;
  --bg: #fcf4fa;
  --panel: #fff;
  --panel-high: #f6e8f6;
  --ink: #382341;
  --muted: #67516c;
  --accent: #873280;
  --line: #ead4e7;
  --bar: #fff7fdec;
  --pink: #ad2b74;
  --violet: #763bb0;
  --heading-font: "Songti SC", "STSong", "SimSun", "PingFang SC", serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 86px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
body.download-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
main { min-height: 62vh; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.26; }
h2 { font-size: clamp(25px, 3vw, 36px); }
p { color: var(--muted); }
.wrap { width: min(calc(100% - 48px), 1120px); margin-inline: auto; }
.skip-link { position: fixed; top: -90px; left: 16px; z-index: 110; padding: 8px 14px; background: var(--panel); }
.skip-link:focus { top: 8px; }

/* 导航与页脚 */
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: var(--bar); backdrop-filter: blur(14px); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 750; white-space: nowrap; text-decoration: none; }
.brand img { width: 36px; border-radius: 11px; }
.brand-ai { margin-left: 4px; color: var(--accent); font-size: 11px; }
.nav-links { display: flex; gap: clamp(14px, 2vw, 24px); align-items: center; }
.nav-links a, .site-footer a { color: var(--muted); text-decoration: none; }
.nav-links a { padding: 7px 0; font-size: 14px; white-space: nowrap; }
.nav-links a:hover, .site-footer a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 7px; }
.nav-toggle, .mobile-bar { display: none; }
.nav-cta, .mobile-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 8px 17px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
  white-space: nowrap;
}
.nav-cta, .mobile-cta, .button-primary {
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(110deg, var(--pink), var(--violet));
  box-shadow: 0 5px 14px #9f3b8c27;
}
.nav-cta, .mobile-cta { flex-shrink: 0; }
.nav-cta:hover, .mobile-cta:hover, .button-primary[href]:hover { filter: brightness(.9); }
.button-quiet { color: var(--accent); border-color: var(--line); }
.button-quiet:hover { border-color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-inner { min-height: 90px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 25px; padding-block: 20px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a[aria-current="page"] { color: var(--ink); }

/* 首页首屏 */
.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 79% 20%, #ebd9f9 0, transparent 55%),
    radial-gradient(ellipse at 18% 27%, #fbd7e8 0, transparent 56%),
    linear-gradient(155deg, #fcebf5, var(--bg));
}
.hero-grid {
  min-height: 570px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .94fr);
  align-items: center;
  gap: clamp(25px, 6vw, 80px);
  padding-block: clamp(40px, 7vw, 80px);
}
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 650; letter-spacing: .13em; margin-bottom: 15px; }
.hero h1 { font: 600 clamp(44px, 6vw, 75px)/1.15 var(--heading-font); letter-spacing: -.07em; }
.hero h1 .eyebrow { display: block; font: 650 12px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.hero h1 em { color: var(--pink); font-style: normal; }
@supports (background-clip: text) {
  .hero h1 em {
    background: linear-gradient(100deg, var(--pink), var(--violet));
    background-clip: text;
    color: transparent;
  }
}
@media (forced-colors: active) {
  .hero h1 em { color: CanvasText; }
}
.lead { max-width: 42rem; font-size: clamp(16px, 1.75vw, 18px); margin-top: 18px; }
.hero-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.hero-topics li { border: 1px solid var(--line); background: #ffffffc9; border-radius: 99px; padding: 3px 11px; color: var(--accent); font-size: 12px; }
.age-note { margin-top: 16px; font-size: 12px; }
.hero-art {
  position: relative;
  width: min(100%, 460px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px 20px 12px;
  border: 1px solid #fff;
  border-radius: 24px;
  background: linear-gradient(145deg, #fffffff0, #fff2fb9e);
  box-shadow: 0 16px 42px #7c3d841c;
}
.hero-image { min-width: 0; border: 1px solid var(--line); border-radius: 19px; overflow: hidden; background: var(--panel-high); box-shadow: 0 8px 18px #60296126; }
.hero-cover { margin-top: 24px; }
.hero-art img { width: 100%; }
.hero-art figcaption { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }

/* 内容页与卡片 */
.page-intro { padding-block: clamp(42px, 8vw, 88px) clamp(32px, 6vw, 58px); background: linear-gradient(118deg, #fbe0ef, #f0e3fa 76%, var(--bg)); border-bottom: 1px solid var(--line); }
.page-intro h1 { font-size: clamp(33px, 5vw, 55px); }
.section { padding-block: clamp(33px, 6vw, 73px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 14px 24px; margin-bottom: 23px; }
.section-desc { margin-top: 9px; }
.section-link { display: inline-block; flex-shrink: 0; color: var(--accent); text-underline-offset: 4px; font-size: 14px; }
.role-grid, .feature-grid, .screens-grid, .guide-grid, .platform-grid, .prose-grid { display: grid; gap: clamp(12px, 2vw, 19px); }
.role-grid, .screens-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-grid, .prose-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide-grid, .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.role-card, .feature-card, .app-shot, .guide-grid li, .platform-card, .faq-card, .prose-grid article, .conversation {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel);
  box-shadow: 0 5px 16px #7c3d840c;
}
.role-card { overflow: hidden; }
.role-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.role-info, .feature-card, .guide-grid li, .platform-card, .prose-grid article, .conversation { padding: clamp(16px, 2.5vw, 25px); }
.role-info h3, .feature-card h3, .guide-grid h3 { font-size: 18px; }
.role-info h3 + p, .feature-card p, .guide-grid p, .prose-grid p { margin-top: 8px; font-size: 14px; }
.role-tag, .platform-label { color: var(--accent); font-size: 11px; font-weight: 650; margin-bottom: 7px; }
.screenshot-pair { max-width: 560px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.app-shot { overflow: hidden; padding: 7px; }
.app-shot a { display: block; border-radius: 11px; }
.app-shot img { width: 100%; aspect-ratio: 25 / 54; object-fit: contain; object-position: center top; background: var(--bg); border-radius: 11px; }
.app-shot figcaption { padding: 9px 5px 3px; color: var(--muted); font-size: 12px; }
.guide-grid { padding: 0; list-style: none; counter-reset: step; }
.guide-grid li::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; color: var(--accent); margin-bottom: 10px; font-size: 12px; }
.guide-grid a, .prose-grid a, .faq-card a { color: var(--accent); text-underline-offset: 3px; }
.platform-card { padding: clamp(20px, 4vw, 38px); }
.platform-label { display: inline-block; }
.platform-card .button { margin-top: 19px; }
[data-download-target][aria-disabled="true"] { cursor: default; }
.faq-list { display: grid; gap: 11px; }
.faq-card summary { cursor: pointer; padding: 14px 17px; font-weight: 650; }
.faq-card p { padding: 0 17px 16px; }
.conversation-example { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(20px, 5vw, 60px); }
.conversation-example h2 + p { margin: 10px 0; }
.conversation figcaption { color: var(--accent); font-size: 12px; margin-bottom: 12px; }
.conversation-line { display: grid; grid-template-columns: 3em minmax(0, 1fr); gap: 8px; padding: 8px 12px; margin-top: 8px; border-radius: 10px; background: var(--panel-high); color: var(--accent); font-size: 14px; }
.conversation-line p { color: var(--ink); }
.conversation blockquote { margin: 0; max-width: 48rem; }

/* 扫码弹窗与返回顶部 */
.download-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: #35193e82; }
.download-dialog { position: relative; overflow: auto; max-height: calc(100dvh - 32px); width: min(590px, 100%); padding: clamp(18px, 4vw, 32px); border-radius: 21px; border: 1px solid var(--line); background: var(--panel); box-shadow: 0 16px 50px #35193e33; text-align: center; }
.download-dialog h2 { padding-right: 30px; font-size: clamp(20px, 4vw, 28px); }
.download-dialog p { margin: 14px 0; font-size: 14px; }
.modal-close { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel-high); color: var(--ink); font-size: 22px; line-height: 1; }
.qr-platforms { display: flex; justify-content: center; gap: clamp(9px, 3vw, 22px); margin-top: 16px; }
.qr-platform { flex: 0 1 195px; min-width: 0; }
.qr-platform h3 { margin: 0 0 8px; font-size: 15px; }
.qr { width: 100%; aspect-ratio: 1; padding: 7px; border-radius: 10px; background: #fff; }
.qr svg { display: block; width: 100%; height: 100%; }
.backtop { position: fixed; right: 16px; bottom: 20px; z-index: 25; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); background: var(--panel-high); }

@media (max-width: 900px) {
  .nav { flex-wrap: wrap; gap: 8px; min-height: 62px; }
  .nav-links { order: 4; width: 100%; flex-wrap: wrap; padding-block: 5px 9px; }
  .menu-ready .nav { position: relative; flex-wrap: nowrap; }
  .menu-ready .nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; margin-left: auto; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
  .menu-ready .nav-links { display: none; position: absolute; inset: 100% 0 auto; max-height: 60dvh; overflow: auto; padding: 8px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
  .menu-ready .nav-links.is-open { display: grid; gap: 0; }
  .menu-ready .nav-links a { display: flex; align-items: center; min-height: 44px; padding: 8px 11px; }
  .screens-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 610px; }
  .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prose-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .hero-grid { display: block; min-height: 0; padding-block: 38px 33px; }
  .hero h1 { font-size: clamp(43px, 8vw, 60px); }
  .hero-art { margin-top: 24px; width: min(100%, 410px); padding: 12px; gap: 11px; }
  .hero-cover { margin-top: 12px; }
  .feature-grid, .guide-grid, .prose-grid, .conversation-example { grid-template-columns: minmax(0, 1fr); }
  .section-head { align-items: start; flex-direction: column; }
  .mobile-bar { position: fixed; z-index: 40; inset: auto 0 0; display: flex; align-items: center; gap: 10px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bar); backdrop-filter: blur(15px); }
  .mobile-bar img { width: 38px; border-radius: 11px; }
  .mobile-bar div { flex: 1; min-width: 0; line-height: 1.35; }
  .mobile-bar strong, .mobile-bar small { display: block; }
  .mobile-bar small { color: var(--muted); font-size: 11px; }
  .backtop { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

@media (max-width: 360px) {
  .role-grid, .platform-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: 39px; }
}
