:root{
  --bg1:#0b0b18;
  --bg2:#15152c;
  --card:#1a1a36;
  --border:#2e2e58;
  --text:#e9e9f4;
  --title:#f2f2ff;
  --accent:#7c5cff;
  --accent2:#9d7cff;
  --link:#9d7cff;
  --shadow:0 8px 30px rgba(0,0,0,.45);
}
html[data-theme="light"]{
  --bg1:#f6f8ff;
  --bg2:#eef2fb;
  --card:#ffffff;
  --border:rgba(40,62,100,.13);
  --text:#142033;
  --title:#0d0820;
  --accent:#6c4df6;
  --accent2:#1fb9d6;
  --link:#5a3fe0;
  --shadow:0 8px 26px rgba(40,62,100,.14);
}
*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  font-family:"PingFang SC","Microsoft YaHei",system-ui,-apple-system,sans-serif;
  background:linear-gradient(160deg,var(--bg1) 0%,var(--bg2) 100%);
  background-attachment:fixed;
  color:var(--text);
  line-height:1.75;
  font-size:16px;
  overflow-x:hidden;
  transition:background .4s ease,color .4s ease;
}
a{color:var(--link);text-decoration:none;transition:color .2s ease;}
a:hover{color:var(--accent2);text-decoration:underline;}
img{display:block;max-width:100%;height:auto;}
h1,h2,h3,h4{color:var(--title);line-height:1.35;font-weight:800;}
h2{font-size:1.7rem;margin-bottom:.4rem;}
h3{font-size:1.12rem;}

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

/* 导航 */
header{
  position:fixed;top:0;left:0;right:0;z-index:1000;
  background:rgba(11,11,24,.72);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid transparent;
  transition:border-color .3s ease,box-shadow .3s ease,background .3s ease;
}
html[data-theme="light"] header{background:rgba(246,248,255,.82);}
header.scrolled{
  border-bottom:1px solid var(--border);
  box-shadow:0 6px 22px rgba(0,0,0,.35);
}
html[data-theme="light"] header.scrolled{box-shadow:0 6px 22px rgba(40,62,100,.13);}
.nav-inner{
  max-width:1280px;margin:0 auto;padding:.7rem 1.2rem;
  display:flex;align-items:center;gap:1rem;
}
.logo{
  display:flex;align-items:center;gap:.6rem;font-weight:900;
  font-size:1.02rem;color:var(--title);white-space:nowrap;flex-shrink:0;
}
.logo:hover{text-decoration:none;color:var(--accent2);}
.logo-badge{
  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-size:1rem;font-weight:900;
}
nav.main-nav{display:flex;gap:.2rem;flex:1;justify-content:center;flex-wrap:wrap;}
nav.main-nav a{
  color:var(--text);font-size:.9rem;padding:.4rem .62rem;border-radius:8px;
  transition:background .2s ease,color .2s ease;white-space:nowrap;
}
nav.main-nav a:hover{background:rgba(124,92,255,.18);color:var(--title);text-decoration:none;}
.nav-right{display:flex;align-items:center;gap:.55rem;flex-shrink:0;}
.search-box{
  display:flex;align-items:center;background:var(--card);
  border:1px solid var(--border);border-radius:10px;padding:.3rem .6rem;
}
.search-box input{
  border:none;background:transparent;color:var(--text);outline:none;
  width:110px;font-size:.86rem;font-family:inherit;
}
.search-box input::placeholder{color:var(--text);opacity:.55;}
.search-box button{
  border:none;background:transparent;color:var(--accent2);cursor:pointer;
  font-size:.86rem;font-weight:700;padding:0 .2rem;font-family:inherit;
}
.btn{
  display:inline-block;border:none;cursor:pointer;font-family:inherit;
  font-weight:700;font-size:.88rem;padding:.5rem 1rem;border-radius:10px;
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease;
  text-align:center;
}
.btn-primary{
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  color:#fff;box-shadow:0 4px 16px rgba(124,92,255,.4);
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(124,92,255,.55);text-decoration:none;color:#fff;}
.btn-ghost{
  background:transparent;color:var(--text);border:1px solid var(--border);
}
.btn-ghost:hover{border-color:var(--accent2);color:var(--accent2);transform:translateY(-2px);text-decoration:none;}
.theme-toggle{
  border:1px solid var(--border);background:var(--card);color:var(--text);
  border-radius:10px;padding:.42rem .6rem;cursor:pointer;font-size:.95rem;
  font-family:inherit;transition:border-color .2s ease,transform .2s ease;
}
.theme-toggle:hover{border-color:var(--accent2);transform:translateY(-2px);}
.hamburger{
  display:none;flex-direction:column;justify-content:center;gap:5px;
  width:42px;height:38px;border:1px solid var(--border);border-radius:10px;
  background:var(--card);cursor:pointer;padding:0 9px;
}
.hamburger span{display:block;height:2px;background:var(--text);border-radius:2px;transition:.3s ease;}
.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;
  max-height:0;overflow:hidden;transition:max-height .4s ease;
  border-top:1px solid transparent;
}
.mobile-menu.open{max-height:520px;border-top:1px solid var(--border);}
.mobile-menu a{
  padding:.7rem 1.4rem;color:var(--text);font-size:.94rem;
}
.mobile-menu a:hover{background:rgba(124,92,255,.15);text-decoration:none;}

