/* ==========================================================
   星辰应援小屋 · 官网
   主题：星辰伴君 · 夜空紫 × 星光金 × 奶油黄
   ========================================================== */
:root {
  --night-0: #1d1638;
  --night-1: #4a3b6b;
  --night-2: #241b3f;
  --gold: #ffc93c;
  --gold-deep: #f5a623;
  --gold-light: #ffe9a8;
  --gold-grad: linear-gradient(135deg, #ffd34d, #f5a623);
  --cream: #fff6e1;
  --cream-2: #ffefc9;
  --card: #fffdf6;
  --brown: #5a4632;
  --brown-mid: #8a7458;
  --brown-light: #a08a63;
  --peach: #ff8f5e;
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--brown);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--gold); color: #6d4310; }
code {
  font-family: var(--mono); font-size: 0.88em;
  background: rgba(245, 166, 35, .13); color: #a3722a;
  padding: 1px 7px; border-radius: 5px;
}
.section-night code {
  background: rgba(255, 233, 168, .1); color: var(--gold-light);
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s;
}
.nav.scrolled {
  background: rgba(29, 22, 56, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 233, 168, 0.12), 0 12px 40px rgba(0,0,0,.35);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 18px 32px;
  display: flex; align-items: center; gap: 36px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo {
  width: 30px; height: auto; border-radius: 50%;
  object-fit: cover; display: block;
  animation: glowPulse 3s ease-in-out infinite;
}
.brand-name {
  font-family: var(--serif); font-weight: 700; font-size: 19px;
  color: var(--gold-light); letter-spacing: 1px;
  display: flex; align-items: baseline; gap: 8px;
}
.brand-name i {
  font-family: var(--mono); font-style: normal; font-size: 11px;
  color: var(--brown-light); letter-spacing: 2px; text-transform: uppercase;
}
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a {
  color: var(--gold-light); opacity: .78; text-decoration: none;
  font-size: 14.5px; letter-spacing: 1px; transition: opacity .2s, color .2s;
}
.nav-links a:hover { opacity: 1; color: var(--gold); }
.nav-btn {
  text-decoration: none; font-size: 14px; font-weight: 700; letter-spacing: 1px;
  color: #6d4310; background: var(--gold-grad);
  padding: 9px 22px; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(255, 179, 71, .4);
  transition: transform .2s, box-shadow .2s;
}
.nav-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255, 179, 71, .55); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 90% at 50% 0%, var(--night-1) 0%, var(--night-2) 46%, var(--night-0) 100%);
  overflow: hidden;
}
#starfield { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow {
  position: absolute; left: 50%; top: -22%; width: 900px; height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 201, 60, .16), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; text-align: center; padding: 140px 24px 120px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 5px; color: var(--brown-light);
  border: 1px solid rgba(160, 138, 99, .35);
  padding: 8px 20px; border-radius: 999px;
  background: rgba(255, 233, 168, .04);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px var(--gold);
  animation: pulse 2.2s ease-in-out infinite;
}
.hero-title {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(46px, 7.5vw, 84px); line-height: 1.18;
  color: var(--cream); margin-top: 36px; letter-spacing: 4px;
  text-shadow: 0 0 60px rgba(255, 201, 60, .18);
}
.hero-title em {
  font-style: normal;
  background: linear-gradient(120deg, #ffe9a8 8%, #ffd34d 40%, #f5a623 72%, #ffdf80);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc {
  margin-top: 28px; font-size: 16.5px; line-height: 2;
  color: #c9bfa8; letter-spacing: .5px;
}
.hero-desc code {
  color: var(--gold-light); background: rgba(255, 233, 168, .1);
  padding: 2px 8px; border-radius: 6px; font-size: .85em;
}
.hero-actions {
  margin-top: 46px; display: flex; gap: 18px;
  justify-content: center; flex-wrap: wrap;
}
.hero-meta {
  margin-top: 44px; list-style: none;
  display: flex; gap: 14px 34px; justify-content: center; flex-wrap: wrap;
  color: #8f85a8; font-size: 13px; letter-spacing: 1px;
}
.hero-scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 40px; border: 1.5px solid rgba(255, 233, 168, .35);
  border-radius: 14px; z-index: 2;
}
.hero-scroll span {
  position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 4px; background: var(--gold);
  animation: drop 1.8s ease-in-out infinite;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 700; letter-spacing: 1px;
  border-radius: 999px; transition: transform .22s, box-shadow .22s, background .22s;
}
.btn small { font-weight: 500; opacity: .75; font-size: .72em; letter-spacing: .5px; }
.btn-primary {
  background: var(--gold-grad); color: #6d4310;
  box-shadow: 0 14px 40px rgba(255, 179, 71, .45), inset 0 1px 0 rgba(255,255,255,.45);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 52px rgba(255, 179, 71, .6), inset 0 1px 0 rgba(255,255,255,.45); }
