*{margin:0;padding:0;box-sizing:border-box}
:root{
--bg1:#0b0b18;
--bg2:#15152c;
--card:#1a1a36;
--border:#2e2e58;
--text:#e9e9f4;
--title:#f2f2ff;
--accent:#7c5cff;
--accent2:#9d7cff;
--link:#9d7cff;
--shadow:0 10px 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:#6c4df6;
--shadow:0 10px 30px rgba(40,62,100,.12);
}
html{scroll-behavior:smooth}
body{
font-family:"PingFang SC","Microsoft YaHei",system-ui,-apple-system,sans-serif;
background:linear-gradient(160deg,var(--bg1),var(--bg2));
color:var(--text);
line-height:1.75;
min-height:100vh;
transition:background .4s ease,color .4s ease;
}
img{display:block;max-width:100%;height:auto}
a{color:var(--link);text-decoration:none;transition:color .2s,text-decoration .2s}
a:hover{color:var(--accent2);text-decoration:underline}
h1,h2,h3,h4{color:var(--title);line-height:1.35}
h1{font-size:clamp(1.6rem,4vw,2.6rem)}
h2{font-size:clamp(1.35rem,3vw,2rem);margin-bottom:1rem}
h3{font-size:clamp(1.05rem,2vw,1.25rem)}

/* progress bar */
#progress-bar{
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;
background:rgba(11,11,24,.72);
backdrop-filter:blur(14px);
-webkit-backdrop-filter:blur(14px);
border-bottom:1px solid transparent;
transition:box-shadow .3s,border-color .3s,background .3s;
}
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 8px 24px rgba(0,0,0,.35);
}
html[data-theme="light"] header.site-header.scrolled{box-shadow:0 8px 24px rgba(40,62,100,.12)}
.nav-wrap{
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:800;font-size:1.05rem;color:var(--title);
white-space:nowrap;
}
.logo .logo-mark{
width:38px;height:38px;border-radius:11px;
background:linear-gradient(135deg,var(--accent),var(--accent2));
display:flex;align-items:center;justify-content:center;
font-size:1.1rem;color:#fff;font-weight:900;flex:0 0 auto;
}
nav.main-nav{display:flex;gap:.35rem;margin-left:.5rem;flex:1}
nav.main-nav a{
padding:.45rem .7rem;border-radius:9px;font-size:.92rem;
color:var(--text);font-weight:500;
}
nav.main-nav a:hover{background:rgba(124,92,255,.16);color:var(--accent2);text-decoration:none}
.nav-right{display:flex;align-items:center;gap:.55rem}
.search-box{
display:flex;align-items:center;gap:.4rem;
background:var(--card);border:1px solid var(--border);
border-radius:10px;padding:.35rem .6rem;
}
.search-box input{
background:transparent;border:none;outline:none;color:var(--text);
font-size:.88rem;width:130px;font-family:inherit;
}
.search-box input::placeholder{color:var(--text);opacity:.55}
.search-box button{
background:linear-gradient(135deg,var(--accent),var(--accent2));
border:none;color:#fff;border-radius:7px;padding:.3rem .6rem;
cursor:pointer;font-size:.82rem;font-family:inherit;
}
.btn-theme,.btn-cta{
border:1px solid var(--border);background:var(--card);color:var(--text);
border-radius:10px;padding:.45rem .75rem;cursor:pointer;
font-size:.85rem;font-family:inherit;transition:.25s;
}
.btn-theme:hover{border-color:var(--accent);color:var(--accent2)}
.btn-cta{
background:linear-gradient(135deg,var(--accent),var(--accent2));
color:#fff;border:none;font-weight:600;
}
.btn-cta:hover{filter:brightness(1.12);text-decoration:none}
.hamburger{
display:none;background:transparent;border:1px solid var(--border);
color:var(--text);border-radius:9px;width:42px;height:38px;
cursor:pointer;font-size:1.15rem;
}
.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,.96);
}
html[data-theme="light"] .mobile-menu{background:rgba(246,248,255,.98)}
.mobile-menu.open{display:flex}
.mobile-menu a{padding:.6rem .5rem;border-radius:8px;color:var(--text);font-size:.95rem}
.mobile-menu a:hover{background:rgba(124,92,255,.16);text-decoration:none}

/* layout */
main{max-width:1280px;margin:0 auto;padding:0 1.2rem}
section{padding:3.2rem 0}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-bottom:1.6rem;flex-wrap:wrap}
.section-head p{font-size:.9rem;opacity:.8;max-width:560px}