/* 通用容器 */
.container{max-width:1280px;margin:0 auto;padding:0 1.2rem;}
section{padding:3.4rem 0;}
.section-head{margin-bottom:1.8rem;display:flex;flex-wrap:wrap;align-items:flex-end;gap:.5rem 1rem;justify-content:space-between;}
.section-head p{color:var(--text);opacity:.8;font-size:.92rem;}
.eyebrow{
  display:inline-block;font-size:.74rem;letter-spacing:.16em;
  color:var(--accent2);font-weight:800;text-transform:uppercase;margin-bottom:.35rem;
}

/* Hero */
.hero{
  min-height:76vh;display:flex;flex-direction:column;align-items:center;
  justify-content:center;text-align:center;padding:7.5rem 1.2rem 3.4rem;
  position:relative;
}
.hero-logo{
  width:200px;height:200px;border-radius:34px;object-fit:cover;
  border:2px solid var(--border);box-shadow:var(--shadow);
  margin-bottom:1.4rem;
}
.hero h1{
  font-size:clamp(1.6rem,4.4vw,2.9rem);max-width:900px;margin-bottom:.7rem;
}
.hero .slogan{
  font-size:clamp(1rem,2.2vw,1.24rem);color:var(--accent2);font-weight:700;margin-bottom:.9rem;
}
.hero .intro{max-width:720px;opacity:.9;margin-bottom:1.7rem;font-size:.96rem;}
.hero-cta{display:flex;flex-wrap:wrap;gap:.8rem;justify-content:center;margin-bottom:2.4rem;}
.hero-cta .btn{padding:.72rem 1.5rem;font-size:.96rem;}
.hero-stats{
  display:flex;flex-wrap:wrap;gap:1rem 2.6rem;justify-content:center;
  border-top:1px solid var(--border);padding-top:1.6rem;width:100%;max-width:760px;
}
.hero-stats div{text-align:center;}
.hero-stats strong{display:block;font-size:1.5rem;color:var(--title);font-weight:900;}
.hero-stats span{font-size:.84rem;opacity:.78;}

/* 卡片通用 */
.card{
  background:var(--card);border:1px solid var(--border);border-radius:16px;
  transition:transform .28s ease,border-color .28s ease,box-shadow .28s ease;
}
.card:hover{transform:translateY(-6px);border-color:var(--accent2);box-shadow:var(--shadow);}