.btn-ghost {
  color: var(--gold-light); border: 1.5px solid rgba(255, 233, 168, .35);
  background: rgba(255, 233, 168, .05); cursor: pointer;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.btn-lg { padding: 17px 36px; font-size: 16.5px; }
.btn-disabled {
  background: rgba(138, 116, 88, .12); color: var(--brown-light);
  padding: 14px 32px; font-size: 15px; cursor: not-allowed;
}

/* ---------- 通用 Section ---------- */
.section { padding: 110px 0; position: relative; }
.section-cream { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }
.section-night {
  background: radial-gradient(100% 80% at 50% 10%, var(--night-1) 0%, var(--night-2) 55%, var(--night-0) 100%);
}
.section-eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 6px;
  color: var(--brown-light); text-align: center;
}
.section-eyebrow.gold { color: var(--gold); }
.section-title {
  font-family: var(--serif); font-weight: 900; letter-spacing: 3px;
  font-size: clamp(28px, 4vw, 40px); text-align: center;
  margin-top: 16px; color: var(--brown);
}
.section-title.light { color: var(--cream); }

/* ---------- 功能卡片 ---------- */
.feature-grid {
  margin-top: 64px; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.feature-card {
  background: var(--card); border-radius: 22px; padding: 36px 28px;
  border: 1px solid rgba(245, 166, 35, .14);
  box-shadow: 0 10px 34px rgba(245, 166, 35, .1);
  transition: transform .3s, box-shadow .3s;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(245, 166, 35, .2);
}
.feature-icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fffbe8, #ffe28a 70%, #ffc940);
  color: #7a5310;
  box-shadow: 0 8px 20px rgba(255, 201, 60, .45);
}
.feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 {
  margin-top: 22px; font-family: var(--serif); font-size: 19px;
  letter-spacing: 1.5px; color: var(--brown);
}
.feature-card p { margin-top: 12px; font-size: 14px; line-height: 1.9; color: var(--brown-mid); }

