/* ==========================================================
   源码站 · 前台样式
   结构：变量 → 基础 → 顶栏/头部 → 首屏 → 资源面板 → 标语
        → 选项卡与卡片 → 博客区 → 页脚 → 弹窗/悬浮 → 列表页 → 详情页
   ========================================================== */

:root{
  --red:#e5484d;
  --red-deep:#c9312f;
  --red-soft:#ff7a6f;
  --bg:#fbf2f4;
  --bg-2:#fff7f8;
  --card:#ffffff;
  --text:#26262e;
  --text-2:#5c626d;
  --muted:#9aa0ab;
  --line:#f0dfe2;
  --price:#ff6a3d;
  --radius:14px;
  --shadow:0 6px 18px rgba(196,120,132,.10);
  --shadow-lg:0 14px 40px rgba(196,120,132,.18);
  --max:1240px;
}

[data-theme="night"]{
  --bg:#171821;
  --bg-2:#1d1e29;
  --card:#22232f;
  --text:#e8e9ef;
  --text-2:#a9aebc;
  --muted:#767c8c;
  --line:#2e3040;
  --shadow:0 6px 18px rgba(0,0,0,.35);
  --shadow-lg:0 14px 40px rgba(0,0,0,.5);
}

*{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{
  margin:0;background:var(--bg);color:var(--text);font-size:14px;line-height:1.6;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  transition:background .3s ease,color .3s ease;
}
a{color:inherit;text-decoration:none;}
img{display:block;max-width:100%;border:0;}
ul,ol{margin:0;padding:0;list-style:none;}
button{font:inherit;border:0;background:none;cursor:pointer;color:inherit;}
input{font:inherit;outline:none;}
h1,h2,h3,h4,h5{margin:0;font-weight:700;}
.wrap{max-width:var(--max);margin:0 auto;padding:0 20px;}
.flex{display:flex;}
.ai-c{align-items:center;}
.jc-sb{justify-content:space-between;}
.gap8{gap:8px;}
.gap12{gap:12px;}
.ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}