/* hero */
.hero{
min-height:76vh;display:flex;flex-direction:column;
align-items:center;justify-content:center;text-align:center;
padding:7.5rem 1.2rem 3rem;gap:1rem;
}
.hero-logo{
width:200px;height:200px;border-radius:44px;object-fit:cover;
border:1px solid var(--border);box-shadow:var(--shadow);
background:var(--card);
}
.hero h1{max-width:900px}
.hero .slogan{
font-size:clamp(1rem,2.2vw,1.25rem);color:var(--accent2);
font-weight:600;letter-spacing:.5px;
}
.hero .intro{max-width:720px;font-size:.98rem;opacity:.92}
.hero-cta{display:flex;gap:.8rem;flex-wrap:wrap;justify-content:center;margin-top:.6rem}
.hero-cta a{
padding:.75rem 1.5rem;border-radius:12px;font-weight:600;font-size:.95rem;
border:1px solid var(--border);background:var(--card);color:var(--text);
transition:.25s;
}
.hero-cta a.primary{
background:linear-gradient(135deg,var(--accent),var(--accent2));
color:#fff;border:none;
}
.hero-cta a:hover{transform:translateY(-3px);text-decoration:none;box-shadow:var(--shadow)}
.hero-stats{
display:flex;gap:2.2rem;flex-wrap:wrap;justify-content:center;
margin-top:1.6rem;
}
.hero-stats div{text-align:center}
.hero-stats strong{display:block;font-size:1.6rem;color:var(--accent2);font-weight:800}
.hero-stats span{font-size:.82rem;opacity:.8}

