:root{
  --bg-start:#0b0b18;
  --bg-end:#15152c;
  --card:#1a1a36;
  --card-hover:#20204a;
  --border:#2e2e58;
  --border-light:#3d3d70;
  --text:#e9e9f4;
  --text-soft:#c3c3dd;
  --title:#f2f2ff;
  --accent:#7c5cff;
  --accent2:#9d7cff;
  --accent-soft:rgba(124,92,255,.15);
  --link:#a78bff;
  --link-hover:#c9b8ff;
  --shadow:0 10px 30px rgba(0,0,0,.45);
}
[data-theme="light"]{
  --bg-start:#f6f8ff;
  --bg-end:#eef2fb;
  --card:#ffffff;
  --card-hover:#f4f6ff;
  --border:rgba(40,62,100,.13);
  --border-light:rgba(40,62,100,.25);
  --text:#142033;
  --text-soft:#2c3a52;
  --title:#0d0820;
  --accent:#6c4df6;
  --accent2:#1fb9d6;
  --accent-soft:rgba(108,77,246,.12);
  --link:#5a3ee0;
  --link-hover:#1fb9d6;
  --shadow:0 10px 30px rgba(40,62,100,.12);
}
*{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(--bg-start),var(--bg-end));
  color:var(--text);
  line-height:1.7;
  min-height:100vh;
  transition:background .3s ease,color .3s ease;
  overflow-x:hidden;
}
a{color:var(--link);text-decoration:none;transition:color .2s;}
a:hover{color:var(--link-hover);text-decoration:underline;}
img{display:block;max-width:100%;height:auto;border-radius:10px;}
h1,h2,h3,h4{color:var(--title);line-height:1.3;}
h2{font-size:clamp(1.4rem,2.6vw,1.9rem);margin-bottom:1rem;}
h3{font-size:1.1rem;}

/* 阅读进度条 */
#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.site-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:all .3s ease;
}
[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,.35);
}
[data-theme="light"] header.site-header.scrolled{box-shadow:0 6px 24px rgba(40,62,100,.12);}
.nav-inner{
  max-width:1280px;margin:0 auto;
  display:flex;align-items:center;gap:1rem;
  padding:.7rem 1.2rem;
}
.logo{
  display:flex;align-items:center;gap:.6rem;
  font-weight:700;color:var(--title);font-size:1.05rem;
  white-space:nowrap;
}
.logo img{width:38px;height:38px;border-radius:10px;}
.logo:hover{text-decoration:none;color:var(--accent2);}
.nav-links{
  display:flex;gap:.35rem;flex:1;justify-content:center;flex-wrap:wrap;
}
.nav-links a{
  color:var(--text-soft);font-size:.9rem;padding:.4rem .65rem;border-radius:8px;
  transition:all .2s;white-space:nowrap;
}
.nav-links a:hover{background:var(--accent-soft);color:var(--accent2);text-decoration:none;}
.nav-actions{display:flex;align-items:center;gap:.5rem;}
.search-box{
  display:flex;align-items:center;background:var(--card);
  border:1px solid var(--border);border-radius:20px;padding:.25rem .7rem;
}
.search-box input{
  background:transparent;border:none;outline:none;color:var(--text);
  font-size:.85rem;width:120px;font-family:inherit;
}
.search-box input::placeholder{color:var(--text-soft);opacity:.8;}
.search-box button{
  background:none;border:none;color:var(--accent2);cursor:pointer;font-size:.9rem;
}
.theme-btn{
  background:var(--card);border:1px solid var(--border);color:var(--text);
  width:36px;height:36px;border-radius:50%;cursor:pointer;font-size:1rem;
  display:flex;align-items:center;justify-content:center;transition:all .2s;
}
.theme-btn:hover{border-color:var(--accent2);color:var(--accent2);}
.btn{
  display:inline-block;padding:.55rem 1.2rem;border-radius:24px;
  font-size:.88rem;font-weight:600;cursor:pointer;border:none;
  transition:all .25s;text-align:center;font-family:inherit;
}
.btn-primary{
  background:linear-gradient(120deg,var(--accent),var(--accent2));
  color:#fff;
}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(124,92,255,.4);text-decoration:none;color:#fff;}
.btn-ghost{
  background:transparent;border:1px solid var(--border-light);color:var(--text);
}
.btn-ghost:hover{border-color:var(--accent2);color:var(--accent2);text-decoration:none;transform:translateY(-2px);}
.hamburger{
  display:none;background:var(--card);border:1px solid var(--border);
  color:var(--text);width:38px;height:38px;border-radius:10px;
  cursor:pointer;font-size:1.2rem;line-height:1;
}
.mobile-menu{
  display:none;flex-direction:column;gap:.2rem;
  padding:.6rem 1.2rem 1rem;border-top:1px solid var(--border);
  background:rgba(11,11,24,.95);
}
[data-theme="light"] .mobile-menu{background:rgba(246,248,255,.97);}
.mobile-menu.open{display:flex;}
.mobile-menu a{
  color:var(--text-soft);padding:.55rem .6rem;border-radius:8px;font-size:.92rem;
}
.mobile-menu a:hover{background:var(--accent-soft);color:var(--accent2);text-decoration:none;}