/* ---------- 快速上手 ---------- */
.guide-grid {
  margin-top: 64px; display: grid;
  grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center;
}
.steps { list-style: none; display: grid; gap: 34px; }
.steps b {
  display: block; font-family: var(--serif); font-size: 18px;
  letter-spacing: 1px; color: var(--gold-light);
}
.steps p { margin-top: 9px; font-size: 14px; line-height: 1.95; color: #c9bfa8; }
.install-card {
  background: rgba(255, 233, 168, .05);
  border: 1px solid rgba(255, 233, 168, .18);
  border-radius: 24px; padding: 34px 32px;
  box-shadow: 0 0 60px rgba(255, 201, 60, .06) inset, 0 24px 60px rgba(0, 0, 0, .3);
}
.install-card h3 {
  font-family: var(--serif); font-size: 19px; letter-spacing: 2px;
  color: var(--cream); margin-bottom: 22px;
}
.install-row { display: flex; gap: 16px; align-items: flex-start; }
.install-row + .install-row { margin-top: 20px; padding-top: 20px; border-top: 1px dashed rgba(255, 233, 168, .15); }
.os-tag {
  flex-shrink: 0; font-family: var(--mono); font-size: 12px; letter-spacing: 1px;
  color: #6d4310; background: var(--gold-grad);
  border-radius: 8px; padding: 4px 10px; margin-top: 2px;
}
.install-row p { font-size: 13.5px; line-height: 1.95; color: #c9bfa8; }
.install-row b { color: var(--gold-light); font-weight: 700; }
.install-note {
  margin-top: 22px; padding: 14px 16px; border-radius: 12px;
  background: rgba(255, 143, 94, .1); border: 1px solid rgba(255, 143, 94, .25);
  font-size: 12.5px; line-height: 1.9; color: #f0c3ab;
}

/* ---------- 下载区 ---------- */
.platform-grid {
  margin-top: 64px; display: grid;
  grid-template-columns: repeat(2, 1fr); gap: 28px;
  max-width: 760px; margin-left: auto; margin-right: auto;
}
.platform-card {
  position: relative; text-align: center;
  background: var(--card); border-radius: 24px; padding: 46px 34px 42px;
  border: 1px solid rgba(245, 166, 35, .16);
  box-shadow: 0 14px 40px rgba(245, 166, 35, .12);
  transition: transform .3s, box-shadow .3s;
}
.platform-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 56px rgba(245, 166, 35, .22);
}
.platform-card.recommend { border: 1.5px solid rgba(245, 166, 35, .45); }
.badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  color: #6d4310; background: var(--gold-grad);
  padding: 5px 16px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(255, 179, 71, .45);
}
.platform-icon { color: #c08a3a; }
.platform-card h3 {
  margin-top: 14px; font-family: var(--serif); font-size: 21px;
  letter-spacing: 2px; color: var(--brown);
}
.platform-desc { margin-top: 12px; font-size: 13.5px; line-height: 1.9; color: var(--brown-mid); }
.platform-card .btn { margin-top: 26px; padding: 14px 34px; font-size: 15px; }
.download-tip {
  margin-top: 34px; text-align: center; font-size: 13px;
  color: var(--brown-light); line-height: 1.9;
}

/* ---------- 密钥激活 ---------- */
.license-grid {
  margin-top: 64px; display: grid;
  grid-template-columns: 300px 1fr; gap: 64px; align-items: center;
}
.qr-card { text-align: center; }
.qr-frame {
  display: inline-block; padding: 16px; border-radius: 24px;
  background: var(--cream);
  box-shadow: 0 0 60px rgba(255, 201, 60, .18), 0 24px 60px rgba(0, 0, 0, .35);
  border: 1px solid rgba(255, 233, 168, .25);
  transition: transform .3s, box-shadow .3s;
}
.qr-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 80px rgba(255, 201, 60, .3), 0 30px 70px rgba(0, 0, 0, .4);
}
.qr-frame img { width: 240px; height: 240px; border-radius: 14px; display: block; }
.qr-tip { margin-top: 18px; font-size: 13.5px; letter-spacing: 1px; color: #c9bfa8; }
.license-main .steps { gap: 24px; }
.license-main .steps li { display: flex; gap: 16px; align-items: baseline; }
.license-main .steps b { flex-shrink: 0; }
.license-rules { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rule {
  display: flex; gap: 16px; align-items: center;
  background: rgba(255, 233, 168, .05);
  border: 1px solid rgba(255, 233, 168, .16);
  border-radius: 16px; padding: 18px 20px;
}
.rule-num {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold-grad); color: #6d4310;
  font-family: var(--serif); font-weight: 900; font-size: 21px;
  box-shadow: 0 6px 18px rgba(255, 179, 71, .4);
}
.rule p { font-size: 13px; line-height: 1.85; color: #c9bfa8; }
.rule b { color: var(--gold-light); }

/* ---------- 跟随鼠标的小字 ---------- */
#cursor-slogan {
  position: fixed; left: 0; top: 0; z-index: 999;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  font-family: var(--serif); font-size: 13px; font-weight: 700;
  letter-spacing: 3px; white-space: nowrap;
  color: var(--gold-light);
  background: rgba(36, 27, 63, .55);
  border: 1px solid rgba(255, 201, 60, .3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  text-shadow: 0 0 14px rgba(255, 201, 60, .5);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
  pointer-events: none;
  opacity: 0; /* JS 移动后淡入 */
  transition: opacity .5s;
  will-change: transform;
}
#cursor-slogan span { font-size: 11px; color: var(--gold); }
#cursor-slogan span:first-child { animation: sloganSpin 6s linear infinite; display: inline-block; }
#cursor-slogan span:last-child { animation: sloganTwinkle 2.4s ease-in-out infinite; display: inline-block; }
@keyframes sloganSpin { to { transform: rotate(360deg); } }
@keyframes sloganTwinkle { 50% { opacity: .35; transform: scale(.8); } }

/* 小字备选：隐藏保留代码；把下面这行删掉或改成 display:flex 即可恢复小字 */
#cursor-slogan.cursor-hidden { display: none !important; }

/* ---------- 跟随鼠标的吉祥物 ---------- */
#cursor-mascot {
  position: fixed; left: 0; top: 0; z-index: 1001;
  display: flex; align-items: flex-end;
  pointer-events: none; opacity: 0;
  transition: opacity .45s;
  will-change: transform;
}
#cursor-mascot img {
  width: 18px; height: auto; display: block;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.4));
  image-rendering: -webkit-optimize-contrast;
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: 56px; max-width: 760px; margin-left: auto; margin-right: auto; }
.faq-list details {
  background: rgba(255, 233, 168, .05);
  border: 1px solid rgba(255, 233, 168, .16);
  border-radius: 16px; padding: 0 26px;
  transition: background .25s, border-color .25s;
}
.faq-list details + details { margin-top: 14px; }
.faq-list details[open] {
  background: rgba(255, 233, 168, .08);
  border-color: rgba(255, 201, 60, .35);
}
.faq-list summary {
  cursor: pointer; list-style: none;
  padding: 20px 0; font-size: 15.5px; font-weight: 700;
  letter-spacing: .5px; color: var(--gold-light);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-arrow { color: var(--gold); font-size: 13px; transition: transform .3s; }
details[open] .faq-arrow { transform: rotate(180deg) scale(1.2); }
.faq-list p {
  padding: 0 0 22px; font-size: 14px; line-height: 2; color: #c9bfa8;
}
.faq-warn {
  margin-top: 34px; text-align: center; font-size: 12.5px;
  color: #8f85a8; line-height: 2; letter-spacing: .5px;
}

/* ---------- 页脚 ---------- */
.footer {
  background: var(--night-0); padding: 64px 0 50px;
  text-align: center; border-top: 1px solid rgba(255, 233, 168, .1);
}
.footer-brand {
  font-family: var(--serif); font-size: 18px; letter-spacing: 3px; color: var(--gold-light);
}
.footer-brand img { width: 20px; height: 20px; border-radius: 5px; vertical-align: -4px; }
.footer p { margin-top: 12px; color: #8f85a8; font-size: 13.5px; line-height: 1.9; }
.footer-copy { margin-top: 22px; font-size: 12px; color: #635a7d; letter-spacing: 1px; }

/* ---------- 动画 ---------- */
@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: .55; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 201, 60, .5); }
  50% { box-shadow: 0 0 0 6px rgba(255, 201, 60, 0); }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 14px rgba(255, 201, 60, .45); }
  50% { box-shadow: 0 0 26px rgba(255, 201, 60, .8); }
}
@keyframes drop {
  0% { transform: translate(-50%, 0); opacity: 1; }
  70% { transform: translate(-50%, 16px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 0; }
}

/* 入场动画 */
.reveal-up { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform .8s ease; }
.reveal-up.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-grid { grid-template-columns: 1fr; gap: 44px; }
  .platform-grid { grid-template-columns: 1fr; }
  .license-grid { grid-template-columns: 1fr; gap: 48px; }
  .license-rules { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-inner { padding: 14px 20px; }
  .section { padding: 76px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  .br-lg { display: none; }
  .hero-actions .btn-lg { padding: 15px 28px; font-size: 15px; }
}
