/* ==========================================================================
   游咔 youkaapp.net.cn - 全站样式
   独立单文件CSS，资源全部本地化，无外部CDN
   ========================================================================== */

/* ---------- 设计令牌 ---------- */
:root {
  --bg: #F4F6FB;
  --surface: #FFFFFF;
  --surface-soft: #F8FAFE;
  --text: #141A2F;
  --text-soft: #4A536A;
  --muted: #7A8294;
  --line: #E4E9F2;
  --line-strong: #C9D1E0;

  --primary: #5B5BFF;
  --primary-2: #7C4DFF;
  --accent: #FF8A3D;
  --accent-2: #FF6B9A;
  --success: #22C55E;
  --warn: #F59E0B;
  --info: #0EA5E9;

  --grad-primary: linear-gradient(135deg, #5B5BFF 0%, #7C4DFF 50%, #FF6B9A 100%);
  --grad-hero: linear-gradient(140deg, #0E1230 0%, #1E2563 45%, #5B3DFF 100%);
  --grad-soft: linear-gradient(180deg, #EEF1FF 0%, #F8FAFE 100%);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 6px rgba(20, 26, 47, .06);
  --shadow: 0 12px 32px rgba(20, 26, 47, .08);
  --shadow-lg: 0 24px 60px rgba(20, 26, 47, .14);

  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", "Hiragino Sans GB",
          "Source Han Sans CN", "Noto Sans CJK SC", Arial, sans-serif;
  --max: 1180px;
}

/* ---------- 基础重置 ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-2); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .6em; color: var(--text); font-weight: 700; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--text-soft); }
ul, ol { color: var(--text-soft); padding-left: 1.4em; margin: 0 0 1em; }
ul li, ol li { margin-bottom: .35em; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.container { width: min(100% - 2.4rem, var(--max)); margin-inline: auto; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--dark { background: var(--dark); color: #DDE3F2; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #FFFFFF; }
.section--dark p { color: #B5BBD0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { margin-bottom: .35em; }
.section-title p { color: var(--muted); max-width: 640px; margin: 0 auto; }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 600;
  color: var(--primary); background: rgba(91, 91, 255, .08);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
  letter-spacing: .04em;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  color: #fff; background: var(--grad-primary);
  box-shadow: 0 12px 28px rgba(91, 91, 255, .35);
}
.btn--primary:hover { color: #fff; box-shadow: 0 18px 36px rgba(91, 91, 255, .45); }
.btn--ghost { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn--outline { color: var(--primary); border-color: var(--primary); background: transparent; }
.btn--outline:hover { color: #fff; background: var(--primary); }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn--sm { padding: 8px 16px; font-size: .88rem; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(20, 26, 47, .06); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 700;
}
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand .brand-name { font-size: 1.25rem; letter-spacing: .04em; }
.brand .brand-sub { font-size: .76rem; color: var(--muted); font-weight: 500; display: block; line-height: 1; margin-top: 3px; letter-spacing: .12em; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  color: var(--text); font-weight: 500; padding: 10px 14px; border-radius: 10px; font-size: .96rem;
}
.nav-links a:hover { background: rgba(91, 91, 255, .08); color: var(--primary); }
.nav-links a.is-active { color: var(--primary); background: rgba(91, 91, 255, .1); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: #fff;
  border-radius: 10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 4px auto; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad-hero);
  color: #fff; padding: 96px 0 120px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(800px 500px at 85% 20%, rgba(255, 107, 154, .35), transparent 60%),
    radial-gradient(600px 400px at 12% 80%, rgba(91, 91, 255, .35), transparent 65%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; line-height: 1.18; }
.hero h1 .accent {
  background: linear-gradient(90deg, #FFD27A, #FF8A3D);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { color: #D7DCF0; font-size: 1.08rem; max-width: 540px; }
.hero .badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 30px; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; color: #C8CFEC; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16); padding: 6px 12px; border-radius: 999px;
}
.hero .badge svg { width: 14px; height: 14px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .phone-mockup {
  position: relative; aspect-ratio: 5/6; max-width: 360px; margin-inline: auto;
  border-radius: 44px;
  background: linear-gradient(160deg, #2A2D7A 0%, #15183E 100%);
  padding: 14px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255,255,255,.06);
}
.hero .phone-mockup::before {
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 18px; background: #0B0E2A; border-radius: 12px;
}
.hero .phone-mockup img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 32px;
  background: #fff;
}
.hero .phone-mockup .float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.96); color: var(--text);
  padding: 10px 14px; border-radius: 14px; box-shadow: var(--shadow);
  font-size: .82rem; font-weight: 600;
}
.hero .phone-mockup .float-card--top { top: 60px; left: -24px; }
.hero .phone-mockup .float-card--bottom { bottom: 80px; right: -16px; }
.hero .phone-mockup .float-card span { color: var(--muted); font-weight: 500; font-size: .76rem; display: block; }
.hero .float-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--grad-primary); display: grid; place-items: center; color: #fff; font-weight: 700; }

/* ---------- 数据条 ---------- */
.stats {
  background: var(--surface); margin-top: -56px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 26px 12px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center;
  position: relative; z-index: 2;
}
.stats .stat-num { font-size: 1.7rem; font-weight: 800; color: var(--text); display: block; line-height: 1.1; }
.stats .stat-num small { font-size: .9rem; color: var(--primary); font-weight: 600; margin-left: 2px; }
.stats .stat-label { font-size: .85rem; color: var(--muted); }

/* ---------- 卖点卡 ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(91, 91, 255, .35); box-shadow: var(--shadow); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(91, 91, 255, .1); color: var(--primary); margin-bottom: 18px;
}
.feature-card:nth-child(2) .feature-icon { background: rgba(255, 138, 61, .12); color: var(--accent); }
.feature-card:nth-child(3) .feature-icon { background: rgba(34, 197, 94, .12); color: var(--success); }
.feature-card:nth-child(4) .feature-icon { background: rgba(255, 107, 154, .12); color: var(--accent-2); }
.feature-card:nth-child(5) .feature-icon { background: rgba(14, 165, 233, .12); color: var(--info); }
.feature-card:nth-child(6) .feature-icon { background: rgba(245, 158, 11, .12); color: var(--warn); }
.feature-card h3 { margin-bottom: .4em; }
.feature-card p { font-size: .94rem; margin-bottom: 0; }

/* ---------- 截图画廊 ---------- */
.screens-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; align-items: end;
}
.screen-item {
  background: #0B0E2A; border-radius: 28px; padding: 8px; aspect-ratio: 9/19;
  overflow: hidden; box-shadow: 0 18px 40px rgba(20, 26, 47, .12);
  transition: transform .25s ease;
  position: relative;
}
.screen-item:hover { transform: translateY(-8px); }
.screen-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.screen-item .caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 14px;
  color: #fff; font-size: .82rem; text-align: center;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.6));
  border-radius: 28px;
  pointer-events: none;
}
.screen-item:nth-child(2) { transform: translateY(-20px); }
.screen-item:nth-child(2):hover { transform: translateY(-28px); }
.screen-item:nth-child(4) { transform: translateY(-20px); }
.screen-item:nth-child(4):hover { transform: translateY(-28px); }
.screen-item:nth-child(6) { transform: translateY(-10px); }
.screen-item:nth-child(6):hover { transform: translateY(-18px); }

/* ---------- 深度内容入口 ---------- */
.toc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.toc-card {
  position: relative; display: block; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.toc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(91, 91, 255, .35); color: inherit; }
.toc-card .toc-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-primary); color: #fff; margin-bottom: 16px; }
.toc-card .toc-eyebrow { color: var(--primary); font-size: .82rem; font-weight: 600; letter-spacing: .04em; }
.toc-card h3 { margin: 6px 0 .5em; color: var(--text); }
.toc-card p { font-size: .92rem; margin: 0; }
.toc-card .toc-link { color: var(--primary); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; }