/* ---------------- 顶部公告条 ---------------- */
.topbar{
  background:#232430;color:#c7cbd6;font-size:12px;height:34px;
}
.topbar .wrap{display:flex;align-items:center;justify-content:space-between;height:34px;}
.topbar-left{display:flex;align-items:center;gap:8px;}
.topbar .dot{width:6px;height:6px;border-radius:50%;background:#ff5a5f;display:inline-block;animation:blink 1.6s infinite;}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.35}}
.topbar-right{display:flex;gap:16px;align-items:center;}
.topbar-right a{color:#c7cbd6;}
.topbar-right a:hover{color:#fff;}

/* ---------------- 头部 ---------------- */
.header{
  position:sticky;top:0;z-index:120;background:rgba(255,255,255,.94);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid var(--line);
}
[data-theme="night"] .header{background:rgba(26,27,37,.94);}
.header .wrap{display:flex;align-items:center;height:76px;gap:26px;}
.logo{display:flex;align-items:center;gap:10px;flex-shrink:0;}
.logo-mark{
  width:36px;height:36px;border-radius:10px;display:grid;place-items:center;color:#fff;font-weight:900;font-size:16px;
  background:linear-gradient(135deg,#ff7b70,#e5484d);box-shadow:0 6px 14px rgba(229,72,77,.32);
}
.logo-txt{font-size:20px;font-weight:800;letter-spacing:1px;}
.logo-txt small{display:block;font-size:10px;font-weight:400;color:var(--muted);letter-spacing:2px;line-height:1;}

.nav{display:flex;align-items:center;gap:10px;flex:1;}
.nav-item{position:relative;}
.nav-btn{
  display:flex;align-items:center;gap:6px;height:38px;padding:0 16px;border-radius:19px;
  color:#fff;font-size:14px;font-weight:600;letter-spacing:.5px;white-space:nowrap;
  background:linear-gradient(135deg,#f4706a,#df3f39);
  box-shadow:0 4px 12px rgba(223,63,57,.28);
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}
.nav-btn:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(223,63,57,.36);filter:brightness(1.04);}
.nav-btn .ico{font-size:14px;opacity:.9;}
.nav-item.active .nav-btn{background:linear-gradient(135deg,#e5484d,#b92623);}
.nav-sub{
  position:absolute;left:0;top:46px;min-width:150px;background:var(--card);border-radius:12px;
  box-shadow:var(--shadow-lg);padding:8px;opacity:0;visibility:hidden;transform:translateY(6px);
  transition:all .2s ease;border:1px solid var(--line);
}
.nav-item:hover .nav-sub{opacity:1;visibility:visible;transform:translateY(0);}
.nav-sub a{display:block;padding:8px 12px;border-radius:8px;font-size:13px;color:var(--text-2);}
.nav-sub a:hover{background:var(--bg);color:var(--red);}

.header-tools{display:flex;align-items:center;gap:10px;flex-shrink:0;}
.tool-btn{
  width:38px;height:38px;border-radius:50%;display:grid;place-items:center;color:#6b7280;
  background:var(--bg-2);border:1px solid var(--line);transition:all .2s ease;font-size:15px;
}
.tool-btn:hover{color:var(--red);border-color:#f5c3c5;transform:translateY(-1px);}
.login-btn{
  height:38px;padding:0 22px;border-radius:19px;background:linear-gradient(135deg,#f4706a,#df3f39);color:#fff;
  font-weight:600;box-shadow:0 4px 12px rgba(223,63,57,.26);
}
.mobile-nav-btn{display:none;}
.login-btn:hover{filter:brightness(1.05);}

/* ---------------- 首屏 ---------------- */
.hero{
  position:relative;height:460px;overflow:hidden;
  background:#1b1a20 center/cover no-repeat;
}
.hero::after{
 content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(18,15,22,.72) 0%,rgba(18,15,22,.34) 40%,rgba(18,15,22,.78) 100%);
}
.hero-inner{
  position:relative;z-index:2;max-width:var(--max);margin:0 auto;padding:120px 20px 0;text-align:center;color:#fff;
}
.hero-sub{
  font-size:13px;letter-spacing:3px;opacity:.95;margin-bottom:18px;text-transform:uppercase;
  text-shadow:0 2px 12px rgba(0,0,0,.45);
}
.hero-search{display:flex;align-items:center;gap:10px;max-width:760px;margin:0 auto;}
.search-box{
  flex:1;display:flex;align-items:center;gap:8px;height:52px;padding:0 6px 0 20px;border-radius:26px;
  background:rgba(255,255,255,.96);box-shadow:0 10px 30px rgba(0,0,0,.18);
}
.search-box input{flex:1;border:0;background:none;font-size:14px;color:#333;min-width:0;}
.search-box input::placeholder{color:#a4a8b2;}
.search-chips{display:flex;gap:6px;}
.chip{
  font-size:12px;color:#8b8f99;background:#f3f3f6;border-radius:10px;padding:3px 9px;white-space:nowrap;cursor:pointer;
}
.chip:hover{color:var(--red);background:#ffeced;}
.search-go{
  height:42px;padding:0 22px;border-radius:21px;background:linear-gradient(135deg,#ff6b62,#e0362f);
  color:#fff;font-weight:700;box-shadow:0 6px 16px rgba(224,54,47,.35);white-space:nowrap;
}
.btn-ghost{
  height:52px;padding:0 26px;border-radius:26px;border:1px solid rgba(255,255,255,.7);color:#fff;font-weight:600;
  background:rgba(255,255,255,.10);backdrop-filter:blur(6px);white-space:nowrap;
}
.btn-ghost:hover{background:rgba(255,255,255,.22);}
.hero-hot{
  margin-top:22px;display:flex;align-items:center;justify-content:center;gap:14px;font-size:12px;color:rgba(255,255,255,.8);
}
.hero-hot a{color:#fff;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.2);padding:3px 10px;border-radius:10px;}
.hero-hot a:hover{background:rgba(255,255,255,.28);}

/* ---------------- 资源面板 ---------------- */
.panel{
  position:relative;z-index:3;max-width:var(--max);margin:-92px auto 0;padding:0 20px;
}
.panel-body{
  background:var(--card);border-radius:24px;box-shadow:var(--shadow-lg);padding:18px 24px 0;overflow:hidden;
}
.panel-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:14px;}
.panel-head .t{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:700;}
.panel-head .t .mini-ico{
  width:22px;height:22px;border-radius:7px;display:grid;place-items:center;color:#fff;font-size:11px;
  background:linear-gradient(135deg,#ff8a7d,#e5484d);
}
.panel-head .links{display:flex;gap:18px;font-size:12px;color:var(--muted);}
.panel-head .links a:hover{color:var(--red);}

.feature-row{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px;}
.feature{
  position:relative;height:96px;border-radius:16px;overflow:hidden;padding:16px 18px;color:#fff;
  display:flex;flex-direction:column;justify-content:center;gap:4px;
  transition:transform .22s ease,box-shadow .22s ease;
}
.feature:hover{transform:translateY(-3px);box-shadow:0 12px 26px rgba(0,0,0,.16);}
.feature h4{font-size:17px;letter-spacing:1px;}
.feature p{font-size:12px;opacity:.9;margin:0;}
.feature .tag{
  position:absolute;right:12px;top:10px;font-size:11px;padding:2px 8px;border-radius:9px;
  background:rgba(255,255,255,.22);border:1px solid rgba(255,255,255,.35);
}
.feature .glow{position:absolute;right:-30px;bottom:-40px;width:120px;height:120px;border-radius:50%;background:rgba(255,255,255,.14);}
.f1{background:linear-gradient(120deg,#ff8f5a,#e8573f);}
.f2{background:linear-gradient(120deg,#ffd76a,#e79b36);}
.f3{background:linear-gradient(120deg,#7ec8ff,#3f7ce8);}
.f4{background:linear-gradient(120deg,#f29bd0,#c05ad2);}

.shortcut-row{
  display:grid;grid-template-columns:repeat(8,1fr);gap:10px;padding:2px 0 18px;border-bottom:1px dashed var(--line);
}
.shortcut{display:flex;flex-direction:column;align-items:center;gap:7px;padding:6px 0;border-radius:12px;transition:background .2s;}
.shortcut:hover{background:var(--bg);}
.shortcut .ic{background:linear-gradient(135deg,#ff8a7d,#e5484d);
  width:44px;height:44px;border-radius:14px;display:grid;place-items:center;font-size:19px;color:#fff;
  box-shadow:0 6px 14px rgba(0,0,0,.12);
}
.shortcut span{font-size:12px;color:var(--text-2);}
.shortcut:hover span{color:var(--red);}

.stats{
  display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:26px;padding:14px 0 16px;
  font-size:12px;color:var(--muted);
}
.stats b{color:var(--text);font-weight:600;margin-left:2px;}

/* ---------------- 标语 ---------------- */
.slogan{position:relative;text-align:center;padding:44px 20px 26px;overflow:hidden;}
.slogan h1{
  font-size:42px;letter-spacing:3px;color:#e5484d;
  background:linear-gradient(180deg,#ff7a6a,#d83a34);-webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;position:relative;display:inline-block;
}
.slogan .spark{position:absolute;color:#ffb8a6;font-size:18px;}
.slogan .s1{left:-26px;top:4px;transform:rotate(-18deg);}
.slogan .s2{right:-30px;bottom:8px;transform:rotate(12deg);}
.slogan p{margin:8px 0 0;font-size:13px;color:var(--muted);letter-spacing:4px;}

/* ---------------- 选项卡 ---------------- */
.tabs{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-bottom:20px;}
.tab{
  height:34px;padding:0 18px;border-radius:17px;background:var(--card);border:1px solid #f3d7da;
  font-size:13px;color:var(--text-2);display:inline-flex;align-items:center;transition:all .2s ease;
}
.tab:hover{color:var(--red);border-color:#f2b9bc;}
.tab.active{
  color:#fff;background:linear-gradient(135deg,#f4706a,#df3f39);border-color:transparent;
  box-shadow:0 6px 14px rgba(223,63,57,.28);
}

/* ---------------- 卡片网格 ---------------- */
.grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;}
.card{
  background:var(--card);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);
  transition:transform .22s ease,box-shadow .22s ease;display:flex;flex-direction:column;
}
.card:hover{transform:translateY(-4px);box-shadow:0 16px 30px rgba(196,120,132,.22);}
.card .cover{position:relative;display:block;aspect-ratio:26/18;overflow:hidden;background:#e9d8dc;}
.card .cover img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease;}
.card:hover .cover img{transform:scale(1.05);}
.card .cover .ph{
  width:100%;height:100%;display:grid;place-items:center;color:#fff;font-size:26px;font-weight:800;
  letter-spacing:2px;text-shadow:0 3px 10px rgba(0,0,0,.25);
}
.card .vip{
  position:absolute;left:8px;top:8px;font-size:11px;padding:2px 7px;border-radius:8px;color:#fff;
  background:linear-gradient(135deg,#ffb75a,#ff7a45);box-shadow:0 3px 8px rgba(255,122,69,.35);
}
.card .title{
  padding:9px 11px 4px;font-size:13px;line-height:1.45;color:var(--text);height:47px;overflow:hidden;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
}
.card:hover .title{color:var(--red);}
.card .meta{
  margin-top:auto;padding:6px 10px 10px;display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted);
  white-space:nowrap;
}
.card .meta .av{
  width:20px;height:20px;border-radius:50%;flex-shrink:0;display:grid;place-items:center;color:#fff;font-size:10px;
}
.card .meta .au{max-width:44px;overflow:hidden;text-overflow:ellipsis;flex-shrink:1;}
.card .meta .tm{overflow:hidden;text-overflow:ellipsis;flex-shrink:1;}
.card .meta .sp{flex:1;min-width:2px;}
.card .meta .pv{color:var(--price);font-weight:700;flex-shrink:0;}
.card .meta .vw{flex-shrink:0;}
.grid-foot{display:flex;justify-content:center;gap:12px;padding:28px 0 8px;}
.more-btn{
  height:42px;padding:0 34px;border-radius:21px;color:#fff;font-weight:600;font-size:14px;
  background:linear-gradient(135deg,#7fb2ff,#3d6fe0);box-shadow:0 10px 24px rgba(61,111,224,.28);
  transition:transform .2s ease,filter .2s ease;
}
.more-btn:hover{transform:translateY(-2px);filter:brightness(1.05);}
.more-btn[disabled]{opacity:.6;cursor:default;transform:none;}

/* ---------------- 区块标题（博客） ---------------- */
.section{margin-top:44px;}
.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;}
.section-title{display:flex;align-items:center;gap:10px;}
.section-title .badge{
  width:30px;height:30px;border-radius:9px;display:grid;place-items:center;color:#fff;
  background:linear-gradient(135deg,#ff8a7d,#e5484d);font-size:14px;
}
.section-title h2{font-size:19px;letter-spacing:1px;}
.section-link{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:4px;}
.section-link:hover{color:var(--red);}

/* 博客卡片：大图 + 标题 */
.blog-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;}
.blog-card{background:var(--card);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);transition:transform .22s,box-shadow .22s;}
.blog-card:hover{transform:translateY(-4px);box-shadow:0 16px 30px rgba(196,120,132,.22);}
.blog-card .cover{display:block;aspect-ratio:26/18;overflow:hidden;background:#eee0e3;}
.blog-card .cover img{display:block;width:100%;height:100%;object-fit:cover;}
.blog-card .t{display:-webkit-box;padding:10px 12px 12px;font-size:13px;line-height:1.5;height:56px;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--text);}
.blog-card:hover .t{color:var(--red);}
.blog-card .m{padding:0 12px 12px;font-size:11px;color:var(--muted);display:flex;gap:10px;}

/* ---------------- 页脚 ---------------- */
.footer{margin-top:56px;background:#232430;color:#9ba1ad;padding-top:44px;}
.footer .cols{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:30px;padding-bottom:34px;}
.footer .brand{display:flex;align-items:center;gap:10px;color:#fff;margin-bottom:12px;}
.footer .brand .logo-mark{width:34px;height:34px;font-size:15px;}
.footer .brand b{font-size:17px;letter-spacing:1px;}
.footer p{font-size:12.5px;line-height:1.9;margin:0;color:#8c93a1;}
.footer h5{color:#fff;font-size:14px;margin-bottom:14px;font-weight:600;}
.footer .links a{display:block;font-size:12.5px;padding:5px 0;color:#8c93a1;}
.footer .links a:hover{color:#fff;}
.footer .contact li{font-size:12.5px;padding:5px 0;}
.footer .bottom{border-top:1px solid #31323f;padding:16px 0;font-size:12px;color:#757c8a;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;}

/* ---------------- 悬浮工具 ---------------- */
.float-tools{position:fixed;right:22px;bottom:36px;z-index:90;display:flex;flex-direction:column;gap:10px;}
.float-btn{
  width:44px;height:44px;border-radius:50%;background:var(--card);border:1px solid var(--line);
  display:grid;place-items:center;color:var(--text-2);box-shadow:var(--shadow);transition:all .2s;font-size:15px;
}
.float-btn:hover{color:#fff;background:var(--red);border-color:var(--red);transform:translateY(-2px);}
.float-btn.top{opacity:0;pointer-events:none;}
.float-btn.top.show{opacity:1;pointer-events:auto;}

/* ---------------- 弹窗 ---------------- */
.modal-mask{
  position:fixed;inset:0;background:rgba(28,20,26,.55);backdrop-filter:blur(3px);z-index:200;
  display:none;align-items:center;justify-content:center;padding:20px;
}
.modal-mask.open{display:flex;}
.modal{
  width:520px;max-width:100%;background:var(--card);border-radius:18px;box-shadow:0 24px 60px rgba(0,0,0,.28);
  overflow:hidden;animation:pop .25s ease;
}
@keyframes pop{from{transform:translateY(12px) scale(.98);opacity:0}to{transform:none;opacity:1}}
.modal-head{padding:18px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;}
.modal-head h3{font-size:16px;}
.modal-close{font-size:18px;color:var(--muted);}
.modal-body{padding:22px;text-align:center;font-size:13px;color:var(--text-2);line-height:2.1;}
.modal-body .hl{color:var(--red);font-weight:700;}
.modal-foot{padding:0 22px 22px;display:flex;gap:12px;}
.modal-foot .btn{flex:1;height:42px;border-radius:21px;font-weight:600;font-size:13px;display:grid;place-items:center;}
.modal-foot .primary{background:linear-gradient(135deg,#7fb2ff,#3d6fe0);color:#fff;}
.modal-foot .plain{background:var(--bg);color:var(--text-2);border:1px solid var(--line);}

/* ==========================================================
   分类 / 列表页
   ========================================================== */
.page-hero{
  height:190px;display:grid;place-items:center;text-align:center;color:#fff;position:relative;
  background:linear-gradient(120deg,#ef6d63,#d33b36 55%,#a92b28);
}
.page-hero::after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 80% 20%,rgba(255,255,255,.16),transparent 55%);}
.page-hero .in{position:relative;z-index:2;}
.page-hero h1{font-size:28px;letter-spacing:2px;}
.page-hero p{margin:8px 0 0;font-size:12.5px;opacity:.9;letter-spacing:1px;}

.crumb{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);padding:16px 0;}
.crumb a:hover{color:var(--red);}
.crumb .sep{color:#cfd3da;}
.crumb .now{color:var(--text-2);}

.list-layout{display:grid;grid-template-columns:1fr 286px;gap:22px;align-items:start;}
.list-layout .grid{grid-template-columns:repeat(4,1fr);}
.toolbar{
  display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--card);
  border-radius:12px;padding:10px 14px;margin-bottom:16px;box-shadow:var(--shadow);flex-wrap:wrap;
}
.sorts{display:flex;gap:6px;}
.sort{padding:4px 12px;border-radius:10px;font-size:12.5px;color:var(--text-2);}
.sort:hover{color:var(--red);}
.sort.active{background:var(--bg);color:var(--red);font-weight:600;}
.count{font-size:12px;color:var(--muted);}
.count b{color:var(--red);}

.pager{display:flex;justify-content:center;gap:8px;padding:26px 0 4px;flex-wrap:wrap;}
.pager a,.pager span{
  min-width:34px;height:34px;padding:0 10px;border-radius:10px;display:grid;place-items:center;font-size:13px;
  background:var(--card);color:var(--text-2);border:1px solid var(--line);
}
.pager a:hover{color:var(--red);border-color:#f2b9bc;}
.pager .on{background:linear-gradient(135deg,#f4706a,#df3f39);color:#fff;border-color:transparent;}

.side-card{background:var(--card);border-radius:14px;box-shadow:var(--shadow);padding:16px 16px 10px;margin-bottom:16px;}
.side-card h4{font-size:14px;margin-bottom:12px;display:flex;align-items:center;gap:8px;}
.side-card h4::before{content:"";width:3px;height:14px;border-radius:2px;background:var(--red);}
.hot-list li{display:flex;gap:10px;padding:8px 0;border-bottom:1px dashed var(--line);}
.hot-list li:last-child{border-bottom:0;}
.hot-list .no{width:18px;height:18px;border-radius:5px;display:grid;place-items:center;font-size:11px;color:#fff;background:#c9cdd6;flex-shrink:0;}
.hot-list li:nth-child(1) .no{background:#ff5a5f;}
.hot-list li:nth-child(2) .no{background:#ff8b4a;}
.hot-list li:nth-child(3) .no{background:#ffb547;}
.hot-list a{font-size:12.5px;line-height:1.5;color:var(--text-2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.hot-list a:hover{color:var(--red);}
.tag-cloud{display:flex;flex-wrap:wrap;gap:8px;padding-bottom:6px;}
.tag-cloud a{font-size:12px;padding:3px 10px;border-radius:10px;background:var(--bg);color:var(--text-2);}
.tag-cloud a:hover{background:#ffe9ea;color:var(--red);}

/* ==========================================================
   详情页
   ========================================================== */
.detail-layout{display:grid;grid-template-columns:1fr 300px;gap:22px;align-items:start;margin-top:6px;}
.article{background:var(--card);border-radius:16px;box-shadow:var(--shadow);padding:26px 28px;}
.article h1{font-size:22px;line-height:1.55;letter-spacing:.4px;}
.article .meta{display:flex;align-items:center;gap:16px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin:14px 0 18px;padding-bottom:16px;border-bottom:1px dashed var(--line);}
.article .meta .av{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:11px;}
.article .meta .cat{color:var(--red);background:#ffecec;padding:2px 9px;border-radius:9px;}
.article .cover{border-radius:12px;overflow:hidden;margin-bottom:18px;aspect-ratio:26/13;background:#eee;}
.article .cover img{width:100%;height:100%;object-fit:cover;}
.article .lead{
  background:var(--bg);border-left:3px solid var(--red);border-radius:0 10px 10px 0;padding:14px 16px;
  font-size:13px;color:var(--text-2);margin-bottom:20px;line-height:1.9;
}
.article .content{font-size:14px;line-height:2;color:var(--text-2);}
.article .content h3{font-size:15px;color:var(--text);margin:24px 0 10px;padding-left:10px;border-left:3px solid var(--red);}
.article .content p{margin:0 0 12px;}
.article .content ul{padding-left:20px;list-style:disc;margin-bottom:14px;}
.article .tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:24px;padding-top:18px;border-top:1px dashed var(--line);}
.article .tags a{font-size:12px;padding:3px 10px;border-radius:10px;background:var(--bg);color:var(--text-2);}
.article .tags a:hover{color:var(--red);background:#ffecec;}

.buy-card{
  background:linear-gradient(150deg,#fff6f4,#ffe9e6);border:1px solid #ffd1c9;border-radius:14px;
  padding:18px;margin:22px 0 6px;
}
[data-theme="night"] .buy-card{background:linear-gradient(150deg,#2a2530,#32222a);border-color:#4a3038;}
.buy-card .row{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;}
.buy-card .price{font-size:26px;font-weight:800;color:var(--price);}
.buy-card .price small{font-size:13px;font-weight:500;color:var(--muted);margin-left:6px;}
.buy-card .vip-tip{font-size:12px;color:#b2563f;}
.buy-card .btns{display:grid;grid-template-columns:1.4fr 1fr;gap:12px;}
.buy-btn{height:46px;border-radius:23px;display:grid;place-items:center;font-weight:700;font-size:14px;}
.buy-btn.main{background:linear-gradient(135deg,#ff7a5c,#e5484d);color:#fff;box-shadow:0 10px 22px rgba(229,72,77,.28);}
.buy-btn.sub{background:#fff;border:1px solid #ffcdc4;color:#c9513a;}
.buy-btn.sub.ready{background:linear-gradient(135deg,#4dd68a,#1fa05c);border-color:transparent;color:#fff;box-shadow:0 10px 22px rgba(31,160,92,.25);}
.fav-line{
  width:100%;margin-top:10px;height:34px;border-radius:17px;font-size:12.5px;color:var(--muted);
  border:1px dashed var(--line);background:transparent;
}
.fav-line:hover{color:var(--red);border-color:#f2b9bc;}
.fav-line.on{color:var(--red);border-color:#ffc9c4;background:#fff6f5;}
[data-theme="night"] .buy-btn.sub{background:transparent;color:#ffb9a8;}

.notice{
  margin-top:18px;padding:12px 14px;border-radius:12px;background:#f7f8fa;font-size:12px;color:var(--muted);line-height:1.9;
}
[data-theme="night"] .notice{background:#1b1c26;}

.rel{margin-top:34px;}
.rel .grid{grid-template-columns:repeat(4,1fr);}

/* ==========================================================
   用户体系：头部登录态 / 登录注册 / 会员中心 / 支付
   ========================================================== */

/* 头部已登录态 */
.user-chip{
  display:flex;align-items:center;gap:7px;height:38px;padding:0 12px 0 4px;border-radius:19px;
  background:var(--bg-2);border:1px solid var(--line);font-size:13px;color:var(--text);
}
.user-chip:hover{border-color:#f3b9bc;}
.user-chip .ua{
  width:28px;height:28px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:12px;font-weight:700;
  background:linear-gradient(135deg,#ff8a7d,#e5484d);
}
.vip-mini{
  font-style:normal;font-size:10px;color:#a05a00;background:linear-gradient(135deg,#ffe08a,#ffbb3d);
  padding:1px 5px;border-radius:6px;font-weight:700;margin-left:2px;
}

/* 登录注册 */
.auth-wrap{max-width:920px;margin:40px auto;border-radius:20px;overflow:hidden;background:var(--card);box-shadow:var(--shadow-lg);display:grid;grid-template-columns:1fr 1fr;}
.auth-side{
  position:relative;padding:46px 40px;color:#fff;display:flex;flex-direction:column;justify-content:space-between;
  background:linear-gradient(150deg,#f4706a,#d33b36 60%,#a92b28);overflow:hidden;
}
.auth-side::after{content:"";position:absolute;right:-60px;bottom:-60px;width:220px;height:220px;border-radius:50%;background:rgba(255,255,255,.12);}
.auth-side h2{font-size:26px;letter-spacing:2px;margin-bottom:10px;}
.auth-side p{font-size:13px;opacity:.88;line-height:2;max-width:330px;}
.auth-side .side-brand{display:flex;align-items:center;gap:10px;position:relative;z-index:2;}
.auth-side .side-brand .logo-mark{background:rgba(255,255,255,.22);box-shadow:none;}
.auth-form{padding:40px 44px 46px;}
.auth-tabs{display:flex;gap:26px;margin-bottom:26px;border-bottom:1px solid var(--line);}
.auth-tab{padding:0 0 10px;font-size:16px;font-weight:600;color:var(--muted);position:relative;}
.auth-tab.active{color:var(--text);}
.auth-tab.active::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--red);border-radius:2px;}
.form-row{margin-bottom:16px;}
.form-row label{display:block;font-size:12px;color:var(--muted);margin-bottom:6px;}
.form-row input{
  width:100%;height:44px;border-radius:10px;border:1px solid var(--line);background:var(--bg-2);
  padding:0 14px;font-size:14px;color:var(--text);transition:border .2s,background .2s;
}
.form-row input:focus{border-color:#f19a9c;background:var(--card);}
.form-btn{width:100%;height:46px;border-radius:23px;color:#fff;font-weight:700;font-size:15px;
  background:linear-gradient(135deg,#f4706a,#df3f39);box-shadow:0 10px 22px rgba(223,63,57,.25);margin-top:6px;}
.form-btn:hover{filter:brightness(1.04);}
.form-tip{
  display:none;margin-bottom:14px;font-size:12.5px;color:#c0342f;background:#ffecec;border:1px solid #ffd3d0;
  border-radius:9px;padding:9px 12px;
}
.auth-extra{display:flex;justify-content:space-between;align-items:center;margin-top:10px;font-size:12px;color:var(--muted);}
.auth-extra a:hover{color:var(--red);}
.auth-demo{
  margin-top:18px;padding-top:16px;border-top:1px dashed var(--line);display:flex;align-items:center;gap:12px;
}
.auth-demo button{
  flex:1;height:42px;border-radius:21px;border:1px dashed #f0a9ab;color:#c9443f;font-size:13px;background:#fff7f7;
}
.auth-demo button:hover{background:#ffecec;}

/* 会员中心 */
.member-layout{display:grid;grid-template-columns:236px minmax(0,1fr);gap:22px;align-items:start;margin-top:18px;}
.member-layout > section{min-width:0;}
.member-side{background:var(--card);border-radius:16px;box-shadow:var(--shadow);padding:20px 16px;}
.member-info{display:flex;gap:12px;align-items:center;padding-bottom:16px;border-bottom:1px dashed var(--line);margin-bottom:12px;}
.member-info .ua.big{
  width:46px;height:46px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:800;font-size:17px;
  background:linear-gradient(135deg,#ff8a7d,#e5484d);flex-shrink:0;
}
.member-info h3{font-size:15px;display:flex;align-items:center;}
.member-info p{font-size:11.5px;color:var(--muted);margin:4px 0 0;}
.member-menu a{
  display:flex;align-items:center;gap:9px;padding:10px 12px;border-radius:10px;font-size:13px;color:var(--text-2);
}
.member-menu a i{width:16px;text-align:center;color:var(--muted);}
.member-menu a:hover{background:var(--bg);}
.member-menu a.active{background:#ffecec;color:var(--red);font-weight:600;}
.member-menu a.active i{color:var(--red);}
.member-side .logout{display:block;margin-top:12px;padding-top:12px;border-top:1px dashed var(--line);font-size:12.5px;color:var(--muted);}
.member-side .logout:hover{color:var(--red);}

.member-panel{background:var(--card);border-radius:16px;box-shadow:var(--shadow);padding:22px 24px;min-height:420px;}
.panel-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;}
.panel-title h3{font-size:16px;display:flex;align-items:center;gap:8px;}
.panel-title h3::before{content:"";width:3px;height:15px;border-radius:2px;background:var(--red);}
.panel-title .sub{font-size:12px;color:var(--muted);}

.stat-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px;}
.stat-card{
  display:flex;align-items:center;gap:12px;padding:16px;border-radius:12px;background:var(--bg-2);border:1px solid var(--line);
}
.stat-card i{font-size:18px;color:var(--red);}
.stat-card b{display:block;font-size:19px;line-height:1.2;}
.stat-card span{font-size:12px;color:var(--muted);}

.vip-card{
  border-radius:14px;padding:18px 20px;margin-bottom:20px;display:flex;align-items:center;justify-content:space-between;gap:16px;
  background:linear-gradient(120deg,#fff2d8,#ffe4c2);border:1px solid #ffd79c;
}
[data-theme="night"] .vip-card{background:linear-gradient(120deg,#3a2f1f,#2c2418);border-color:#5a4726;}
.vip-left{display:flex;align-items:center;gap:14px;}
.vip-badge{
  width:44px;height:44px;border-radius:12px;display:grid;place-items:center;font-weight:900;font-size:13px;color:#7a4a00;
  background:linear-gradient(135deg,#ffe07a,#ffb52e);box-shadow:0 6px 14px rgba(255,181,46,.35);
}
.vip-badge.gray{background:linear-gradient(135deg,#dfe4ec,#bfc7d3);color:#5a6472;box-shadow:none;}
.vip-left h4{font-size:15px;margin-bottom:3px;}
.vip-left p{font-size:12px;color:#a5762f;margin:0;}
.vip-right{display:flex;align-items:center;gap:14px;font-size:12.5px;color:#a5762f;}
.mini-btn{
  height:32px;padding:0 16px;border-radius:16px;background:var(--red);color:#fff;font-size:12.5px;font-weight:600;
}
.mini-btn:hover{filter:brightness(1.05);}
.mini-btn.ghost{background:transparent;border:1px solid var(--line);color:var(--text-2);}
.mini-btn.ghost:hover{color:var(--red);border-color:#f2b9bc;}

.table-wrap{overflow-x:auto;}
.order-table{width:100%;border-collapse:collapse;font-size:12.5px;min-width:760px;table-layout:fixed;}
.order-table th,.order-table td{white-space:nowrap;}
.order-table th:nth-child(1){width:17%;}
.order-table th:nth-child(2){width:31%;}
.order-table th:nth-child(3){width:9%;}
.order-table th:nth-child(4){width:11%;}
.order-table th:nth-child(5){width:9%;}
.order-table th:nth-child(6){width:14%;}
.order-table th:nth-child(7){width:10%;}
.order-table th{
  text-align:left;font-weight:600;color:var(--muted);font-size:12px;padding:10px 12px;
  background:var(--bg-2);white-space:nowrap;
}
.order-table th:first-child{border-radius:8px 0 0 8px;}
.order-table th:last-child{border-radius:0 8px 8px 0;}
.order-table td{padding:13px 12px;border-bottom:1px dashed var(--line);vertical-align:middle;}
.order-table tr:last-child td{border-bottom:0;}
.order-table .mono{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:11.5px;color:var(--muted);}
.order-table .cell-title{width:38%;white-space:normal;}
.order-table .cell-title a{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.order-table .cell-title a:hover{color:var(--red);}
.order-table .price{color:var(--price);font-weight:700;}
.pill{display:inline-block;font-size:11px;padding:2px 9px;border-radius:9px;}
.pill.ok{background:#eafaf0;color:#22a45d;}
[data-theme="night"] .pill.ok{background:#1c3328;color:#5ed99a;}
.tbtn{color:var(--red);font-size:12.5px;}
.tbtn:hover{text-decoration:underline;}

.row-list{display:flex;flex-direction:column;gap:12px;}
.row{display:flex;align-items:center;gap:14px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--bg-2);}
.row .thumb{width:104px;height:72px;border-radius:8px;overflow:hidden;flex-shrink:0;background:#e9d8dc;}
.row .thumb img{width:100%;height:100%;object-fit:cover;}
.row .thumb .ph{width:100%;height:100%;display:grid;place-items:center;color:#fff;font-size:12px;}
.row-main{flex:1;min-width:0;}
.row-title{display:block;font-size:13.5px;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.row-title:hover{color:var(--red);}
.row-main p{font-size:11.5px;color:var(--muted);margin:4px 0 0;}
.empty{text-align:center;color:var(--muted);font-size:13px;padding:50px 0;}
.empty a{color:var(--red);}

.need-login{display:none;background:var(--card);border-radius:16px;box-shadow:var(--shadow);padding:70px 30px;text-align:center;}
.need-login h3{font-size:18px;margin-bottom:10px;}
.need-login p{color:var(--muted);font-size:13px;margin-bottom:22px;}
.need-login .form-btn{width:220px;margin:0 auto;}

/* 支付弹窗 */
.pay-modal{width:560px;}
.pay-item{display:flex;gap:14px;align-items:center;padding:14px;border-radius:12px;background:var(--bg-2);border:1px solid var(--line);margin-bottom:16px;}
.pay-item .thumb{width:88px;height:62px;border-radius:8px;overflow:hidden;flex-shrink:0;background:#e9d8dc;}
.pay-item .thumb img{width:100%;height:100%;object-fit:cover;}
.pay-item .thumb .ph{width:100%;height:100%;display:grid;place-items:center;color:#fff;font-size:11px;}
.pay-item .info{flex:1;min-width:0;text-align:left;}
.pay-item .info h4{font-size:13px;line-height:1.5;margin:0 0 4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.pay-item .info p{font-size:11.5px;color:var(--muted);margin:0;}
.pay-item .now{font-size:17px;font-weight:800;color:var(--price);flex-shrink:0;}

.pay-methods{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px;}
.pay-method{
  height:48px;border-radius:10px;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;gap:7px;
  font-size:12.5px;color:var(--text-2);cursor:pointer;background:var(--card);transition:all .18s;
}
.pay-method:hover{border-color:#f2b9bc;}
.pay-method.active{border-color:var(--red);color:var(--red);background:#fff5f4;font-weight:600;}
.pay-method i{font-size:15px;}

.pay-coupon{display:flex;gap:8px;margin-bottom:16px;}
.pay-coupon input{flex:1;height:40px;border-radius:9px;border:1px solid var(--line);background:var(--bg-2);padding:0 12px;font-size:12.5px;}
.pay-coupon button{height:40px;padding:0 16px;border-radius:9px;background:var(--bg);border:1px solid var(--line);font-size:12.5px;color:var(--text-2);}
.pay-coupon button:hover{color:var(--red);border-color:#f2b9bc;}

.pay-total{
  display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-top:1px dashed var(--line);
  font-size:13px;color:var(--muted);margin-bottom:14px;
}
.pay-total b{font-size:22px;color:var(--price);}
.pay-total em{font-style:normal;font-size:11px;color:#22a45d;background:#eafaf0;border-radius:6px;padding:2px 6px;margin-left:8px;}
.pay-go{
  width:100%;height:46px;border-radius:23px;color:#fff;font-weight:700;font-size:15px;
  background:linear-gradient(135deg,#ff7a5c,#e5484d);box-shadow:0 10px 22px rgba(229,72,77,.26);
}
.pay-go[disabled]{opacity:.7;}
.pay-note{font-size:11.5px;color:var(--muted);text-align:center;margin:12px 0 0;}

.pay-success{display:none;text-align:center;padding:10px 0 4px;}
.pay-success .ok-ico{
  width:64px;height:64px;border-radius:50%;margin:6px auto 16px;display:grid;place-items:center;font-size:30px;color:#fff;
  background:linear-gradient(135deg,#4dd68a,#1fa05c);box-shadow:0 10px 24px rgba(31,160,92,.3);
}
.pay-success h3{font-size:17px;margin-bottom:10px;}
.pay-success .kv{font-size:12.5px;color:var(--muted);line-height:2.2;}
.pay-success .kv b{color:var(--text);font-weight:600;}
.pay-success .acts{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px;}
.pay-success .acts a{height:42px;border-radius:21px;display:grid;place-items:center;font-size:13px;font-weight:600;}
.pay-success .acts .a1{background:linear-gradient(135deg,#f4706a,#df3f39);color:#fff;}
.pay-success .acts .a2{background:var(--bg);border:1px solid var(--line);color:var(--text-2);}

@media (max-width:992px){
  .auth-wrap{grid-template-columns:1fr;margin:20px auto;}
  .auth-side{padding:28px 24px;min-height:auto;}
  .auth-side p{display:none;}
  .auth-form{padding:26px 22px 30px;}
  .member-layout{grid-template-columns:1fr;}
  .stat-cards{grid-template-columns:repeat(2,1fr);}
  .member-panel{padding:18px;}
}
@media (max-width:768px){
  .pay-modal{width:100%;}
  .pay-methods{grid-template-columns:1fr 1fr 1fr;gap:8px;}
  .pay-method{font-size:11px;height:44px;}
  .row{flex-wrap:wrap;}
  .row .thumb{width:80px;height:56px;}
  .vip-card{flex-direction:column;align-items:flex-start;}
}

/* ---------------- 响应式 ---------------- */
@media (max-width:1200px){
  .grid,.blog-grid{grid-template-columns:repeat(4,1fr);}
  .list-layout .grid{grid-template-columns:repeat(3,1fr);}
  .shortcut-row{grid-template-columns:repeat(4,1fr);}
  .hero h1,.slogan h1{font-size:34px;}
}
@media (max-width:992px){
  .nav{display:none;}
  .mobile-nav-btn{display:grid;}
  .grid,.blog-grid{grid-template-columns:repeat(3,1fr);}
  .list-layout .grid{grid-template-columns:repeat(4,1fr);}
  .shortcut-row{grid-template-columns:repeat(4,1fr);}
  .feature-row{grid-template-columns:repeat(2,1fr);}
  .list-layout,.detail-layout{grid-template-columns:1fr;}
  .footer .cols{grid-template-columns:1fr 1fr;}
}
@media (max-width:768px){
  .topbar-left span:not(.dot){display:none;}
  .header .wrap{height:64px;gap:14px;}
  .logo-txt{font-size:17px;}
  .logo-txt small{display:none;}
  .hero{height:400px;}
  .hero-inner{padding-top:80px;}
  .hero-hot{flex-wrap:wrap;row-gap:8px;}
  .hero-search{flex-direction:column;align-items:stretch;}
  .search-box{height:48px;}
  .search-chips{display:none;}
  .btn-ghost{height:44px;}
  .panel{margin-top:-60px;}
  .panel-body{padding:14px 14px 0;border-radius:18px;}
  .panel-head .links{display:none;}
  .shortcut-row{grid-template-columns:repeat(4,1fr);}
  .stats{gap:12px;justify-content:flex-start;}
  .slogan h1{font-size:26px;letter-spacing:1px;}
  .grid,.blog-grid{grid-template-columns:repeat(2,1fr);gap:10px;}
  .rel .grid{grid-template-columns:repeat(2,1fr);}
  .article{padding:18px;}
  .article h1{font-size:18px;}
  .footer .cols{grid-template-columns:1fr;gap:22px;}
  .float-tools{right:12px;bottom:18px;}
}
@media (max-width:420px){
  .grid,.blog-grid{grid-template-columns:1fr 1fr;}
  .header-tools [data-night]{display:none;}
  .header-tools a.tool-btn{display:none;}
  .login-btn{padding:0 16px;}
}

/* ---------------- 手机端（App 壳/小屏手机） ---------------- */
@media (max-width:520px){
  .wrap{padding:0 12px;}
  .header .wrap{gap:10px;height:58px;}
  .logo{gap:6px;}
  .logo-mark{width:30px;height:30px;border-radius:8px;font-size:14px;}
  .logo-txt{font-size:16px;letter-spacing:0;}
  .logo-txt small{display:none;}
  .header-tools{gap:6px;}
  .tool-btn{width:32px;height:32px;font-size:13px;}
  .tool-btn.mobile-nav-btn{display:grid;}
  .login-btn{height:32px;padding:0 14px;font-size:13px;border-radius:16px;}

  .hero{height:auto;padding-bottom:64px;}
  .hero-inner{padding:52px 12px 0;}
  .hero-sub{font-size:12px;letter-spacing:.5px;line-height:1.9;margin-bottom:12px;}
  .hero-search{gap:8px;}
  .search-box{height:44px;padding:0 6px 0 14px;border-radius:22px;}
  .search-box input{font-size:12.5px;}
  .search-chips{display:none;}
  .search-go{height:34px;padding:0 14px;font-size:12.5px;border-radius:17px;}
  .btn-ghost{height:38px;align-self:center;padding:0 24px;font-size:13px;border-radius:19px;}
  .hero-hot{margin-top:14px;justify-content:flex-start;flex-wrap:wrap;gap:6px 8px;font-size:11.5px;}
  .hero-hot a{padding:2px 9px;}

  .panel{margin-top:-46px;padding:0 12px;}
  .panel-body{padding:14px 12px 0;border-radius:16px;}
  .panel-head{padding-bottom:10px;}
  .panel-head .t{font-size:14px;}
  .feature-row{grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px;}
  .feature{height:auto;min-height:78px;padding:10px 12px;border-radius:13px;}
  .feature h4{font-size:14px;letter-spacing:0;line-height:1.35;}
  .feature p{font-size:11px;line-height:1.5;}
  .feature .tag,.feature .glow{display:none;}

  .shortcut-row{grid-template-columns:repeat(4,1fr);gap:4px;padding-bottom:12px;}
  .shortcut{gap:5px;padding:4px 0;}
  .shortcut .ic{width:38px;height:38px;border-radius:12px;font-size:17px;}
  .shortcut span{font-size:11.5px;}

  .grid,.blog-grid{grid-template-columns:1fr 1fr;gap:8px;}
  .stats{flex-wrap:wrap;gap:6px 14px;font-size:11px;}
  .float-tools{right:10px;bottom:14px;}
}

