/* WinDrama 官网 —— 暗紫主题，零依赖。配色取自 App 的 colors.xml（brand_primary #644AF8 / 渐变 #055AF0 → #8F44FC / bg_page #0E0E0E），与端上一致。 */
:root {
  color-scheme: dark;
  --bg: #0e0e0e;
  --bg-alt: #141220;
  --surface: #1b1830;
  --line: #2c2847;
  --text: #f5f4fb;
  --muted: #b2adc9;
  --dim: #8a85a3;
  --brand: #644af8;         /* brand_primary */
  --brand-bright: #8f44fc;  /* brand_primary_bright */
  --brand-blue: #055af0;    /* brand_primary_light：渐变起端 */
  --gold: #fa9f0d;          /* brand_gold */
  --radius: 16px;
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  /* 泰语字形系统字体里多数机型有，补 Noto Sans Thai 兜底；不外链字体，首屏不等网络 */
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Thai", "Leelawadee UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* height:auto 必须有：HTML 里给了 width/height 属性（防 CLS），只压 max-width 的话高度会停在属性值上，图被纵向拉长 */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.container { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 3px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(14, 14, 14, .82);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 20px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; letter-spacing: -.2px; }
.brand b { color: var(--brand-bright); font-weight: 700; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a:focus-visible { color: var(--text); }


.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  color: var(--text); font-size: 20px; line-height: 1; padding: 8px 12px; border-radius: 10px; cursor: pointer;
}

/* ---------- buttons ---------- */
.store-btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand) 55%, var(--brand-bright));
  color: #fff; padding: 11px 20px; border-radius: 999px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(100, 74, 248, .35);
}
.store-btn:hover { filter: brightness(1.08); }
.gp-icon { width: 22px; height: 22px; flex: none; }
.gp-text { display: grid; line-height: 1.12; text-align: left; }
.gp-text small { font-size: 10px; opacity: .82; text-transform: uppercase; letter-spacing: .6px; }
.gp-text strong { font-size: 15px; }
.header-cta { padding: 8px 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 999px; text-decoration: none; font-weight: 600;
}
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand-bright); color: #c9b8ff; }

/* ---------- hero ---------- */
.hero {
  padding: 76px 0 72px;
  background:
    radial-gradient(900px 480px at 78% 18%, rgba(100, 74, 248, .28), transparent 62%),
    radial-gradient(700px 420px at 12% 6%, rgba(5, 90, 240, .16), transparent 60%);
}
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 14px;
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.12; margin: 0 0 18px; letter-spacing: -1px; }
.accent {
  background: linear-gradient(90deg, #5b8cff, var(--brand-bright));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: 17px; margin: 0 0 28px; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { color: var(--dim); font-size: 13.5px; margin-top: 18px; }

/* 商店图自带机身和宣传语，不再用 CSS 画机壳，只给圆角和投影 */
.hero-visual { display: flex; justify-content: center; }
.hero-shot {
  width: min(340px, 78vw); border-radius: 22px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06);
}

/* ---------- sections ---------- */
.section { padding: 78px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.18; margin: 0 0 12px; letter-spacing: -.6px; }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- quick facts ---------- */
.facts { padding: 0; }
.facts .container { transform: translateY(-34px); }
.fact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.fact-grid > div { background: var(--surface); padding: 20px 22px; }
.fact-grid dt { font-size: 12px; letter-spacing: .8px; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.fact-grid dd { margin: 6px 0 0; font-size: 15px; color: var(--text); }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  transition: border-color .18s ease, transform .18s ease;
}
.feature:hover { border-color: rgba(143, 68, 252, .55); transform: translateY(-3px); }
.feature .ico { font-size: 26px; margin-bottom: 12px; }
.feature h3 { margin: 0 0 8px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.step .num {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-bright)); color: #fff;
  font-weight: 800; margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- earn detail ---------- */
.earn-detail { display: grid; gap: 20px; margin-top: 22px; max-width: 760px; margin-inline: auto; }
.earn-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.earn-card h3 { margin: 0 0 16px; font-size: 19px; }
.tick { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tick li { padding-left: 28px; position: relative; color: var(--muted); font-size: 15px; }
.tick li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand-bright); font-weight: 800; }
.tick strong { color: var(--text); }
.fineprint { color: var(--dim); font-size: 13px; margin: 16px 0 0; }

/* ---------- screenshots ---------- */
.shots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.shot { margin: 0; }
.shot img { border-radius: 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .05); }

/* ---------- faq ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: inherit; margin: 0; font-weight: inherit; }
.faq .chev { color: var(--brand-bright); font-size: 20px; line-height: 1; flex: none; }
.faq details[open] .chev { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }

/* ---------- cta ---------- */
.cta-band {
  text-align: center; padding: 0 0 50px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(600px 300px at 50% 100%, rgba(100, 74, 248, .26), transparent 70%), var(--surface);
  border: 1px solid var(--line);
}
.cta-banner { width: 100%; margin-bottom: 34px; }
.cta-band h2 { font-size: clamp(24px, 3.2vw, 34px); margin: 0 18px 10px; letter-spacing: -.5px; }
.cta-band p { color: var(--muted); margin: 0 18px 24px; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0 44px; background: var(--bg-alt); }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; margin-left: auto; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.footer-links a:hover { color: var(--brand-bright); }
.copyright { width: 100%; color: var(--dim); font-size: 13.5px; margin: 6px 0 0; }
.updated { color: var(--dim); font-size: 13px; margin: 0; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 16px; }
.notfound h1 { font-size: clamp(30px, 5vw, 44px); margin: 0 0 12px; }
.notfound p { color: var(--muted); margin: 0 0 26px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .features, .steps { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(3, 1fr); }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav {
    position: absolute; inset: 68px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 8px 16px 18px; display: none;
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav > a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav .header-cta { margin-top: 14px; justify-content: center; border-bottom: 0; }
  .nav-toggle { display: inline-block; }
  .hero { padding: 48px 0 48px; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .facts .container { transform: none; }
  .facts { padding: 0 0 8px; }
  .section { padding: 56px 0; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
  .footer-links { margin-left: 0; }
}

@media (max-width: 560px) {
  .features, .steps, .fact-grid { grid-template-columns: 1fr; }
  /* 手机上 5 张竖图横向滑，不堆成一长列 */
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 8px; }
  .shot { flex: 0 0 72%; scroll-snap-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature { transition: none; }
}