/* grid cards */
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:1.1rem}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:1.1rem}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:1.1rem}
.card{
background:var(--card);border:1px solid var(--border);border-radius:16px;
overflow:hidden;transition:transform .28s,border-color .28s,box-shadow .28s;
position:relative;display:flex;flex-direction:column;
}
.card:hover{transform:translateY(-7px);border-color:var(--accent);box-shadow:var(--shadow)}
.card .cover{width:100%;height:auto;aspect-ratio:220/310;object-fit:cover;background:var(--bg2)}
.card .card-body{padding:.8rem .9rem 1rem;display:flex;flex-direction:column;gap:.3rem;flex:1}
.card h3{font-size:1rem;margin-bottom:.15rem}
.card .meta{font-size:.78rem;opacity:.82;display:flex;flex-wrap:wrap;gap:.35rem .9rem}
.badge{
position:absolute;top:.6rem;left:.6rem;z-index:2;
font-size:.7rem;padding:.2rem .55rem;border-radius:20px;
background:rgba(124,92,255,.9);color:#fff;font-weight:600;
}
.badge.done{background:rgba(31,185,214,.92)}
.badge-read{
position:absolute;top:.6rem;right:.6rem;z-index:2;
font-size:.7rem;padding:.2rem .55rem;border-radius:20px;
background:rgba(11,11,24,.75);color:#e9e9f4;border:1px solid rgba(255,255,255,.18);
}
html[data-theme="light"] .badge-read{background:rgba(13,8,32,.72);color:#f2f2ff}
.type-tag{
display:inline-block;font-size:.72rem;padding:.15rem .5rem;border-radius:6px;
background:rgba(124,92,255,.18);color:var(--accent2);border:1px solid rgba(124,92,255,.35);
}

/* 精品推荐 */
.feature-card{
display:grid;grid-template-columns:300px 1fr;gap:1.2rem;
background:var(--card);border:1px solid var(--border);border-radius:18px;
padding:1rem;transition:transform .28s,border-color .28s,box-shadow .28s;
}
.feature-card:hover{transform:translateY(-5px);border-color:var(--accent);box-shadow:var(--shadow)}
.feature-card img{width:300px;height:200px;object-fit:cover;border-radius:12px}
.feature-card .f-body{display:flex;flex-direction:column;gap:.45rem}
.feature-card .f-body p{font-size:.9rem;opacity:.92}
.tag-row{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.25rem}

/* 详细介绍 */
.detail-split{display:grid;grid-template-columns:280px 1fr;gap:1.4rem;align-items:start}
.detail-aside{
background:linear-gradient(150deg,rgba(124,92,255,.22),rgba(31,185,214,.14));
border:1px solid var(--border);border-radius:18px;padding:1.6rem 1.3rem;
position:sticky;top:90px;
}
.detail-aside .num{font-size:4.2rem;font-weight:900;color:var(--accent2);line-height:1}
.detail-aside p{margin-top:.7rem;font-size:.92rem}
.detail-body p{margin-bottom:1rem;font-size:.95rem}
.detail-tags{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:1.2rem}
.detail-tags span{
padding:.4rem .9rem;border-radius:20px;font-size:.82rem;
background:var(--card);border:1px solid var(--border);color:var(--accent2);
}

/* 角色 */
.char-card{
display:grid;grid-template-columns:180px 1fr;gap:1.1rem;
background:var(--card);border:1px solid var(--border);border-radius:16px;
padding:1rem;transition:transform .28s,border-color .28s;
}
.char-card:hover{transform:translateY(-5px);border-color:var(--accent)}
.char-card img{width:180px;height:180px;object-fit:cover;border-radius:14px}
.char-card .role{
display:inline-block;font-size:.75rem;padding:.15rem .6rem;border-radius:20px;
background:rgba(31,185,214,.18);color:var(--accent2);border:1px solid rgba(31,185,214,.4);
margin-bottom:.35rem;
}
.char-card p{font-size:.88rem;opacity:.92;margin-top:.3rem}
.char-card .ability{font-size:.82rem;color:var(--accent2);margin-top:.35rem}

/* 平台介绍 */
.platform-split{display:grid;grid-template-columns:1.3fr 1fr;gap:1.6rem;align-items:start}
.platform-split p{margin-bottom:1rem;font-size:.95rem}
.steps{display:flex;flex-direction:column;gap:.9rem}
.step{
background:var(--card);border:1px solid var(--border);border-radius:14px;
padding:.9rem 1rem;display:flex;gap:.8rem;align-items:flex-start;
}
.step .sn{
width:34px;height:34px;flex:0 0 auto;border-radius:10px;
background:linear-gradient(135deg,var(--accent),var(--accent2));
color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;
}
.step h4{font-size:.95rem;margin-bottom:.15rem}
.step p{font-size:.83rem;opacity:.88;margin:0}
.feature-squares{display:grid;grid-template-columns:repeat(3,1fr);gap:.9rem;margin-top:1.6rem}
.feature-squares div{
background:var(--card);border:1px solid var(--border);border-radius:14px;
padding:.9rem;text-align:center;font-size:.88rem;font-weight:600;color:var(--accent2);
}

/* 多端同步 */
.sync-split{display:grid;grid-template-columns:1fr 1fr;gap:1.6rem;align-items:center}
.sync-split .device-img{width:400px;height:600px;object-fit:cover;border-radius:18px;border:1px solid var(--border);margin:0 auto}

/* 公告 */
.notice-card{
background:var(--card);border:1px solid var(--border);border-radius:14px;
padding:1rem;transition:transform .25s,border-color .25s;
}
.notice-card:hover{transform:translateY(-4px);border-color:var(--accent)}
.notice-card .date{font-size:.76rem;color:var(--accent2);font-weight:600}
.notice-card h3{font-size:.98rem;margin:.3rem 0}
.notice-card p{font-size:.85rem;opacity:.9}

/* 阅读指南 */
.guide-split{display:grid;grid-template-columns:1.4fr 1fr;gap:1.6rem;align-items:start}
.guide-split p{margin-bottom:1rem;font-size:.95rem}
.checklist{display:flex;flex-direction:column;gap:.7rem}
.checklist li{
list-style:none;background:var(--card);border:1px solid var(--border);
border-radius:12px;padding:.7rem .9rem;font-size:.88rem;
display:flex;gap:.6rem;align-items:flex-start;
}
.checklist li::before{content:"✔";color:var(--accent2);font-weight:800}

/* APP下载 */
.app-download{
text-align:center;background:var(--card);border:1px solid var(--border);
border-radius:22px;padding:2.6rem 1.4rem;box-shadow:var(--shadow);
}
.app-download p{max-width:680px;margin:.8rem auto 1.4rem;font-size:.95rem}
.app-btns{display:flex;gap:.9rem;justify-content:center;flex-wrap:wrap}
.app-btns a{
padding:.8rem 1.7rem;border-radius:12px;font-weight:600;font-size:.95rem;
border:1px solid var(--border);background:var(--bg2);color:var(--text);transition:.25s;
}
.app-btns a.primary{background:linear-gradient(135deg,var(--accent),var(--accent2));color:#fff;border:none}
.app-btns a:hover{transform:translateY(-3px);text-decoration:none}

/* 评论 */
.comment-card{
background:var(--card);border:1px solid var(--border);border-radius:14px;
padding:1rem;transition:border-color .25s;
}
.comment-card:hover{border-color:var(--accent)}
.comment-head{display:flex;justify-content:space-between;align-items:center;gap:.6rem;margin-bottom:.5rem}
.comment-head strong{font-size:.92rem;color:var(--accent2)}
.comment-head time{font-size:.75rem;opacity:.75}
.comment-card p{font-size:.88rem;opacity:.94}

/* FAQ */
.faq-item{
background:var(--card);border:1px solid var(--border);border-radius:14px;
margin-bottom:.8rem;overflow:hidden;
}
.faq-q{
width:100%;text-align:left;background:transparent;border:none;cursor:pointer;
padding:1rem 1.1rem;font-size:.96rem;font-weight:600;color:var(--title);
font-family:inherit;display:flex;justify-content:space-between;gap:1rem;align-items:center;
}
.faq-q:hover{color:var(--accent2)}
.faq-q .arrow{transition:transform .3s;color:var(--accent2);font-size:1.1rem}
.faq-item.open .faq-q .arrow{transform:rotate(180deg)}
.faq-a{
max-height:0;overflow:hidden;transition:max-height .35s ease,padding .3s ease;
padding:0 1.1rem;font-size:.9rem;opacity:.94;
}
.faq-item.open .faq-a{padding:0 1.1rem 1rem;max-height:400px}

/* 侧边栏 */
.layout-with-aside{display:grid;grid-template-columns:1fr 320px;gap:1.6rem;align-items:start}
aside.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.1rem;
}
.side-box 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 li{
list-style:none;display:flex;gap:.65rem;align-items:center;font-size:.86rem;
}
.rank-list .rk{
width:22px;height:22px;flex:0 0 auto;border-radius:7px;
display:flex;align-items:center;justify-content:center;
font-size:.74rem;font-weight:800;background:var(--bg2);color:var(--accent2);
border:1px solid var(--border);
}
.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:none;
}
.rank-list a{color:var(--text)}
.rank-list a:hover{color:var(--accent2)}
.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:.7rem}
.stat-grid div{
background:var(--bg2);border:1px solid var(--border);border-radius:12px;
padding:.65rem;text-align:center;
}
html[data-theme="light"] .stat-grid div{background:#f2f5fd}
.stat-grid strong{display:block;font-size:1.05rem;color:var(--accent2);font-weight:800}
.stat-grid span{font-size:.74rem;opacity:.82}

/* footer */
footer.site-footer{
border-top:1px solid var(--border);margin-top:2rem;
background:rgba(11,11,24,.55);
}
html[data-theme="light"] footer.site-footer{background:rgba(238,242,251,.7)}
.footer-grid{
max-width:1280px;margin:0 auto;padding:2.6rem 1.2rem 1.4rem;
display:grid;grid-template-columns:repeat(4,1fr);gap:1.6rem;
}
.footer-grid h4{font-size:.98rem;margin-bottom:.8rem;color:var(--title)}
.footer-grid ul{list-style:none;display:flex;flex-direction:column;gap:.45rem}
.footer-grid a{font-size:.85rem;color:var(--text)}
.footer-grid a:hover{color:var(--accent2)}
.friend-links{
max-width:1280px;margin:0 auto;padding:0 1.2rem 1.2rem;
display:flex;flex-wrap:wrap;gap:.6rem .9rem;font-size:.82rem;
}
.friend-links a{color:var(--link)}
.copyright{
max-width:1280px;margin:0 auto;padding:1rem 1.2rem 2.2rem;
border-top:1px solid var(--border);font-size:.8rem;opacity:.85;
display:flex;flex-wrap:wrap;gap:.6rem 1.2rem;justify-content:space-between;
}
.copyright .legal{display:flex;flex-wrap:wrap;gap:.6rem 1.1rem}

/* back to top */
#back-top{
position:fixed;right:1.2rem;bottom:1.4rem;z-index:1600;
width:46px;height:46px;border-radius:14px;border:1px solid var(--border);
background:linear-gradient(135deg,var(--accent),var(--accent2));
color:#fff;font-size:1.15rem;cursor:pointer;
display:flex;align-items:center;justify-content:center;
opacity:0;visibility:hidden;transform:translateY(12px);
transition:.3s;box-shadow:var(--shadow);
}
#back-top.show{opacity:1;visibility:visible;transform:translateY(0)}

