/* ============ 设计变量 ============ */
:root{
  --bg:#1a120d;
  --bg-soft:#211711;
  --surface:#2a1d15;
  --surface-2:#34251b;
  --surface-3:#412f22;
  --line:#4b3626;
  --text:#ffffff;
  --dim:#d6c2b1;
  --dim-2:#a48b77;
  --accent:#e0b58a;
  --accent-soft:#e0b58a26;
  --brand:#4a2c1a;
  --ok:#8bd6a0;
  --radius:14px;
  --radius-sm:10px;
  --ease:cubic-bezier(.22,.61,.36,1);
  --topbar:56px;
  --shadow:0 10px 30px #0006;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--bg);color:var(--text);
  font:14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
img{display:block}
::selection{background:var(--accent);color:#fff}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:#2a323d;border-radius:8px;border:2px solid var(--bg)}
::-webkit-scrollbar-thumb:hover{background:#39434f}

/* ============ 顶栏 ============ */
.topbar{
  position:sticky;top:0;z-index:50;height:var(--topbar);
  display:flex;align-items:center;gap:18px;padding:0 18px;
  background:color-mix(in srgb,var(--bg) 82%,transparent);
  backdrop-filter:saturate(1.4) blur(14px);
  border-bottom:1px solid var(--line);
}
.brand{display:flex;align-items:center;gap:9px}
.brand-mark{
  width:26px;height:26px;border-radius:8px;display:grid;place-items:center;
  background:var(--brand);color:#fff;font-weight:800;font-size:14px;
  box-shadow:inset 0 0 0 1px #ffffff1f;
}
.brand-name{font-weight:650;letter-spacing:.3px;display:flex;align-items:baseline;gap:6px}
.brand-name em{font-style:normal;font-size:11px;color:var(--dim-2);letter-spacing:.6px}
.nav{display:flex;gap:4px;margin-left:8px}
.nav-item{
  padding:7px 13px;border-radius:9px;color:var(--dim);font-size:13.5px;
  transition:background .18s var(--ease),color .18s var(--ease);
}
.nav-item:hover{color:var(--text);background:var(--surface-2)}
.nav-item.active{color:#fff;background:var(--surface-3)}
.topbar-right{margin-left:auto;display:flex;gap:6px}
.icon-btn{
  width:36px;height:36px;border-radius:10px;display:grid;place-items:center;
  color:var(--dim);transition:background .18s var(--ease),color .18s var(--ease),transform .18s var(--ease);
}
.icon-btn:hover{background:var(--surface-2);color:var(--text)}
.icon-btn:active{transform:scale(.94)}
.icon-btn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

.main{max-width:1480px;margin:0 auto;padding:18px 18px 90px}

/* ============ 通用 ============ */
.section-head{display:flex;align-items:baseline;gap:12px;margin:6px 2px 14px}
.section-title{font-size:16px;font-weight:650;letter-spacing:.2px}
.section-sub{color:var(--dim-2);font-size:12.5px}
.chips{display:flex;gap:8px;overflow-x:auto;padding:2px 0 10px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{
  flex:0 0 auto;padding:7px 14px;border-radius:999px;background:var(--surface);
  border:1px solid var(--line);color:var(--dim);font-size:13px;
  transition:all .18s var(--ease);
}
.chip:hover{color:var(--text);border-color:#333c47}
.chip.active{background:var(--accent);border-color:var(--accent);color:#241710}
.empty{padding:64px 0;text-align:center;color:var(--dim-2)}

/* ============ 封面网格 ============ */
.grid{
  display:grid;gap:16px 14px;
  grid-template-columns:repeat(auto-fill,minmax(168px,1fr));
}
@media(max-width:560px){
  .grid{grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:14px 10px}
}
.card{position:relative;cursor:pointer;border-radius:var(--radius);outline:none}
.card .thumb{
  position:relative;width:100%;aspect-ratio:3/4;border-radius:var(--radius);
  overflow:hidden;background:var(--surface-2);isolation:isolate;
}
.card .thumb img{
  width:100%;height:100%;object-fit:cover;
  opacity:0;transform:scale(1.02);
  transition:opacity .45s var(--ease),transform .6s var(--ease);
}
.card .thumb img.loaded{opacity:1;transform:none}
.card:hover .thumb img.loaded{transform:scale(1.045)}
.card .title{
  margin-top:9px;font-size:13px;line-height:1.4;color:var(--text);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  transition:color .18s var(--ease);
}
.card:hover .title{color:#fff}
.card .meta{margin-top:5px;display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.tag{
  font-size:11px;padding:2px 7px;border-radius:6px;
  background:var(--surface-2);color:var(--dim);white-space:nowrap;
}
.tag.vip{background:var(--accent-soft);color:#ff8ea5}
.card .thumb::after{
  content:"";position:absolute;inset:0;border-radius:inherit;
  box-shadow:inset 0 0 0 1px #ffffff0d;pointer-events:none;
}

/* 骨架 / 占位 */
.ph{
  position:absolute;inset:0;overflow:hidden;background:var(--surface-2);
  display:flex;align-items:center;justify-content:center;
}
.ph::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(100deg,transparent 20%,#ffffff08 40%,transparent 60%);
  transform:translateX(-100%);animation:shimmer 1.3s infinite;
}
@keyframes shimmer{100%{transform:translateX(100%)}}
.spinner{
  width:22px;height:22px;border-radius:50%;
  border:2px solid #ffffff1f;border-top-color:var(--accent);
  animation:spin .75s linear infinite;
  position:absolute;left:50%;top:50%;translate:-50% -50%;
}
@keyframes spin{to{rotate:360deg}}
.ph-err{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  font-size:11px;color:var(--dim-2);letter-spacing:.5px;
}

/* ============ 详情页 ============ */
.detail-hero{
  position:relative;display:flex;gap:22px;padding:22px;border-radius:18px;
  background:var(--surface);border:1px solid var(--line);overflow:hidden;
}
.detail-hero .glow{
  position:absolute;inset:-40%;background-position:center;background-size:cover;
  filter:blur(60px) saturate(1.2);opacity:.25;z-index:0;
}
.detail-hero > *{position:relative;z-index:1}
.detail-cover{
  width:190px;aspect-ratio:3/4;border-radius:12px;object-fit:cover;flex:0 0 auto;
  background:var(--surface-2);box-shadow:var(--shadow);
}
.detail-body{flex:1;min-width:0}
.detail-title{font-size:22px;font-weight:700;margin:2px 0 10px;line-height:1.3}
.detail-meta{display:flex;flex-wrap:wrap;gap:8px 14px;color:var(--dim);font-size:13px;margin-bottom:14px}
.detail-desc{color:var(--dim);font-size:13px;line-height:1.7;margin:10px 0 16px;max-width:70ch}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:6px}
.btn{
  display:inline-flex;align-items:center;gap:7px;
  padding:10px 18px;border-radius:10px;background:var(--surface-3);
  font-size:13.5px;font-weight:550;
  transition:transform .16s var(--ease),background .18s var(--ease),opacity .18s;
}
.btn:hover{background:#2a323d}
.btn:active{transform:scale(.97)}
.btn.primary{background:var(--accent);color:#241710;font-weight:600}
.btn.primary:hover{background:#ecc79f}
.btn.ghost{background:transparent;border:1px solid var(--line)}
.btn:disabled{opacity:.5;cursor:default}
.btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.chapter-block{margin-top:26px}
.chapter-tools{display:flex;align-items:center;gap:10px;margin-bottom:12px;flex-wrap:wrap}
.chapter-grid{
  display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));
  content-visibility:auto;contain-intrinsic-size:400px;
}
.chapter{
  padding:9px 10px;border-radius:9px;background:var(--surface);
  border:1px solid var(--line);font-size:12.5px;color:var(--dim);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  transition:all .16s var(--ease);text-align:center;
}
.chapter:hover{color:#fff;border-color:#3a4450;background:var(--surface-2)}
.chapter.read{color:var(--dim-2)}
.chapter.current{border-color:var(--accent);color:#fff;background:var(--accent-soft)}

/* ============ 阅读器 ============ */
body.reading{background:#07080a}
body.reading .topbar{display:none}
body.reading .main{max-width:880px;padding:0 0 120px}
.reader-pages{display:flex;flex-direction:column;gap:0}
.page{position:relative;background:#0a0c0f;overflow:hidden}
.page img{width:100%;height:auto;opacity:0;transition:opacity .35s var(--ease)}
.page img.loaded{opacity:1}
.page .ph{border-bottom:1px solid #ffffff08}
.page .ph.hide,.thumb .ph.hide,.ph.hide{display:none}
.reader-chrome{
  position:fixed;top:0;left:0;right:0;z-index:60;
  background:color-mix(in srgb,var(--bg) 86%,transparent);backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
  transition:transform .28s var(--ease),opacity .28s var(--ease);
}
.reader-chrome.hidden{transform:translateY(-100%);opacity:0;pointer-events:none}
.reader-progress{height:2px;background:#ffffff10}
.reader-progress i{display:block;height:100%;width:0;background:var(--accent);transition:width .12s linear}
.reader-info{display:flex;align-items:center;gap:12px;padding:9px 14px;font-size:13px}
.reader-title{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.reader-count{color:var(--dim);margin-left:auto;font-variant-numeric:tabular-nums}
.chip-btn{
  padding:5px 12px;border-radius:8px;background:var(--surface-2);color:var(--dim);font-size:12.5px;
  transition:all .16s var(--ease);
}
.chip-btn:hover{background:var(--surface-3);color:var(--text)}
.reader-nav{
  position:fixed;right:18px;bottom:26px;z-index:55;display:flex;flex-direction:column;gap:8px;
}
.fab{
  width:42px;height:42px;border-radius:12px;display:grid;place-items:center;
  background:var(--surface-2);border:1px solid var(--line);color:var(--dim);
  box-shadow:var(--shadow);transition:all .18s var(--ease);
}
.fab:hover{color:#fff;background:var(--surface-3);transform:translateY(-2px)}
.fab svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ============ 搜索面板 ============ */
.search-panel{
  position:fixed;inset:0;z-index:70;background:color-mix(in srgb,var(--bg) 96%,transparent);
  backdrop-filter:blur(6px);padding:18px;overflow:auto;
}
.search-inner{max-width:1080px;margin:0 auto;padding:6px 4px 48px}
.search-form{display:flex;align-items:center;gap:10px;max-width:720px;margin:6px auto 16px}
.search-tabs{display:flex;justify-content:center;gap:10px;margin:0 auto 18px}
.search-suggest{max-width:720px;margin:0 auto 18px;display:flex;flex-direction:column;gap:10px}
.sug-row{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.sug-label{font-size:12px;color:var(--dim-2);flex:0 0 auto}
.sug-clear{font-size:11.5px;color:var(--dim-2);margin-left:4px}
.sug-clear:hover{color:var(--accent)}
.search-ico{width:18px;height:18px;fill:none;stroke:var(--dim);stroke-width:2;position:absolute;margin-left:16px}
.search-form input{
  flex:1;padding:13px 16px 13px 44px;border-radius:12px;border:1px solid var(--line);
  background:var(--surface);color:var(--text);font-size:14.5px;outline:none;
  transition:border-color .18s var(--ease),background .18s var(--ease);
}
.search-form input:focus{border-color:var(--accent);background:var(--surface-2)}
.search-results{margin:0 auto}
.search-empty{text-align:center;color:var(--dim-2);padding:40px}

/* ============ 视频 ============ */
.video-card .thumb{aspect-ratio:16/10}
.video-detail .player{
  aspect-ratio:16/9;border-radius:14px;background:#000;display:grid;place-items:center;
  color:var(--dim);border:1px solid var(--line);
}

/* ============ 批量下载 ============ */
.batch{max-width:980px;margin:0 auto}
.panel{
  background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:18px;margin-bottom:16px;
}
.panel h3{margin:0 0 4px;font-size:15px;font-weight:650}
.panel .hint{color:var(--dim-2);font-size:12.5px;margin-bottom:14px}
.field{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0}
.field label{color:var(--dim);font-size:13px;min-width:64px}
.input{
  flex:1;min-width:280px;padding:10px 13px;border-radius:10px;border:1px solid var(--line);
  background:var(--surface-2);color:var(--text);font-size:13.5px;outline:none;
  transition:border-color .18s var(--ease);
}
.input:focus{border-color:var(--accent)}
.pct-row{display:flex;gap:8px;flex-wrap:wrap}
.pct{
  padding:8px 16px;border-radius:9px;background:var(--surface-2);border:1px solid var(--line);
  color:var(--dim);font-size:13px;transition:all .16s var(--ease);
}
.pct:hover{color:var(--text)}
.pct.active{background:var(--accent);border-color:var(--accent);color:#fff}
.progress{height:8px;border-radius:99px;background:var(--surface-3);overflow:hidden;margin:16px 0 10px}
.progress i{display:block;height:100%;width:0;background:var(--accent);border-radius:99px;transition:width .4s var(--ease)}
.stats{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.stat{background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-size:12px;color:var(--dim)}
.stat b{display:block;font-size:17px;color:var(--text);font-weight:650;margin-top:2px;font-variant-numeric:tabular-nums}
.batch-log{color:var(--dim);font-size:12.5px;margin-top:10px;min-height:20px}
.err-retry{color:#f0a6a6;cursor:pointer}
.err-retry:hover{text-decoration:underline}

/* ============ 杂项 ============ */
.toast{
  position:fixed;left:50%;bottom:34px;translate:-50% 0;z-index:99;
  background:#000d;color:#fff;padding:10px 18px;border-radius:10px;font-size:13px;
  opacity:0;transform:translateY(8px);pointer-events:none;
  transition:all .25s var(--ease);border:1px solid #ffffff14;
}
.toast.show{opacity:1;transform:none}
.scroll-top{
  position:fixed;right:18px;bottom:26px;z-index:40;width:42px;height:42px;border-radius:12px;
  display:grid;place-items:center;background:var(--surface-2);border:1px solid var(--line);
  color:var(--dim);box-shadow:var(--shadow);
  opacity:0;transform:translateY(10px);pointer-events:none;transition:all .22s var(--ease);
}
.scroll-top.show{opacity:1;transform:none;pointer-events:auto}
.scroll-top:hover{color:#fff;background:var(--surface-3)}
.scroll-top svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.load-more{display:grid;place-items:center;padding:26px 0}
.load-more .spinner{position:static;translate:none}

/* 页面切换过渡 */
::view-transition-old(root),::view-transition-new(root){animation-duration:.22s}
.fade-in{animation:fadeIn .28s var(--ease) both}
@keyframes fadeIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.stagger > *{animation:fadeIn .3s var(--ease) both}
.stagger > *:nth-child(1){animation-delay:.01s}
.stagger > *:nth-child(2){animation-delay:.03s}
.stagger > *:nth-child(3){animation-delay:.05s}
.stagger > *:nth-child(4){animation-delay:.07s}
.stagger > *:nth-child(5){animation-delay:.09s}
.stagger > *:nth-child(6){animation-delay:.11s}
.stagger > *:nth-child(7){animation-delay:.13s}
.stagger > *:nth-child(8){animation-delay:.15s}
.stagger > *:nth-child(n+9){animation-delay:.17s}

@media(max-width:720px){
  .main{padding:14px 12px 80px}
  .topbar{padding:0 12px;gap:10px}
  .brand-name{display:none}
  .nav-item{padding:6px 10px}
  .detail-hero{flex-direction:column;padding:16px;gap:14px}
  .detail-cover{width:132px}
  .detail-title{font-size:18px}
  .reader-info{padding:8px 10px}
  .reader-title{font-size:12.5px}
}

/* ============ 路由过渡 ============ */
.fade-slide-enter-active,.fade-slide-leave-active{transition:opacity .2s var(--ease),transform .2s var(--ease)}
.fade-slide-enter{opacity:0;transform:translateY(8px)}
.fade-slide-leave-to{opacity:0;transform:translateY(-6px)}

/* 阅读器容器 */
body.reading .reader{max-width:880px;margin:0 auto}
body.reading .main{padding:0 0 120px}
.reader-pages{display:flex;flex-direction:column}

/* ============ 细节打磨 ============ */
html,body{overflow-x:hidden}
.grid .card{animation:fadeIn .32s var(--ease) both}

@media(max-width:720px){
  .nav{overflow-x:auto;scrollbar-width:none;max-width:52vw}
  .nav::-webkit-scrollbar{display:none}
  .topbar-right .icon-btn:last-child{display:none}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .detail-hero{padding:14px}
  .detail-cover{width:110px}
  .chapter-grid{grid-template-columns:repeat(auto-fill,minmax(96px,1fr))}
}
@media(prefers-reduced-motion:reduce){
  *{animation-duration:.001ms !important;transition-duration:.001ms !important}
}
.tag-row{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 2px}
.tag-row .tag{font-size:11.5px;padding:3px 9px;border-radius:7px}

/* ============ 目录选择器 ============ */
.modal{position:fixed;inset:0;z-index:80;background:#000a;backdrop-filter:blur(4px);display:grid;place-items:center;padding:20px}
.modal-box{width:min(640px,94vw);max-height:82vh;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);overflow:hidden;animation:pop .18s var(--ease)}
@keyframes pop{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
.modal-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--line)}
.modal-foot{display:flex;justify-content:flex-end;gap:10px;padding:12px 16px;border-top:1px solid var(--line)}
.picker-bar{display:flex;align-items:center;gap:10px;padding:10px 16px}
.picker-path{flex:1;font-size:12.5px;color:var(--dim);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:var(--surface-2);border:1px solid var(--line);border-radius:8px;padding:6px 10px}
.picker-drives{display:flex;gap:8px;flex-wrap:wrap;padding:0 16px 8px}
.picker-list{flex:1;overflow:auto;padding:6px 10px 10px;min-height:180px}
.picker-item{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:9px;cursor:pointer;color:var(--dim);transition:background .15s var(--ease),color .15s var(--ease)}
.picker-item:hover{background:var(--surface-2);color:var(--text)}
.picker-ico{color:var(--accent);font-size:11px}
.picker-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ============ 分区 / 下载中心 ============ */
.chips-topic{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.chips-topic::-webkit-scrollbar{display:none}
.chip.ghost{background:transparent;border:1px solid var(--line);color:var(--dim)}
.chip.ghost:hover{color:var(--text);border-color:var(--accent)}

.topic-block{margin:18px 0 6px}
.topic-head{display:flex;align-items:center;gap:10px;margin:0 0 10px}
.topic-title{font-size:15px;font-weight:600;color:var(--text)}
.topic-title::before{content:'▍';color:var(--accent);margin-right:4px}
.more{margin-left:auto;background:none;border:0;color:var(--dim);font-size:12.5px;cursor:pointer;padding:4px 6px;border-radius:6px}
.more:hover{color:var(--accent);background:var(--surface-2)}

.dl-fab{position:fixed;right:22px;bottom:24px;z-index:70;width:52px;height:52px;border-radius:50%;border:0;cursor:pointer;
  background:var(--accent);color:#fff;font-size:12px;font-weight:600;box-shadow:0 8px 24px #ff4d6d55;transition:transform .18s var(--ease)}
.dl-fab:hover{transform:translateY(-2px) scale(1.04)}
.dl-fab-count{pointer-events:none}

.dl-drawer{position:fixed;right:22px;bottom:86px;z-index:71;width:min(380px,92vw);max-height:60vh;display:flex;flex-direction:column;
  background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 50px #000a;overflow:hidden;animation:pop .16s var(--ease)}
.dl-head{display:flex;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line);font-size:13px}
.dl-sub{color:var(--dim);font-size:12px}
.dl-head .chip-btn{margin-left:auto}
.dl-list{overflow:auto;padding:6px}
.dl-item{display:flex;gap:10px;padding:8px;border-radius:10px}
.dl-item:hover{background:var(--surface-2)}
.dl-thumb{width:38px;height:50px;object-fit:cover;border-radius:6px;background:var(--surface-2);flex:0 0 auto}
.dl-info{min-width:0;flex:1}
.dl-title{font-size:12.5px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dl-state{font-size:11.5px;color:var(--dim);margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dl-state.done{color:#4ade80}
.dl-state.error{color:#f87171}
.dl-state.running{color:var(--accent)}

/* ============ 账号 / 分类 / 搜索 / 队列 ============ */
.chips-scroll{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.chips-scroll::-webkit-scrollbar{display:none}
.sentinel{height:1px}
.login-btn{height:32px;padding:0 14px}
.user-box{display:flex;align-items:center;gap:8px}
.user-name{font-size:12.5px;color:var(--text);text-decoration:none;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-name:hover{color:var(--accent)}

.auth-box{width:min(420px,94vw)}
.auth-body{padding:16px;display:flex;flex-direction:column;gap:10px}
.auth-msg{font-size:12px;color:#f87171;min-height:16px}
.modal .input{width:100%}

.search-hot{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:0 24px 6px}
.search-hot-t{font-size:12px;color:var(--dim)}
.switch{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--dim);cursor:pointer;user-select:none}
.switch input{display:none}
.switch span{width:32px;height:18px;border-radius:99px;background:var(--surface-2);border:1px solid var(--line);position:relative;transition:background .18s var(--ease)}
.switch span::after{content:'';position:absolute;top:1px;left:1px;width:14px;height:14px;border-radius:50%;background:var(--dim);transition:transform .18s var(--ease),background .18s var(--ease)}
.switch input:checked + span{background:var(--accent);border-color:var(--accent)}
.switch input:checked + span::after{transform:translateX(14px);background:#fff}
.switch em{font-style:normal}

.dl-foot{display:flex;gap:8px;justify-content:flex-end;padding:10px 12px;border-top:1px solid var(--line)}

.lock-tip{margin:22px auto 40px;max-width:440px;text-align:center;padding:22px 18px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.lock-title{font-size:14px;font-weight:600;margin-bottom:6px}
.lock-sub{font-size:12.5px;color:var(--dim);margin-bottom:12px}

.mini-btn{margin:6px 0 2px;background:none;border:1px solid var(--line);color:var(--dim);border-radius:8px;padding:4px 8px;font-size:11.5px;cursor:pointer}
.mini-btn:hover{color:var(--accent);border-color:var(--accent)}

.scroll-top{bottom:24px;right:24px}
.scroll-top.show~.dl-fab,.dl-fab{bottom:26px}

/* 队列按钮上移，避免和回到顶部重叠 */
.dl-fab{bottom:86px !important;right:24px !important}
.dl-drawer{bottom:148px !important}

body.no-scroll{overflow:hidden}

/* ============ 阅读器：收藏 + 目录 ============ */
.reader-info .chip-btn.fav{color:var(--accent);border-color:var(--accent)}
.reader-nav .fab.on{background:var(--accent);border-color:var(--accent)}
.reader-nav .fab.on svg{stroke:#fff}
.reader-nav .fab svg{stroke:var(--text);fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.toc-mask{position:fixed;inset:0;z-index:60;background:#0006;backdrop-filter:blur(2px)}
.toc-panel{position:fixed;left:50%;transform:translateX(-50%);bottom:0;z-index:61;width:min(560px,100vw);
  max-height:68vh;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);
  border-bottom:0;border-radius:16px 16px 0 0;box-shadow:0 -18px 50px #000a;animation:slideUp .2s var(--ease)}
@keyframes slideUp{from{transform:translate(-50%,16px);opacity:.6}to{transform:translate(-50%,0);opacity:1}}
.toc-head{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--line)}
.toc-head .chip-btn{margin-left:auto}
.toc-list{overflow:auto;padding:8px}
.toc-item{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:none;border:0;
  color:var(--dim);padding:9px 10px;border-radius:9px;cursor:pointer;font-size:13px}
.toc-item:hover{background:var(--surface-2);color:var(--text)}
.toc-item.current{background:var(--surface-2);color:var(--accent);font-weight:600}
.toc-idx{width:34px;flex:0 0 auto;color:var(--dim);font-size:11.5px;text-align:right}
.toc-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ============ 顶栏吸附 / 搜索遮罩 / 卡片收藏 ============ */
html{overflow-x:hidden}
body{overflow-x:clip}
html.no-scroll,body.no-scroll{overflow:hidden !important;height:100%}
.search-panel{overscroll-behavior:contain}

.card-thumb{position:relative;isolation:isolate}
.cover-actions{
  position:absolute;right:8px;bottom:8px;z-index:3;
  display:flex;flex-direction:column;gap:6px;
  opacity:0;transform:translateY(4px);
  transition:opacity .18s var(--ease),transform .18s var(--ease);
}
.card:hover .cover-actions,.cover-actions:focus-within{opacity:1;transform:none}
.act-btn{
  width:32px;height:32px;border-radius:50%;border:1px solid #ffffff26;
  background:#000000a6;backdrop-filter:blur(6px);
  display:grid;place-items:center;cursor:pointer;
  transition:background .18s var(--ease),border-color .18s var(--ease),transform .18s var(--ease);
}
.act-btn:hover{border-color:#fff6;transform:scale(1.06)}
.act-btn svg{width:16px;height:16px;fill:none;stroke:#fff;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.fav-btn{position:relative}
.fav-btn .star{width:17px;height:17px;fill:none;stroke:#fff;stroke-width:1.7;stroke-linejoin:round;transition:fill .18s var(--ease),stroke .18s var(--ease)}
.fav-btn.on .star{fill:#ffd166;stroke:#ffd166}
.fav-btn.on{background:#000000b3}
.fav-btn:hover{border-color:#fff6}

/* 收藏成功的小爆炸 */
.fav-btn .burst-ring{position:absolute;inset:0;border-radius:50%;border:2px solid #ffd166;opacity:0;pointer-events:none}
.fav-btn.burst .star{animation:starPop .5s var(--ease)}
.fav-btn.burst .burst-ring{animation:ringBurst .6s ease-out}
@keyframes starPop{0%{transform:scale(.6)}45%{transform:scale(1.45)}70%{transform:scale(.92)}100%{transform:scale(1)}}
@keyframes ringBurst{0%{opacity:.9;transform:scale(.5)}100%{opacity:0;transform:scale(2.1)}}

@media (hover:none){.cover-actions{opacity:1;transform:none}}


/* 确保 sticky 顶栏不被祖先 overflow 破坏 */
html{overflow-x:hidden}
body{overflow-x:clip;overflow-y:visible}
.main{overflow:visible}

/* 继续阅读：删除按钮 */
.del-btn:hover{border-color:#f87171}
.del-btn:hover svg{stroke:#f87171}

/* ============ 视频播放 ============ */
.video-wrap{position:relative;width:100%;aspect-ratio:16/9;background:#000;border-radius:14px;overflow:hidden;border:1px solid var(--line)}
.player-video{width:100%;height:100%;display:block;background:#000;object-fit:contain}
.video-meta{padding:14px 2px 6px}

/* ============ 视频专区 ============ */
.video-search{margin:2px 0 14px;max-width:none}
.video-search input{flex:1}
.video-gate{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  background:#000000cc;backdrop-filter:blur(3px);text-align:center;padding:20px}
.gate-title{font-size:15px;font-weight:600;color:#fff}
.gate-sub{font-size:12.5px;color:#cbd5e1;margin-bottom:6px}
.video-card .thumb{aspect-ratio:16/10}

/* ============ B站风格播放器 ============ */
.player{position:relative}
.video-stage{position:relative;width:100%;aspect-ratio:16/9;background:#000;border-radius:14px;overflow:hidden;border:1px solid var(--line)}
.player-video{width:100%;height:100%;display:block;object-fit:contain;background:#000}
.preview-video{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}

.big-play{position:absolute;inset:0;display:grid;place-items:center;cursor:pointer;background:#0003}
.big-play svg{width:66px;height:66px;fill:#fff;filter:drop-shadow(0 4px 16px #000a);opacity:.92;transition:transform .18s var(--ease)}
.big-play:hover svg{transform:scale(1.06)}

.ctrl{position:absolute;left:0;right:0;bottom:0;padding:26px 14px 10px;
  background:linear-gradient(transparent,#000000cc 45%,#000000e6);opacity:0;transition:opacity .18s var(--ease)}
.video-stage:hover .ctrl,.video-stage.paused .ctrl{opacity:1}
.video-stage:hover{cursor:default}

.bar{position:relative;height:18px;display:flex;align-items:center;cursor:pointer}
.bar-bg{position:absolute;left:0;right:0;height:4px;border-radius:3px;background:#ffffff2e}
.bar-fill{position:absolute;left:0;height:4px;border-radius:3px;background:var(--accent);transition:width .08s linear}
.bar-knob{position:absolute;width:11px;height:11px;border-radius:50%;background:#fff;transform:translate(-50%,0);box-shadow:0 0 0 3px #ff4d6d33}
.hover-line{position:absolute;top:0;bottom:0;width:1px;background:#fff9}
.hover-box{position:absolute;bottom:22px;transform:translateX(-50%);pointer-events:none;display:flex;flex-direction:column;align-items:center;gap:4px}
.hover-thumb{position:relative;width:160px;height:90px;border-radius:6px;overflow:hidden;background:#000;border:1px solid #ffffff33;display:grid;place-items:center}
.hover-thumb canvas{width:100%;height:100%;object-fit:cover}
.hover-thumb-ph{position:absolute;font-size:11px;color:#9aa0aa}
.hover-time{font-size:11px;color:#fff;background:#000000b3;padding:1px 6px;border-radius:4px}

.ctrl-row{display:flex;align-items:center;gap:10px;margin-top:4px}
.cbtn{background:none;border:0;padding:4px;cursor:pointer;display:grid;place-items:center;border-radius:6px}
.cbtn:hover{background:#ffffff1a}
.cbtn svg{width:18px;height:18px;fill:#fff;stroke:#fff;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ctime{font-size:12px;color:#e8e8ec;font-variant-numeric:tabular-nums}
.cspacer{flex:1}
.vol{display:flex;align-items:center;gap:6px}
.vol-range{width:120px;height:4px;-webkit-appearance:none;appearance:none;background:#ffffff3a;border-radius:3px;outline:none;cursor:pointer}
.vol-range::-webkit-slider-thumb{-webkit-appearance:none;width:12px;height:12px;border-radius:50%;background:#fff;border:0;cursor:pointer}
.vol-range::-moz-range-thumb{width:12px;height:12px;border-radius:50%;background:#fff;border:0}
.vol-val{font-size:11.5px;color:#cbd5e1;width:34px;text-align:right;font-variant-numeric:tabular-nums}

/* 网页全屏：只撑满浏览器视口，不进系统全屏 */







/* 控制条：暂停时也常显，focus 时可操作 */
.video-stage:hover .ctrl,.video-stage.paused .ctrl,.ctrl:focus-within{opacity:1}

.guest-hint{position:absolute;left:50%;top:12px;transform:translateX(-50%);z-index:3;
  font-size:12px;color:#fff;background:#000000a6;padding:4px 12px;border-radius:99px;border:1px solid #ffffff26}

/* ============ 列数密度 ============ */
.grid{grid-template-columns:repeat(var(--cols,6),minmax(0,1fr)) !important}
@media(max-width:760px){.grid{--cols:2 !important}}
.density{position:relative;display:inline-flex;align-items:center;margin-left:auto}
.density .grid-ico{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:1.8;margin-right:5px;vertical-align:-2px}
.density-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:40;background:var(--surface);
  border:1px solid var(--line);border-radius:10px;padding:4px;display:flex;gap:4px;box-shadow:0 12px 30px #000a}
.density-item{background:none;border:0;color:var(--dim);font-size:12px;padding:6px 10px;border-radius:7px;cursor:pointer}
.density-item:hover{background:var(--surface-2);color:var(--text)}
.density-item.on{background:var(--accent);color:#fff}
.card.video .thumb{aspect-ratio:auto}
.card-kind{position:absolute;left:8px;top:8px;z-index:2;font-size:10.5px;color:#fff;
  background:#000000a6;border:1px solid #ffffff26;border-radius:6px;padding:1px 6px;backdrop-filter:blur(4px)}
/* 漫画卡片：封面左下角显示全部 tag，超出裁掉 */
.cover-tags{position:absolute;left:8px;right:8px;bottom:8px;z-index:2;display:flex;gap:4px;
  flex-wrap:nowrap;overflow:hidden;white-space:nowrap;pointer-events:none;
  -webkit-mask-image:linear-gradient(to right,#000 88%,transparent);
  mask-image:linear-gradient(to right,#000 88%,transparent)}
.cover-tags .tag{flex:0 0 auto;font-size:10px;line-height:1.5;padding:1px 6px;
  background:#000000b3;color:#e9e9e9;border:1px solid #ffffff1f;border-radius:6px;backdrop-filter:blur(4px)}
.cover-tags .tag.vip{background:var(--accent-soft);color:#ff8ea5;border-color:transparent}

/* ============ 历史页 ============ */
.hist-list{display:flex;flex-direction:column;gap:10px}
.hist-item{display:flex;gap:12px;padding:10px;border:1px solid var(--line);border-radius:14px;background:var(--surface);align-items:center}
.hist-item:hover{border-color:var(--accent)}
.hist-cover{width:64px;flex:0 0 auto}
.hist-cover .thumb{border-radius:9px}
.hist-body{flex:1;min-width:0}
.hist-title{font-size:13.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hist-sub{font-size:12px;color:var(--dim);margin-top:4px}
.hist-bar{height:4px;border-radius:3px;background:var(--surface-2);margin-top:7px;overflow:hidden}
.hist-bar i{display:block;height:100%;background:var(--accent)}
.hist-del{flex:0 0 auto}

/* ============ 微信/QQ 引导（前端兜底） ============ */
.shell-guide{position:fixed;inset:0;z-index:9999;overflow:auto;padding:20px;
  background:radial-gradient(120% 60% at 50% 0%,#1b1620 0%,#0b0d10 60%);
  color:#e8eaed;font:15px/1.6 system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif}
.shell-guide .sg-card{max-width:400px;margin:8vh auto 0;background:#14181d;border:1px solid #242a32;
  border-radius:20px;padding:24px 18px;text-align:center;box-shadow:0 24px 60px #0009}
.shell-guide .sg-mark{width:52px;height:52px;border-radius:15px;background:#ff4d6d;display:grid;place-items:center;margin:0 auto 16px}
.shell-guide .sg-mark svg{width:26px;height:26px;fill:#fff}
.shell-guide h1{font-size:17.5px;margin:0 0 8px}
.shell-guide .sg-sub{color:#8b939f;font-size:13px;margin:0 0 18px}
.shell-guide .sg-step{display:flex;gap:10px;text-align:left;padding:10px 12px;border:1px solid #242a32;
  border-radius:12px;background:#ffffff06;margin-bottom:9px;font-size:13px;color:#8b939f;align-items:flex-start}
.shell-guide .sg-step b{color:#e8eaed}
.shell-guide .sg-num{flex:0 0 auto;width:20px;height:20px;border-radius:50%;background:#ff4d6d;color:#fff;
  font-size:11.5px;font-weight:700;display:grid;place-items:center}
.shell-guide .sg-url{margin:16px 0 12px;padding:9px 11px;border:1px dashed #242a32;border-radius:10px;
  font-size:12px;color:#8b939f;word-break:break-all;background:#0006}
.shell-guide button{width:100%;border:0;border-radius:11px;padding:12px;font-size:14.5px;font-weight:600;cursor:pointer;font-family:inherit;margin-top:9px}
.shell-guide .sg-primary{background:#ff4d6d;color:#fff}
.shell-guide .sg-ghost{background:transparent;color:#8b939f;border:1px solid #242a32}


/* ============ 播放器修正 v2 ============ */
.vol{position:relative;display:flex;align-items:center}
.rate{position:relative;display:flex;align-items:center}
.rate-btn{min-width:44px;font-variant-numeric:tabular-nums;font-size:11.5px}
.rate-pop{
  position:absolute;right:0;bottom:calc(100% + 10px);z-index:60;
  display:flex;flex-direction:column;gap:2px;padding:5px;
  background:#0f1319f5;border:1px solid var(--line);border-radius:10px;
  box-shadow:0 12px 30px #000a;backdrop-filter:blur(8px);
}
.rate-item{
  background:none;border:0;color:#cbd5e1;font-size:12px;line-height:1;
  padding:8px 16px;border-radius:7px;cursor:pointer;text-align:left;white-space:nowrap;
}
.rate-item:hover{background:#ffffff14;color:#fff}
.rate-item.on{background:var(--accent);color:#241710;font-weight:700}
.vol-pop{display:flex;align-items:center;gap:8px;padding:0 4px;
  max-width:0;overflow:hidden;opacity:0;transition:max-width .18s var(--ease),opacity .18s var(--ease)}
.vol.open .vol-pop{max-width:180px;opacity:1}
.vol-range{width:110px}
.vol-val{font-size:11.5px;color:#cbd5e1;min-width:34px;text-align:right;font-variant-numeric:tabular-nums}

/* 网页全屏：撑满视口，视频居中 */








/* 系统全屏 */
.player:fullscreen{background:#000}
.player:fullscreen .video-stage{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;border:0;border-radius:0}

.hover-thumb{display:grid;place-items:center}
.hover-thumb canvas{max-width:100%;max-height:100%}

.video-actions{display:flex;gap:9px;margin-top:12px}
.video-actions .btn.on{color:var(--accent);border-color:var(--accent)}

.kbd-hint{display:flex;align-items:center;gap:8px;margin-top:12px;padding:7px 10px;border-radius:9px;
  background:var(--surface);border:1px solid var(--line);color:var(--dim);font-size:12px}
.kbd-dot{flex:0 0 auto;width:15px;height:15px;border-radius:50%;border:1px solid var(--dim);
  display:grid;place-items:center;font-size:10px;font-style:italic;line-height:1}
.kbd-text{flex:1;min-width:0}
.kbd-close{background:none;border:0;color:var(--dim);font-size:15px;line-height:1;cursor:pointer;padding:0 2px}
.kbd-close:hover{color:var(--text)}

/* ============ 历史页 v2 ============ */
.hist-list{display:flex;flex-direction:column;gap:8px}
.hist-item{display:flex;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;
  background:var(--surface);align-items:center;cursor:pointer;transition:border-color .16s var(--ease)}
.hist-item:hover{border-color:var(--accent)}
.hist-cover{width:56px;height:74px;flex:0 0 56px;border-radius:8px;overflow:hidden;background:var(--surface-2)}
.hist-cover img{width:100%;height:100%;object-fit:cover;display:block}
.hist-body{flex:1;min-width:0}
.hist-title{font-size:13.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hist-sub{font-size:12px;color:var(--dim);margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hist-bar{height:3px;border-radius:2px;background:var(--surface-2);margin-top:7px;overflow:hidden;max-width:320px}
.hist-bar i{display:block;height:100%;background:var(--accent)}
.hist-del{flex:0 0 auto;background:none;border:1px solid var(--line);color:var(--dim);border-radius:8px;
  font-size:12px;padding:5px 9px;cursor:pointer}
.hist-del:hover{color:#f87171;border-color:#f87171}
@media(max-width:560px){.hist-cover{width:46px;height:62px;flex-basis:46px}}


/* ============ 网页全屏（最终版） ============ */
body.theater{overflow:hidden}
body.theater .topbar{display:none}
body.theater .main{padding:0;margin:0;max-width:none;width:100%}
.player.theater{
  position:fixed !important;
  top:0;left:0;right:0;bottom:0;
  width:100vw;height:100vh;
  margin:0;padding:0;border:0;border-radius:0;
  background:#000;z-index:120;display:block;
}
.player.theater .video-stage{
  position:fixed !important;
  top:0;left:0;
  width:100vw;height:100vh;
  aspect-ratio:auto;max-width:none;border:0;border-radius:0;
  background:#000;
}
.player.theater .player-video{width:100%;height:100%;object-fit:contain}
.player.theater .video-meta{display:none}


/* 继续阅读：小卡片、圆角、统一比例 */
.recent-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}
.recent-grid .card-thumb{border-radius:12px;overflow:hidden;background:var(--surface-2)}
.recent-grid .card .title{font-size:12.5px;margin-top:6px}
.card-thumb .thumb{border-radius:12px}

/* 视频旋转：容器裁切 + 平滑过渡 */
.video-stage{position:relative;overflow:hidden}
.player-video{transition:transform .18s ease}

/* 缓冲提示：中央 loading + 实时速度 */
.buf-overlay{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  display:flex;flex-direction:column;align-items:center;gap:10px;z-index:6;pointer-events:none}
.buf-spinner{width:44px;height:44px;border-radius:50%;
  border:3px solid rgba(255,255,255,.22);border-top-color:#fff;animation:bufspin .8s linear infinite}
.buf-speed{font-size:12.5px;color:#e5e7eb;background:rgba(0,0,0,.55);
  padding:3px 10px;border-radius:999px;font-variant-numeric:tabular-nums}
@keyframes bufspin{to{transform:rotate(360deg)}}


/* ============ 墨屿 Mooyu：品牌 / 占位 / 页脚 ============ */
.ph-brand{
  font-weight:800;font-size:12.5px;letter-spacing:.14em;text-transform:uppercase;
  color:#c9a98c;opacity:.85;font-family:"Segoe UI",system-ui,sans-serif;
}
.page .ph-brand{font-size:14px}
.thumb .ph::after,.page .ph::after{
  content:"";position:absolute;inset:0;border-radius:inherit;
  background:linear-gradient(100deg,transparent 20%,#ffffff0d 50%,transparent 80%);
  animation:shimmer 1.6s infinite;
}

.site-foot{margin:56px 0 0;border-top:1px solid var(--line);background:#170f0b}
.foot-inner{max-width:1280px;margin:0 auto;padding:26px 22px 34px;
  display:flex;gap:34px;align-items:flex-start;flex-wrap:wrap}
.foot-brand{display:flex;gap:12px;align-items:center;min-width:190px}
.foot-mark{width:42px;height:42px;border-radius:12px;background:var(--brand);color:#fff;
  display:grid;place-items:center;font-weight:800;font-size:19px;box-shadow:inset 0 0 0 1px #ffffff1f}
.foot-name{font-size:16px;font-weight:700}
.foot-name em{font-style:normal;font-size:11px;color:var(--dim-2);letter-spacing:.6px;margin-left:5px}
.foot-sub{font-size:11.5px;color:var(--accent);margin-top:2px;letter-spacing:.4px}
.foot-lines{flex:1;min-width:280px;color:var(--dim);font-size:12.5px;line-height:1.75}
.foot-lines p{margin:0 0 4px}
.foot-warn{color:#e8c9a8;font-weight:600}
.foot-copy{font-size:11.5px;color:var(--dim-2);margin-left:auto;align-self:flex-end;white-space:nowrap}
@media(max-width:760px){
  .foot-inner{gap:18px;padding:22px 16px 90px}
  .foot-copy{margin-left:0;width:100%}
}


/* 页面骨架：让页脚始终贴底 */
#app,.app-shell{min-height:100vh;display:flex;flex-direction:column}
.app-shell > .main{flex:1 0 auto;width:100%}
.app-shell > .site-foot{flex:0 0 auto}

/* 搜索分区 tab / 媒体库筛选行 */
.search-tabs{display:flex;gap:8px;padding:10px 2px 0}
.lib-row{display:flex;align-items:center;gap:9px;padding:9px 0;flex-wrap:wrap}
.lib-label{flex:0 0 40px;color:var(--dim-2);font-size:12.5px}
.tag-link{cursor:pointer;transition:border-color .16s,color .16s}
.tag-link:hover{color:#fff;border-color:var(--accent)}

.locked-chip{opacity:.65}

/* ============ 短剧剧集 / 合集专区 ============ */
.ep-panel{margin:16px 2px 4px;border:1px solid var(--line);background:var(--surface);border-radius:14px;padding:14px 14px 12px}
.ep-head{display:flex;align-items:baseline;gap:10px;margin-bottom:10px}
.ep-title{font-size:14px;font-weight:650}
.ep-sub{font-size:12px;color:var(--dim-2)}
.ep-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(52px,1fr));gap:8px;max-height:260px;overflow:auto}
.ep-btn{
  position:relative;height:38px;border-radius:9px;border:1px solid var(--line);
  background:var(--surface-2);color:var(--dim);font-size:13px;cursor:pointer;
  transition:all .16s var(--ease);
}
.ep-btn:hover{color:#fff;border-color:#3a4553}
.ep-btn.active{background:var(--accent);border-color:var(--accent);color:#241710;font-weight:700}
.ep-lock{position:absolute;right:3px;top:2px;font-size:9px;opacity:.75}
.ep-btn.active .ep-lock{opacity:.9}
@media(max-width:560px){
  .ep-grid{grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:6px;max-height:190px}
  .ep-btn{height:34px;font-size:12px}
}

.card-sub{margin-top:4px;font-size:11.5px;color:var(--dim-2)}
.zone-card:hover .title{color:#fff}
.zone-hero{display:flex;gap:20px;align-items:flex-start;margin:4px 0 22px}
.zone-cover{flex:0 0 42%;max-width:560px;border-radius:14px;overflow:hidden;border:1px solid var(--line);background:var(--surface-2)}
.zone-info{flex:1;min-width:0;padding-top:2px}
.zone-info .detail-desc{margin:8px 0 0}
@media(max-width:760px){
  .zone-hero{flex-direction:column;gap:12px}
  .zone-cover{flex:none;width:100%;max-width:none}
}

/* ============ 悬浮返回（仅 PC） ============ */
.float-back{
  position:fixed;left:22px;bottom:30px;z-index:60;width:44px;height:44px;border-radius:50%;
  display:grid;place-items:center;color:var(--text);cursor:pointer;
  background:color-mix(in srgb,var(--surface) 88%,transparent);
  border:1px solid var(--line);box-shadow:var(--shadow);backdrop-filter:blur(8px);
  transition:background .18s var(--ease),border-color .18s var(--ease),transform .18s var(--ease);
}
.float-back svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.float-back:hover{background:var(--surface-3);border-color:var(--accent);transform:translateY(-1px)}

/* ============ 移动端抽屉 ============ */
.menu-btn{display:none;width:38px;height:38px;border-radius:10px;place-items:center;color:var(--dim)}
.menu-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.mask,.m-mask{position:fixed;inset:0;z-index:80;background:#0009;backdrop-filter:blur(2px)}
.m-drawer{
  position:fixed;left:0;top:0;bottom:0;width:252px;z-index:81;
  background:var(--bg-soft);border-right:1px solid var(--line);
  display:flex;flex-direction:column;gap:16px;padding:18px 14px;
  transform:translateX(-102%);transition:transform .22s var(--ease);
}
.m-drawer.open{transform:none}
.m-brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:15px}
.m-brand em{font-style:normal;font-size:11px;color:var(--dim-2);letter-spacing:.6px}
.m-nav{display:flex;flex-direction:column;gap:2px;flex:1;overflow:auto}
.m-nav a{padding:11px 12px;border-radius:10px;color:var(--dim);font-size:14px}
.m-nav a:hover,.m-nav a.active,.m-nav a.router-link-exact-active{background:var(--surface-2);color:#fff}
.m-foot{display:flex;align-items:center;gap:8px;padding-top:12px;border-top:1px solid var(--line)}
.m-user{font-size:13px;color:var(--dim)}

@media (max-width:768px){
  .float-back{display:none}
  .menu-btn{display:grid}
  .topbar .nav{display:none}
  .topbar{gap:10px;padding:0 12px}
  .brand-name em{display:none}
}
