:root{
  --bg1:#0b0b18;
  --bg2:#15152c;
  --card:#1a1a36;
  --card2:#20204a;
  --border:#2e2e58;
  --border-hi:#7c5cff;
  --text:#e9e9f4;
  --title:#f2f2ff;
  --accent:#7c5cff;
  --accent2:#9d7cff;
  --accent-soft:rgba(124,92,255,.18);
  --link:#9d7cff;
  --link-hover:#c3afff;
  --ok:#3ddc97;
  --shadow:0 10px 30px rgba(0,0,0,.45);
}
html[data-theme="light"]{
  --bg1:#f6f8ff;
  --bg2:#eef2fb;
  --card:#ffffff;
  --card2:#f3f5ff;
  --border:rgba(40,62,100,.13);
  --border-hi:#6c4df6;
  --text:#142033;
  --title:#0d0820;
  --accent:#6c4df6;
  --accent2:#1fb9d6;
  --accent-soft:rgba(108,77,246,.12);
  --link:#5a3ce0;
  --link-hover:#1fb9d6;
  --ok:#0f9d63;
  --shadow:0 10px 30px rgba(40,62,100,.14);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:"PingFang SC","Microsoft YaHei",system-ui,-apple-system,sans-serif;
  background:linear-gradient(180deg,var(--bg1) 0%,var(--bg2) 100%);
  background-attachment:fixed;
  color:var(--text);
  line-height:1.75;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;border-radius:10px}
a{color:var(--link);text-decoration:none;transition:color .2s ease}
a:hover{color:var(--link-hover);text-decoration:underline}
h1,h2,h3,h4{color:var(--title);line-height:1.35;font-weight:800}
h2{font-size:clamp(1.35rem,2.6vw,1.9rem);margin-bottom:.4em}
h3{font-size:1.08rem}
p{color:var(--text)}
.wrap{width:min(1240px,94%);margin:0 auto}
.section{padding:64px 0}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:28px;flex-wrap:wrap}
.section-head .sub{color:var(--text);opacity:.85;font-size:.94rem}
.eyebrow{display:inline-block;font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;color:var(--accent2);font-weight:700;margin-bottom:8px}

/* progress */
#progress{position:fixed;top:0;left:0;height:3px;width:0;background:linear-gradient(90deg,var(--accent),var(--accent2));z-index:2000;transition:width .1s linear}