/* responsive */
@media(max-width:1024px){
.grid-4{grid-template-columns:repeat(3,1fr)}
.layout-with-aside{grid-template-columns:1fr}
aside.sidebar{position:static}
.detail-split{grid-template-columns:1fr}
.detail-aside{position:static}
.platform-split,.guide-split,.sync-split{grid-template-columns:1fr}
.feature-card{grid-template-columns:240px 1fr}
.feature-card img{width:240px;height:170px}
}
@media(max-width:820px){
nav.main-nav,.search-box{display:none}
.hamburger{display:block}
.grid-4{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(2,1fr)}
.grid-2{grid-template-columns:1fr}
.feature-card{grid-template-columns:1fr}
.feature-card img{width:100%;height:200px}
.char-card{grid-template-columns:120px 1fr}
.char-card img{width:120px;height:120px}
.footer-grid{grid-template-columns:repeat(2,1fr)}
.feature-squares{grid-template-columns:repeat(2,1fr)}
.sync-split .device-img{width:100%;max-width:400px;height:auto}
}
@media(max-width:520px){
.grid-4,.grid-3{grid-template-columns:1fr 1fr}
.hero-stats{gap:1.3rem}
.footer-grid{grid-template-columns:1fr}
.feature-squares{grid-template-columns:1fr}
.char-card{grid-template-columns:1fr}
.char-card img{width:100%;height:auto}
}