/* ---------- 用户评价 ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.testimonial .stars { color: #F59E0B; letter-spacing: 2px; font-size: 1.1rem; }
.testimonial blockquote { margin: 0; color: var(--text-soft); font-size: .95rem; flex: 1; }
.testimonial .user { display: flex; align-items: center; gap: 12px; }
.testimonial .user .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad-primary); color: #fff; display: grid; place-items: center; font-weight: 700; }
.testimonial .user .name { font-weight: 600; color: var(--text); font-size: .95rem; }
.testimonial .user .role { color: var(--muted); font-size: .82rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 22px; transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: rgba(91, 91, 255, .35); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 14px; height: 14px; flex: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s ease; margin-top: -4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details p { margin: 12px 0 0; color: var(--text-soft); font-size: .95rem; }

/* ---------- 底部下载 CTA ---------- */
.cta-strip {
  position: relative; overflow: hidden;
  background: var(--grad-primary); color: #fff; padding: 64px 0; text-align: center;
}
.cta-strip::before, .cta-strip::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.cta-strip::before { width: 320px; height: 320px; left: -100px; top: -100px; }
.cta-strip::after  { width: 260px; height: 260px; right: -80px; bottom: -120px; }
.cta-strip .container { position: relative; z-index: 1; }
.cta-strip h2 { color: #fff; margin-bottom: .25em; }
.cta-strip p { color: rgba(255,255,255,.88); margin-bottom: 28px; }
.cta-strip .cta-row { display: inline-flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-strip .btn--primary { background: #fff; color: var(--primary); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.cta-strip .btn--primary:hover { color: var(--primary-2); }
.cta-strip .btn--ghost { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }
.cta-strip .btn--ghost:hover { background: rgba(255,255,255,.22); color: #fff; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0B0E2A; color: #B5BBD0; padding: 56px 0 32px; font-size: .92rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; letter-spacing: .04em; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #B5BBD0; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { color: #8B92AA; margin-top: 12px; font-size: .88rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 36px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; color: #6F7793; font-size: .84rem;
}
.disclaimer {
  background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 16px 20px; margin-top: 24px; color: #8B92AA; font-size: .85rem; line-height: 1.7;
}

/* ---------- 内页通用 ---------- */
.page-hero { padding: 88px 0 56px; background: var(--grad-soft); }
.breadcrumb { color: var(--muted); font-size: .88rem; margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.page-hero h1 { color: var(--text); margin-bottom: .35em; }
.page-hero .lead { color: var(--text-soft); max-width: 720px; font-size: 1.05rem; }
.content { padding: 56px 0 96px; }
.content .prose { max-width: 820px; margin-inline: auto; }
.content .prose h2 { margin-top: 1.6em; padding-top: .6em; border-top: 1px solid var(--line); }
.content .prose h2:first-of-type { border-top: 0; padding-top: 0; }
.content .prose h3 { margin-top: 1.3em; color: var(--text); }
.content .prose ul li, .content .prose ol li { font-size: .98rem; }
.content .prose p { font-size: 1rem; }
.callout {
  background: rgba(91, 91, 255, .06); border-left: 4px solid var(--primary);
  padding: 16px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 22px 0; color: var(--text-soft);
}
.callout strong { color: var(--text); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  position: relative; padding: 16px 20px 16px 64px; margin-bottom: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text-soft);
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad-primary); color: #fff; font-weight: 700; display: grid; place-items: center;
}
.steps li strong { color: var(--text); display: block; margin-bottom: 4px; font-size: 1rem; }

/* 跳到内容 */
.skip-link { position: absolute; top: -100px; left: 0; background: var(--primary); color: #fff; padding: 10px 18px; z-index: 100; border-radius: 0 0 10px 0; }
.skip-link:focus { top: 0; color: #fff; }

/* 返回顶部 */
.back-top {
  position: fixed; right: 20px; bottom: 24px; z-index: 60;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad-primary); color: #fff; border: 0; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px rgba(91, 91, 255, .35);
}
.back-top.is-visible { display: inline-flex; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero { padding: 64px 0 88px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero .cta-row { justify-content: center; }
  .hero .badges { justify-content: center; }
  .hero .phone-mockup { max-width: 300px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .features-grid, .toc-grid, .testimonials { grid-template-columns: 1fr 1fr; }
  .screens-grid { grid-template-columns: repeat(3, 1fr); }
  .screen-item:nth-child(2), .screen-item:nth-child(4), .screen-item:nth-child(6) { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn--outline { display: none; }
  .nav-toggle { display: inline-block; }
  .nav-links.is-open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; padding: 14px 20px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-links.is-open a { display: block; }
  .features-grid, .toc-grid, .testimonials { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 480px) {
  .screens-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .phone-mockup { max-width: 240px; }
}