/* header */
header.site-header{
  position:fixed;top:0;left:0;right:0;z-index:1500;
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  background:rgba(11,11,24,.72);
  border-bottom:1px solid transparent;
  transition:box-shadow .25s ease,border-color .25s ease,background .25s ease;
}
html[data-theme="light"] header.site-header{background:rgba(246,248,255,.82)}
header.site-header.scrolled{border-bottom:1px solid var(--border);box-shadow:0 6px 24px rgba(0,0,0,.28)}
html[data-theme="light"] header.site-header.scrolled{box-shadow:0 6px 24px rgba(40,62,100,.14)}
.nav-inner{display:flex;align-items:center;gap:18px;height:66px}
.logo{display:flex;align-items:center;gap:10px;font-weight:900;color:var(--title);font-size:1.02rem;letter-spacing:.02em;flex-shrink:0}
.logo:hover{text-decoration:none;color:var(--title)}
.logo-mark{
  width:36px;height:36px;border-radius:10px;flex-shrink:0;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:900;font-size:.95rem;box-shadow:0 4px 14px var(--accent-soft)
}
.nav-links{display:flex;gap:4px;margin-left:auto;flex-wrap:wrap}
.nav-links a{
  color:var(--text);font-size:.9rem;padding:8px 11px;border-radius:8px;font-weight:600;
}
.nav-links a:hover{background:var(--accent-soft);color:var(--title);text-decoration:none}
.nav-tools{display:flex;align-items:center;gap:10px;flex-shrink:0}
.search-box{display:flex;align-items:center;background:var(--card);border:1px solid var(--border);border-radius:10px;padding:0 10px;height:38px}
.search-box input{
  background:transparent;border:0;outline:0;color:var(--text);font-size:.88rem;width:130px;
  font-family:inherit;
}
.search-box input::placeholder{color:var(--text);opacity:.55}
.icon-btn{
  height:38px;min-width:38px;padding:0 12px;border-radius:10px;border:1px solid var(--border);
  background:var(--card);color:var(--text);cursor:pointer;font-size:.85rem;font-weight:600;
  font-family:inherit;display:inline-flex;align-items:center;justify-content:center;gap:6px;
  transition:border-color .2s,color .2s,background .2s;
}
.icon-btn:hover{border-color:var(--border-hi);color:var(--title)}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:11px 22px;border-radius:11px;font-weight:700;font-size:.92rem;
  border:1px solid transparent;cursor:pointer;font-family:inherit;
  transition:transform .18s ease,box-shadow .18s ease,background .2s,color .2s,border-color .2s;
}
.btn:hover{text-decoration:none;transform:translateY(-2px)}
.btn-primary{background:linear-gradient(135deg,var(--accent),var(--accent2));color:#fff;box-shadow:0 8px 22px var(--accent-soft)}
.btn-primary:hover{color:#fff;box-shadow:0 12px 28px var(--accent-soft)}
.btn-ghost{background:var(--card);border-color:var(--border);color:var(--text)}
.btn-ghost:hover{border-color:var(--border-hi);color:var(--title)}
.btn-sm{padding:8px 15px;font-size:.84rem;border-radius:9px}
#hamburger{display:none}

/* hero */
.hero{
  min-height:76vh;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;padding:130px 0 60px;position:relative;overflow:hidden;
}
.hero::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(circle at 20% 18%,var(--accent-soft),transparent 55%),
             radial-gradient(circle at 82% 76%,rgba(31,185,214,.14),transparent 55%);
  pointer-events:none;
}
.hero-inner{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center}
.hero-logo{
  width:132px;height:132px;border-radius:32px;object-fit:cover;
  border:1px solid var(--border);box-shadow:var(--shadow);margin-bottom:24px;
}
.hero h1{font-size:clamp(1.6rem,4.2vw,2.9rem);max-width:960px;margin-bottom:14px}
.hero .slogan{font-size:clamp(1rem,1.9vw,1.22rem);color:var(--accent2);font-weight:700;margin-bottom:16px}
.hero .lead{max-width:760px;font-size:.98rem;opacity:.92;margin-bottom:30px}
.hero-cta{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;margin-bottom:44px}
.hero-stats{display:grid;grid-template-columns:repeat(3,minmax(120px,1fr));gap:14px;width:min(680px,100%)}
.stat{
  background:var(--card);border:1px solid var(--border);border-radius:14px;padding:16px 12px;
}
.stat b{display:block;font-size:1.45rem;color:var(--title);font-weight:900}
.stat span{font-size:.82rem;opacity:.82}

/* grid cards */
.grid{display:grid;gap:20px}
.grid-4{grid-template-columns:repeat(4,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-2{grid-template-columns:repeat(2,1fr)}
.card{
  background:var(--card);border:1px solid var(--border);border-radius:16px;
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.card:hover{transform:translateY(-6px);border-color:var(--border-hi);box-shadow:var(--shadow)}
.comic-card{padding:12px;position:relative;display:flex;flex-direction:column}
.comic-card img{width:100%;height:auto;aspect-ratio:220/310;object-fit:cover;border-radius:11px}
.badge{
  position:absolute;top:20px;left:20px;font-size:.7rem;font-weight:800;
  padding:4px 9px;border-radius:7px;background:rgba(11,11,24,.78);color:#e9e9f4;
  border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(4px);
}
.badge.hot{background:linear-gradient(135deg,var(--accent),var(--accent2));color:#fff;border-color:transparent;left:auto;right:20px}
.badge.done{background:rgba(61,220,151,.9);color:#06251a;border-color:transparent}
.comic-card h3{margin:12px 0 6px;font-size:1rem}
.meta{font-size:.8rem;opacity:.85;display:flex;flex-direction:column;gap:2px}
.meta em{font-style:normal;color:var(--accent2);font-weight:700}
.tag{
  display:inline-block;font-size:.72rem;padding:3px 9px;border-radius:999px;
  background:var(--accent-soft);color:var(--accent2);font-weight:700;margin-top:10px;
}

/* featured */
.feature-card{display:grid;grid-template-columns:300px 1fr;gap:22px;padding:16px;align-items:stretch}
.feature-card img{width:100%;height:100%;min-height:200px;object-fit:cover;border-radius:12px}
.feature-body{display:flex;flex-direction:column;gap:8px;padding:6px 4px}
.feature-body p{font-size:.92rem;opacity:.92}
.tag-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto;padding-top:10px}
.tag-row span{font-size:.74rem;padding:4px 10px;border-radius:999px;background:var(--card2);border:1px solid var(--border);color:var(--text)}

/* detail */
.detail{display:grid;grid-template-columns:260px 1fr;gap:26px;align-items:start}
.detail-side{
  background:linear-gradient(160deg,var(--card2),var(--card));border:1px solid var(--border);
  border-radius:18px;padding:28px 22px;position:sticky;top:90px;
}
.detail-side .num{font-size:3.6rem;font-weight:900;color:var(--accent2);line-height:1;letter-spacing:-.04em}
.detail-side .quote{margin-top:14px;font-size:.95rem;font-weight:700;color:var(--title)}
.detail-body h2{margin-bottom:16px}
.detail-body h3{margin:22px 0 8px;color:var(--accent2)}
.detail-body p{margin-bottom:12px;font-size:.96rem}
.detail-tags{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}
.detail-tags span{
  padding:8px 16px;border-radius:11px;background:var(--accent-soft);
  border:1px solid var(--border);color:var(--title);font-weight:700;font-size:.85rem;
}

/* characters */
.char-card{display:grid;grid-template-columns:180px 1fr;gap:18px;padding:16px;align-items:center}
.char-card img{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:14px}
.char-card h3{margin-bottom:6px}
.char-role{display:inline-block;font-size:.74rem;font-weight:800;padding:3px 10px;border-radius:999px;background:var(--accent-soft);color:var(--accent2);margin-bottom:8px}
.char-card p{font-size:.9rem;opacity:.92}
.char-card .ability{font-size:.85rem;margin-top:6px}
.char-card .ability b{color:var(--accent2)}

/* platform */
.split{display:grid;grid-template-columns:1.35fr 1fr;gap:30px;align-items:start}
.steps{display:flex;flex-direction:column;gap:14px}
.step{
  display:flex;gap:14px;background:var(--card);border:1px solid var(--border);
  border-radius:14px;padding:16px;
}
.step .n{
  width:38px;height:38px;flex-shrink:0;border-radius:11px;font-weight:900;
  background:linear-gradient(135deg,var(--accent),var(--accent2));color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:.95rem;
}
.step h3{font-size:.98rem;margin-bottom:4px}
.step p{font-size:.86rem;opacity:.9}
.mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:28px}
.mini{
  background:var(--card);border:1px solid var(--border);border-radius:13px;
  padding:16px;text-align:center;
}
.mini b{display:block;color:var(--title);font-size:.95rem;margin-bottom:4px}
.mini span{font-size:.8rem;opacity:.85}

/* device */
.device-visual{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.device-visual img{width:100%;height:auto;border:1px solid var(--border);border-radius:16px;background:var(--card)}

/* notice */
.notice-card{padding:18px}
.notice-card .date{font-size:.78rem;color:var(--accent2);font-weight:800;letter-spacing:.04em}
.notice-card h3{margin:8px 0 6px;font-size:.98rem}
.notice-card p{font-size:.86rem;opacity:.9}

/* guide */
.check-list{display:flex;flex-direction:column;gap:12px}
.check{
  display:flex;gap:12px;align-items:flex-start;background:var(--card);
  border:1px solid var(--border);border-radius:13px;padding:14px 16px;
}
.check .tick{
  width:24px;height:24px;flex-shrink:0;border-radius:8px;background:var(--accent-soft);
  color:var(--accent2);font-weight:900;display:flex;align-items:center;justify-content:center;font-size:.8rem;
}
.check p{font-size:.88rem;opacity:.92}

/* app */
.app-download{text-align:center;background:var(--card);border:1px solid var(--border);border-radius:22px;padding:52px 24px}
.app-download p{max-width:720px;margin:14px auto 26px;opacity:.92;font-size:.96rem}
.app-cta{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}

/* comments */
.comment-card{padding:18px}
.comment-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.avatar{
  width:40px;height:40px;border-radius:50%;flex-shrink:0;
  background:linear-gradient(135deg,var(--accent),var(--accent2));color:#fff;
  display:flex;align-items:center;justify-content:center;font-weight:900;font-size:.9rem;
}
.comment-head b{color:var(--title);font-size:.92rem;display:block}
.comment-head span{font-size:.76rem;opacity:.75}
.comment-card p{font-size:.9rem;opacity:.94}

/* faq */
.faq-item{border:1px solid var(--border);border-radius:14px;background:var(--card);margin-bottom:12px;overflow:hidden}
.faq-q{
  width:100%;text-align:left;background:transparent;border:0;cursor:pointer;
  padding:18px 20px;color:var(--title);font-weight:700;font-size:.96rem;font-family:inherit;
  display:flex;justify-content:space-between;align-items:center;gap:14px;
}
.faq-q:hover{color:var(--accent2)}
.faq-q .sign{color:var(--accent2);font-size:1.2rem;font-weight:900;transition:transform .25s ease}
.faq-item.open .faq-q .sign{transform:rotate(45deg)}
.faq-a{max-height:0;overflow:hidden;transition:max-height .3s ease}
.faq-a p{padding:0 20px 18px;font-size:.9rem;opacity:.92}

/* sidebar */
.layout{display:grid;grid-template-columns:1fr 320px;gap:30px;align-items:start}
aside.sidebar{position:sticky;top:90px;display:flex;flex-direction:column;gap:20px}
.side-card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:18px}
.side-card h3{margin-bottom:14px;font-size:1rem;padding-bottom:10px;border-bottom:1px solid var(--border)}
.rank-list{list-style:none;display:flex;flex-direction:column;gap:10px}
.rank-list li{display:flex;gap:12px;align-items:center;font-size:.88rem}
.rank-list .rk{
  width:24px;height:24px;flex-shrink:0;border-radius:7px;background:var(--card2);
  border:1px solid var(--border);color:var(--text);font-weight:800;font-size:.76rem;
  display:flex;align-items:center;justify-content:center;
}
.rank-list li:nth-child(1) .rk,.rank-list li:nth-child(2) .rk,.rank-list li:nth-child(3) .rk{
  background:linear-gradient(135deg,var(--accent),var(--accent2));color:#fff;border-color:transparent;
}
.rank-list li a{color:var(--text);font-weight:600}
.rank-list li a:hover{color:var(--accent2)}
.rank-list .val{margin-left:auto;font-size:.78rem;opacity:.8;white-space:nowrap}
.stat-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.stat-list div{background:var(--card2);border:1px solid var(--border);border-radius:11px;padding:12px}
.stat-list b{display:block;color:var(--title);font-size:1.05rem;font-weight:900}
.stat-list span{font-size:.76rem;opacity:.82}

/* footer */
footer.site-footer{border-top:1px solid var(--border);background:rgba(0,0,0,.18);padding:56px 0 26px;margin-top:20px}
html[data-theme="light"] footer.site-footer{background:rgba(255,255,255,.6)}
.foot-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:26px;margin-bottom:34px}
.foot-grid h3{font-size:.95rem;margin-bottom:14px}
.foot-grid ul{list-style:none;display:flex;flex-direction:column;gap:9px}
.foot-grid a{font-size:.86rem;color:var(--text);opacity:.9}
.foot-grid a:hover{color:var(--accent2);opacity:1}
.friends{display:flex;flex-wrap:wrap;gap:10px;padding:18px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin-bottom:22px}
.friends a{font-size:.82rem;padding:5px 12px;border-radius:999px;background:var(--card);border:1px solid var(--border)}
.copy{font-size:.82rem;opacity:.85;display:flex;flex-direction:column;gap:8px}
.copy-links{display:flex;gap:16px;flex-wrap:wrap}
.copy-links a{font-size:.82rem}

/* back to top */
#toTop{
  position:fixed;right:22px;bottom:26px;z-index:1400;
  width:46px;height:46px;border-radius:14px;border:1px solid var(--border);
  background:var(--card);color:var(--title);font-size:1.1rem;font-weight:900;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  opacity:0;visibility:hidden;transform:translateY(12px);
  transition:opacity .25s ease,transform .25s ease,visibility .25s;
  box-shadow:var(--shadow);
}
#toTop.show{opacity:1;visibility:visible;transform:translateY(0)}
#toTop:hover{border-color:var(--border-hi);color:var(--accent2)}

/* mobile menu */
.mobile-menu{
  display:none;flex-direction:column;gap:4px;padding:14px 0 20px;
  border-top:1px solid var(--border);
}
.mobile-menu.open{display:flex}
.mobile-menu a{color:var(--text);font-weight:600;padding:11px 6px;border-radius:9px;font-size:.94rem}
.mobile-menu a:hover{background:var(--accent-soft);color:var(--title);text-decoration:none}
.mobile-menu .btn{margin-top:10px}

@media (max-width:1080px){
  .grid-4{grid-template-columns:repeat(3,1fr)}
  .layout{grid-template-columns:1fr}
  aside.sidebar{position:static}
  .nav-links{display:none}
  #hamburger{display:inline-flex}
  .detail{grid-template-columns:1fr}
  .detail-side{position:static}
}
@media (max-width:860px){
  .grid-4{grid-template-columns:repeat(2,1fr)}
  .grid-3{grid-template-columns:repeat(2,1fr)}
  .feature-card{grid-template-columns:1fr}
  .feature-card img{min-height:200px;height:200px}
  .split{grid-template-columns:1fr}
  .foot-grid{grid-template-columns:repeat(2,1fr)}
  .mini-grid{grid-template-columns:1fr 1fr}
  .search-box{display:none}
  .hero{padding-top:110px}
}
@media (max-width:620px){
  .grid-4,.grid-3,.grid-2{grid-template-columns:repeat(2,1fr)}
  .grid-2{grid-template-columns:1fr}
  .char-card{grid-template-columns:110px 1fr;gap:14px}
  .hero-stats{grid-template-columns:1fr 1fr}
  .stat:last-child{grid-column:span 2}
  .device-visual{grid-template-columns:1fr}
  .foot-grid{grid-template-columns:1fr}
  .mini-grid{grid-template-columns:1fr}
  .section{padding:48px 0}
  .nav-tools .btn-primary{display:none}
}