/* 热门漫画网格 */
.grid-comics{
  display:grid;gap:1.2rem;
  grid-template-columns:repeat(4,1fr);
}
.comic-card{overflow:hidden;position:relative;display:flex;flex-direction:column;}
.comic-cover{position:relative;}
.comic-cover img{width:100%;height:auto;aspect-ratio:220/310;object-fit:cover;border-radius:16px 16px 0 0;}
.badge{
  position:absolute;top:.55rem;font-size:.7rem;font-weight:800;padding:.18rem .5rem;
  border-radius:7px;color:#fff;letter-spacing:.02em;
}
.badge-status{left:.55rem;background:linear-gradient(135deg,var(--accent),var(--accent2));}
.badge-status.done{background:linear-gradient(135deg,#2f9e6d,#1fb9d6);}
.badge-read{right:.55rem;background:rgba(11,11,24,.72);backdrop-filter:blur(4px);}
html[data-theme="light"] .badge-read{background:rgba(13,8,32,.72);}
.comic-info{padding:.85rem .9rem 1rem;display:flex;flex-direction:column;gap:.3rem;flex:1;}
.comic-info h3{font-size:1rem;}
.comic-meta{font-size:.8rem;opacity:.82;}
.comic-meta b{color:var(--accent2);font-weight:700;}
.comic-tag{
  display:inline-block;font-size:.72rem;padding:.12rem .5rem;border-radius:6px;
  border:1px solid var(--border);color:var(--accent2);margin-top:.2rem;align-self:flex-start;
}

/* 精品推荐 */
.feature-list{display:flex;flex-direction:column;gap:1.3rem;}
.feature-card{display:flex;gap:1.3rem;padding:1.1rem;align-items:stretch;}
.feature-card img{
  width:300px;min-width:300px;height:200px;object-fit:cover;border-radius:12px;
}
.feature-body{flex:1;display:flex;flex-direction:column;gap:.5rem;}
.feature-body h3{font-size:1.2rem;}
.feature-body .desc{font-size:.9rem;opacity:.9;}
.feature-tags{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:auto;}
.tag{
  font-size:.74rem;padding:.16rem .6rem;border-radius:999px;
  background:rgba(124,92,255,.16);color:var(--accent2);border:1px solid var(--border);
}
.feature-meta{font-size:.82rem;opacity:.82;}

/* 详细介绍 */
.detail-wrap{display:grid;grid-template-columns:300px 1fr;gap:1.6rem;align-items:start;}
.detail-side{
  background:linear-gradient(160deg,#0b0b18,#1c1c3d);border:1px solid var(--border);
  border-radius:18px;padding:1.8rem 1.4rem;position:sticky;top:96px;
}
html[data-theme="light"] .detail-side{background:linear-gradient(160deg,#241a52,#3a2b7a);}
.detail-side .bignum{
  font-size:5.2rem;font-weight:900;line-height:1;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.detail-side h3{color:#f2f2ff;margin:.6rem 0 .5rem;font-size:1.15rem;}
.detail-side p{color:#e9e9f4;opacity:.9;font-size:.9rem;}
.detail-body{font-size:.95rem;}
.detail-body p{margin-bottom:1rem;opacity:.93;}
.detail-body h3{margin:1.4rem 0 .6rem;padding-left:.7rem;border-left:4px solid var(--accent2);}
.detail-features{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1.6rem;}
.detail-features span{
  padding:.45rem 1rem;border-radius:10px;font-size:.84rem;font-weight:700;
  background:var(--card);border:1px solid var(--border);color:var(--accent2);
}

/* 角色 */
.grid-roles{display:grid;grid-template-columns:repeat(2,1fr);gap:1.2rem;}
.role-card{display:flex;gap:1rem;padding:1rem;}
.role-card img{
  width:180px;min-width:180px;height:180px;object-fit:cover;border-radius:14px;
}
.role-body h3{font-size:1.05rem;margin-bottom:.2rem;}
.role-body .role-tag{
  display:inline-block;font-size:.74rem;padding:.14rem .55rem;border-radius:6px;
  background:rgba(31,185,214,.16);color:var(--accent2);margin-bottom:.5rem;font-weight:700;
}
.role-body p{font-size:.86rem;opacity:.9;}
.role-body .ability{font-size:.84rem;margin-top:.4rem;color:var(--accent2);font-weight:700;}

/* 平台介绍 */
.platform-wrap{display:grid;grid-template-columns:1.35fr 1fr;gap:1.8rem;align-items:start;}
.platform-text p{margin-bottom:1rem;font-size:.94rem;opacity:.93;}
.steps{display:flex;flex-direction:column;gap:.9rem;}
.step{
  display:flex;gap:.9rem;padding:1rem;background:var(--card);
  border:1px solid var(--border);border-radius:14px;
}
.step .num{
  width:38px;height:38px;min-width:38px;border-radius:10px;display:flex;
  align-items:center;justify-content:center;font-weight:900;color:#fff;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
}
.step h4{font-size:.96rem;margin-bottom:.15rem;}
.step p{font-size:.84rem;opacity:.85;}
.feature-squares{
  display:grid;grid-template-columns:repeat(3,1fr);gap:.9rem;margin-top:2rem;
}
.feature-squares div{
  background:var(--card);border:1px solid var(--border);border-radius:14px;
  padding:1rem;text-align:center;font-size:.88rem;font-weight:700;color:var(--accent2);
  transition:transform .25s ease,border-color .25s ease;
}
.feature-squares div:hover{transform:translateY(-4px);border-color:var(--accent2);}

/* 多端同步 */
.device-wrap{display:grid;grid-template-columns:1fr 1fr;gap:1.8rem;align-items:center;}
.device-wrap p{margin-bottom:1rem;font-size:.94rem;opacity:.93;}
.device-img{
  width:400px;height:600px;object-fit:cover;border-radius:20px;
  border:1px solid var(--border);box-shadow:var(--shadow);margin:0 auto;
}

/* 公告 */
.grid-notice{display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem;}
.notice-card{padding:1.1rem;}
.notice-card .date{font-size:.78rem;color:var(--accent2);font-weight:800;}
.notice-card h3{font-size:1rem;margin:.35rem 0 .4rem;}
.notice-card p{font-size:.85rem;opacity:.86;}

/* 安全提示 */
.guide-wrap{display:grid;grid-template-columns:1.3fr 1fr;gap:1.8rem;align-items:start;}
.guide-wrap p{margin-bottom:1rem;font-size:.94rem;opacity:.93;}
.checklist{display:flex;flex-direction:column;gap:.8rem;}
.checklist div{
  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 div::before{
  content:"✓";color:#fff;background:linear-gradient(135deg,var(--accent),var(--accent2));
  width:22px;height:22px;min-width:22px;border-radius:7px;display:flex;
  align-items:center;justify-content:center;font-size:.78rem;font-weight:900;
}

/* APP下载 */
.download{text-align:center;}
.download .inner{max-width:760px;margin:0 auto;}
.download p{opacity:.9;margin:.8rem 0 1.6rem;font-size:.95rem;}
.download .hero-cta{margin-bottom:0;}

/* 评论 */
.grid-comments{display:grid;grid-template-columns:repeat(2,1fr);gap:1.1rem;}
.comment-card{padding:1.05rem 1.1rem;}
.comment-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:.45rem;gap:.6rem;flex-wrap:wrap;}
.comment-head strong{color:var(--title);font-size:.94rem;}
.comment-head span{font-size:.76rem;opacity:.7;}
.comment-card p{font-size:.88rem;opacity:.9;}

/* FAQ */
.faq-list{display:flex;flex-direction:column;gap:.8rem;max-width:960px;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:1.05rem 1.2rem;font-size:.98rem;font-weight:700;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(--accent2);font-size:.85rem;}
.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:400px;padding-bottom:1.1rem;}
.faq-a p{font-size:.9rem;opacity:.9;}

/* 侧边栏布局 */
.layout-with-side{display:grid;grid-template-columns:1fr 320px;gap:1.8rem;align-items:start;}
.side-col{display:flex;flex-direction:column;gap:1.3rem;position:sticky;top:96px;}
.side-card{padding:1.1rem 1.2rem;}
.side-card h3{font-size:1rem;margin-bottom:.8rem;padding-bottom:.5rem;border-bottom:1px solid var(--border);}
.rank-list{display:flex;flex-direction:column;gap:.55rem;}
.rank-list a{
  display:flex;gap:.7rem;align-items:center;font-size:.87rem;color:var(--text);
  padding:.28rem .3rem;border-radius:8px;transition:background .2s ease;
}
.rank-list a:hover{background:rgba(124,92,255,.14);color:var(--accent2);text-decoration:none;}
.rank-num{
  width:22px;height:22px;min-width:22px;border-radius:7px;display:flex;align-items:center;
  justify-content:center;font-size:.74rem;font-weight:900;color:#fff;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
}
.rank-num.top{background:linear-gradient(135deg,#ff8a3d,#ff5c8a);}
.stat-list{display:grid;grid-template-columns:1fr 1fr;gap:.7rem;}
.stat-list div{
  background:rgba(124,92,255,.1);border:1px solid var(--border);border-radius:11px;
  padding:.6rem;text-align:center;
}
.stat-list strong{display:block;font-size:1.05rem;color:var(--accent2);font-weight:900;}
.stat-list span{font-size:.74rem;opacity:.82;}

/* 底部 */
footer{
  border-top:1px solid var(--border);background:rgba(0,0,0,.22);
  padding:2.8rem 0 1.6rem;margin-top:2rem;
}
html[data-theme="light"] footer{background:rgba(40,62,100,.05);}
.footer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.6rem;margin-bottom:2rem;}
.footer-grid h3{font-size:1rem;margin-bottom:.85rem;}
.footer-grid ul{list-style:none;display:flex;flex-direction:column;gap:.45rem;}
.footer-grid a{font-size:.86rem;color:var(--text);opacity:.86;}
.footer-grid a:hover{opacity:1;color:var(--accent2);}
.friend-links{
  display:flex;flex-wrap:wrap;gap:.6rem;padding:1.1rem 0;border-top:1px solid var(--border);
}
.friend-links a{
  font-size:.82rem;padding:.28rem .75rem;border:1px solid var(--border);
  border-radius:999px;color:var(--text);opacity:.9;
}
.friend-links a:hover{color:var(--accent2);border-color:var(--accent2);text-decoration:none;}
.footer-bottom{
  border-top:1px solid var(--border);padding-top:1.2rem;display:flex;
  flex-wrap:wrap;gap:.6rem 1.4rem;justify-content:space-between;font-size:.82rem;opacity:.85;
}
.footer-bottom .legal a{margin-right:1rem;}

/* 返回顶部 */
#backTop{
  position:fixed;right:1.3rem;bottom:1.5rem;width:46px;height:46px;border-radius:14px;
  border:1px solid var(--border);background:var(--card);color:var(--accent2);
  font-size:1.1rem;font-weight:900;cursor:pointer;display:flex;align-items:center;
  justify-content:center;opacity:0;visibility:hidden;transform:translateY(14px);
  transition:.3s ease;z-index:1100;box-shadow:var(--shadow);
}
#backTop.show{opacity:1;visibility:visible;transform:translateY(0);}
#backTop:hover{border-color:var(--accent2);}

/* 响应式 */
@media(max-width:1080px){
  .grid-comics{grid-template-columns:repeat(3,1fr);}
  .layout-with-side{grid-template-columns:1fr;}
  .side-col{position:static;}
  .detail-wrap{grid-template-columns:1fr;}
  .detail-side{position:static;}
}
@media(max-width:900px){
  nav.main-nav,.search-box{display:none;}
  .hamburger{display:flex;}
  .mobile-menu{display:flex;}
  .desktop-only{display:none;}
  .feature-card{flex-direction:column;}
  .feature-card img{width:100%;min-width:0;height:200px;}
  .platform-wrap,.device-wrap,.guide-wrap{grid-template-columns:1fr;}
  .device-img{width:100%;max-width:400px;height:auto;aspect-ratio:400/600;}
  .grid-notice{grid-template-columns:repeat(2,1fr);}
  .footer-grid{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:640px){
  .grid-comics{grid-template-columns:repeat(2,1fr);}
  .grid-roles,.grid-comments{grid-template-columns:1fr;}
  .role-card{flex-direction:column;align-items:center;text-align:center;}
  .role-body .role-tag{align-self:center;}
  .grid-notice{grid-template-columns:1fr;}
  .feature-squares{grid-template-columns:repeat(2,1fr);}
  .hero-logo{width:150px;height:150px;border-radius:26px;}
  section{padding:2.6rem 0;}
  .footer-grid{grid-template-columns:1fr;}
  .hero-stats{gap:1rem 1.6rem;}
}