:root{
  --bg-start:#0b0b18;
  --bg-end:#15152c;
  --card:#1a1a36;
  --border:#2e2e58;
  --text:#e9e9f4;
  --title:#f2f2ff;
  --accent:#7c5cff;
  --accent-2:#9d7cff;
  --muted:#b9b9d6;
  --link:#a99bff;
  --shadow:0 10px 30px rgba(0,0,0,.45);
}
html[data-theme="light"]{
  --bg-start:#f6f8ff;
  --bg-end:#eef2fb;
  --card:#ffffff;
  --border:rgba(40,62,100,.13);
  --text:#142033;
  --title:#0d0820;
  --accent:#6c4df6;
  --accent-2:#1fb9d6;
  --muted:#3d4a63;
  --link:#4b2fd6;
  --shadow:0 10px 30px rgba(40,62,100,.15);
}
*{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(--bg-start),var(--bg-end));
  color:var(--text);
  line-height:1.7;
  min-height:100vh;
  transition:background .35s ease,color .35s ease;
}
a{color:var(--link);text-decoration:none;transition:color .2s ease;}
a:hover{color:var(--accent-2);text-decoration:underline;}
img{max-width:100%;display:block;border-radius:10px;}
h1,h2,h3,h4{color:var(--title);line-height:1.35;}
h2{font-size:clamp(1.4rem,2.6vw,2rem);margin-bottom:1rem;}
h3{font-size:1.08rem;}
.container{width:min(1200px,92%);margin:0 auto;}
section{padding:56px 0;}
.section-head{display:flex;flex-direction:column;gap:.4rem;margin-bottom:1.8rem;}
.section-head p{color:var(--muted);font-size:.95rem;}

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