main{max-width:1280px;margin:0 auto;padding:0 1.2rem;}
section{margin:3.2rem 0;scroll-margin-top:80px;}

/* Hero */
.hero{
  min-height:76vh;display:flex;flex-direction:column;
  align-items:center;justify-content:center;text-align:center;
  padding:7rem 1rem 3rem;position:relative;
}
.hero-logo{
  width:150px;height:150px;border-radius:32px;
  border:2px solid var(--border-light);
  box-shadow:0 0 40px var(--accent-soft);
  margin-bottom:1.5rem;
}
.hero h1{
  font-size:clamp(1.5rem,3.6vw,2.6rem);
  max-width:900px;margin-bottom:.8rem;
  background:linear-gradient(120deg,var(--title),var(--accent2));
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}
.hero .slogan{
  color:var(--accent2);font-size:1.05rem;font-weight:600;margin-bottom:.9rem;
}
.hero .intro{
  max-width:680px;color:var(--text-soft);font-size:.95rem;margin-bottom:1.8rem;
}
.hero-cta{display:flex;gap:.8rem;flex-wrap:wrap;justify-content:center;margin-bottom:2.4rem;}
.hero-stats{
  display:flex;gap:2.5rem;flex-wrap:wrap;justify-content:center;
}
.hero-stats .stat{text-align:center;}
.hero-stats .stat .num{
  font-size:1.6rem;font-weight:800;color:var(--accent2);
}
.hero-stats .stat .lbl{font-size:.82rem;color:var(--text-soft);}

/* 通用区块标题 */
.section-head{
  display:flex;align-items:baseline;justify-content:space-between;
  flex-wrap:wrap;gap:.5rem;margin-bottom:1.4rem;
  border-left:4px solid var(--accent);padding-left:.8rem;
}
.section-head p{color:var(--text-soft);font-size:.88rem;}

