/* æŒ‡å°–è¸æ±Ÿæ¹– ä¸‹è½½é¡µå…¬å…±æ ·å¼ï¼ˆindex.html / m.html å…±ç”¨ï¼‰ */
:root {
  --bg: #07090e;
  --gold: #e9c67a;
  --gold-hi: #fff1c4;
  --gold-deep: #a8792c;
  --gold-line: rgba(233, 198, 122, .55);
  --gold-faint: rgba(233, 198, 122, .18);
  --red-hi: #d63a2c;
  --text: #eadfc6;
  --muted: #a39881;
  --f-title: "STKaiti", "KaiTi", "Kaiti SC", "æ¥·ä½“", "BiauKai", serif;
  --f-body: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 60% 40% at 15% 55%, rgba(40, 58, 86, .35), transparent 70%),
    radial-gradient(ellipse 50% 35% at 85% 75%, rgba(86, 34, 24, .28), transparent 70%),
    radial-gradient(ellipse 80% 30% at 50% 100%, rgba(30, 44, 66, .45), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gold-text {
  background: linear-gradient(180deg, var(--gold-hi) 0%, #f2d189 40%, #d4a24a 70%, #9c6b25 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .7));
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--f-title); font-weight: 700; letter-spacing: 2px; white-space: nowrap; }
.logo .gold-text { filter: none; background: linear-gradient(180deg, #fff3cf, #e8c170 55%, #c28f3c); -webkit-background-clip: text; background-clip: text; }
.logo i {
  width: 11px; height: 11px; transform: rotate(45deg); flex: none;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold-deep));
}

.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px;
  font-weight: 700; letter-spacing: 1px; color: #2b1906;
  background: linear-gradient(180deg, #fbe7ab 0%, #e6bb62 55%, #c18a36 100%);
  border: 1px solid #ffe6a3; border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 4px 16px rgba(233, 170, 70, .25);
  transition: transform .15s, box-shadow .2s, filter .2s;
  white-space: nowrap;
}
.btn-gold:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-gold:active { transform: translateY(1px); }

/* ---------- é¦–å± ----------
 * èƒŒæ™¯å›¾(å·²åŽ»æŽ‰åŽŸæ ‡é¢˜) + çŸ¢é‡æ ‡é¢˜ title.svg(æµ·æŠ¥ä¹¦æ³•å­—ææˆçŸ¢é‡ï¼Œä»»ä½•å±å¹•éƒ½æ¸…æ™°) + åŠ¨æ€æ•ˆæžœ
 * ä½ç½®éƒ½æŒ‰é¦–å±å›¾åæ ‡æ¢ç®—æˆç™¾åˆ†æ¯”ï¼›æ‰‹æœºé¡µçš„è£åˆ‡ä¸åŒï¼Œåœ¨ m.html é‡Œè¦†ç›–è¿™äº›å˜é‡ */
.hero-art {
  --t-left: 30.5%; --t-top: 7%; --t-width: 39%;
  --moon-left: 66.75%; --moon-top: -15.5%; --moon-size: 16%;
  z-index: 0;
}
.hero .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}
.hero-logo-cover {
  position: absolute; z-index: 5; right: 0; bottom: 0; width: 25%; height: 30%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 72% at 63% 48%, rgba(7, 9, 14, .93) 0%, rgba(7, 9, 14, .72) 42%, rgba(7, 9, 14, .25) 72%, transparent 100%),
    linear-gradient(155deg, transparent 18%, rgba(7, 9, 14, .45) 65%, rgba(7, 9, 14, .88) 100%);
}
.hero-title {
  position: absolute; z-index: 6; left: var(--t-left); top: var(--t-top); width: var(--t-width); height: auto;
  animation: title-in 1.6s cubic-bezier(.2, .7, .2, 1) .15s both;
}
@keyframes title-in {
  0% { opacity: 0; transform: scale(1.14); filter: blur(12px) brightness(2); }
  55% { opacity: 1; filter: blur(0) brightness(1.35); }
  100% { opacity: 1; transform: none; filter: none; }
}
.fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* æœˆäº®å…‰æ™•å‘¼å¸ */
.fx-moon {
  position: absolute; z-index: 1; left: var(--moon-left); top: var(--moon-top); width: var(--moon-size); aspect-ratio: 1;
  border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(255, 244, 205, .5) 0%, rgba(255, 228, 160, .16) 36%, transparent 66%);
  animation: moon 5s ease-in-out infinite alternate;
}
@keyframes moon { from { opacity: .4; transform: scale(.92); } to { opacity: 1; transform: scale(1.08); } }
/* äº‘é›¾ç¼“æ…¢é£˜åŠ¨ */
.fx-mist {
  position: absolute; z-index: 2; left: -30%; width: 160%; height: 42%; bottom: 6%; pointer-events: none;
  background:
    radial-gradient(ellipse 22% 40% at 18% 60%, rgba(205, 214, 230, .2), transparent 70%),
    radial-gradient(ellipse 18% 34% at 52% 45%, rgba(205, 214, 230, .14), transparent 70%),
    radial-gradient(ellipse 24% 42% at 86% 66%, rgba(205, 214, 230, .18), transparent 70%);
  filter: blur(6px);
  animation: mist 36s ease-in-out infinite alternate;
}
.fx-mist.m2 { bottom: 24%; height: 30%; opacity: .7; animation-duration: 52s; animation-direction: alternate-reverse; }
@keyframes mist { from { transform: translateX(-7%); } to { transform: translateX(7%); } }
/* å‰‘èº«æµå…‰ */
.fx-sword { z-index: 2; }
.fx-sword .glint { stroke-dasharray: 46 460; stroke-dashoffset: 60; animation: glint 4.2s ease-in-out infinite; }
.fx-sword .g2 { animation-delay: .35s; }
@keyframes glint { 0% { stroke-dashoffset: 60; opacity: 0; } 8% { opacity: 1; } 42% { stroke-dashoffset: -250; opacity: 1; } 48%, 100% { stroke-dashoffset: -250; opacity: 0; } }
/* é£˜è½çš„é‡‘ç®” */
.leaves { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.leaves i {
  position: absolute; top: -8%; width: .9%; min-width: 6px; aspect-ratio: .6; border-radius: 1px;
  background: linear-gradient(135deg, #fff3c4, #e6b457 50%, #a66f1f);
  box-shadow: 0 0 6px rgba(255, 200, 110, .55);
  animation: leaf linear infinite;
}
@keyframes leaf {
  0% { top: -8%; transform: translateX(0) rotate(0deg) rotateY(0deg); opacity: 0; }
  10% { opacity: .95; }
  85% { opacity: .9; }
  100% { top: 108%; transform: translateX(var(--dx, 40px)) rotate(var(--rot, 540deg)) rotateY(720deg); opacity: 0; }
}
/* ä¸Šå‡çš„ç«æ˜Ÿ */
.embers { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.embers span {
  position: absolute; bottom: -10px; border-radius: 50%;
  background: radial-gradient(circle, #fff3c6, #e9b556 60%, transparent 70%);
  opacity: 0; animation: rise linear infinite;
}
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  15% { opacity: .9; }
  100% { transform: translate(var(--dx, 20px), -70vh); opacity: 0; }
}
/* é‡‘è‰²æŒ‰é’®æ‰«å…‰ */
.btn-gold, .dl-card.rec .dl-btn { position: relative; overflow: hidden; }
.btn-gold::after, .dl-card.rec .dl-btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: skewX(-20deg);
  animation: btn-shine 3.8s ease-in-out 1s infinite;
}
@keyframes btn-shine { 0% { left: -70%; } 40%, 100% { left: 130%; } }
.dl-card.rec { animation: rec-glow 3s ease-in-out infinite alternate; }
@keyframes rec-glow {
  from { box-shadow: 0 0 0 1px rgba(233, 190, 100, .2), 0 18px 44px rgba(0, 0, 0, .5), 0 0 22px rgba(233, 180, 90, .08); }
  to { box-shadow: 0 0 0 1px rgba(233, 190, 100, .4), 0 18px 44px rgba(0, 0, 0, .5), 0 0 42px rgba(233, 180, 90, .24); }
}
.slogan { position: relative; z-index: 2; text-align: center; padding: 0 16px; }
.slogan h2 { font-family: var(--f-title); font-weight: 700; letter-spacing: 4px; line-height: 1.25; }
.slogan p {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 6px;
  font-family: var(--f-title); color: #f1e2c0; letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .8);
}
.slogan p b { color: #ffd46e; font-size: 1.25em; font-style: italic; }

/* ---------- åŒºå—æ ‡é¢˜ ---------- */
.sec-title { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 30px; text-align: center; }
.sec-title h3 { flex: none; white-space: nowrap; font-family: var(--f-title); font-size: clamp(26px, 3vw, 36px); letter-spacing: 6px; font-weight: 700; }
.sec-title::before, .sec-title::after { content: ""; flex: 1 1 auto; max-width: 180px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.sec-title::after { background: linear-gradient(90deg, var(--gold), transparent); }
.dia { width: 8px; height: 8px; transform: rotate(45deg); background: var(--red-hi); box-shadow: 0 0 8px var(--red-hi); flex: none; }

/* ---------- ä¸‹è½½å¡ç‰‡ ---------- */
.dl-card {
  --tint: rgba(60, 120, 230, .22);
  position: relative; display: flex; flex-direction: column;
  padding: 28px 26px 26px;
  border-radius: 18px;
  background:
    radial-gradient(120% 70% at 0% 0%, var(--tint), transparent 60%),
    linear-gradient(180deg, rgba(27, 33, 50, .92), rgba(15, 19, 30, .96));
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  font-family: var(--f-body);
}
.dl-card[data-card="ios"] { --tint: rgba(255, 255, 255, .06); }
.dl-card[data-card="android"] { --tint: rgba(61, 220, 132, .12); }
.dl-card:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, .16); box-shadow: 0 22px 48px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06); }
.dl-card.rec { border-color: rgba(233, 190, 100, .85); box-shadow: 0 0 0 1px rgba(233, 190, 100, .25), 0 18px 44px rgba(0, 0, 0, .5), 0 0 36px rgba(233, 180, 90, .14); }
.dl-card .badge {
  position: absolute; top: 14px; right: 14px; display: none;
  padding: 3px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .5px; color: #3a2606; white-space: nowrap;
  background: linear-gradient(180deg, #fde8ad, #e2b45a);
  box-shadow: 0 2px 10px rgba(233, 180, 90, .45);
}
.dl-card.rec .badge { display: block; }
.dl-icon {
  width: 64px; height: 64px; flex: none; display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(180deg, #252c3e, #161b28);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 6px 16px rgba(0, 0, 0, .35);
}
.dl-icon svg { width: 30px; height: 30px; }
.dl-icon.pc svg { fill: #2f9bf0; }
.dl-icon.ios svg { fill: #f5f5f7; }
.dl-icon.android svg { fill: #3ddc84; }
.dl-card h4 { margin-top: 20px; font-size: 24px; font-weight: 700; color: #f4f1ea; letter-spacing: .5px; line-height: 1.3; }
.dl-card .desc { margin-top: 8px; font-size: 14px; line-height: 1.75; color: #a6adbd; min-height: 3.5em; }
.dl-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.dl-card .tags span {
  padding: 3px 9px; font-size: 12px; line-height: 1.5; color: #b3bacb;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 6px; background: rgba(255, 255, 255, .03);
}
.dl-card .meta { margin-top: 10px; font-size: 12px; color: #7f8799; }
.dl-card .meta:empty { display: none; }
.dl-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: auto; width: 100%; height: 48px;
  font-size: 15px; font-weight: 700; letter-spacing: 1px; color: #eef0f5;
  border-radius: 10px;
  background: linear-gradient(180deg, #2a3142, #1f2533);
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: filter .2s, transform .15s, box-shadow .2s;
}
.dl-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dl-btn:hover { filter: brightness(1.18); }
.dl-btn:active { transform: translateY(1px); }
.dl-card.rec .dl-btn {
  color: #2f1d05; border-color: #ffe29a;
  background: linear-gradient(180deg, #f8e2a1 0%, #e8c06a 55%, #cf9e45 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 8px 22px rgba(233, 170, 70, .28);
}
.dl-btn.off { opacity: .55; filter: saturate(.3); }
.dl-card .btn-row { margin-top: 26px; }
.mirrors { margin-top: 12px; font-size: 13px; color: #8d95a7; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; }
.mirrors::before { content: "备用下载："; }
.mirrors a { color: var(--gold); border-bottom: 1px dashed rgba(233, 198, 122, .5); }

/* ---------- ç‰¹è‰²å¡ç‰‡ ---------- */
.feat {
  --tone-a: #3f1d14; --tone-b: #22100b;
  position: relative; padding: 26px 16px 24px; text-align: center; border-radius: 3px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 220, 150, .16), transparent 60%),
    linear-gradient(180deg, var(--tone-a), var(--tone-b));
  border: 1px solid rgba(233, 198, 122, .65);
  box-shadow: inset 0 0 0 4px rgba(0, 0, 0, .35), inset 0 0 0 5px rgba(233, 198, 122, .28), 0 12px 30px rgba(0, 0, 0, .5);
  transition: transform .2s;
}
.feat:hover { transform: translateY(-4px); }
.feat::before, .feat::after {
  content: ""; position: absolute; left: 50%; width: 10px; height: 10px; transform: translateX(-50%) rotate(45deg);
  background: linear-gradient(135deg, var(--gold-hi), var(--gold-deep)); border: 1px solid #5b3d10;
}
.feat::before { top: -6px; }
.feat::after { bottom: -6px; }
.feat.t2 { --tone-a: #46331a; --tone-b: #22190c; }
.feat.t3 { --tone-a: #1d2750; --tone-b: #0f1429; }
.feat.t4 { --tone-a: #163a2c; --tone-b: #0b1d16; }
.feat h5 { font-size: clamp(17px, 1.8vw, 22px); font-weight: 700; color: #fbecc8; letter-spacing: 1px; line-height: 1.35; min-height: 2.7em; display: flex; align-items: center; justify-content: center; }
.feat .div { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px auto 10px; }
.feat .div::before, .feat .div::after { content: ""; width: 42px; height: 1px; background: linear-gradient(90deg, transparent, rgba(233, 198, 122, .7)); }
.feat .div::after { background: linear-gradient(90deg, rgba(233, 198, 122, .7), transparent); }
.feat .div .dia { width: 6px; height: 6px; }
.feat small { display: block; font-size: 13px; color: #d7c7a4; letter-spacing: 1px; }
.feat strong { display: block; margin-top: 8px; font-family: var(--f-title); font-size: clamp(28px, 3.2vw, 40px); letter-spacing: 3px; line-height: 1.2; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 22px; margin-top: 36px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 26px 8px 10px;
  font-family: var(--f-title); font-size: 19px; letter-spacing: 2px; color: #f3e5c4;
  background: linear-gradient(90deg, rgba(28, 34, 52, .95), rgba(18, 22, 34, .95));
  border: 1px solid var(--gold-line);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
}
.coin {
  width: 26px; height: 26px; border-radius: 50%; flex: none; position: relative;
  background: radial-gradient(circle at 40% 35%, #fff0b8, #d9a445 55%, #8f5f1d);
  box-shadow: 0 0 8px rgba(233, 180, 90, .5);
}
.coin::after { content: ""; position: absolute; inset: 8px; border: 2px solid #7a4e14; border-radius: 1px; }

/* ---------- å®‰è£…è¯´æ˜Ž ---------- */
.guide {
  padding: 26px 30px 30px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(24, 29, 43, .88), rgba(13, 16, 25, .94));
  border: 1px solid rgba(255, 255, 255, .08);
}
.tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.tab {
  padding: 8px 24px; font-size: 15px; letter-spacing: 1px; color: #c4cad8; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03);
  transition: color .2s, border-color .2s, background .2s;
}
.tab:hover { color: #fff; border-color: rgba(255, 255, 255, .28); }
.tab[aria-selected="true"] { color: #2f1d05; font-weight: 700; background: linear-gradient(180deg, #f8e2a1, #d9a94f); border-color: #ffe29a; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 16px; }
.steps li {
  counter-increment: s; position: relative; padding: 46px 18px 18px;
  background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px;
  font-size: 14px; color: #c9cedb;
}
.steps li::before {
  content: counter(s); position: absolute; top: 14px; left: 18px;
  width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%;
  font-size: 13px; font-weight: 700; color: #2f1d05;
  background: linear-gradient(180deg, #f8e2a1, #d9a94f);
}
.steps li b { color: var(--gold-hi); font-weight: 600; }
.guide .tip { margin-top: 16px; font-size: 13px; color: #858c9c; text-align: center; }
.guide .tip a { color: var(--gold); border-bottom: 1px dashed rgba(233, 198, 122, .5); }

/* ---------- é¡µè„š ---------- */
footer { margin-top: 80px; padding: 30px 0 40px; border-top: 1px solid var(--gold-faint); background: rgba(0, 0, 0, .35); text-align: center; font-size: 12px; color: #7d7462; line-height: 2; }
footer .health { color: #978d77; letter-spacing: 1px; }

/* ---------- æç¤º / å¾®ä¿¡æµ®å±‚ ---------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 80; transform: translate(-50%, 20px);
  max-width: calc(100% - 40px); padding: 10px 20px; border-radius: 10px;
  background: rgba(22, 26, 38, .96); border: 1px solid rgba(233, 198, 122, .45); color: var(--gold-hi); font-size: 14px; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.inapp { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .86); display: none; color: #fff; padding: 18px 22px; }
.inapp.show { display: block; }
.inapp svg { display: block; width: 90px; height: 90px; stroke: var(--gold-hi); fill: none; stroke-width: 3; margin-left: auto; }
.inapp p { margin-top: 10px; font-size: 18px; line-height: 1.8; text-align: right; }
.inapp p b { color: var(--gold); }
.inapp small { display: block; margin-top: 30px; font-size: 14px; color: #bbb; text-align: center; }

/* é¦–å±åŠ¨æ•ˆéƒ½å¾ˆæŸ”å’Œ(æ— é—ªçƒ)ï¼Œç³»ç»Ÿå…³äº†â€œåŠ¨ç”»æ•ˆæžœâ€ä¹Ÿç…§å¸¸æ’­æ”¾ï¼›åªå…³å¹³æ»‘æ»šåŠ¨ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