/* 导航 */
header.site-header{
  position:fixed;top:0;left:0;right:0;z-index:1000;
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  background:rgba(11,11,24,.62);
  border-bottom:1px solid transparent;
  transition:background .3s ease,border-color .3s ease,box-shadow .3s ease;
}
html[data-theme="light"] header.site-header{background:rgba(246,248,255,.78);}
header.site-header.scrolled{
  border-bottom:1px solid var(--border);
  box-shadow:0 6px 24px rgba(0,0,0,.35);
}
html[data-theme="light"] header.site-header.scrolled{box-shadow:0 6px 24px rgba(40,62,100,.14);}
.nav-wrap{display:flex;align-items:center;gap:1rem;height:68px;}
.logo{display:flex;align-items:center;gap:.6rem;font-weight:700;color:var(--title);white-space:nowrap;}
.logo .mark{
  width:34px;height:34px;border-radius:9px;display:grid;place-items:center;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  color:#fff;font-size:.9rem;font-weight:800;
}
.logo span.txt{font-size:1rem;max-width:230px;overflow:hidden;text-overflow:ellipsis;}
nav.main-nav{display:flex;gap:1.05rem;margin-left:auto;}
nav.main-nav a{color:var(--text);font-size:.92rem;padding:.3rem 0;position:relative;}
nav.main-nav a:hover{color:var(--accent-2);text-decoration:none;}
nav.main-nav a::after{
  content:"";position:absolute;left:0;bottom:-2px;height:2px;width:0;
  background:var(--accent-2);transition:width .25s ease;
}
nav.main-nav a:hover::after{width:100%;}
.nav-tools{display:flex;align-items:center;gap:.6rem;margin-left:1rem;}
.search-box{display:flex;align-items:center;background:var(--card);border:1px solid var(--border);border-radius:999px;padding:.25rem .3rem .25rem .9rem;}
.search-box input{
  background:transparent;border:none;outline:none;color:var(--text);
  font-size:.85rem;width:130px;font-family:inherit;
}
.search-box input::placeholder{color:var(--muted);}
.search-box button{
  border:none;cursor:pointer;border-radius:999px;padding:.35rem .8rem;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#fff;font-size:.8rem;font-family:inherit;
}
.btn{
  display:inline-block;border-radius:999px;padding:.62rem 1.25rem;font-size:.9rem;
  border:1px solid var(--border);cursor:pointer;font-family:inherit;
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease,color .2s ease;
}
.btn-primary{background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#fff;border-color:transparent;}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(124,92,255,.45);text-decoration:none;color:#fff;}
.btn-ghost{background:transparent;color:var(--text);}
.btn-ghost:hover{border-color:var(--accent-2);color:var(--accent-2);text-decoration:none;transform:translateY(-2px);}
.theme-toggle{
  width:38px;height:38px;border-radius:50%;border:1px solid var(--border);
  background:var(--card);color:var(--text);cursor:pointer;font-size:1rem;
  display:grid;place-items:center;transition:transform .2s ease,border-color .2s ease;
}
.theme-toggle:hover{transform:rotate(18deg);border-color:var(--accent-2);}
.hamburger{
  display:none;width:40px;height:40px;border-radius:10px;border:1px solid var(--border);
  background:var(--card);cursor:pointer;flex-direction:column;justify-content:center;align-items:center;gap:5px;
}
.hamburger span{display:block;width:18px;height:2px;background:var(--text);border-radius:2px;transition:.3s;}
.hamburger.open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.hamburger.open span:nth-child(2){opacity:0;}
.hamburger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
.mobile-menu{
  display:none;flex-direction:column;gap:.2rem;padding:1rem 4%;
  background:var(--card);border-top:1px solid var(--border);
}
.mobile-menu.open{display:flex;}
.mobile-menu a{color:var(--text);padding:.6rem .2rem;border-bottom:1px dashed var(--border);font-size:.95rem;}
.mobile-menu a:last-child{border-bottom:none;}

/* Hero */
.hero{
  min-height:76vh;display:flex;flex-direction:column;justify-content:center;align-items:center;
  text-align:center;padding:120px 0 60px;position:relative;overflow:hidden;
}
.hero::before{
  content:"";position:absolute;inset:0;
  background:radial-gradient(circle at 20% 20%,rgba(124,92,255,.22),transparent 55%),
             radial-gradient(circle at 80% 70%,rgba(31,185,214,.18),transparent 55%);
  pointer-events:none;
}
.hero > *{position:relative;z-index:1;}
.hero .hero-logo{
  width:200px;height:200px;object-fit:cover;border-radius:36px;
  border:1px solid var(--border);box-shadow:var(--shadow);margin-bottom:1.6rem;
}
.hero h1{font-size:clamp(1.6rem,4vw,2.9rem);max-width:900px;margin-bottom:.9rem;}
.hero .slogan{color:var(--accent-2);font-size:1.05rem;font-weight:600;margin-bottom:1rem;}
.hero .intro{color:var(--muted);max-width:760px;font-size:.96rem;margin-bottom:2rem;}
.hero-cta{display:flex;flex-wrap:wrap;gap:.8rem;justify-content:center;margin-bottom:2.6rem;}
.hero-stats{display:flex;flex-wrap:wrap;gap:1rem;justify-content:center;}
.hero-stats .stat{
  background:var(--card);border:1px solid var(--border);border-radius:14px;
  padding:1rem 1.6rem;min-width:150px;box-shadow:var(--shadow);
}
.hero-stats .stat b{display:block;font-size:1.5rem;color:var(--accent-2);}
.hero-stats .stat span{font-size:.85rem;color:var(--muted);}

/* 卡片通用 */
.card{
  background:var(--card);border:1px solid var(--border);border-radius:16px;
  overflow:hidden;transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease;
}
.card:hover{transform:translateY(-6px);border-color:var(--accent-2);box-shadow:0 14px 30px rgba(124,92,255,.28);}

/* 热门漫画 */
.grid-comics{display:grid;grid-template-columns:repeat(4,1fr);gap:1.2rem;}
.comic-card{position:relative;display:flex;flex-direction:column;}
.comic-card .cover-wrap{position:relative;}
.comic-card img{width:100%;height:auto;border-radius:0;aspect-ratio:220/310;object-fit:cover;}
.badge{
  position:absolute;top:.5rem;left:.5rem;font-size:.72rem;padding:.15rem .55rem;border-radius:999px;
  background:rgba(11,11,24,.78);color:#fff;border:1px solid rgba(255,255,255,.22);
}
.badge.views{left:auto;right:.5rem;background:rgba(124,92,255,.85);}
.badge.done{background:rgba(31,185,214,.85);}
.comic-card .info{padding:.8rem .85rem 1rem;display:flex;flex-direction:column;gap:.28rem;}
.comic-card .info h3{font-size:.98rem;}
.comic-card .info p{font-size:.78rem;color:var(--muted);}
.comic-card .info .type{
  align-self:flex-start;font-size:.72rem;color:var(--accent-2);
  border:1px solid var(--border);border-radius:999px;padding:.05rem .5rem;margin-top:.15rem;
}

/* 精品推荐 */
.feature-list{display:flex;flex-direction:column;gap:1.2rem;}
.feature{
  display:grid;grid-template-columns:300px 1fr;gap:1.4rem;padding:1.1rem;align-items:center;
}
.feature img{width:300px;height:200px;object-fit:cover;}
.feature .f-body h3{font-size:1.15rem;margin-bottom:.5rem;}
.feature .f-body p{color:var(--muted);font-size:.9rem;margin-bottom:.7rem;}
.feature .meta{display:flex;flex-wrap:wrap;gap:.5rem;font-size:.78rem;color:var(--muted);margin-bottom:.6rem;}
.tags{display:flex;flex-wrap:wrap;gap:.4rem;}
.tags span{
  font-size:.74rem;padding:.15rem .6rem;border-radius:999px;
  border:1px solid var(--border);color:var(--accent-2);
}

/* 漫画详细介绍 */
.detail{display:grid;grid-template-columns:280px 1fr;gap:2rem;align-items:start;}
.detail .side{
  background:linear-gradient(160deg,rgba(124,92,255,.28),rgba(31,185,214,.16));
  border:1px solid var(--border);border-radius:18px;padding:2rem 1.5rem;position:sticky;top:96px;
}
.detail .side .num{font-size:4rem;font-weight:800;color:var(--accent-2);line-height:1;}
.detail .side p{margin-top:1rem;font-size:.95rem;color:var(--text);}
.detail .main p{margin-bottom:1rem;color:var(--text);font-size:.95rem;}
.detail .main h3{margin:1.6rem 0 .6rem;color:var(--accent-2);}
.detail .main ul{margin:0 0 1rem 1.2rem;color:var(--text);font-size:.93rem;}
.detail .main ul li{margin-bottom:.35rem;}
.detail-tags{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1.6rem;}
.detail-tags span{
  padding:.45rem 1rem;border-radius:999px;font-size:.85rem;
  background:var(--card);border:1px solid var(--border);color:var(--accent-2);
}

/* 角色介绍 */
.roles{display:grid;grid-template-columns:repeat(2,1fr);gap:1.2rem;}
.role{display:grid;grid-template-columns:180px 1fr;gap:1.1rem;padding:1rem;align-items:start;}
.role img{width:180px;height:180px;object-fit:cover;}
.role .r-body h3{margin-bottom:.25rem;}
.role .r-body .role-tag{
  display:inline-block;font-size:.75rem;color:var(--accent-2);
  border:1px solid var(--border);border-radius:999px;padding:.1rem .6rem;margin-bottom:.55rem;
}
.role .r-body p{font-size:.86rem;color:var(--muted);margin-bottom:.4rem;}
.role .r-body p b{color:var(--text);}

/* 平台介绍 */
.platform{display:grid;grid-template-columns:1.35fr 1fr;gap:2rem;align-items:start;}
.platform .long p{font-size:.95rem;margin-bottom:1rem;color:var(--text);}
.platform .long h3{margin:1.4rem 0 .5rem;color:var(--accent-2);}
.steps{display:flex;flex-direction:column;gap:.9rem;}
.step{
  display:flex;gap:.9rem;background:var(--card);border:1px solid var(--border);
  border-radius:14px;padding:1rem;
}
.step .n{
  min-width:34px;height:34px;border-radius:10px;display:grid;place-items:center;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#fff;font-weight:700;font-size:.9rem;
}
.step h4{font-size:.95rem;margin-bottom:.15rem;}
.step p{font-size:.82rem;color:var(--muted);}
.feature-squares{display:grid;grid-template-columns:repeat(3,1fr);gap:.9rem;margin-top:1.6rem;}
.square{
  background:var(--card);border:1px solid var(--border);border-radius:14px;
  padding:1rem;text-align:center;font-size:.86rem;color:var(--text);
}
.square b{display:block;color:var(--accent-2);font-size:.95rem;margin-bottom:.2rem;}

/* 多端同步 */
.sync{display:grid;grid-template-columns:1fr 1fr;gap:2rem;align-items:center;}
.sync .sync-img{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap;}
.sync .sync-img img{border:1px solid var(--border);box-shadow:var(--shadow);}
.sync .sync-text p{font-size:.95rem;margin-bottom:1rem;color:var(--text);}
.sync .sync-text ul{margin-left:1.2rem;font-size:.92rem;color:var(--text);}
.sync .sync-text ul li{margin-bottom:.4rem;}

/* 公告 */
.notices{display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem;}
.notice{padding:1.1rem;}
.notice .date{font-size:.78rem;color:var(--accent-2);margin-bottom:.35rem;}
.notice h3{font-size:1rem;margin-bottom:.4rem;}
.notice p{font-size:.85rem;color:var(--muted);}

/* 安全指南 */
.guide{display:grid;grid-template-columns:1.3fr 1fr;gap:2rem;align-items:start;}
.guide .g-text p{font-size:.95rem;margin-bottom:1rem;color:var(--text);}
.checklist{display:flex;flex-direction:column;gap:.8rem;}
.checklist li{
  list-style:none;display:flex;gap:.7rem;align-items:flex-start;
  background:var(--card);border:1px solid var(--border);border-radius:12px;padding:.85rem 1rem;font-size:.88rem;
}
.checklist li::before{
  content:"✓";color:var(--accent-2);font-weight:800;flex-shrink:0;
}

/* APP下载 */
.app-download{text-align:center;display:flex;flex-direction:column;align-items:center;gap:1rem;}
.app-download p{max-width:720px;color:var(--muted);font-size:.95rem;}
.app-download .app-cta{display:flex;gap:.9rem;flex-wrap:wrap;justify-content:center;margin-top:.6rem;}

/* 评论 */
.comments{display:grid;grid-template-columns:repeat(2,1fr);gap:1.1rem;}
.comment{padding:1.1rem;}
.comment .c-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem;gap:.6rem;}
.comment .c-head b{font-size:.92rem;color:var(--accent-2);}
.comment .c-head time{font-size:.76rem;color:var(--muted);white-space:nowrap;}
.comment p{font-size:.88rem;color:var(--text);}