/* 热门漫画网格 */
.grid-cards{
  display:grid;grid-template-columns:repeat(4,1fr);gap:1.2rem;
}
.manga-card{
  background:var(--card);border:1px solid var(--border);border-radius:14px;
  overflow:hidden;position:relative;transition:all .28s;
  display:flex;flex-direction:column;
}
.manga-card:hover{
  transform:translateY(-6px);border-color:var(--accent2);
  box-shadow:var(--shadow);background:var(--card-hover);
}
.manga-card .cover{position:relative;overflow:hidden;}
.manga-card .cover img{width:100%;height:auto;border-radius:0;aspect-ratio:220/310;object-fit:cover;}
.badge{
  position:absolute;top:8px;left:8px;font-size:.7rem;font-weight:700;
  padding:.18rem .5rem;border-radius:8px;color:#fff;
}
.badge.serial{background:linear-gradient(120deg,#7c5cff,#9d7cff);}
.badge.done{background:linear-gradient(120deg,#1fb9d6,#4fd1c5);}
.badge.read{
  left:auto;right:8px;background:rgba(11,11,24,.72);color:#e9e9f4;
  border:1px solid rgba(255,255,255,.18);
}
.manga-card .info{padding:.75rem .8rem 1rem;flex:1;display:flex;flex-direction:column;gap:.22rem;}
.manga-card .info h3{font-size:.98rem;margin-bottom:.1rem;}
.manga-card .info .meta{font-size:.78rem;color:var(--text-soft);}
.manga-card .info .meta b{color:var(--accent2);font-weight:600;}
.manga-card .type-tag{
  margin-top:.4rem;font-size:.72rem;color:var(--accent2);
  background:var(--accent-soft);padding:.16rem .5rem;border-radius:8px;align-self:flex-start;
}

/* 精品推荐 */
.feature-list{display:flex;flex-direction:column;gap:1.2rem;}
.feature-card{
  display:flex;gap:1.2rem;background:var(--card);border:1px solid var(--border);
  border-radius:16px;padding:1rem;transition:all .28s;
}
.feature-card:hover{border-color:var(--accent2);box-shadow:var(--shadow);}
.feature-card img{width:300px;height:200px;object-fit:cover;flex-shrink:0;}
.feature-card .f-body{flex:1;display:flex;flex-direction:column;gap:.45rem;}
.feature-card .f-body h3{font-size:1.15rem;}
.feature-card .f-body p{color:var(--text-soft);font-size:.9rem;}
.feature-card .f-meta{font-size:.82rem;color:var(--text-soft);display:flex;gap:1rem;flex-wrap:wrap;}
.tags{display:flex;gap:.4rem;flex-wrap:wrap;margin-top:.3rem;}
.tags span{
  font-size:.72rem;color:var(--accent2);background:var(--accent-soft);
  padding:.2rem .6rem;border-radius:10px;
}

/* 详细介绍 */
.detail-layout{display:grid;grid-template-columns:280px 1fr;gap:1.6rem;}
.detail-side{
  background:linear-gradient(160deg,#1a1a36,#2a1a55);
  border:1px solid var(--border);border-radius:16px;padding:2rem 1.5rem;
  display:flex;flex-direction:column;justify-content:center;gap:1rem;
}
[data-theme="light"] .detail-side{background:linear-gradient(160deg,#ece9ff,#e3f4fb);}
.detail-side .big-num{
  font-size:5rem;font-weight:900;line-height:1;
  background:linear-gradient(120deg,var(--accent),var(--accent2));
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}
.detail-side .summary{color:var(--text-soft);font-size:.95rem;}
.detail-body{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:1.6rem;}
.detail-body h3{margin:1.2rem 0 .5rem;color:var(--accent2);}
.detail-body p{color:var(--text-soft);font-size:.93rem;margin-bottom:.7rem;}
.detail-tags{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:1.2rem;}
.detail-tags span{
  font-size:.8rem;padding:.35rem .9rem;border-radius:12px;
  background:var(--accent-soft);color:var(--accent2);font-weight:600;
}

/* 角色介绍 */
.role-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.2rem;}
.role-card{
  display:flex;gap:1rem;background:var(--card);border:1px solid var(--border);
  border-radius:14px;padding:1rem;transition:all .28s;
}
.role-card:hover{border-color:var(--accent2);box-shadow:var(--shadow);}
.role-card img{width:90px;height:90px;border-radius:14px;object-fit:cover;flex-shrink:0;}
.role-card .r-body h3{font-size:1rem;margin-bottom:.2rem;}
.role-card .r-role{
  display:inline-block;font-size:.72rem;color:var(--accent2);
  background:var(--accent-soft);padding:.15rem .55rem;border-radius:8px;margin-bottom:.4rem;
}
.role-card .r-body p{font-size:.84rem;color:var(--text-soft);}
.role-card .r-body .power{font-size:.8rem;color:var(--text);margin-bottom:.3rem;}

/* 平台介绍 */
.platform-layout{display:grid;grid-template-columns:1.6fr 1fr;gap:1.6rem;}
.platform-text{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:1.6rem;}
.platform-text p{color:var(--text-soft);font-size:.93rem;margin-bottom:.8rem;}
.platform-steps{display:flex;flex-direction:column;gap:.9rem;}
.step-item{
  background:var(--card);border:1px solid var(--border);border-radius:14px;
  padding:1rem 1.1rem;display:flex;gap:.9rem;align-items:flex-start;
}
.step-item .step-num{
  width:32px;height:32px;flex-shrink:0;border-radius:50%;
  background:linear-gradient(120deg,var(--accent),var(--accent2));
  color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center;font-size:.9rem;
}
.step-item h4{font-size:.95rem;margin-bottom:.15rem;}
.step-item p{font-size:.82rem;color:var(--text-soft);}
.feature-squares{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:1.6rem;}
.square{
  background:var(--card);border:1px solid var(--border);border-radius:14px;
  padding:1rem;text-align:center;transition:all .25s;
}
.square:hover{border-color:var(--accent2);transform:translateY(-4px);}
.square .icon{font-size:1.5rem;margin-bottom:.4rem;}
.square h4{font-size:.9rem;margin-bottom:.2rem;}
.square p{font-size:.78rem;color:var(--text-soft);}

/* 多端同步 */
.sync-layout{display:grid;grid-template-columns:1fr 1fr;gap:1.6rem;align-items:center;}
.sync-text h2{margin-bottom:.8rem;}
.sync-text p{color:var(--text-soft);font-size:.93rem;margin-bottom:.8rem;}
.sync-visual img{width:100%;max-width:420px;margin:0 auto;border-radius:16px;border:1px solid var(--border);}

/* 公告 */
.notice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem;}
.notice-card{
  background:var(--card);border:1px solid var(--border);border-radius:14px;
  padding:1.1rem;transition:all .25s;
}
.notice-card:hover{border-color:var(--accent2);transform:translateY(-4px);box-shadow:var(--shadow);}
.notice-card .date{font-size:.78rem;color:var(--accent2);font-weight:600;margin-bottom:.35rem;}
.notice-card h3{font-size:.98rem;margin-bottom:.35rem;}
.notice-card p{font-size:.83rem;color:var(--text-soft);}

/* 阅读指南 */
.guide-layout{display:grid;grid-template-columns:1.5fr 1fr;gap:1.6rem;}
.guide-text{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:1.6rem;}
.guide-text p{color:var(--text-soft);font-size:.93rem;margin-bottom:.8rem;}
.check-list{display:flex;flex-direction:column;gap:.8rem;}
.check-item{
  display:flex;gap:.7rem;align-items:flex-start;
  background:var(--card);border:1px solid var(--border);
  border-radius:12px;padding:.9rem 1rem;font-size:.88rem;
}
.check-item .tick{
  color:var(--accent2);font-weight:800;font-size:1.05rem;line-height:1.4;
}

/* APP下载 */
.app-download{
  text-align:center;background:var(--card);border:1px solid var(--border);
  border-radius:20px;padding:2.6rem 1.5rem;
}
.app-download h2{margin-bottom:.8rem;}
.app-download p{max-width:640px;margin:0 auto 1.6rem;color:var(--text-soft);font-size:.95rem;}
.app-buttons{display:flex;gap:.9rem;justify-content:center;flex-wrap:wrap;}

/* 用户评论 */
.comment-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1.1rem;}
.comment-card{
  background:var(--card);border:1px solid var(--border);border-radius:14px;
  padding:1.1rem;transition:all .25s;
}
.comment-card:hover{border-color:var(--accent2);box-shadow:var(--shadow);}
.comment-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem;}
.comment-head .user{font-weight:700;color:var(--accent2);font-size:.9rem;}
.comment-head .time{font-size:.76rem;color:var(--text-soft);}
.comment-card p{font-size:.87rem;color:var(--text-soft);}

/* FAQ */
.faq-list{display:flex;flex-direction:column;gap:.8rem;}
.faq-item{
  background:var(--card);border:1px solid var(--border);border-radius:14px;
  overflow:hidden;transition:border-color .25s;
}
.faq-item.active{border-color:var(--accent2);}
.faq-q{
  width:100%;text-align:left;background:none;border:none;cursor:pointer;
  padding:1rem 1.2rem;color:var(--title);font-size:.95rem;font-weight:600;
  display:flex;justify-content:space-between;align-items:center;gap:1rem;
  font-family:inherit;
}
.faq-q .arrow{transition:transform .3s;color:var(--accent2);}
.faq-item.active .faq-q .arrow{transform:rotate(180deg);}
.faq-a{
  max-height:0;overflow:hidden;transition:max-height .35s ease;
  padding:0 1.2rem;color:var(--text-soft);font-size:.88rem;
}
.faq-item.active .faq-a{max-height:400px;padding-bottom:1rem;}

/* 侧边栏布局 */
.layout-with-side{display:grid;grid-template-columns:1fr 320px;gap:1.8rem;align-items:start;}
.sidebar{position:sticky;top:90px;display:flex;flex-direction:column;gap:1.2rem;}
.side-box{
  background:var(--card);border:1px solid var(--border);border-radius:16px;padding:1.2rem;
}
.side-box h3{
  font-size:1rem;margin-bottom:.9rem;padding-bottom:.6rem;
  border-bottom:1px solid var(--border);color:var(--accent2);
}
.rank-list{display:flex;flex-direction:column;gap:.6rem;}
.rank-item{display:flex;gap:.7rem;align-items:center;font-size:.86rem;}
.rank-item .rank-num{
  width:22px;height:22px;flex-shrink:0;border-radius:6px;
  background:var(--accent-soft);color:var(--accent2);
  display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:.75rem;
}
.rank-item .rank-num.top{background:linear-gradient(120deg,var(--accent),var(--accent2));color:#fff;}
.rank-item a{color:var(--text);}
.rank-item a:hover{color:var(--accent2);}
.rank-item .val{margin-left:auto;font-size:.76rem;color:var(--text-soft);}
.stat-list{display:flex;flex-direction:column;gap:.6rem;}
.stat-row{display:flex;justify-content:space-between;font-size:.86rem;color:var(--text-soft);}
.stat-row b{color:var(--accent2);font-weight:700;}

/* 底部 */
footer.site-footer{
  border-top:1px solid var(--border);margin-top:3rem;
  background:rgba(11,11,24,.6);
}
[data-theme="light"] footer.site-footer{background:rgba(238,242,251,.8);}
.footer-inner{max-width:1280px;margin:0 auto;padding:2.4rem 1.2rem 1.2rem;}
.footer-cols{display:grid;grid-template-columns:repeat(4,1fr);gap:1.6rem;margin-bottom:1.8rem;}
.footer-col h4{font-size:.95rem;margin-bottom:.8rem;color:var(--title);}
.footer-col ul{list-style:none;display:flex;flex-direction:column;gap:.45rem;}
.footer-col ul li a{font-size:.84rem;color:var(--text-soft);}
.footer-col ul li a:hover{color:var(--accent2);}
.friend-links{
  border-top:1px solid var(--border);border-bottom:1px solid var(--border);
  padding:1rem 0;margin-bottom:1.2rem;
  display:flex;gap:.8rem;flex-wrap:wrap;font-size:.82rem;
}
.friend-links span{color:var(--text-soft);}
.copyright{font-size:.8rem;color:var(--text-soft);text-align:center;line-height:1.9;}
.copyright a{font-size:.8rem;}

/* 返回顶部 */
#back-top{
  position:fixed;right:1.4rem;bottom:1.6rem;z-index:1100;
  width:46px;height:46px;border-radius:50%;border:none;cursor:pointer;
  background:linear-gradient(120deg,var(--accent),var(--accent2));
  color:#fff;font-size:1.2rem;
  opacity:0;visibility:hidden;transform:translateY(12px);
  transition:all .3s;box-shadow:0 8px 20px rgba(124,92,255,.4);
}
#back-top.show{opacity:1;visibility:visible;transform:translateY(0);}
#back-top:hover{transform:translateY(-3px);}

/* 响应式 */
@media(max-width:1080px){
  .grid-cards{grid-template-columns:repeat(3,1fr);}
  .layout-with-side{grid-template-columns:1fr;}
  .sidebar{position:static;}
  .footer-cols{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:860px){
  .nav-links{display:none;}
  .search-box{display:none;}
  .hamburger{display:flex;align-items:center;justify-content:center;}
  .detail-layout{grid-template-columns:1fr;}
  .platform-layout,.sync-layout,.guide-layout{grid-template-columns:1fr;}
  .role-grid{grid-template-columns:1fr;}
  .comment-grid{grid-template-columns:1fr;}
  .notice-grid{grid-template-columns:repeat(2,1fr);}
  .feature-squares{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:600px){
  .grid-cards{grid-template-columns:repeat(2,1fr);gap:.8rem;}
  .feature-card{flex-direction:column;}
  .feature-card img{width:100%;height:auto;aspect-ratio:300/200;}
  .notice-grid{grid-template-columns:1fr;}
  .hero-stats{gap:1.4rem;}
  .footer-cols{grid-template-columns:1fr;}
  .manga-card .info h3{font-size:.9rem;}
  .manga-card .info .meta{font-size:.72rem;}
}