:root{
  --bg-start:#0b0b18;
  --bg-end:#15152c;
  --card:#1a1a36;
  --card-2:#1f1f40;
  --border:#2e2e58;
  --border-light:#3d3d70;
  --text:#e9e9f4;
  --title:#f2f2ff;
  --accent:#7c5cff;
  --accent-2:#9d7cff;
  --accent-soft:rgba(124,92,255,.16);
  --link:#a98bff;
  --link-hover:#c9b8ff;
  --shadow:0 10px 30px rgba(0,0,0,.45);
  --radius:16px;
}
html[data-theme="light"]{
  --bg-start:#f6f8ff;
  --bg-end:#eef2fb;
  --card:#ffffff;
  --card-2:#f4f6ff;
  --border:rgba(40,62,100,.13);
  --border-light:rgba(40,62,100,.22);
  --text:#142033;
  --title:#0d0820;
  --accent:#6c4df6;
  --accent-2:#1fb9d6;
  --accent-soft:rgba(108,77,246,.12);
  --link:#5b3de0;
  --link-hover:#1a1a6e;
  --shadow:0 10px 28px 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(160deg,var(--bg-start) 0%,var(--bg-end) 100%);
  background-attachment:fixed;
  color:var(--text);
  line-height:1.75;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
a{color:var(--link);text-decoration:none;transition:color .2s,text-decoration .2s}
a:hover{color:var(--link-hover);text-decoration:underline}
h1,h2,h3,h4{color:var(--title);line-height:1.35;font-weight:800}
img{display:block;max-width:100%}
.container{width:min(1240px,92%);margin:0 auto}

/* 阅读进度条 */
#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.navbar{
  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,.72);
  border-bottom:1px solid transparent;
  transition:box-shadow .3s,border-color .3s,background .3s;
}
html[data-theme="light"] header.navbar{background:rgba(246,248,255,.82)}
header.navbar.scrolled{
  border-bottom:1px solid var(--border);
  box-shadow:0 8px 26px rgba(0,0,0,.35);
}
html[data-theme="light"] header.navbar.scrolled{box-shadow:0 8px 26px rgba(40,62,100,.16)}
.nav-inner{
  display:flex;align-items:center;gap:18px;
  padding:12px 0;
}
.logo{
  display:flex;align-items:center;gap:10px;
  font-weight:900;font-size:18px;color:var(--title);
  white-space:nowrap;flex-shrink:0;
}
.logo:hover{text-decoration:none;color:var(--title)}
.logo-mark{
  width:38px;height:38px;border-radius:11px;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:17px;font-weight:900;flex-shrink:0;
  box-shadow:0 4px 14px var(--accent-soft);
}
nav.main-nav{display:flex;gap:4px;margin-left:8px;flex-wrap:wrap}
nav.main-nav a{
  color:var(--text);font-size:14.5px;font-weight:600;
  padding:8px 12px;border-radius:10px;transition:background .2s,color .2s;
}
nav.main-nav a:hover{background:var(--accent-soft);color:var(--title);text-decoration:none}
.nav-right{display:flex;align-items:center;gap:10px;margin-left:auto}
.search-box{
  display:flex;align-items:center;gap:6px;
  background:var(--card);border:1px solid var(--border);
  border-radius:12px;padding:6px 10px;
}
.search-box input{
  background:transparent;border:none;outline:none;color:var(--text);
  font-size:14px;width:130px;font-family:inherit;
}
.search-box input::placeholder{color:var(--text);opacity:.55}
.search-box button{
  background:transparent;border:none;cursor:pointer;color:var(--accent-2);
  font-size:15px;line-height:1;padding:2px;
}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  border:none;cursor:pointer;font-family:inherit;font-weight:700;
  border-radius:12px;transition:transform .2s,box-shadow .2s,background .2s,color .2s;
  text-decoration:none;
}
.btn:hover{text-decoration:none;transform:translateY(-2px)}
.btn-primary{
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  color:#fff;padding:10px 20px;font-size:14.5px;
  box-shadow:0 6px 18px var(--accent-soft);
}
.btn-primary:hover{color:#fff;box-shadow:0 10px 26px rgba(124,92,255,.42)}
.btn-ghost{
  background:transparent;color:var(--text);
  border:1px solid var(--border-light);padding:10px 20px;font-size:14.5px;
}
.btn-ghost:hover{color:var(--title);border-color:var(--accent-2);background:var(--accent-soft)}
.theme-toggle{
  width:40px;height:40px;border-radius:12px;flex-shrink:0;
  background:var(--card);border:1px solid var(--border);
  color:var(--text);font-size:17px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  transition:border-color .2s,background .2s;
}
.theme-toggle:hover{border-color:var(--accent-2);background:var(--accent-soft)}
.hamburger{
  display:none;width:42px;height:42px;border-radius:12px;
  background:var(--card);border:1px solid var(--border);
  cursor:pointer;flex-direction:column;align-items:center;justify-content:center;gap:5px;
}
.hamburger span{display:block;width:19px;height:2px;background:var(--text);border-radius:2px;transition:transform .3s,opacity .3s}
.hamburger.active span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.hamburger.active span:nth-child(2){opacity:0}
.hamburger.active span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.mobile-menu{
  display:none;flex-direction:column;gap:2px;
  padding:10px 0 16px;border-top:1px solid var(--border);
}
.mobile-menu.open{display:flex}
.mobile-menu a{
  color:var(--text);font-weight:600;padding:11px 12px;border-radius:10px;font-size:15px;
}
.mobile-menu a:hover{background:var(--accent-soft);color:var(--title);text-decoration:none}

/* Hero */
.hero{
  min-height:78vh;display:flex;flex-direction:column;
  align-items:center;justify-content:center;text-align:center;
  padding:130px 0 70px;position:relative;overflow:hidden;
}
.hero::before{
  content:"";position:absolute;top:-160px;left:50%;transform:translateX(-50%);
  width:720px;height:720px;border-radius:50%;
  background:radial-gradient(circle,rgba(124,92,255,.22),transparent 68%);
  pointer-events:none;
}
.hero-logo{
  width:200px;height:200px;border-radius:38px;object-fit:cover;
  border:2px solid var(--border-light);
  box-shadow:0 20px 50px rgba(0,0,0,.45);
  position:relative;z-index:1;
}
html[data-theme="light"] .hero-logo{box-shadow:0 20px 50px rgba(40,62,100,.2)}
.hero h1{
  font-size:clamp(26px,4.4vw,46px);margin:26px 0 12px;
  position:relative;z-index:1;letter-spacing:.5px;
}
.hero .slogan{
  font-size:clamp(15px,2vw,19px);color:var(--accent-2);
  font-weight:700;margin-bottom:16px;position:relative;z-index:1;
}
.hero .intro{
  max-width:720px;font-size:15.5px;color:var(--text);
  opacity:.92;position:relative;z-index:1;
}
.hero-cta{
  display:flex;gap:14px;flex-wrap:wrap;justify-content:center;
  margin:30px 0 44px;position:relative;z-index:1;
}
.hero-stats{
  display:grid;grid-template-columns:repeat(3,1fr);gap:18px;
  width:min(760px,100%);position:relative;z-index:1;
}
.stat{
  background:var(--card);border:1px solid var(--border);
  border-radius:var(--radius);padding:18px 10px;text-align:center;
}
.stat b{display:block;font-size:clamp(20px,3vw,28px);color:var(--accent-2);font-weight:900}
.stat span{font-size:13px;color:var(--text);opacity:.85}

/* 通用区块 */
section{padding:64px 0}
.section-head{text-align:center;margin-bottom:38px}
.section-head h2{
  font-size:clamp(22px,3.2vw,32px);display:inline-block;position:relative;
}
.section-head h2::after{
  content:"";display:block;width:56px;height:4px;border-radius:4px;
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  margin:12px auto 0;
}
.section-head p{margin-top:12px;font-size:15px;opacity:.9;max-width:680px;margin-left:auto;margin-right:auto}

/* 热门漫画网格 */
.grid-cards{
  display:grid;grid-template-columns:repeat(4,1fr);gap:22px;
}
.manga-card{
  background:var(--card);border:1px solid var(--border);
  border-radius:var(--radius);overflow:hidden;position:relative;
  transition:transform .28s,border-color .28s,box-shadow .28s;
}
.manga-card:hover{
  transform:translateY(-8px);
  border-color:var(--accent-2);
  box-shadow:var(--shadow);
}
.manga-cover{position:relative;overflow:hidden}
.manga-cover img{width:100%;height:auto;aspect-ratio:220/310;object-fit:cover;transition:transform .4s}
.manga-card:hover .manga-cover img{transform:scale(1.05)}
.badge{
  position:absolute;top:10px;left:10px;z-index:2;
  font-size:11.5px;font-weight:800;padding:3px 9px;border-radius:20px;color:#fff;
}
.badge.ongoing{background:linear-gradient(135deg,#7c5cff,#9d7cff)}
.badge.done{background:linear-gradient(135deg,#1fb9d6,#2ad1a8)}
.badge-views{
  position:absolute;top:10px;right:10px;z-index:2;
  font-size:11.5px;font-weight:700;padding:3px 9px;border-radius:20px;
  background:rgba(0,0,0,.6);color:#fff;
}
.manga-body{padding:14px}
.manga-body h3{font-size:16px;margin-bottom:8px}
.manga-meta{font-size:12.8px;line-height:1.9;opacity:.9}
.manga-meta em{font-style:normal;color:var(--accent-2);font-weight:700}
.tag-row{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.tag{
  font-size:11.5px;padding:2px 9px;border-radius:20px;
  background:var(--accent-soft);color:var(--accent-2);font-weight:600;
  border:1px solid var(--border);
}

/* 精品推荐 */
.rec-list{display:flex;flex-direction:column;gap:22px}
.rec-card{
  display:grid;grid-template-columns:300px 1fr;gap:24px;
  background:var(--card);border:1px solid var(--border);
  border-radius:var(--radius);padding:20px;
  transition:transform .28s,border-color .28s,box-shadow .28s;
}
.rec-card:hover{transform:translateY(-6px);border-color:var(--accent-2);box-shadow:var(--shadow)}
.rec-card img{
  width:100%;height:auto;aspect-ratio:300/200;object-fit:cover;border-radius:12px;
}
.rec-card h3{font-size:20px;margin-bottom:10px}
.rec-card p{font-size:14.5px;margin-bottom:12px;opacity:.94}
.rec-meta{font-size:13.5px;opacity:.9;margin-bottom:12px}
.rec-meta em{font-style:normal;color:var(--accent-2);font-weight:700}

/* 漫画详细介绍 */
.detail-wrap{display:grid;grid-template-columns:280px 1fr;gap:28px;align-items:start}
.detail-side{
  background:linear-gradient(160deg,var(--card-2),var(--card));
  border:1px solid var(--border);border-radius:var(--radius);
  padding:34px 26px;position:sticky;top:96px;
}
.detail-side .num{
  font-size:76px;font-weight:900;line-height:1;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.detail-side .quote{margin-top:16px;font-size:15px;font-weight:700;color:var(--title)}
.detail-side .sub{margin-top:10px;font-size:13.5px;opacity:.88}
.detail-body h2{font-size:24px;margin-bottom:16px}
.detail-body h3{font-size:18px;margin:24px 0 10px}
.detail-body p{font-size:15.2px;margin-bottom:14px;opacity:.95}
.detail-tags{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
.detail-tags span{
  background:var(--accent-soft);border:1px solid var(--border);
  color:var(--accent-2);font-weight:700;font-size:13.5px;
  padding:8px 18px;border-radius:30px;
}

/* 角色介绍 */
.role-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}
.role-card{
  display:flex;gap:18px;align-items:flex-start;
  background:var(--card);border:1px solid var(--border);
  border-radius:var(--radius);padding:18px;
  transition:transform .28s,border-color .28s,box-shadow .28s;
}
.role-card:hover{transform:translateY(-6px);border-color:var(--accent-2);box-shadow:var(--shadow)}
.role-card img{
  width:180px;height:180px;object-fit:cover;border-radius:14px;flex-shrink:0;
  border:1px solid var(--border);
}
.role-card h3{font-size:17.5px;margin-bottom:6px}
.role-role{
  display:inline-block;font-size:12px;font-weight:700;color:var(--accent-2);
  background:var(--accent-soft);border:1px solid var(--border);
  padding:2px 10px;border-radius:20px;margin-bottom:10px;
}
.role-card p{font-size:14px;opacity:.94}

/* 平台介绍 */
.platform-wrap{display:grid;grid-template-columns:1.4fr 1fr;gap:34px;align-items:start}
.platform-text p{font-size:15.2px;margin-bottom:14px;opacity:.95}
.step-list{display:flex;flex-direction:column;gap:16px}
.step{
  display:flex;gap:14px;align-items:flex-start;
  background:var(--card);border:1px solid var(--border);
  border-radius:var(--radius);padding:16px;
}
.step b{
  width:34px;height:34px;border-radius:10px;flex-shrink:0;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  color:#fff;display:flex;align-items:center;justify-content:center;font-size:15px;
}
.step div h3{font-size:15.5px;margin-bottom:4px}
.step div p{font-size:13.5px;opacity:.9}
.feature-squares{
  display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:34px;
}
.feature-squares div{
  background:var(--card);border:1px solid var(--border);
  border-radius:var(--radius);padding:18px;text-align:center;
  font-weight:700;font-size:14.5px;color:var(--title);
  transition:border-color .25s,transform .25s;
}
.feature-squares div:hover{border-color:var(--accent-2);transform:translateY(-4px)}
.feature-squares div span{display:block;font-size:12.5px;font-weight:500;opacity:.85;margin-top:6px}

/* 多端同步 */
.sync-wrap{display:grid;grid-template-columns:1fr 1fr;gap:34px;align-items:center}
.sync-text p{font-size:15.2px;margin-bottom:14px;opacity:.95}
.sync-imgs{display:flex;gap:20px;justify-content:center;flex-wrap:wrap}
.sync-imgs img{
  width:400px;height:600px;object-fit:cover;border-radius:20px;
  border:1px solid var(--border);box-shadow:var(--shadow);
  max-width:100%;
}

/* 公告 */
.notice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.notice-card{
  background:var(--card);border:1px solid var(--border);
  border-radius:var(--radius);padding:20px;
  transition:transform .28s,border-color .28s,box-shadow .28s;
}
.notice-card:hover{transform:translateY(-6px);border-color:var(--accent-2);box-shadow:var(--shadow)}
.notice-date{font-size:12.5px;color:var(--accent-2);font-weight:700;margin-bottom:8px}
.notice-card h3{font-size:16.5px;margin-bottom:8px}
.notice-card p{font-size:14px;opacity:.92}

/* 阅读指南 */
.guide-wrap{display:grid;grid-template-columns:1.4fr 1fr;gap:34px;align-items:start}
.guide-text p{font-size:15.2px;margin-bottom:14px;opacity:.95}
.check-list{display:flex;flex-direction:column;gap:14px}
.check-item{
  display:flex;gap:12px;align-items:flex-start;
  background:var(--card);border:1px solid var(--border);
  border-radius:var(--radius);padding:14px 16px;font-size:14.2px;
}
.check-item b{color:var(--accent-2);font-size:16px;line-height:1.4}

/* APP下载 */
.app-download{text-align:center}
.app-download p{max-width:720px;margin:0 auto 26px;font-size:15.5px;opacity:.95}
.app-btns{display:flex;gap:16px;justify-content:center;flex-wrap:wrap}

/* 评论 */
.comment-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}
.comment-card{
  background:var(--card);border:1px solid var(--border);
  border-radius:var(--radius);padding:18px;
  transition:border-color .25s,transform .25s;
}
.comment-card:hover{border-color:var(--accent-2);transform:translateY(-4px)}
.comment-head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.avatar{
  width:38px;height:38px;border-radius:50%;flex-shrink:0;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;font-size:15px;
}
.comment-head b{font-size:14.5px;color:var(--title);display:block}
.comment-head span{font-size:12.5px;opacity:.8}
.comment-card p{font-size:14.2px;opacity:.95}

/* FAQ */
.faq-list{display:flex;flex-direction:column;gap:14px;max-width:900px;margin:0 auto}
.faq-item{
  background:var(--card);border:1px solid var(--border);
  border-radius:var(--radius);overflow:hidden;
}
.faq-q{
  width:100%;text-align:left;background:transparent;border:none;cursor:pointer;
  font-family:inherit;color:var(--title);font-weight:700;font-size:15.5px;
  padding:18px 20px;display:flex;justify-content:space-between;align-items:center;gap:14px;
}
.faq-q:hover{color:var(--accent-2)}
.faq-q i{font-style:normal;font-size:20px;color:var(--accent-2);transition:transform .3s;flex-shrink:0}
.faq-item.open .faq-q i{transform:rotate(45deg)}
.faq-a{
  max-height:0;overflow:hidden;transition:max-height .35s ease,padding .35s ease;
  padding:0 20px;font-size:14.4px;opacity:.95;
}
.faq-item.open .faq-a{max-height:340px;padding:0 20px 18px}

/* 侧边栏布局区 */
.with-sidebar{display:grid;grid-template-columns:1fr 330px;gap:34px;align-items:start}
.sidebar{display:flex;flex-direction:column;gap:22px;position:sticky;top:96px}
.side-card{
  background:var(--card);border:1px solid var(--border);
  border-radius:var(--radius);padding:20px;
}
.side-card h3{font-size:16.5px;margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid var(--border)}
.rank-list{display:flex;flex-direction:column;gap:10px}
.rank-item{display:flex;align-items:center;gap:10px;font-size:14px}
.rank-num{
  width:22px;height:22px;border-radius:7px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  font-size:12px;font-weight:800;background:var(--accent-soft);color:var(--accent-2);
}
.rank-item:nth-child(1) .rank-num{background:linear-gradient(135deg,#ff8a3d,#ff5e7e);color:#fff}
.rank-item:nth-child(2) .rank-num{background:linear-gradient(135deg,#7c5cff,#9d7cff);color:#fff}
.rank-item:nth-child(3) .rank-num{background:linear-gradient(135deg,#1fb9d6,#2ad1a8);color:#fff}
.rank-item a{color:var(--text);flex:1}
.rank-item a:hover{color:var(--link-hover);text-decoration:underline}
.rank-item em{font-style:normal;font-size:12.5px;color:var(--accent-2);font-weight:700}
.stat-list{display:flex;flex-direction:column;gap:12px}
.stat-line{display:flex;justify-content:space-between;font-size:14px;padding-bottom:9px;border-bottom:1px dashed var(--border)}
.stat-line:last-child{border-bottom:none;padding-bottom:0}
.stat-line b{color:var(--accent-2);font-weight:800}

/* 底部 */
footer{
  border-top:1px solid var(--border);margin-top:40px;
  background:rgba(0,0,0,.18);padding:56px 0 26px;
}
html[data-theme="light"] footer{background:rgba(40,62,100,.04)}
.footer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:30px}
.footer-col h4{font-size:16px;margin-bottom:14px;color:var(--title)}
.footer-col a{display:block;font-size:14px;color:var(--text);opacity:.9;padding:5px 0}
.footer-col a:hover{color:var(--link-hover);text-decoration:underline;opacity:1}
.friend-links{
  margin-top:34px;padding-top:22px;border-top:1px solid var(--border);
  display:flex;flex-wrap:wrap;gap:10px 18px;font-size:13.5px;
}
.copyright{
  margin-top:22px;padding-top:20px;border-top:1px solid var(--border);
  font-size:13.2px;opacity:.9;text-align:center;line-height:2;
}
.copyright a{color:var(--link)}

/* 返回顶部 */
#backTop{
  position:fixed;right:22px;bottom:26px;z-index:1100;
  width:48px;height:48px;border-radius:14px;border:none;cursor:pointer;
  background:linear-gradient(135deg,var(--accent),var(--accent-2));
  color:#fff;font-size:20px;font-weight:800;
  box-shadow:0 8px 24px rgba(124,92,255,.42);
  opacity:0;visibility:hidden;transform:translateY(14px);
  transition:opacity .3s,visibility .3s,transform .3s;
}
#backTop.show{opacity:1;visibility:visible;transform:translateY(0)}
#backTop:hover{transform:translateY(-4px)}

/* 响应式 */
@media (max-width:1080px){
  .grid-cards{grid-template-columns:repeat(3,1fr)}
  .with-sidebar{grid-template-columns:1fr}
  .sidebar{position:static;flex-direction:row;flex-wrap:wrap}
  .side-card{flex:1 1 300px}
}
@media (max-width:900px){
  nav.main-nav{display:none}
  .search-box{display:none}
  .hamburger{display:flex}
  .rec-card{grid-template-columns:1fr}
  .rec-card img{aspect-ratio:300/200}
  .detail-wrap{grid-template-columns:1fr}
  .detail-side{position:static}
  .role-grid{grid-template-columns:1fr}
  .platform-wrap,.sync-wrap,.guide-wrap{grid-template-columns:1fr}
  .notice-grid{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:repeat(2,1fr)}
  .feature-squares{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:620px){
  .grid-cards{grid-template-columns:repeat(2,1fr);gap:14px}
  .comment-grid{grid-template-columns:1fr}
  .notice-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .feature-squares{grid-template-columns:1fr}
  .hero-stats{grid-template-columns:1fr}
  .role-card{flex-direction:column;align-items:center;text-align:center}
  .role-card img{width:150px;height:150px}
  .sync-imgs img{width:100%;height:auto;aspect-ratio:400/600}
  section{padding:46px 0}
  .btn-primary,.btn-ghost{padding:9px 16px;font-size:14px}
}