/* FAQ */
.faq-list{display:flex;flex-direction:column;gap:.8rem;max-width:900px;margin:0 auto;}
.faq-item{background:var(--card);border:1px solid var(--border);border-radius:14px;overflow:hidden;}
.faq-q{
  width:100%;text-align:left;background:transparent;border:none;cursor:pointer;
  padding:1rem 1.2rem;font-size:.96rem;color:var(--title);font-family:inherit;
  display:flex;justify-content:space-between;gap:1rem;align-items:center;
}
.faq-q .arrow{transition:transform .3s ease;color:var(--accent-2);}
.faq-item.open .faq-q .arrow{transform:rotate(180deg);}
.faq-a{max-height:0;overflow:hidden;transition:max-height .35s ease;padding:0 1.2rem;}
.faq-item.open .faq-a{max-height:320px;padding-bottom:1rem;}
.faq-a p{font-size:.88rem;color:var(--muted);}

/* 布局：主内容 + 侧边栏 */
.layout{display:grid;grid-template-columns:1fr 320px;gap:2rem;align-items:start;}
aside.sidebar{display:flex;flex-direction:column;gap:1.2rem;position:sticky;top:96px;}
.widget{padding:1.1rem;}
.widget h3{font-size:1rem;margin-bottom:.8rem;display:flex;align-items:center;gap:.5rem;}
.widget h3::before{
  content:"";width:4px;height:16px;border-radius:2px;
  background:linear-gradient(180deg,var(--accent),var(--accent-2));
}
.rank-list{display:flex;flex-direction:column;gap:.55rem;}
.rank-list li{
  list-style:none;display:flex;gap:.7rem;align-items:center;font-size:.87rem;
  padding:.4rem .2rem;border-bottom:1px dashed var(--border);
}
.rank-list li:last-child{border-bottom:none;}
.rank-list .rk{
  min-width:22px;height:22px;border-radius:6px;display:grid;place-items:center;
  font-size:.74rem;font-weight:700;background:var(--border);color:var(--text);
}
.rank-list li:nth-child(1) .rk{background:linear-gradient(135deg,#ffb347,#ff7b00);color:#fff;}
.rank-list li:nth-child(2) .rk{background:linear-gradient(135deg,#9d7cff,#7c5cff);color:#fff;}
.rank-list li:nth-child(3) .rk{background:linear-gradient(135deg,#1fb9d6,#0f8fb0);color:#fff;}
.rank-list a{color:var(--text);}
.rank-list a:hover{color:var(--accent-2);}
.rank-list .val{margin-left:auto;font-size:.76rem;color:var(--muted);white-space:nowrap;}
.stat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.7rem;}
.stat-grid .s{
  background:var(--bg-start);border:1px solid var(--border);border-radius:12px;
  padding:.7rem;text-align:center;
}
html[data-theme="light"] .stat-grid .s{background:#f2f5ff;}
.stat-grid .s b{display:block;color:var(--accent-2);font-size:1.05rem;}
.stat-grid .s span{font-size:.74rem;color:var(--muted);}

/* 底部 */
footer.site-footer{
  margin-top:40px;border-top:1px solid var(--border);
  background:var(--card);padding:48px 0 24px;
}
.footer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.6rem;margin-bottom:2rem;}
.footer-col h4{font-size:.98rem;margin-bottom:.85rem;color:var(--title);}
.footer-col ul{list-style:none;display:flex;flex-direction:column;gap:.5rem;}
.footer-col ul li a{font-size:.86rem;color:var(--muted);}
.footer-col ul li a:hover{color:var(--accent-2);}
.footer-col p{font-size:.85rem;color:var(--muted);}
.friend-links{display:flex;flex-wrap:wrap;gap:.6rem;padding:1rem 0;border-top:1px dashed var(--border);border-bottom:1px dashed var(--border);margin-bottom:1.2rem;}
.friend-links a{
  font-size:.82rem;padding:.25rem .75rem;border-radius:999px;
  border:1px solid var(--border);color:var(--muted);
}
.friend-links a:hover{color:var(--accent-2);border-color:var(--accent-2);text-decoration:none;}
.footer-bottom{display:flex;flex-wrap:wrap;gap:.8rem;justify-content:space-between;align-items:center;font-size:.8rem;color:var(--muted);}
.footer-bottom .legal{display:flex;flex-wrap:wrap;gap:.9rem;}
.footer-bottom .legal a{font-size:.8rem;color:var(--muted);}

/* 返回顶部 */
#back-top{
  position:fixed;right:20px;bottom:24px;width:46px;height:46px;border-radius:14px;
  border:1px solid var(--border);background:var(--card);color:var(--accent-2);
  font-size:1.1rem;cursor:pointer;display:grid;place-items:center;
  opacity:0;visibility:hidden;transform:translateY(12px);
  transition:opacity .3s ease,transform .3s ease,visibility .3s;z-index:900;
  box-shadow:var(--shadow);
}
#back-top.show{opacity:1;visibility:visible;transform:translateY(0);}

/* 响应式 */
@media (max-width:1080px){
  .grid-comics{grid-template-columns:repeat(3,1fr);}
  .layout{grid-template-columns:1fr;}
  aside.sidebar{position:static;}
  .detail{grid-template-columns:1fr;}
  .detail .side{position:static;}
  .platform{grid-template-columns:1fr;}
  .sync{grid-template-columns:1fr;}
  .guide{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:repeat(2,1fr);}
  .feature-squares{grid-template-columns:repeat(2,1fr);}
}
@media (max-width:860px){
  nav.main-nav{display:none;}
  .search-box{display:none;}
  .hamburger{display:flex;}
  .grid-comics{grid-template-columns:repeat(2,1fr);}
  .roles{grid-template-columns:1fr;}
  .comments{grid-template-columns:1fr;}
  .notices{grid-template-columns:1fr;}
  .feature{grid-template-columns:1fr;}
  .feature img{width:100%;height:auto;aspect-ratio:300/200;}
}
@media (max-width:560px){
  .role{grid-template-columns:1fr;}
  .role img{width:100%;height:auto;aspect-ratio:1/1;}
  .hero-stats .stat{min-width:120px;padding:.8rem 1rem;}
  .footer-grid{grid-template-columns:1fr;}
  .feature-squares{grid-template-columns:1fr;}
  .logo span.txt{max-width:130px;font-size:.86rem;}
}