/* ============================================================
   静态网站托管平台 · 全局样式
   默认夜间模式（data-theme=dark），支持日间模式切换
   ============================================================ */

/* ---------- 主题变量 ---------- */
:root, [data-theme="dark"] {
  --bg: #0a0d13;
  --surface: #10141c;
  --surface-2: #161c27;
  --surface-3: #1c2331;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #e8ecf3;
  --text-2: #9aa7bd;
  --text-3: #5f6f88;
  --accent: #3b82f6;
  --accent-hover: #2f6fe0;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --ok: #34d399;
  --ok-soft: rgba(52, 211, 153, 0.12);
  --warn: #f5b73d;
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --grad: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);
  --header-bg: rgba(10, 13, 19, 0.8);
  --code-bg: #0b0f16;
  --scroll-thumb: #2c3547;
  --bg-glow: rgba(99, 102, 241, 0.13);
  --grad-brand: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #a855f7 100%);
  --glass-bg: rgba(30, 38, 56, 0.66);
  --glass-border: rgba(148, 163, 184, 0.26);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f2f5fa;
  --surface-3: #e9eef6;
  --border: #e3e8f1;
  --border-strong: #cfd8e6;
  --text: #131a27;
  --text-2: #56647e;
  --text-3: #8b99b1;
  --accent: #2563eb;
  --accent-hover: #1d4fd7;
  --accent-soft: rgba(37, 99, 235, 0.09);
  --ok: #059669;
  --ok-soft: rgba(5, 150, 105, 0.1);
  --warn: #d97706;
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.08);
  --shadow: 0 10px 30px rgba(30, 41, 59, 0.1);
  --grad: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
  --header-bg: rgba(255, 255, 255, 0.85);
  --code-bg: #f8fafd;
  --scroll-thumb: #c2ccdb;
  --bg-glow: rgba(99, 102, 241, 0.07);
  --grad-brand: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #9333ea 100%);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.5);
  color-scheme: light;
}

/* ---------- 基础 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  background-image:
    radial-gradient(1100px 520px at 50% -8%, var(--bg-glow), transparent 72%),
    linear-gradient(rgba(148, 163, 184, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.032) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  background-attachment: fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
  font-size: 14px;
  transition: background 0.3s, color 0.3s;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
code, pre { font-family: ui-monospace, "Cascadia Code", Consolas, "JetBrains Mono", Menlo, monospace; }
::selection { background: var(--accent-soft); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }
::-webkit-scrollbar-track { background: transparent; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .14);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; }
.logo svg { width: 24px; height: 24px; color: var(--accent); flex: none; filter: drop-shadow(0 0 10px rgba(99, 102, 241, .55)); }
.logo span {
  background: linear-gradient(90deg, var(--text) 30%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.header-nav { display: flex; gap: 2px; margin-left: 4px; flex: none; }
.header-nav a {
  color: var(--text-2); font-size: 14px; padding: 7px 10px; border-radius: 10px; white-space: nowrap; flex: none;
  transition: color .2s, background .2s, box-shadow .2s;
}
.header-nav a:hover { color: var(--text); background: linear-gradient(135deg, rgba(99, 102, 241, .16), rgba(168, 85, 247, .10)); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .20); }
.header-nav a.active { color: var(--text); background: linear-gradient(135deg, rgba(99, 102, 241, .22), rgba(168, 85, 247, .14)); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .30); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-2); cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; transition: border-color .2s, color .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn svg { width: 18px; height: 18px; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: none; }

/* ---------- 公告 ---------- */
.announcement {
  background: linear-gradient(135deg, rgba(99, 102, 241, .14), rgba(168, 85, 247, .1));
  border-bottom: 1px solid var(--border); color: var(--text);
  font-size: 13px; padding: 8px 0; position: relative;
}
.announcement-inner { display: flex; align-items: center; gap: 10px; }
.ann-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ann-tag {
  display: inline-block; background: linear-gradient(135deg, #6366f1, #a855f7); color: #fff;
  font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 7px; margin-right: 8px; vertical-align: 1px;
}
.ann-close {
  flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-3); cursor: pointer; font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: all .16s; padding: 0;
}
.ann-close:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-3); }
@media (max-width: 768px) {
  .ann-text { white-space: normal; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 10px; padding: 10px 18px;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all .18s; line-height: 1.4;
  background: var(--surface-2); color: var(--text); user-select: none; white-space: nowrap;
  position: relative; overflow: hidden;
}
/* 按钮涟漪 */
.btn .ripple-ink {
  position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .35);
  transform: scale(0); opacity: 1; animation: ripple .55s ease-out forwards; pointer-events: none;
}
.btn-primary .ripple-ink, .btn-danger .ripple-ink, .btn-buy .ripple-ink { background: rgba(255, 255, 255, .4); }
.btn-ghost .ripple-ink { background: rgba(139, 92, 246, .22); }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
.btn:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: 0 4px 18px rgba(139, 92, 246, .28); }
.btn-primary:hover { background: linear-gradient(135deg, #6f72f5 0%, #9d6bf8 55%, #b06af9 100%); border-color: transparent; box-shadow: 0 8px 26px rgba(139, 92, 246, .46); }
.btn-primary:active { transform: scale(.98); }
.btn-ghost { background: transparent; border-color: var(--border); }
.btn-ghost:hover { border-color: rgba(139, 92, 246, .45); background: linear-gradient(135deg, rgba(99, 102, 241, .08), rgba(168, 85, 247, .06)); box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.btn-buy {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  color: #fff; border-color: transparent; text-decoration: none;
  box-shadow: 0 4px 18px rgba(245, 158, 11, .32);
}
.btn-buy:hover { background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%); border-color: transparent; box-shadow: 0 8px 26px rgba(245, 158, 11, .45); transform: translateY(-1px); }
.btn-buy:active { transform: scale(.98); }
.btn-buy .ic { filter: drop-shadow(0 0 6px rgba(255, 255, 255, .45)); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { border-color: transparent; box-shadow: 0 6px 18px rgba(248, 113, 113, .25); }
.btn-lg { padding: 13px 30px; font-size: 15px; border-radius: 12px; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
/* 按钮作为 <a> 链接时，防止全局 a:hover 颜色规则覆盖按钮文字色（白字变深色与背景同色而“消失”） */
a.btn-primary, a.btn-primary:hover, a.btn-primary:active { color: #fff; }
a.btn-danger,  a.btn-danger:hover,  a.btn-danger:active { color: #fff; }
a.btn-buy,     a.btn-buy:hover,     a.btn-buy:active { color: #fff; }
a.btn-ghost,   a.btn-ghost:hover   { color: var(--text); }
.text-danger { color: var(--danger); }
.link-btn { background: none; border: 0; color: var(--accent); cursor: pointer; font-size: 13px; padding: 0; }
.link-btn:hover { text-decoration: underline; }

/* ---------- 输入 ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.field input {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 10px 12px; font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input:disabled { opacity: .6; }
.field input::placeholder { color: var(--text-3); }
/* 验证码输入行（登录 / 注册 / 后台登录共用） */
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row input { flex: 1; min-width: 0; }
.captcha-img {
  height: 40px; width: 120px; flex: none; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--glass-border); background: #fff; object-fit: cover;
  transition: opacity .15s, border-color .15s;
}
.captcha-img:hover { opacity: .85; border-color: var(--accent); }

.dir-hint { font-size: 12px; margin-top: 6px; color: var(--text-3); }
.dir-hint.ok { color: var(--ok); }
.dir-hint.err { color: var(--danger); }
.dir-url {
  font-family: ui-monospace, Consolas, monospace; font-size: 13px; color: var(--accent);
  background: var(--accent-soft); border-radius: 8px; padding: 7px 11px; word-break: break-all;
}
/* 编辑器：访问密码 + 卡片封面上传区 */
.pwd-row { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.pwd-row input { flex: 1; min-width: 140px; height: 34px; padding: 0 10px; border-radius: 8px; font-size: 13px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); outline: none; }
.pwd-row input:focus { border-color: var(--accent); }
.cover-row { display: flex; gap: 12px; margin-top: 8px; align-items: flex-start; }
.cover-preview { width: 132px; height: 78px; border-radius: 10px; overflow: hidden; flex: none; border: 1px solid var(--border); background: linear-gradient(135deg, var(--surface-2), var(--surface-3)); display: flex; align-items: center; justify-content: center; background-size: cover !important; background-position: center !important; }
.cover-preview .cover-ph { font-size: 11.5px; color: var(--text-3); text-align: center; line-height: 1.5; }
.cover-opts { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.cover-opts input[type="file"] { font-size: 12px; color: var(--text-2); }
@media (max-width: 640px) {
  .cover-row { flex-direction: column; }
  .cover-preview { width: 100%; height: 96px; }
}
.dt-mine-tip { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); margin-top: 18px; }
.dt-mine-tip a { color: var(--accent); font-weight: 600; }

/* 卡片「详情」按钮：点击直达详情页，不影响卡片整体直达 */
.g-detail-btn {
  display: inline-flex; align-items: center; gap: 3px; flex: none;
  font-size: 11.5px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border: 1px solid transparent;
  border-radius: 20px; padding: 3px 10px; cursor: pointer;
  transition: all .15s; line-height: 1.4;
}
.g-detail-btn:hover { background: var(--accent); color: #fff; }
.g-foot .g-detail-btn { margin-left: auto; }
.g-hover-meta { gap: 8px; flex-wrap: wrap; }
/* 卡片封面左上角详情按钮：小尺寸、半透明底、不占地方 */
.g-detail-corner {
  position: absolute; top: 8px; left: 8px; z-index: 6;
  font-size: 10.5px; padding: 2.5px 9px; border-radius: 999px;
  background: rgba(15, 23, 42, .42); color: #fff;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, .22);
  pointer-events: auto;
}
.g-detail-corner:hover { background: var(--accent); border-color: var(--accent); }
[data-theme="light"] .g-detail-corner { background: rgba(255, 255, 255, .66); color: #1e293b; border-color: rgba(15, 23, 42, .12); }
[data-theme="light"] .g-detail-corner:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
/* 卡片主体链接：详情按钮独立在外层卡片上，点击永不穿透 */
.g-card-main { display: flex; flex-direction: column; flex: 1; min-height: 0; text-decoration: none; color: inherit; }
/* 排行榜行详情按钮 */
.rk-actions { display: inline-flex; align-items: center; gap: 10px; flex: none; margin-left: 12px; }
.rk-detail {
  font-size: 12px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border-radius: 20px; padding: 4px 12px; cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
.rk-detail:hover { background: var(--accent); color: #fff; }
@media (max-width: 640px) { .rk-actions { margin-left: 6px; gap: 6px; } }
/* 后台站点管理操作按钮：图标与文字对齐 */
.mini-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-actions button { display: inline-flex; align-items: center; gap: 4px; }
/* 后台站点列表封面缩略图 */
.s-cover {
  display: inline-block; width: 34px; height: 22px; border-radius: 5px; margin-right: 8px;
  vertical-align: middle; background-size: cover !important; background-position: center !important;
  border: 1px solid var(--border); flex: none;
}

/* ---------- 卡片 ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.section { padding: 64px 0 24px; }
.section-title { font-size: 24px; font-weight: 700; letter-spacing: .2px; position: relative; display: inline-block; }
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: -7px; width: 44px; height: 3px;
  border-radius: 999px; background: var(--grad-brand); box-shadow: 0 2px 12px rgba(139, 92, 246, .45);
}
.section-sub { color: var(--text-2); margin: 14px 0 26px; font-size: 14px; }

/* 英雄区：右上角柔和蓝色光斑 + 底部平滑过渡遮罩（消除与下方区块的突兀截断） */
.hero { padding: 76px 0 44px; position: relative; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; }
.hero::before {
  content: ""; position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none;
  width: 400px; height: 400px; background: rgba(99, 102, 241, .22); top: -230px; right: -130px;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 96px; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg) 96%);
  z-index: 0;
}
.hero-inner { position: relative; text-align: center; }
.hero-badge {
  display: inline-block; font-size: 12.5px; color: var(--accent); border: 1px solid rgba(139, 92, 246, .45);
  border-radius: 999px; padding: 6px 16px; margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(99, 102, 241, .20), rgba(168, 85, 247, .14));
  box-shadow: 0 0 20px rgba(139, 92, 246, .18);
}
.hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: .5px; line-height: 1.25; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 24px rgba(139, 92, 246, .45)); }
.hero-sub { max-width: 620px; margin: 16px auto 26px; color: var(--text-2); font-size: 15.5px; }
/* 英雄区平台优势：胶囊徽章式清单 */
.hero-feats {
  list-style: none; margin: 0 auto 30px; padding: 0; max-width: 900px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.hero-feats li {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(139, 92, 246, .07); border: 1px solid rgba(139, 92, 246, .18);
  border-radius: 999px; padding: 7px 14px;
  font-size: 13px; color: var(--text-2); line-height: 1.5;
  transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
}
.hero-feats li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #22d3ee);
  box-shadow: 0 0 8px rgba(139, 92, 246, .6);
}
.hero-feats li:hover {
  border-color: rgba(139, 92, 246, .5); background: rgba(139, 92, 246, .13);
  transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
@media (max-width: 768px) {
  .hero-feats { gap: 7px; }
  .hero-feats li { font-size: 12.5px; padding: 6px 11px; }
}

/* ---------- 一键回到顶部 ---------- */
.back-top {
  position: fixed; right: 22px; bottom: 30px; z-index: 200;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none;
  transition: opacity .25s, transform .25s, background .2s, color .2s;
}
.back-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-top:hover { background: var(--accent); color: #fff; }
.back-top-arrow { font-size: 18px; line-height: 1; }
.hero-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 14px; margin: 36px auto 30px; max-width: 940px;
}
.hero-stats div {
  position: relative; min-width: 0; padding: 20px 18px 16px; text-align: center;
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 16px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .18s, border-color .18s, box-shadow .18s;
  overflow: hidden;
}
/* 顶部渐变装饰条 */
.hero-stats div::before {
  content: ""; position: absolute; top: 0; left: 20px; right: 20px; height: 2px;
  border-radius: 999px; background: var(--grad-brand); opacity: .55;
}
.hero-stats div:hover { transform: translateY(-3px); border-color: rgba(139, 92, 246, .55); box-shadow: 0 16px 38px rgba(0, 0, 0, .28), 0 0 26px rgba(139, 92, 246, .18); }
.hero-stats b {
  display: block; font-size: 28px; font-weight: 800; color: var(--text);
  font-variant-numeric: tabular-nums;
}
/* 夜间：统计数字纯白 + 微光，避免渐变文字与毛玻璃冲突导致空白 */
[data-theme="dark"] .hero-stats b { color: #fff; text-shadow: 0 2px 18px rgba(139, 92, 246, .5); }
.hero-stats span { font-size: 12.5px; color: var(--text-3); letter-spacing: .3px; }

/* ---------- 编辑器 ---------- */
.editor-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden;
}
.editor-card::before {
  content: ""; position: absolute; inset: 0; border-radius: 18px; padding: 1px; pointer-events: none; z-index: 1;
  background: linear-gradient(135deg, rgba(139, 92, 246, .28), transparent 40%, rgba(236, 72, 153, .18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.editor-grid { display: grid; grid-template-columns: 1fr 340px; min-height: 560px; }
.editor-main { display: flex; flex-direction: column; min-width: 0; }

/* 编辑器底部双栏：发布前检查（左） + 发布小贴士（右） */
.editor-foot {
  margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding: 14px 18px 16px; border-top: 1px dashed var(--border);
  background: linear-gradient(180deg, transparent, var(--surface-2));
}

/* 发布前检查清单 */
.check-strip { min-width: 0; }
.check-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.check-title { font-size: 13px; font-weight: 700; color: var(--text); display: inline-flex; align-items: center; gap: 5px; }
.check-title svg { width: 14px; height: 14px; color: var(--accent); }
.check-num {
  font-size: 12px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 2px 10px;
}
.check-items { display: flex; flex-direction: column; gap: 6px; }
.check-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  transition: all .25s;
}
.check-item.ok { border-color: rgba(16, 185, 129, .45); background: rgba(16, 185, 129, .07); }
.check-ic { display: inline-flex; flex: none; color: var(--text-3); transition: color .25s; }
.check-ic svg { width: 15px; height: 15px; }
.check-item.ok .check-ic { color: #10b981; }
.check-tx { flex: 1; min-width: 0; font-size: 12.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check-item.ok .check-tx { color: var(--text); }
.check-st {
  flex: none; font-size: 11px; font-weight: 600; color: var(--text-3);
  border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px;
  transition: all .25s;
}
.check-item.ok .check-st { color: #10b981; border-color: rgba(16, 185, 129, .45); background: rgba(16, 185, 129, .1); }

/* 发布小贴士（右侧） */
.tip-strip { min-width: 0; border-left: 1px solid var(--border); padding-left: 16px; }
.tip-head { margin-bottom: 10px; }
.tip-title { font-size: 13px; font-weight: 700; color: var(--text); display: inline-flex; align-items: center; gap: 5px; }
.tip-title svg { width: 14px; height: 14px; color: var(--accent); }
.tip-items { display: flex; flex-direction: column; gap: 5px; }
.tip-item {
  display: flex; align-items: center; gap: 7px; padding: 3px 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  transition: all .18s;
}
.tip-item:hover { border-color: var(--accent); box-shadow: 0 3px 10px var(--accent-soft); }
.tip-ic { display: inline-flex; flex: none; color: var(--accent); }
.tip-ic svg { width: 13px; height: 13px; }
.tip-tx { display: flex; align-items: baseline; gap: 5px; min-width: 0; }
.tip-tx b { font-size: 12px; font-weight: 700; color: var(--text); flex: none; }
.tip-tx i { font-size: 11px; font-style: normal; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 左：页签 */
.tabs { display: flex; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.tab {
  padding: 13px 22px; font-size: 14px; font-weight: 600; color: var(--text-2); background: none;
  border: 0; border-bottom: 2px solid transparent; cursor: pointer; transition: color .2s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); background: linear-gradient(180deg, transparent 55%, rgba(99, 102, 241, .14)); border-bottom-color: var(--accent); }

.tab-pane { display: none; padding: 18px; }
.tab-pane.active { display: block; }
/* 粘贴 / 上传两个面板固定等高，切换页签时下方内容不上下跳动 */
#pane-paste, #pane-upload { min-height: 510px; }
#pane-paste.active, #pane-upload.active { display: flex; flex-direction: column; }
#pane-upload .fm-window { flex: 1; display: flex; flex-direction: column; }

.code-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.upload-target { margin-top: 2px; }
#uploadTarget {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 7px 10px; font-size: 12.5px; outline: none; width: 190px;
}
#uploadTarget:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.file-dir { cursor: pointer; border-radius: 6px; }
.file-dir:hover { background: var(--surface-2); }
.file-dir .f-icon { flex: none; display: inline-flex; }
.f-toggle { width: 16px; height: 16px; color: var(--text-3); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.file-children { display: block; }
.file-children.hidden { display: none; }

/* 视图切换（列表 / 大图） */
.view-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.view-switch .vs-btn {
  width: 30px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--text-3); cursor: pointer; border: none; transition: all .15s;
}
.view-switch .vs-btn:hover { color: var(--text); }
.view-switch .vs-btn.active { background: var(--accent-soft); color: var(--accent); }
.view-switch .vs-btn svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.8; }

/* 支持文件小提示条 */
.support-tip {
  font-size: 11.5px; color: var(--text-3); background: var(--surface-2);
  border: 1px dashed var(--border); border-radius: 8px; padding: 5px 12px; margin-bottom: 10px;
}
.cap-info { color: var(--text-3); font-size: 11.5px; }

/* 大图视图（网格） */
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; padding: 8px 2px; }
.f-cell {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px;
  border: 1px solid transparent; border-radius: 12px; cursor: default; transition: all .15s; text-align: center;
}
.f-cell:hover { background: var(--surface-2); border-color: var(--border); }
.f-cell.editable { cursor: pointer; }
.f-cell.editable:hover .f-cell-name { color: var(--accent); }
.f-cell-ico { height: 42px; display: flex; align-items: center; justify-content: center; color: var(--text-2); }
.f-cell-dir .f-cell-ico { color: var(--accent); }
.f-cell-name { font-size: 12px; color: var(--text); width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-cell-size { font-size: 10.5px; color: var(--text-3); }

/* 可在线编辑的文件行 */
.file-row.editable { cursor: pointer; }
.file-row.editable:hover .f-name { color: var(--accent); }

/* 宝塔风格文件管理窗口（前台编辑器上传区） */
.fm-window { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.fm-window.dragover { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent-soft); }
.fm-win-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); flex-wrap: wrap; background: var(--surface-2); }
.fm-win-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fm-win-right { display: flex; align-items: center; gap: 10px; }
.fm-win-path { font-size: 12.5px; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; }
.fm-window-body { max-height: 420px; overflow-y: auto; padding: 4px 10px; }
#pane-upload .fm-window-body { flex: 1 1 auto; max-height: 100%; }
.fm-win-tip { border-top: 1px solid var(--border); padding: 6px 14px; font-size: 11px; color: var(--text-3); text-align: center; }
.fm-new-wrap { position: relative; }
.fm-new-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 60; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); padding: 4px; min-width: 132px; }
.fm-new-menu.hidden { display: none; }
.fmn-item { display: block; width: 100%; text-align: left; background: none; border: none; color: var(--text); padding: 8px 12px; border-radius: 7px; cursor: pointer; font-size: 13px; }
.fmn-item:hover { background: var(--accent-soft); color: var(--accent); }
/* 上传文件工具栏「更多」（桌面端隐藏，移动端收纳打包下载 / 预览） */
.fm-more-wrap { position: relative; display: none; }
.fm-more-wrap .fm-new-menu { left: auto; right: 0; }

/* 文件在线编辑弹窗（带行号 + 语法高亮） */
.fe-wrap { position: relative; height: 58vh; min-height: 320px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); overflow: hidden; }
.fe-editor {
  width: 100%; height: 100%; display: block; position: relative; z-index: 2;
  background: transparent; color: transparent; caret-color: var(--text);
  border: 0; outline: 0; resize: none; padding: 14px 14px 14px 56px;
  font-family: ui-monospace, Consolas, monospace; font-size: 13px; line-height: 1.6; white-space: pre; overflow: auto;
}
.fe-gutter {
  position: absolute; left: 0; top: 0; bottom: 0; width: 44px; overflow: hidden;
  background: var(--surface); border-right: 1px solid var(--border);
  color: var(--text-3); text-align: right; padding: 14px 8px 0 0; user-select: none; pointer-events: none; z-index: 3;
  font-family: ui-monospace, Consolas, monospace; font-size: 13px; line-height: 1.6;
}
.fe-gutter-inner { will-change: transform; }
.fe-gutter-inner div { height: 1.6em; line-height: 1.6em; }
.fe-hl-wrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.fe-hl {
  margin: 0; padding: 14px 14px 14px 56px; will-change: transform;
  font-family: ui-monospace, Consolas, monospace; font-size: 13px; line-height: 1.6; white-space: pre; color: var(--text);
}
/* 语法高亮配色（默认对标 VSCode Dark+，通过 CSS 变量支持多套编辑器主题） */
.hl-c { color: var(--hl-c, #8b949e); font-style: italic; }  /* 注释 */
.hl-s { color: var(--hl-s, #ce9178); }                      /* 字符串 */
.hl-k { color: var(--hl-k, #c586c0); font-weight: 600; }    /* 关键字 */
.hl-v { color: var(--hl-v, #9cdcfe); }                      /* PHP 变量 */
.hl-n { color: var(--hl-n, #b5cea8); }                      /* 数字 */
.hl-t { color: var(--hl-t, #569cd6); }                      /* HTML 标签 */
/* 编辑器主题变量（经典深色 / 暖纸米金 / 翡翠墨绿 / 午夜蓝） */
.fe-wrap { background: var(--ed-bg, var(--code-bg)); }
.fe-editor { caret-color: var(--ed-caret, var(--text)); }
.fe-hl { color: var(--ed-fg, var(--text)); }
.fe-gutter { background: var(--ed-gutter, var(--surface)); border-right-color: var(--ed-border, var(--border)); color: var(--ed-fg, var(--text)); opacity: .6; }
.fe-wrap[data-et="dark"] { --hl-c: #8b949e; --hl-s: #ce9178; --hl-k: #c586c0; --hl-v: #9cdcfe; --hl-n: #b5cea8; --hl-t: #569cd6; }
.fe-wrap[data-et="paper"] {
  --hl-c: #a29a83; --hl-s: #b45309; --hl-k: #92400e; --hl-v: #0f766e; --hl-n: #a16207; --hl-t: #1d4ed8;
  --ed-bg: #f6f0e3; --ed-fg: #33291c; --ed-gutter: #efe7d4; --ed-border: #e0d5ba; --ed-caret: #92400e;
}
.fe-wrap[data-et="emerald"] {
  --hl-c: #5d8371; --hl-s: #7dd3a8; --hl-k: #86efac; --hl-v: #a5f3c5; --hl-n: #d1fae5; --hl-t: #6ee7b7;
  --ed-bg: #0d2018; --ed-fg: #d5efe2; --ed-gutter: #10291f; --ed-border: #1b3a2d; --ed-caret: #86efac;
}
.fe-wrap[data-et="midnight"] {
  --hl-c: #7c8db5; --hl-s: #8be9fd; --hl-k: #c792ea; --hl-v: #82aaff; --hl-n: #f78c6c; --hl-t: #ffcb6b;
  --ed-bg: #0b1020; --ed-fg: #d6deff; --ed-gutter: #0e1428; --ed-border: #1a2240; --ed-caret: #82aaff;
}
.fe-theme-select {
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text);
  font-size: 12px; padding: 5px 8px; outline: none; cursor: pointer;
}
.fe-theme-select:focus { border-color: var(--accent); }
/* 后台编辑区适配 */
.fm-editor .fe-wrap { flex: 1; min-height: 0; height: auto; border: 0; border-radius: 0; background: var(--code-bg); }
.fe-hint { font-size: 11.5px; color: var(--text-3); flex: 1; }
.code-info { font-size: 12.5px; color: var(--text-3); margin-right: auto; }
.toolbar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn.is-disabled { opacity: .5; pointer-events: none; }

#codeInput {
  width: 100%; min-height: 440px; resize: vertical; padding: 16px;
  background: var(--code-bg); color: var(--text); border: 1px solid var(--border); border-radius: 12px;
  font-family: ui-monospace, "Cascadia Code", Consolas, "JetBrains Mono", Menlo, monospace;
  font-size: 13.5px; line-height: 1.65; outline: none; transition: border-color .2s; tab-size: 2;
}
#codeInput:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
#codeInput::placeholder { color: var(--text-3); }

/* 上传区 */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 230px; border: 2px dashed var(--border-strong); border-radius: 14px;
  cursor: pointer; transition: border-color .2s, background .2s; padding: 24px;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone svg { width: 42px; height: 42px; color: var(--text-3); transition: color .2s; }
.dropzone:hover svg { color: var(--accent); }
.upload-progress { display: flex; align-items: center; gap: 10px; margin: 12px 0 2px; }
.up-bar { flex: 1; height: 6px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.up-fill {
  height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), #22d3ee);
  border-radius: 999px; transition: width .15s linear;
}
.up-text { font-size: 12px; color: var(--text-2); min-width: 40px; text-align: right; font-variant-numeric: tabular-nums; }
.dz-title { font-size: 14.5px; font-weight: 600; }
.dz-sub { font-size: 12.5px; color: var(--text-3); text-align: center; }

.upload-actions { display: flex; gap: 8px; margin: 14px 0 10px; }
.file-list { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow: auto; }
.file-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--surface-2); font-size: 13px;
}
.file-row .f-icon { color: var(--accent); flex: none; }
.file-row .f-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.file-row .f-size { color: var(--text-3); font-size: 12px; flex: none; }
.file-row .f-del {
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(10, 16, 30, .72); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .16); color: #e2e8f0;
  cursor: pointer; font-size: 12px; line-height: 1; padding: 6px 12px;
  border-radius: 999px; flex: none; white-space: nowrap;
  transition: color .2s, background .2s, border-color .2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .28);
}
.file-row .f-del:hover { background: var(--danger); color: #fff; border-color: transparent; }
.file-row .f-xz, .file-row .f-dl {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(10, 16, 30, .72); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .16); color: #e2e8f0;
  cursor: pointer; font-size: 12px; line-height: 1; padding: 6px 12px; border-radius: 999px;
  flex: none; white-space: nowrap;
  transition: color .2s, background .2s, border-color .2s, transform .15s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .28);
}
.file-row .f-xz:hover, .file-row .f-dl:hover { background: var(--accent); color: var(--accent-contrast); border-color: transparent; transform: translateY(-1px); }
/* 日间模式：浅色毛玻璃底，保持对比 */
[data-theme="light"] .file-row .f-del,
[data-theme="light"] .file-row .f-xz,
[data-theme="light"] .file-row .f-dl {
  background: rgba(255, 255, 255, .86); border-color: rgba(15, 23, 42, .12); color: #334155;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .10);
}

/* 网格视图操作按钮（hover 显示）：半透明深色胶囊，夜间模式清晰可读 */
.f-cell { position: relative; }
.f-cell-ops {
  position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; opacity: 0;
  transition: opacity .2s; z-index: 5;
}
.f-cell:hover .f-cell-ops { opacity: 1; }
.f-op {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; padding: 0;
  background: rgba(10, 16, 30, .72); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .16); color: #e2e8f0;
  cursor: pointer; border-radius: 8px; flex: none;
  transition: color .2s, background .2s, border-color .2s, transform .15s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .28);
}
.f-op:hover { background: var(--accent); color: var(--accent-contrast); border-color: transparent; transform: translateY(-1px); }
.f-op-del:hover { background: var(--danger); color: #fff; border-color: transparent; }
/* 日间模式下深色胶囊改为浅色底，保持对比 */
[data-theme="light"] .f-op {
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(6px);
  border-color: rgba(15, 23, 42, .12); color: #334155;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .10);
}

/* 右：侧栏（编辑器已改为单栏，以下为兼容保留） */
.editor-side { border-left: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; }
.side-group { padding: 18px 20px; }
.side-title { font-size: 12.5px; font-weight: 700; color: var(--text-3); letter-spacing: .6px; margin-bottom: 14px; text-transform: uppercase; }
.side-group .field { margin-bottom: 12px; }

/* 编辑器布局：上方左右两栏（左=粘贴/上传，右=站点信息），下方整块宽区（发布设置/账号） */
.editor-grid { grid-template-columns: 1fr 340px; }
.editor-divider { height: 2px; margin: 0; background: linear-gradient(90deg, var(--accent), var(--accent-soft) 42%, transparent 92%); }
.editor-sub { padding: 14px 22px 16px; background: var(--surface); border-radius: 0 0 16px 16px; }
/* 发布设置 / 账号：三行紧凑排版，不留大片空白 */
.pub-row { display: flex; align-items: center; gap: 18px; padding: 11px 0; border-bottom: 1px dashed var(--border); flex-wrap: wrap; }
.pub-row:last-child { border-bottom: 0; padding-bottom: 4px; }
.pub-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; width: 100%; }
/* 顶部一行：发布上线 + 公开展示 + 封面主色（按用户设计稿合并为一行） */
.pub-top { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: center; width: 100%; }
.pub-top-left { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; min-width: 0; }
.pub-top-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; }
.pub-top .pub-switch { flex: none; }
.pub-switch { display: flex; align-items: center; justify-content: flex-start; gap: 12px; min-width: 0; }
.pub-row-label { font-size: 12.5px; font-weight: 600; color: var(--text-2); flex: none; margin-right: 4px; }
.pub-colors { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pub-colors .cover-colors { margin: 0; }
.pub-actions { justify-content: space-between; }
/* 到期提示条宽度收到与左列（趋势/续期）同宽，右边缘与「卡密续期」按钮右侧对齐 */
.pub-actions #expireAlert { flex: none; width: calc(50% - 11px); max-width: calc(50% - 11px); min-width: 0; margin-right: 14px; }
.pub-actions #expireAlert .expire-alert { margin-bottom: 0; }
.editor-sub > #accountBox { margin-top: 6px; }
.publish-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
@media (max-width: 980px) {
  .pub-2col { grid-template-columns: 1fr; gap: 4px; }
  .pub-top { grid-template-columns: 1fr; gap: 6px; }
  .pub-actions #expireAlert { width: 100%; max-width: 100%; margin-right: 0; }
}
@media (max-width: 720px) {
  .pub-row { padding: 9px 0; gap: 10px; }
  .pub-actions { justify-content: flex-start; }
  .publish-bar { margin-left: 0; }
  .editor-sub { padding: 12px 14px 14px; }
}

/* 卡片封面设置：窄栏纵向排版（全宽预览 + 下方操作行） */
.cover-box { display: block; margin-top: 4px; }
.cover-shot {
  width: 100%; height: 150px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  display: flex; align-items: center; justify-content: center; background-size: cover !important; background-position: center !important;
  position: relative;
}
.cover-shot.has-img::after { content: ""; position: absolute; inset: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); pointer-events: none; }
.cover-shot .cover-ph { font-size: 12px; color: var(--text-3); text-align: center; line-height: 1.6; }
.cover-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cover-pick { display: inline-flex; align-items: center; gap: 5px; width: fit-content; cursor: pointer; }
.cover-hint { margin-top: 8px; }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; }
.sr-label { font-size: 14px; font-weight: 500; }
.sr-sub { font-size: 12px; color: var(--text-3); margin-top: 1px; }

.switch { position: relative; width: 42px; height: 24px; flex: none; cursor: pointer; }
.switch input { display: none; }
.switch .track {
  position: absolute; inset: 0; background: var(--border-strong); border-radius: 999px; transition: background .25s, box-shadow .25s;
}
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; transition: left .25s cubic-bezier(.34, 1.4, .64, 1); box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.switch input:checked + .track { background: var(--grad-brand); box-shadow: 0 0 12px rgba(139, 92, 246, .35); }
.switch input:checked + .track::after { left: 21px; }
.switch:active .track::after { width: 21px; }
.switch:active input:checked + .track::after { left: 18px; }

/* 账号区 */
.me-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 2px 14px; margin-bottom: 10px;
}
.me-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; font-size: 12.5px; gap: 10px;
}
.me-row + .me-row { border-top: 1px solid var(--border); }
.me-row > span { color: var(--text-3); flex: none; }
.me-row > b { color: var(--text); font-weight: 600; text-align: right; word-break: break-all; }
.me-row > b.expired-txt { color: var(--danger); }
.me-row > b.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.me-actions { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.me-actions .btn { width: 100%; margin: 0; }
.me-actions .sec-wrap { display: block; width: 100%; min-width: 0; }
.me-actions .sec-wrap .btn { width: 100%; }
/* 账号区两列：左=账号信息/备份/操作，右=趋势/续期，填满下方整块宽区不再留白 */
.me-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }.me-col { display: flex; flex-direction: column; min-width: 0; }
.me-col .side-title { margin-top: 0; }
.renew-row { display: flex; gap: 8px; }
.renew-row input { flex: 1; min-width: 0; }
.renew-row .btn { align-self: auto; flex: none; white-space: nowrap; }
.backup-entry { margin-top: 12px; border-style: dashed; }
.backup-entry:hover { border-color: rgba(139, 92, 246, .55); background: var(--accent-soft); }
/* 账号区：备份管理 + 回收站 并排 */
.side-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.side-btns .btn { width: 100%; margin: 0; }
/* 未登录侧栏注册表单：两列排布，避免右侧留白 */
.side-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.side-form .field { margin-bottom: 12px; min-width: 0; }
.side-form .field > span { font-size: 12.5px; }
/* 未登录注册表单：两行三列（第一行 卡密/密保问题/密保答案 · 第二行 账号/密码/验证码） */
.side-form.side-form-reg { grid-template-columns: 1fr 1fr 1fr; gap: 0 12px; }
.side-form.side-form-reg .captcha-row { flex-direction: row; align-items: stretch; }
.side-form.side-form-reg .captcha-row input { flex: 1; min-width: 0; }
.side-form.side-form-reg .captcha-img { width: 120px; flex: none; }
.trash-entry { border-style: dashed; }
.trash-entry:hover { border-color: rgba(244, 63, 94, .55); background: rgba(244, 63, 94, .08); }
.danger-txt { color: #f87171; font-weight: 700; }
.btn-danger-ghost { color: var(--danger, #e5484d) !important; }
.btn-danger-ghost:hover { background: rgba(229, 72, 77, .12) !important; }
.renew-tip { font-size: 12px; color: var(--text-3); line-height: 1.7; background: var(--surface-2); border-radius: 8px; padding: 8px 10px; }
.renew-tip b { color: var(--accent); }
.side-tip { font-size: 12.5px; color: var(--text-3); line-height: 1.9; }
.side-tip .link-btn { margin-right: 10px; }

.publish-bar { margin-top: auto; display: flex; gap: 10px; padding: 18px 20px; }
.publish-bar .btn { flex: 1; }

/* 诊断提示条（链接同步等环境问题，出现在页面最顶部） */
.diag-bar {
  background: linear-gradient(90deg, rgba(245, 158, 11, .16), rgba(245, 158, 11, .06));
  border-bottom: 1px solid rgba(245, 158, 11, .32);
  color: var(--text);
  padding: 11px 20px;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}
.diag-bar a { color: var(--accent); text-decoration: underline; }

/* ---------- 面板头 / 面板体（与编辑器卡片同风格） ---------- */
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 15px 20px; background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.panel-title { font-size: 15px; font-weight: 700; }
.panel-sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.panel-label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.panel-count { font-size: 13px; color: var(--text-3); }
.panel-body { padding: 20px; }

/* ---------- 展示区搜索 / 排序（与编辑器卡片同风格） ---------- */
.gallery-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.gallery-tools input {
  width: 200px; background: var(--surface); border: 1px solid var(--border); color: var(--text);
  border-radius: 9px; padding: 8px 12px; font-size: 13px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.gallery-tools input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.gallery-tools select {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  border-radius: 9px; padding: 8px 10px; font-size: 13px; outline: none; cursor: pointer;
}
.gallery-tools select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
@media (max-width: 640px) {
  .gallery-tools { margin-left: 0; width: 100%; }
  .gallery-tools input { flex: 1; min-width: 140px; }
}

/* ---------- 自助领取卡密 ---------- */
.claim-layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: center; }
.claim-info { min-width: 0; }
.claim-title { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.claim-title::before { content: ""; width: 4px; height: 18px; border-radius: 99px; background: var(--grad-brand); flex: none; }
.claim-sub { font-size: 13px; color: var(--text-2); margin-top: 8px; line-height: 1.7; }
.claim-feats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; }
.claim-feat { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); }
.claim-feat::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--grad-brand); box-shadow: 0 0 8px rgba(139, 92, 246, .55);
}
.claim-plans { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.claim-plan { position: relative; cursor: pointer; }
.claim-plan input { position: absolute; opacity: 0; pointer-events: none; }
.claim-plan span {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px;
  border: 1px solid var(--glass-border); border-radius: 12px;
  font-size: 13.5px; color: var(--text-2); background: var(--glass-bg);
  transition: all .18s; user-select: none;
}
.claim-plan span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-3); transition: all .18s;
}
.claim-plan span em { font-style: normal; font-size: 11px; opacity: .72; }
.claim-plan.active span,
.claim-plan input:checked + span {
  color: #fff; border-color: rgba(139, 92, 246, .7);
  background: linear-gradient(135deg, #6366f1, #8b5cf6 60%, #a855f7);
  box-shadow: 0 6px 18px rgba(139, 92, 246, .35), 0 0 0 3px rgba(139, 92, 246, .14);
}
.claim-plan.active span::before { background: #fff; box-shadow: 0 0 8px #fff; }
/* 右侧领取区：票券式体验卡 */
.claim-action {
  position: relative; text-align: center; padding: 26px 24px 22px; border-radius: 20px;
  background: linear-gradient(150deg, rgba(99, 102, 241, .10), rgba(168, 85, 247, .16));
  border: 1.5px dashed rgba(139, 92, 246, .45); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.claim-action::before {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none;
  width: 170px; height: 170px; background: rgba(139, 92, 246, .35); top: -70px; right: -40px;
}
.claim-action .ca-tag {
  position: relative; font-size: 11px; font-weight: 700; letter-spacing: 3px; color: var(--accent);
  padding: 3px 14px; border-radius: 999px; border: 1px solid rgba(139, 92, 246, .45);
  background: var(--glass-bg);
}
.claim-action .ca-days {
  position: relative; font-size: 36px; font-weight: 800; line-height: 1.15; margin-top: 6px;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.claim-action .ca-label { position: relative; font-size: 12px; color: var(--text-3); letter-spacing: .5px; margin: 2px 0 14px; }
.claim-action .btn-lg { position: relative; width: 100%; }
.btn-lg { padding: 14px 42px; font-size: 16px; font-weight: 700; }
#btnClaim .claim-arrow { margin-left: 8px; transition: transform .18s; }
#btnClaim:hover .claim-arrow { transform: translateX(4px); }
.claim-result { margin-top: 16px; }
.claim-key {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 24px; font-weight: 700;
  letter-spacing: 2px; color: var(--accent);
  background: linear-gradient(135deg, rgba(99, 102, 241, .18), rgba(168, 85, 247, .14));
  border: 1px solid rgba(139, 92, 246, .55); border-radius: 12px; padding: 14px 18px;
  text-align: center; word-break: break-all; box-shadow: 0 0 26px rgba(139, 92, 246, .16);
}
.claim-tip { font-size: 13px; color: var(--text-2); margin: 12px 0; }
.claim-close { font-size: 13.5px; color: var(--text-2); text-align: center; padding: 8px 0; }
.claim-err { font-size: 13.5px; color: var(--danger); text-align: center; padding: 8px 0; }
.claim-done { font-size: 14px; color: var(--text-2); }

/* ---------- 展示区 ---------- */
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.gallery-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  animation: cardIn .5s ease backwards;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.gallery-card::before {
  content: ""; position: absolute; inset: 0; border-radius: 14px; padding: 1px; pointer-events: none; z-index: 3;
  background: linear-gradient(135deg, rgba(139, 92, 246, .34), rgba(139, 92, 246, .05) 45%, rgba(236, 72, 153, .24));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: background .2s;
}
.gallery-card:hover { transform: translateY(-5px); border-color: rgba(139, 92, 246, .6); box-shadow: 0 18px 44px rgba(0, 0, 0, .46), 0 0 20px rgba(139, 92, 246, .26), 0 0 48px rgba(139, 92, 246, .14); }
.gallery-card:hover::before { background: linear-gradient(135deg, rgba(139, 92, 246, .7), rgba(139, 92, 246, .12) 45%, rgba(236, 72, 153, .55)); }
.gallery-card:hover .g-cover-title { transform: translateY(-1px); }
.g-cover {
  height: 148px; position: relative; overflow: hidden;
  /* 统一视觉：indigo → violet → pink 渐变，叠加高光与底层光晕 */
  background:
    radial-gradient(460px 320px at 82% -18%, rgba(255, 255, 255, .22), transparent 62%),
    radial-gradient(300px 220px at -10% 110%, rgba(255, 255, 255, .10), transparent 60%),
    linear-gradient(135deg, #6366f1 0%, #8b5cf6 45%, #ec4899 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 16px;
}
/* 柔和光晕装饰 */
.g-cover::before {
  content: ''; position: absolute; width: 230px; height: 230px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .30), transparent 65%);
  top: -90px; right: -55px; pointer-events: none;
}
.g-cover::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 52%; pointer-events: none;
  background: linear-gradient(180deg, transparent 26%, rgba(5, 7, 16, .38) 100%);
}
/* ================= 封面全新设计语言（v1.2.71 从零重做） =================
   视觉构成：主题色弥散光晕（墨晕感）+ 超大目录水印文字 + 顶部细高光 + 底部柔暗角
   色相通过 CSS 变量驱动，日间 / 夜间两套底色自动切换，移动端自动缩放 */
.gallery-card .g-cover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .14), transparent 55%),
    radial-gradient(135% 110% at 12% -12%, var(--g1, rgba(139, 92, 246, .72)), transparent 52%),
    radial-gradient(100% 90% at 106% 38%, var(--g2, rgba(34, 211, 238, .46)), transparent 56%),
    radial-gradient(60% 55% at 50% 130%, var(--g3, rgba(99, 102, 241, .38)), transparent 60%),
    linear-gradient(168deg, var(--gb1, #1e1e4a) 0%, var(--gb2, #2b2b66) 58%, var(--gb3, #3a3a84) 100%);
}
.g-wm {
  position: absolute; right: -10px; bottom: -16px; z-index: 1;
  font-family: ui-monospace, Consolas, monospace; font-weight: 800;
  font-size: 72px; line-height: 1; letter-spacing: -3px; white-space: nowrap;
  color: var(--wm, rgba(255, 255, 255, .09));
  pointer-events: none; user-select: none;
}
/* —— 7 套自动配色：仅定义色相变量（夜间提亮版） —— */
.gallery-card.cv-1 .g-cover { --g1: rgba(99, 102, 241, .72); --g2: rgba(34, 211, 238, .46); --g3: rgba(139, 92, 246, .38); }
.gallery-card.cv-2 .g-cover { --g1: rgba(16, 185, 129, .70); --g2: rgba(6, 182, 212, .48); --g3: rgba(20, 184, 166, .40); }
.gallery-card.cv-3 .g-cover { --g1: rgba(245, 158, 11, .66); --g2: rgba(244, 63, 94, .48); --g3: rgba(249, 115, 22, .42); }
.gallery-card.cv-4 .g-cover { --g1: rgba(244, 63, 94, .70); --g2: rgba(168, 85, 247, .48); --g3: rgba(236, 72, 153, .40); }
.gallery-card.cv-5 .g-cover { --g1: rgba(59, 130, 246, .72); --g2: rgba(34, 211, 238, .48); --g3: rgba(99, 102, 241, .40); }
.gallery-card.cv-6 .g-cover { --g1: rgba(139, 92, 246, .70); --g2: rgba(236, 72, 153, .48); --g3: rgba(168, 85, 247, .40); }
.gallery-card.cv-7 .g-cover { --g1: rgba(6, 182, 212, .66); --g2: rgba(99, 102, 241, .46); --g3: rgba(8, 145, 178, .40); }

/* —— 用户自定义主色：与自动配色同色相（夜间提亮版） —— */
.gallery-card.cc-violet .g-cover { --g1: rgba(139, 92, 246, .70); --g2: rgba(236, 72, 153, .48); --g3: rgba(168, 85, 247, .40); }
.gallery-card.cc-blue   .g-cover { --g1: rgba(59, 130, 246, .72); --g2: rgba(34, 211, 238, .48); --g3: rgba(99, 102, 241, .40); }
.gallery-card.cc-cyan   .g-cover { --g1: rgba(6, 182, 212, .66); --g2: rgba(99, 102, 241, .46); --g3: rgba(8, 145, 178, .40); }
.gallery-card.cc-green  .g-cover { --g1: rgba(16, 185, 129, .70); --g2: rgba(6, 182, 212, .48); --g3: rgba(20, 184, 166, .40); }
.gallery-card.cc-orange .g-cover { --g1: rgba(245, 158, 11, .66); --g2: rgba(244, 63, 94, .48); --g3: rgba(249, 115, 22, .42); }
.gallery-card.cc-rose   .g-cover { --g1: rgba(244, 63, 94, .70); --g2: rgba(168, 85, 247, .48); --g3: rgba(236, 72, 153, .40); }
.gallery-card.cc-indigo .g-cover { --g1: rgba(99, 102, 241, .72); --g2: rgba(34, 211, 238, .46); --g3: rgba(139, 92, 246, .38); }

/* —— 日间模式：浅色底 + 柔和彩色墨晕（无顶部白柔光，避免过曝） —— */
[data-theme="light"] .gallery-card .g-cover {
  --gb1: #f8f9fe; --gb2: #eef1fa; --gb3: #e4e9f7;
  --wm: rgba(18, 24, 54, .06);
  background:
    radial-gradient(135% 110% at 12% -12%, var(--g1, rgba(139, 92, 246, .24)), transparent 52%),
    radial-gradient(100% 90% at 106% 38%, var(--g2, rgba(34, 211, 238, .14)), transparent 56%),
    radial-gradient(60% 55% at 50% 130%, var(--g3, rgba(99, 102, 241, .12)), transparent 60%),
    linear-gradient(168deg, var(--gb1) 0%, var(--gb2) 58%, var(--gb3) 100%);
}
[data-theme="light"] .gallery-card.cv-1 .g-cover { --g1: rgba(99, 102, 241, .24); --g2: rgba(34, 211, 238, .14); --g3: rgba(139, 92, 246, .12); }
[data-theme="light"] .gallery-card.cv-2 .g-cover { --g1: rgba(16, 185, 129, .22); --g2: rgba(6, 182, 212, .14); --g3: rgba(20, 184, 166, .12); }
[data-theme="light"] .gallery-card.cv-3 .g-cover { --g1: rgba(245, 158, 11, .20); --g2: rgba(244, 63, 94, .14); --g3: rgba(249, 115, 22, .12); }
[data-theme="light"] .gallery-card.cv-4 .g-cover { --g1: rgba(244, 63, 94, .22); --g2: rgba(168, 85, 247, .14); --g3: rgba(236, 72, 153, .12); }
[data-theme="light"] .gallery-card.cv-5 .g-cover { --g1: rgba(59, 130, 246, .24); --g2: rgba(34, 211, 238, .14); --g3: rgba(99, 102, 241, .12); }
[data-theme="light"] .gallery-card.cv-6 .g-cover { --g1: rgba(139, 92, 246, .22); --g2: rgba(236, 72, 153, .14); --g3: rgba(168, 85, 247, .12); }
[data-theme="light"] .gallery-card.cv-7 .g-cover { --g1: rgba(6, 182, 212, .20); --g2: rgba(99, 102, 241, .14); --g3: rgba(8, 145, 178, .12); }
[data-theme="light"] .gallery-card.cc-violet .g-cover { --g1: rgba(139, 92, 246, .22); --g2: rgba(236, 72, 153, .14); --g3: rgba(168, 85, 247, .12); }
[data-theme="light"] .gallery-card.cc-blue   .g-cover { --g1: rgba(59, 130, 246, .24); --g2: rgba(34, 211, 238, .14); --g3: rgba(99, 102, 241, .12); }
[data-theme="light"] .gallery-card.cc-cyan   .g-cover { --g1: rgba(6, 182, 212, .20); --g2: rgba(99, 102, 241, .14); --g3: rgba(8, 145, 178, .12); }
[data-theme="light"] .gallery-card.cc-green  .g-cover { --g1: rgba(16, 185, 129, .22); --g2: rgba(6, 182, 212, .14); --g3: rgba(20, 184, 166, .12); }
[data-theme="light"] .gallery-card.cc-orange .g-cover { --g1: rgba(245, 158, 11, .20); --g2: rgba(244, 63, 94, .14); --g3: rgba(249, 115, 22, .12); }
[data-theme="light"] .gallery-card.cc-rose   .g-cover { --g1: rgba(244, 63, 94, .22); --g2: rgba(168, 85, 247, .14); --g3: rgba(236, 72, 153, .12); }
[data-theme="light"] .gallery-card.cc-indigo .g-cover { --g1: rgba(99, 102, 241, .24); --g2: rgba(34, 211, 238, .14); --g3: rgba(139, 92, 246, .12); }

/* 日间文字 / 徽章 / 暗角 */
[data-theme="light"] .g-cover-title { color: #171b32; text-shadow: 0 1px 2px rgba(255, 255, 255, .6); }
[data-theme="light"] .g-dir-badge { background: rgba(255, 255, 255, .78); color: #353c5e; border-color: rgba(20, 25, 55, .14); }
[data-theme="light"] .g-cover::after { background: linear-gradient(180deg, transparent 26%, rgba(15, 20, 48, .08) 100%); }

/* 顶部细高光（夜间） */
.g-cover::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent);
}
.g-dir-badge {
  position: absolute; top: 10px; right: 12px; z-index: 2;
  font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; color: #fff;
  background: rgba(10, 12, 32, .62); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px; padding: 3px 10px; backdrop-filter: blur(4px);
}
.g-cover-title {
  position: relative; z-index: 2;
  font-size: 20px; font-weight: 800; color: #fff; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .42), 0 1px 24px rgba(0, 0, 0, .30);
  transition: transform .2s;
}
.g-body { padding: 13px 16px 15px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.gallery-card .g-desc { font-size: 13px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.gallery-card .g-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px 10px; flex-wrap: nowrap; margin-top: auto; padding-top: 6px; }
.g-dir { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--accent); background: var(--accent-soft); border-radius: 7px; padding: 3px 9px; }
.g-time { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.g-views { font-size: 12px; color: var(--text-3); white-space: nowrap; flex: none; }
.gallery-empty { text-align: center; padding: 48px 0; color: var(--text-2); }
.gallery-empty .btn { margin-top: 14px; }

/* 展示区分页控件 */
.gallery-pages { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.gallery-pages .gp-btn, .gallery-pages .gp-num {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2);
  border-radius: 9px; padding: 6px 14px; font-size: 13px; cursor: pointer;
  transition: all .15s; font-family: inherit; line-height: 1.4;
}
.gallery-pages .gp-btn:hover, .gallery-pages .gp-num:hover { color: var(--text); border-color: rgba(139, 92, 246, .45); transform: translateY(-1px); }
.gallery-pages .gp-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.gallery-pages .gp-num.active {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, #6366f1, #8b5cf6 60%, #a855f7);
  box-shadow: 0 4px 14px rgba(139, 92, 246, .35);
}
.gallery-pages .gp-ellipsis { color: var(--text-3); padding: 0 2px; font-size: 13px; }
.gallery-pages .gp-info { font-size: 12.5px; color: var(--text-3); margin-left: 6px; letter-spacing: .3px; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 70px; padding: 26px 0; color: var(--text-3); font-size: 13px; position: relative; }
.site-footer::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, .5), transparent);
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }

/* ---------- 弹窗 ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(5, 8, 14, 0.65);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 440px; max-width: 100%; max-height: 90vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(99, 102, 241, .10);
  animation: popIn .2s ease;
}
.modal-wide { width: min(960px, 94vw); }
.modal-sm { width: 380px; }
.modal-lg { width: min(860px, 94vw); }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.modal-title { font-size: 15.5px; font-weight: 700; }
.modal-close {
  background: none; border: 0; font-size: 22px; line-height: 1; color: var(--text-3);
  cursor: pointer; padding: 2px 8px; border-radius: 8px; transition: color .2s, background .2s;
}
.modal-close:hover { color: var(--text); background: var(--surface-2); }
.modal-body { padding: 20px; }
.modal-body .field:last-child { margin-bottom: 0; }
.modal-tip { margin-top: 14px; font-size: 12.5px; color: var(--text-3); line-height: 1.8; }
.forgot-link { float: right; margin-top: -2px; font-size: 12.5px; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal-actions .btn { flex: 1; }
.preview-body { padding: 0; }
#previewFrame { width: 100%; height: calc(90vh - 62px); border: 0; display: block; background: #fff; }
.modal-head-actions { display: flex; align-items: center; gap: 8px; }
/* 系统自检弹窗 */
.diag-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.diag-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); }
.diag-table td:first-child { color: var(--text-3); width: 42%; white-space: nowrap; }
.diag-table td:last-child { font-family: ui-monospace, Consolas, monospace; word-break: break-all; }
.diag-note {
  margin-top: 14px; padding: 10px 14px; border-radius: 10px; font-size: 12.5px; line-height: 1.9;
  color: #f59e0b; background: rgba(245, 158, 11, .08); border: 1px solid rgba(245, 158, 11, .25);
}
.diag-note.ok { color: var(--text-2); background: rgba(34, 197, 94, .07); border-color: rgba(34, 197, 94, .25); }
/* 首页 ?debug=1 服务端诊断条 */
.debug-bar {
  margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; font-size: 12.5px; line-height: 1.9;
  font-family: ui-monospace, Consolas, monospace; word-break: break-all;
  color: #f59e0b; background: rgba(245, 158, 11, .08); border: 1px dashed rgba(245, 158, 11, .35);
}
/* 作品展示区接口诊断原始返回 */
.diag-raw { font-size: 12px; color: var(--text-3); }
.diag-raw code {
  display: block; margin-top: 6px; padding: 8px 10px; border-radius: 8px; overflow-x: auto;
  font-family: ui-monospace, Consolas, monospace; word-break: break-all;
  color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border);
}
/* 后台：Nginx 直访统计配置 */
.nginx-cfg {
  margin: 10px 0 8px; padding: 12px 14px; border-radius: 10px; overflow-x: auto;
  font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; line-height: 1.8;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--border);
}
.cfg-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cfg-hint { font-size: 12px; color: var(--text-3); line-height: 1.7; }
.success-text { font-size: 17px; font-weight: 700; text-align: center; }
.success-url {
  display: block; text-align: center; font-family: ui-monospace, Consolas, monospace; font-size: 14px;
  color: var(--accent); background: var(--accent-soft); border-radius: 10px; padding: 10px 14px;
  margin: 14px 0 4px; word-break: break-all;
}
.success-exp { margin-top: 10px; font-size: 12.5px; color: var(--text-2); text-align: center; }
.me-exp { font-size: 12.5px; color: var(--text-2); margin-top: 8px; }
.me-exp.expired { color: var(--danger); font-weight: 600; }
.renew-box { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.renew-box input {
  width: 100%; background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 9px; padding: 9px 12px; font-size: 13px; outline: none;
}
.renew-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.renew-box .btn { align-self: flex-start; }
.key-copy { cursor: pointer; }
.key-copy:hover { text-decoration: underline; opacity: .85; }
.confirm-text { font-size: 14px; color: var(--text-2); }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: 76px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 240px; max-width: 360px; background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: 10px; padding: 11px 15px; font-size: 13.5px;
  color: var(--text); box-shadow: 0 14px 40px rgba(0, 0, 0, .42); animation: slideIn .22s ease;
}
.toast.success { border-left-color: var(--ok); background: linear-gradient(90deg, rgba(52, 211, 153, .10), var(--surface) 55%); }
.toast.error { border-left-color: var(--danger); background: linear-gradient(90deg, rgba(248, 113, 113, .10), var(--surface) 55%); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1160px) {
  .header-inner { gap: 12px; }
  .header-nav a { padding: 7px 8px; font-size: 13.5px; }
  .header-actions { gap: 6px; }
}
@media (max-width: 960px) {
  .editor-grid { grid-template-columns: 1fr; }
  .editor-side { border-left: 0; border-top: 1px solid var(--border); }
  .header-nav { display: none; }
  .hero-stats { gap: 22px; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .section { padding: 44px 0 16px; }
  .hero { padding: 48px 0 28px; }
  .upload-actions { flex-wrap: wrap; }
}

/* ---------- 移动端全面适配 ----------
   目标：杜绝文字被挤压成竖排、按钮/控件显示不全 */
@media (max-width: 768px) {
  /* 文字强制单行：按钮、胶囊、徽章、标签、统计说明 */
  .btn, .badge, .claim-plan span, .panel-label, .tabs button,
  .mini-actions button, .stat-card .s-label, .code-info,
  .modal-title, .hero-badge, .footer-right, .g-dir-badge { white-space: nowrap; }
  /* 容器允许换行，避免内部元素被压缩 */
  .header-actions, .gallery-tools, .upload-actions, .panel-head,
  .modal-head-actions, .claim-layout, .footer-inner, .code-toolbar { flex-wrap: wrap; }

  /* 英雄区统计：3 列网格（6 个卡 3×2），数字不再竖排 */
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 620px; }
  .hero-stats div { padding: 16px 12px 14px; border-radius: 14px; }
  .hero-stats div::before { left: 14px; right: 14px; }
  .hero h1 { font-size: 25px; line-height: 1.4; }
  .hero-sub { font-size: 13.5px; line-height: 1.8; margin: 14px auto 20px; }
  .hero { padding: 36px 0 22px; }

  /* 编辑器 */
  .editor-card { padding: 14px; }
  .tabs button { flex: 1; text-align: center; }
  .code-toolbar { gap: 8px; }
  .code-toolbar .btn { flex: 1 1 auto; min-width: 0; }
  /* 上传文件工具栏：打包下载 / 预览 收进「更多」，四按钮 2×2 等大整齐 */
  .fm-more-wrap { display: inline-block; }
  #btnFmDownload, #btnPreviewUpload { display: none; }
  .fm-win-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  .fm-win-actions .btn, .fm-win-actions label.btn { width: 100%; height: 40px; justify-content: center; margin: 0; }
  .fm-win-actions .fm-new-wrap, .fm-win-actions .fm-more-wrap { width: 100%; }
  .fm-win-actions .fm-new-wrap > .btn, .fm-win-actions .fm-more-wrap > .btn { width: 100%; }
  /* 编辑器底部按钮区：三按钮等宽等高一行排满 */
  .publish-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 12px; }
  .publish-bar .btn { height: 42px; justify-content: center; padding: 0 14px !important; font-size: 11.5px; gap: 4px; white-space: nowrap; }
  /* 后台站点操作「更多」菜单：窄屏下向左展开避免溢出 */
  .ops-more-menu { left: 0; right: auto; }
  .editor-foot { grid-template-columns: 1fr; gap: 12px; padding: 10px 12px 12px; }
  .tip-strip { border-left: 0; padding-left: 0; border-top: 1px dashed var(--border); padding-top: 10px; }
  .check-item { padding: 6px 8px; }
  .check-tx { font-size: 12px; }
  /* 展示区工具行：搜索框整行，按钮/下拉均分 */
  .gallery-tools { width: 100%; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
  .gallery-tools input { flex: 1 1 100%; min-width: 0; }
  .gallery-tools .btn, .gallery-tools select { flex: 1 1 auto; min-width: 0; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .g-cover { height: 120px; }

  /* 弹窗 */
  .modal { width: 94vw; }
  .modal-body { padding: 16px; }
  .preview-body { padding: 0; }
  .preview-body iframe { height: calc(90vh - 88px); }

  /* 账号区 */
  .me-row > b { font-size: 12px; }
  .me-actions { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .side-form { grid-template-columns: 1fr; }
  .side-form.side-form-reg { grid-template-columns: 1fr; }
  .side-form.side-form-reg .captcha-row { flex-direction: row; }
  .side-form.side-form-reg .captcha-img { width: 120px; }
  .me-wrap { grid-template-columns: 1fr; gap: 14px 0; }

  /* 领卡区：单列堆叠，领取卡横铺 */
  .claim-layout { grid-template-columns: 1fr; gap: 18px; }
  .claim-action { padding: 20px 18px 18px; }
  .claim-action .ca-days { font-size: 30px; }
  .claim-feats { gap: 6px 16px; }
  .claim-action .btn-lg { width: 100%; }

  /* 页脚 */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ---------- 移动端「更多」收纳菜单（右侧按钮收进一个 ⋮ 按钮） ---------- */
.more-dd { position: relative; display: none; flex: none; }
.more-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 300;
  min-width: 208px; max-width: calc(100vw - 32px);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 6px; box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}
.more-menu .mm-div {
  height: 1px; background: var(--border); margin: 4px 6px; flex: none;
}
.more-menu .mm-div:first-child { display: none; }
.more-menu .mm-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 9px 10px; border-radius: 8px; font-size: 13px; color: var(--text);
  background: none; border: 0; cursor: pointer; text-align: left; transition: background .15s;
}
.more-menu .mm-item:hover { background: var(--accent-soft); }
.more-menu .mm-item svg { width: 16px; height: 16px; color: var(--text-2); flex: none; }
.more-menu .mm-item.mm-danger { color: var(--danger, #f87171); }
.more-menu .mm-item.mm-danger svg { color: currentColor; }
.more-menu .mm-group {
  font-size: 11px; color: var(--text-3); padding: 8px 10px 4px; font-weight: 600;
}
.more-menu .mm-skins { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 2px 6px 6px; }
.more-menu .mm-skin {
  display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 8px;
  font-size: 11.5px; color: var(--text-2); background: none; border: 0; cursor: pointer;
  text-align: left; transition: background .15s; line-height: 1.3;
}
.more-menu .mm-skin:hover { background: var(--accent-soft); }
.more-menu .mm-skin .sk-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.more-menu .mm-skin-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.more-menu .mm-cur {
  font-style: normal; font-size: 10px; color: var(--accent); flex: none;
  background: var(--accent-soft); padding: 1px 5px; border-radius: 6px;
}
.more-menu .mm-sites { max-height: 200px; overflow: auto; padding: 0 4px 6px; }
.more-menu .mm-site {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 10px; border-radius: 8px; font-size: 12px; color: var(--text);
  background: none; border: 0; cursor: pointer; text-align: left; transition: background .15s;
}
.more-menu .mm-site:hover { background: var(--accent-soft); }
.more-menu .mm-site .mono { color: var(--accent); font-family: ui-monospace, Consolas, monospace; flex: none; }
.more-menu .mm-site-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.more-menu .mm-site.active { background: var(--accent-soft); }

/* ---------- 移动端顶部导航单行修复：平台名字完整显示、右侧按钮不超界不堆叠 ---------- */
@media (max-width: 768px) {
  .header-inner { height: 54px; gap: 6px; }
  .logo { flex: 1 1 auto; min-width: 0; font-size: 13px; }
  .logo svg { width: 20px; height: 20px; flex: none; }
  .logo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .skin-switch .sk-chev, .site-switch-btn .sk-chev { display: none; }
  .header-actions { flex: none; flex-wrap: nowrap; gap: 4px; margin-left: auto; min-width: 0; }
  .header-actions .icon-btn { width: 28px; height: 28px; flex: none; }
  .header-actions .skin-switch { padding: 4px 6px; flex: none; }
  .header-actions .btn { padding: 5px 7px; font-size: 11.5px; flex: none; }
  .header-actions .site-switch-btn { padding: 5px 7px; font-size: 11.5px; flex: none; }
  /* 右侧按钮全部收进「更多」按钮 */
  .more-dd { display: block; }
  .header-actions .bell-btn,
  .header-actions .skin-dd,
  .header-actions #btnTheme,
  .header-actions .site-switch,
  .header-actions #headerUser { display: none !important; }
}
@media (max-width: 420px) {
  .logo { font-size: 12.5px; }
  .header-actions { gap: 3px; }
  .header-actions .btn { padding: 4px 6px; font-size: 11px; }
  .header-actions .site-switch-btn { padding: 4px 6px; font-size: 11px; }
  .header-inner { gap: 4px; }
}
@media (max-width: 340px) {
  .header-actions .bell-btn { display: none; }
  .header-actions .skin-switch { display: none; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .g-cover { height: 92px; padding: 10px 12px; }
  .g-dir-badge { font-size: 10px; padding: 2px 8px; }
  .g-cover-title { font-size: 13.5px; -webkit-line-clamp: 2; }
  .g-body { padding: 10px 12px 12px; }
  .g-desc { font-size: 11.5px; -webkit-line-clamp: 1; min-height: 17px; }
  .g-meta { font-size: 10.5px; gap: 6px; }
  .g-time { max-width: 55%; }
  .header-inner { gap: 12px; }
  .logo span { font-size: 15px; }
  .claim-key { font-size: 18px; padding: 12px 14px; }
  #codeInput { min-height: 200px; }
  .section-title { font-size: 20px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 420px; }
  .hero-stats b { font-size: 20px; }
  .hero-stats div { padding: 13px 8px 12px; border-radius: 12px; }
  .hero-stats div::before { left: 10px; right: 10px; }
  .hero-stats span { font-size: 11px; }
}

/* ---------- 版本不一致警示条 ---------- */
.ver-warn {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: #b91c1c; color: #fff; font-size: 13px; line-height: 1.6;
  padding: 9px 16px; text-align: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

/* ---------- 账号弹窗：登录 / 注册 tab ---------- */
.auth-head { display: flex; gap: 4px; align-items: center; }
.auth-tab {
  padding: 6px 16px; border-radius: 8px; cursor: pointer; font-size: 14px;
  color: var(--text-2); transition: color .2s, background .2s;
}
.auth-tab.active { color: var(--text); background: var(--accent-soft); }
.me-user { color: var(--text-3); font-size: 11.5px; margin-left: 6px; font-family: ui-monospace, Consolas, monospace; }

/* ---------- 英雄区粒子背景（轻量 canvas，不阻塞交互） ---------- */
#heroCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; opacity: .8;
}

/* ---------- 卡密到期提醒条 ---------- */
.expire-alert {
  border-radius: 10px; padding: 9px 12px; font-size: 12.5px; line-height: 1.5;
  margin-bottom: 12px; display: flex; align-items: center; gap: 6px;
}
.expire-alert.warn {
  background: rgba(245, 158, 11, .13); border: 1px solid rgba(245, 158, 11, .4); color: #fbbf24;
}
.expire-alert.danger {
  background: rgba(248, 113, 113, .13); border: 1px solid rgba(248, 113, 113, .45); color: #f87171;
}
.expire-alert.ok {
  background: rgba(52, 211, 153, .13); border: 1px solid rgba(52, 211, 153, .42); color: #34d399;
}
.expire-alert.vip {
  background: linear-gradient(90deg, #1c1c22, #2a2a34); border: 1px solid rgba(255, 215, 0, .5);
  color: #ffd700; text-shadow: 0 0 14px rgba(255, 215, 0, .35); font-weight: 600;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .35), inset 0 0 22px rgba(255, 215, 0, .06);
}
.expire-alert b { font-weight: 700; }
[data-theme="light"] .expire-alert.warn { color: #b45309; background: rgba(245, 158, 11, .1); }
[data-theme="light"] .expire-alert.danger { color: #b91c1c; background: rgba(248, 113, 113, .1); }
[data-theme="light"] .expire-alert.ok { color: #047857; background: rgba(52, 211, 153, .1); }
[data-theme="light"] .expire-alert.vip { background: linear-gradient(90deg, #1c1c22, #2a2a34); color: #ffd700; }

/* ---------- 站长流量趋势（近 30 天柱状图） ---------- */
.traffic-box {
  margin: 12px 0 2px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface-2); padding: 10px 12px 12px;
}
.traffic-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--text-2); margin-bottom: 10px;
}
.traffic-head b { color: var(--accent); font-size: 13px; }
.traffic-chart { min-height: 62px; }
.t-bars {
  display: flex; align-items: flex-end; gap: 2.5px; height: 58px; padding-top: 4px;
  border-bottom: 1px solid var(--border);
}
.t-bar {
  flex: 1; min-width: 2px; border-radius: 2px 2px 0 0; cursor: default;
  background: linear-gradient(180deg, #a855f7, #6366f1); opacity: .85; transition: opacity .15s;
}
.t-bar:hover { opacity: 1; }
.traffic-loading, .traffic-empty { color: var(--text-3); font-size: 12px; text-align: center; padding: 18px 0; }
[data-theme="light"] .t-bar { background: linear-gradient(180deg, #818cf8, #6366f1); }

/* ---------- 滚动入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.22, .61, .36, 1); }
.reveal-in { opacity: 1; transform: none; }

/* ---------- 后台备份管理 ---------- */
.backup-list { display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow: auto; }
.backup-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; background: var(--surface-2);
  flex-wrap: wrap;
}
.backup-item:hover { border-color: rgba(139, 92, 246, .35); }
.bk-info { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.bk-info b { color: var(--text); }
.bk-meta { font-size: 12px; color: var(--text-3); }
.bk-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 768px) {
  .backup-item { flex-direction: column; align-items: flex-start; }
  .bk-actions { width: 100%; }
}

/* ---------- 后台概览图表（纯 SVG 折线） ---------- */
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.chart-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px;
}
.chart-card .sc-title { font-size: 13.5px; font-weight: 700; margin-bottom: 10px; }
.sc-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sc-title-row .sc-title { margin-bottom: 0; }
/* 日/周/月切换按钮组 */
.chart-range { display: inline-flex; gap: 2px; background: var(--surface-3); border-radius: 999px; padding: 2px; }
.chart-range button {
  border: 0; background: transparent; color: var(--text-3); font-size: 12px; cursor: pointer;
  padding: 3px 12px; border-radius: 999px; transition: all .18s; font-family: inherit;
}
.chart-range button:hover { color: var(--text); }
.chart-range button.active { background: var(--accent); color: #fff; font-weight: 700; box-shadow: 0 2px 8px rgba(59, 130, 246, .35); }
.chart-body { min-height: 150px; position: relative; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-tick { font-size: 9.5px; fill: var(--text-3); }
.chart-grid-line { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 4; }
.chart-hover-line { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.chart-hover-dot { fill: var(--accent); stroke: #fff; stroke-width: 1.6; pointer-events: none; }
.chart-tip {
  position: absolute; top: 24px; left: 0; pointer-events: none; z-index: 5;
  background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: 8px;
  padding: 4px 10px; font-size: 11.5px; color: var(--text); white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35); opacity: 0; transition: opacity .15s;
}
.chart-tip b { color: var(--accent); font-weight: 700; margin-right: 4px; }
.chart-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.chart-head b { font-size: 15px; color: var(--text); }
.chart-total { font-size: 11.5px; color: var(--text-3); }
@media (max-width: 768px) {
  .chart-grid { grid-template-columns: 1fr; }
}

/* ---------- 站点卡片：置顶徽章 / 信息增强 ---------- */
.g-top {
  position: absolute; top: 10px; left: 12px; z-index: 2;
  background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff;
  font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 9px;
  box-shadow: 0 4px 14px rgba(249, 115, 22, .45); letter-spacing: .5px;
}
.g-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 6px 10px;
  flex-wrap: nowrap; margin-top: 2px; padding-top: 7px; border-top: 1px dashed var(--border);
  font-size: 11.5px;
}
.g-author { color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-exp { color: var(--accent); font-weight: 600; white-space: nowrap; }
.g-exp.g-top-exp { color: #f59e0b; }
.gallery-card .g-views { color: var(--text-2); white-space: nowrap; }
.gallery-card .g-time { color: var(--text-3); white-space: nowrap; }

/* ---------- 封面自定义主色（变量版，色相与自动配色一致） ---------- */
.gallery-card.cc-violet .g-cover { --g1: rgba(139, 92, 246, .52); --g2: rgba(236, 72, 153, .32); --g3: rgba(168, 85, 247, .26); }
.gallery-card.cc-blue   .g-cover { --g1: rgba(59, 130, 246, .54); --g2: rgba(34, 211, 238, .32); --g3: rgba(99, 102, 241, .26); }
.gallery-card.cc-cyan   .g-cover { --g1: rgba(6, 182, 212, .50); --g2: rgba(99, 102, 241, .30); --g3: rgba(8, 145, 178, .26); }
.gallery-card.cc-green  .g-cover { --g1: rgba(16, 185, 129, .52); --g2: rgba(6, 182, 212, .32); --g3: rgba(20, 184, 166, .26); }
.gallery-card.cc-orange .g-cover { --g1: rgba(245, 158, 11, .50); --g2: rgba(244, 63, 94, .32); --g3: rgba(249, 115, 22, .28); }
.gallery-card.cc-rose   .g-cover { --g1: rgba(244, 63, 94, .54); --g2: rgba(168, 85, 247, .32); --g3: rgba(236, 72, 153, .26); }
.gallery-card.cc-indigo .g-cover { --g1: rgba(99, 102, 241, .55); --g2: rgba(34, 211, 238, .30); --g3: rgba(139, 92, 246, .24); }

/* 日间模式：自定义主色柔和化 */
[data-theme="light"] .gallery-card.cc-violet .g-cover { --g1: rgba(139, 92, 246, .22); --g2: rgba(236, 72, 153, .14); --g3: rgba(168, 85, 247, .12); }
[data-theme="light"] .gallery-card.cc-blue   .g-cover { --g1: rgba(59, 130, 246, .24); --g2: rgba(34, 211, 238, .14); --g3: rgba(99, 102, 241, .12); }
[data-theme="light"] .gallery-card.cc-cyan   .g-cover { --g1: rgba(6, 182, 212, .20); --g2: rgba(99, 102, 241, .14); --g3: rgba(8, 145, 178, .12); }
[data-theme="light"] .gallery-card.cc-green  .g-cover { --g1: rgba(16, 185, 129, .22); --g2: rgba(6, 182, 212, .14); --g3: rgba(20, 184, 166, .12); }
[data-theme="light"] .gallery-card.cc-orange .g-cover { --g1: rgba(245, 158, 11, .20); --g2: rgba(244, 63, 94, .14); --g3: rgba(249, 115, 22, .12); }
[data-theme="light"] .gallery-card.cc-rose   .g-cover { --g1: rgba(244, 63, 94, .22); --g2: rgba(168, 85, 247, .14); --g3: rgba(236, 72, 153, .12); }
[data-theme="light"] .gallery-card.cc-indigo .g-cover { --g1: rgba(99, 102, 241, .24); --g2: rgba(34, 211, 238, .14); --g3: rgba(139, 92, 246, .12); }

/* 移动端缩放：水印与标题适配小屏 */
@media (max-width: 768px) {
  .g-wm { font-size: 52px; }
  .g-cover-title { font-size: 17px; }
  .g-cover { height: 124px; }
}

/* ---------- 卡片信息区（下半）：纯色底 + 高可读文字，不带任何渐变 ---------- */
.g-body { background: #0b0d16; }
.gallery-card .g-desc { color: #c7cede; }
.gallery-card .g-time, .gallery-card .g-views { color: #a5aec2; }
.g-foot .g-author { color: #a5aec2; }
.g-exp { color: #b9a8ff; }
[data-theme="light"] .g-body { background: #ffffff; }
[data-theme="light"] .gallery-card .g-desc { color: #4b5370; }
[data-theme="light"] .gallery-card .g-time,
[data-theme="light"] .gallery-card .g-views { color: #6d7590; }
[data-theme="light"] .g-foot .g-author { color: #6d7590; }
[data-theme="light"] .g-exp { color: #6d28d9; }

/* ---------- 封面主色选择器（发布设置区） ---------- */
.cover-picker { margin-top: 12px; }
.cover-picker .sr-label { font-size: 12px; color: var(--text-2); margin-bottom: 7px; }
.cover-colors { display: flex; gap: 8px; flex-wrap: wrap; }
.cc-item { position: relative; cursor: pointer; }
.cc-item input { position: absolute; opacity: 0; width: 0; height: 0; }
.cc-swatch {
  display: block; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--border-strong);
  transition: transform .15s, box-shadow .15s; cursor: pointer;
}
.cc-item input:checked + .cc-swatch {
  transform: scale(1.12); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent);
}
.cc-auto {
  background: conic-gradient(from 210deg, #6366f1, #8b5cf6, #ec4899, #6366f1);
}
.cc-violet { background: linear-gradient(135deg, #7c3aed, #c084fc); }
.cc-blue   { background: linear-gradient(135deg, #2563eb, #60a5fa); }
.cc-cyan   { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.cc-green  { background: linear-gradient(135deg, #059669, #34d399); }
.cc-orange { background: linear-gradient(135deg, #ea580c, #fbbf24); }
.cc-rose   { background: linear-gradient(135deg, #e11d48, #fb7185); }
.cc-indigo { background: linear-gradient(135deg, #4338ca, #818cf8); }

/* ================= v1.2.75 新增：登录弹窗升级 / 密码可见 / 铃铛 / 模板市场 / 通知中心 ================= */
/* 登录 / 注册弹窗：渐变边框 + 发光焦点 */
.modal-auth { position: relative; overflow: hidden; }
.modal-auth::before {
  content: ''; position: absolute; inset: 0; padding: 1px; border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), rgba(34, 211, 238, .6), var(--accent-2, #ec4899));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; opacity: .55;
}
.modal-auth .field input:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 92, 246, .2), 0 0 18px rgba(139, 92, 246, .18);
}
.modal-auth .auth-tab { position: relative; padding-bottom: 7px; transition: color .2s, background .2s; }
.modal-auth .auth-tab.active::after {
  content: ''; position: absolute; left: 6px; right: 6px; bottom: 0; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), #22d3ee);
  animation: tabSlide .25s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes tabSlide { from { transform: scaleX(.4); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
/* 密码可见切换 */
.pwd-wrap { position: relative; }
.pwd-wrap input { width: 100%; padding-right: 44px; }
.pwd-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: none; background: none; color: var(--text-3); cursor: pointer;
  display: flex; align-items: center; justify-content: center; border-radius: 8px; transition: color .2s, background .2s;
}
.pwd-eye svg { width: 19px; height: 19px; }
.pwd-eye:hover { color: var(--text); background: var(--surface-2); }
.pwd-eye.on { color: var(--accent); }
/* 顶部铃铛 */
.bell-btn { position: relative; }
.bell-btn svg { width: 20px; height: 20px; }
.bell-dot {
  position: absolute; top: 5px; right: 6px; width: 9px; height: 9px; border-radius: 50%;
  background: #f87171; border: 2px solid var(--surface); box-shadow: 0 0 8px rgba(248, 113, 113, .8);
}
/* 模板市场 */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tpl-card {
  position: relative; border-radius: 16px; overflow: hidden; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.tpl-card:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, .5); box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.tpl-thumb {
  height: 108px; position: relative; overflow: hidden;
  background: linear-gradient(145deg, #2a2a66, #46308a 60%, #7c3aed);
}
.tpl-thumb .t-ico {
  position: absolute; left: 14px; bottom: 12px; width: 34px; height: 34px; border-radius: 10px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800;
  backdrop-filter: blur(4px);
}
.tpl-thumb .t-wm {
  position: absolute; right: 8px; bottom: 2px; font-size: 44px; font-weight: 800; color: rgba(255, 255, 255, .14);
  font-family: ui-monospace, Consolas, monospace; pointer-events: none; user-select: none;
}
.tpl-body { padding: 13px 14px 14px; }
.tpl-body b { font-size: 15px; color: var(--text); }
.tpl-body p { font-size: 12px; color: var(--text-3); margin-top: 5px; line-height: 1.6; min-height: 34px; }
.tpl-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.tpl-foot .tpl-files { font-size: 11px; color: var(--text-3); font-family: ui-monospace, Consolas, monospace; }
[data-theme="light"] .tpl-thumb { background: linear-gradient(145deg, #e3e7fb, #d9d2f5 60%, #c9baf2); }
[data-theme="light"] .tpl-thumb .t-wm { color: rgba(60, 50, 120, .16); }
[data-theme="light"] .tpl-thumb .t-ico { background: rgba(255, 255, 255, .65); border-color: rgba(70, 60, 140, .25); color: #4c4690; }
/* 通知中心 */
.notice-actions { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.notice-list { display: flex; flex-direction: column; gap: 8px; max-height: 56vh; overflow: auto; }
.notice-item {
  display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; transition: border-color .2s;
}
.notice-item:hover { border-color: rgba(139, 92, 246, .45); }
.notice-item.unread { border-color: rgba(139, 92, 246, .5); background: rgba(139, 92, 246, .07); }
.n-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; margin-top: 7px; background: transparent; }
.notice-item.unread .n-dot { background: var(--accent); box-shadow: 0 0 8px rgba(139, 92, 246, .7); }
.n-main { flex: 1; min-width: 0; }
.n-title { font-size: 14px; color: var(--text); font-weight: 600; }
.n-item .n-time { font-size: 11.5px; color: var(--text-3); }
.n-content { font-size: 12.5px; color: var(--text-2); margin-top: 3px; line-height: 1.6; }
.n-item .n-time { margin-top: 4px; }
/* 后台概览渐变卡（v1.2.75） */
.ov-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.ov-card {
  border-radius: 14px; padding: 14px 16px 10px; color: #fff; position: relative; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
}
.ov-card .ov-label { font-size: 12px; opacity: .85; }
.ov-card .ov-num { font-size: 26px; font-weight: 800; margin: 2px 0 4px; font-variant-numeric: tabular-nums; }
.ov-card .ov-trend { width: 100%; height: 30px; display: block; opacity: .9; }
.ov-card::after { content: ''; position: absolute; top: -34px; right: -34px; width: 90px; height: 90px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.ov-c1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.ov-c2 { background: linear-gradient(135deg, #06b6d4, #0ea5e9); }
.ov-c3 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.ov-c4 { background: linear-gradient(135deg, #f59e0b, #f43f5e); }
.ov-c5 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
@media (max-width: 640px) {
  .ov-cards { grid-template-columns: repeat(2, 1fr); }
  .tpl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .tpl-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   v1.2.83/84：空状态、hover 浮层、流量统计、文件批量
   ===================================================== */

.g-foot { position: relative; }

/* ---------- 展示卡 hover 浮层（覆盖在封面之上） ---------- */
.g-hover {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, rgba(8, 10, 26, .28) 0%, rgba(8, 10, 26, .82) 100%);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  border-radius: inherit;
}
.gallery-card:hover .g-hover, .gallery-card:focus-within .g-hover { opacity: 1; transform: translateY(0); }
.g-hover-title { font-size: 17px; font-weight: 800; color: #fff; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.g-hover-desc { font-size: 12.5px; color: rgba(255, 255, 255, .82); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.g-hover-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: rgba(255, 255, 255, .7); }
.g-hover-meta b { color: #fff; font-weight: 700; }
/* 左侧信息一行显示：超出部分省略号截断，按钮始终完整可见（排除按钮 span，避免被 flex 拉伸） */
.g-hover-meta > span:not(.g-hover-open) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-hover-open {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  flex: none;
  font-size: 12px; font-weight: 700; color: #fff; text-decoration: none;
  background: linear-gradient(135deg, #6366f1, #8b5cf6); border-radius: 8px;
  padding: 4px 10px; box-shadow: 0 4px 14px rgba(139, 92, 246, .38);
  transition: transform .15s;
}
.g-hover-open:hover { transform: translateY(-1px); }

/* ---------- 空状态（六种插画） ---------- */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 44px 20px; text-align: center;
}
/* 空状态插画化：图标套渐变圆底 + 光晕 + 飘浮装饰点 */
.empty-orb {
  position: relative; width: 92px; height: 92px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--accent-soft), transparent 68%);
  border: 1px solid var(--border);
  animation: emptyFloat 3.6s ease-in-out infinite;
  margin-bottom: 2px;
}
.empty-orb::before, .empty-orb::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.empty-orb::before {
  inset: -10px; border: 1px dashed rgba(139, 92, 246, .3);
  animation: emptySpin 22s linear infinite;
}
.empty-orb::after {
  top: -6px; right: 2px; width: 12px; height: 12px;
  background: radial-gradient(circle at 35% 30%, #fde68a, #f59e0b);
  box-shadow: 0 0 12px rgba(245, 158, 11, .5);
}
.empty-svg { width: 44px; height: 44px; opacity: .9; color: var(--accent); position: relative; z-index: 1; }
@keyframes emptyFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes emptySpin { to { transform: rotate(360deg); } }
.empty-state .es-title { font-size: 16px; font-weight: 700; color: var(--text); }
.empty-state .es-sub { font-size: 13px; color: var(--text-3); max-width: 340px; line-height: 1.7; }
.empty-state .es-title + .es-sub { margin-top: -2px; }
.traffic-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  height: 63px; padding: 0 16px; color: var(--text-3); font-size: 11.5px; text-align: center;
}
.traffic-empty .empty-orb {
  width: 34px; height: 34px; margin: 0; flex: none;
  background: radial-gradient(circle at 32% 28%, var(--accent-soft), transparent 70%);
  border: 1px solid var(--border); border-radius: 50%;
  animation: emptyFloat 3.6s ease-in-out infinite;
}
.traffic-empty .empty-orb::before { inset: -5px; border-width: 1px; }
.traffic-empty .empty-orb::after { display: none; }
.traffic-empty .empty-svg { width: 22px; height: 22px; }
.empty-tip { padding: 34px 16px; color: var(--text-3); font-size: 13px; text-align: center; }

/* ---------- 站长侧栏流量统计三格 ---------- */
.traffic-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); gap: 8px;
  margin: 4px 0 12px;
}
.traffic-stats .ts-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 6px 7px;
}
.traffic-stats .ts-item b { font-size: 17px; font-weight: 800; color: var(--text); font-family: ui-monospace, Consolas, monospace; }
.traffic-stats .ts-item span { font-size: 11.5px; color: var(--text-3); }

/* ---------- 后台文件管理：批量操作栏 ---------- */
.fm-batch {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(99, 102, 241, .12), rgba(139, 92, 246, .10));
  border: 1px solid rgba(139, 92, 246, .35); border-radius: 11px;
  padding: 8px 10px; margin-bottom: 10px;
}
.fm-batch-info { font-size: 12.5px; color: var(--text-2); margin-right: auto; }
.fm-batch-info b { color: var(--accent, #a78bfa); font-size: 14px; }
/* 批量操作按钮：紧凑一行，不撑大 */
.fm-batch .btn { flex: none; padding: 6px 12px; font-size: 12.5px; border-radius: 8px; white-space: nowrap; }

/* 大图视图：左上角勾选 */
.f-cell-check {
  position: absolute; top: 7px; left: 7px; z-index: 6;
  width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid rgba(255, 255, 255, .55);
  background: rgba(10, 12, 32, .45); display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: transparent; cursor: pointer;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  transition: all .15s;
}
.f-cell-check input { display: none; } /* 原生 checkbox 与伪元素 ✓ 双重显示会造成视觉异常，只保留自定义视觉 */
.f-cell-check::after { content: '✓'; font-weight: 800; }
.f-cell-sel-on .f-cell-check, .f-cell-check.on {
  background: linear-gradient(135deg, #6366f1, #8b5cf6); border-color: transparent; color: #fff;
}
.f-cell-sel-on { outline: 2px solid rgba(139, 92, 246, .75); outline-offset: -2px; }
[data-theme="light"] .f-cell-check {
  background: rgba(255, 255, 255, .92); border-color: rgba(15, 23, 42, .38); color: transparent;
}
[data-theme="light"] .f-cell-sel-on .f-cell-check, [data-theme="light"] .f-cell-check.on {
  background: linear-gradient(135deg, #6366f1, #8b5cf6); border-color: transparent; color: #fff;
}
.fm-drag {
  border: 2px dashed rgba(139, 92, 246, .5); background: rgba(139, 92, 246, .06);
  border-radius: 12px; padding: 26px 14px; text-align: center; color: var(--text-3); font-size: 13px;
  transition: all .15s;
}
.fm-drag.over { border-color: #8b5cf6; background: rgba(139, 92, 246, .14); color: var(--accent, #a78bfa); }

/* 图片预览弹窗 */
.modal-img .modal-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 12px; }
.modal-img .modal-head-actions { flex: none; }
.img-preview-body { display: flex; align-items: center; justify-content: center; background: #101322; border-radius: 0 0 16px 16px; }
.img-preview-body img { max-width: 100%; max-height: 68vh; object-fit: contain; }
.img-loading { padding: 40px; color: var(--text-3); font-size: 13px; text-align: center; }

/* ---------- 移动端适配 ---------- */
@media (max-width: 760px) {
  .traffic-stats .ts-item b { font-size: 15px; }
  .fm-batch { padding: 7px 8px; }
  .fm-batch .btn { font-size: 12px; padding: 5px 10px; }
  .g-hover { padding: 12px 12px 10px; }
  /* 移动端同样保持一行：信息省略、按钮完整 */
}

/* ============================================================
   模板二 · 新维米表（金色纸感风）  data-skin="skin2"
   参考 https://mi.nas.life/ 配色：米金底 / 黄铜强调 / 暖墨深色
   ============================================================ */
[data-skin="skin2"], [data-skin="skin2"][data-theme="dark"] {
  --bg: #11110f;
  --surface: #191916;
  --surface-2: #211f1a;
  --surface-3: #2a261e;
  --border: rgba(213, 195, 150, 0.16);
  --border-strong: rgba(213, 195, 150, 0.34);
  --text: #f2eddf;
  --text-2: #c4b895;
  --text-3: #8f856b;
  --accent: #d4b46b;
  --accent-hover: #e2c67f;
  --accent-soft: rgba(212, 180, 107, 0.13);
  --ok: #9db97a;
  --ok-soft: rgba(157, 185, 122, 0.14);
  --warn: #e0b04e;
  --warn-soft: rgba(224, 176, 78, 0.14);
  --danger: #dd8a70;
  --danger-soft: rgba(221, 138, 112, 0.13);
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  --grad: linear-gradient(135deg, #d9bf80 0%, #ae8740 100%);
  --header-bg: rgba(17, 17, 15, 0.82);
  --code-bg: #15140f;
  --scroll-thumb: #3b3629;
  --bg-glow: rgba(212, 180, 107, 0.10);
  --grad-brand: linear-gradient(135deg, #d9bf80 0%, #c19a4b 55%, #a8833a 100%);
  --glass-bg: rgba(30, 28, 21, 0.66);
  --glass-border: rgba(213, 195, 150, 0.3);
  color-scheme: dark;
}

[data-skin="skin2"][data-theme="light"] {
  --bg: #f8f7f3;
  --surface: #fffefa;
  --surface-2: #f4f0e4;
  --surface-3: #ece5d2;
  --border: #e6e0d2;
  --border-strong: #d7ccaf;
  --text: #24221e;
  --text-2: #6d6450;
  --text-3: #9c9278;
  --accent: #94712e;
  --accent-hover: #7c5d22;
  --accent-soft: rgba(148, 113, 46, 0.10);
  --ok: #5f8a4e;
  --ok-soft: rgba(95, 138, 78, 0.11);
  --warn: #b8822a;
  --warn-soft: rgba(184, 130, 42, 0.11);
  --danger: #b4563e;
  --danger-soft: rgba(180, 86, 62, 0.09);
  --shadow: 0 12px 34px rgba(74, 62, 28, 0.12);
  --grad: linear-gradient(135deg, #94712e 0%, #c19a4b 100%);
  --header-bg: rgba(255, 254, 250, 0.86);
  --code-bg: #faf7ee;
  --scroll-thumb: #d9d0b9;
  --bg-glow: rgba(148, 113, 46, 0.08);
  --grad-brand: linear-gradient(135deg, #8a6a2c 0%, #b08d3e 55%, #c19a4b 100%);
  --glass-bg: rgba(255, 254, 250, 0.6);
  --glass-border: rgba(148, 113, 46, 0.26);
  color-scheme: light;
}

/* 模板二：正文背景改为暖米网格光晕 */
[data-skin="skin2"] body {
  background-image:
    radial-gradient(1100px 520px at 50% -8%, var(--bg-glow), transparent 72%),
    linear-gradient(rgba(180, 160, 110, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 160, 110, 0.05) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
}

/* 模板二：覆盖残留的蓝紫色硬编码渐变 */
[data-skin="skin2"] .btn-primary,
[data-skin="skin2"] .publish-btn,
[data-skin="skin2"] .gp-num.active,
[data-skin="skin2"] .g-hover-open,
[data-skin="skin2"] .tab-btn.active,
[data-skin="skin2"] .nav-link.active,
[data-skin="skin2"] .badge-hot,
[data-skin="skin2"] .tm-use,
[data-skin="skin2"] .qr-btn { background: var(--grad-brand); }
[data-skin="skin2"] .btn-primary:hover,
[data-skin="skin2"] .publish-btn:hover,
[data-skin="skin2"] .g-hover-open:hover { background: var(--accent-hover); }
[data-skin="skin2"] .btn-primary { box-shadow: 0 4px 14px rgba(174, 135, 64, .38); }
[data-skin="skin2"] .site-cover { background: var(--grad-brand); }
[data-skin="skin2"] .hero-badge,
[data-skin="skin2"] .section-kicker { color: var(--accent); border-color: var(--border-strong); }
[data-skin="skin2"] ::selection { background: var(--accent-soft); }
[data-skin="skin2"] .gp-btn.active,
[data-skin="skin2"] .page-btn.active,
[data-skin="skin2"] .filter-chip.active { background: var(--accent-soft); color: var(--accent); border-color: var(--border-strong); }
/* 模板二：独立页 hero 光晕 / 徽章 / 渐变按钮换金 */
[data-skin="skin2"] .gl-hero::before,
[data-skin="skin2"] .rk-hero::before,
[data-skin="skin2"] .rk-hero::after,
[data-skin="skin2"] .tp-hero::before,
[data-skin="skin2"] .cl-hero::before { background: rgba(212, 180, 107, .20); }
[data-skin="skin2"] .gl-go,
[data-skin="skin2"] .tp-filter.on { background: var(--grad-brand); box-shadow: 0 6px 18px rgba(174, 135, 64, .32); }
[data-skin="skin2"] .rk-col-head::after { background: linear-gradient(90deg, transparent, rgba(212, 180, 107, .5), transparent); }
[data-skin="skin2"] .rk-col-ico { background: linear-gradient(135deg, rgba(212, 180, 107, .22), rgba(174, 135, 64, .22)); border-color: rgba(212, 180, 107, .35); }
[data-skin="skin2"] .gl-page:hover,
[data-skin="skin2"] .tp-filter:hover,
[data-skin="skin2"] .tp-page:hover,
[data-skin="skin2"] .rk-row:hover,
[data-skin="skin2"] .cl-card:hover,
[data-skin="skin2"] .tp-card:hover,
[data-skin="skin2"] .gl-tools input:focus { border-color: rgba(212, 180, 107, .5); box-shadow: 0 0 0 3px rgba(212, 180, 107, .14); }
[data-skin="skin2"] .cl-badge { box-shadow: 0 0 0 4px rgba(212, 180, 107, .16), 0 0 18px rgba(212, 180, 107, .55); }

/* ---------- 皮肤切换按钮（右上角） ---------- */
.skin-switch {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600;
  color: var(--text-2); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 12px; cursor: pointer; user-select: none;
  transition: all .18s;
}
.skin-switch:hover { color: var(--text); border-color: var(--border-strong); }
.skin-switch .sk-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border-strong);
}
[data-skin="skin2"] .skin-switch .sk-dot {
  background: linear-gradient(135deg, #d9bf80, #a8833a);
}
.skin-switch .sk-name { white-space: nowrap; }
@media (max-width: 760px) {
  .skin-switch { padding: 4px 9px; font-size: 12px; }
  .skin-switch .sk-name { max-width: 52px; overflow: hidden; text-overflow: ellipsis; }
}

/* ============================================================
   模板三 · 翡翠墨绿（轻奢绿金）  data-skin="skin3"
   ============================================================ */
[data-skin="skin3"], [data-skin="skin3"][data-theme="dark"] {
  --bg: #0b110e;
  --surface: #101814;
  --surface-2: #16221a;
  --surface-3: #1c2c20;
  --border: rgba(140, 220, 170, 0.16);
  --border-strong: rgba(140, 220, 170, 0.32);
  --text: #e8f3ec;
  --text-2: #b6cdbe;
  --text-3: #7d9787;
  --accent: #6fd3a0;
  --accent-hover: #84e0b2;
  --accent-soft: rgba(111, 211, 160, 0.13);
  --ok: #8fce9f;
  --ok-soft: rgba(143, 206, 159, 0.14);
  --warn: #e0b04e;
  --warn-soft: rgba(224, 176, 78, 0.14);
  --danger: #dd8a70;
  --danger-soft: rgba(221, 138, 112, 0.13);
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  --grad: linear-gradient(135deg, #6fd3a0 0%, #2f8f5b 100%);
  --header-bg: rgba(11, 17, 14, 0.82);
  --code-bg: #0d1510;
  --scroll-thumb: #28402f;
  --bg-glow: rgba(111, 211, 160, 0.10);
  --grad-brand: linear-gradient(135deg, #6fd3a0 0%, #3aa876 55%, #2f8f5b 100%);
  --glass-bg: rgba(16, 24, 20, 0.66);
  --glass-border: rgba(140, 220, 170, 0.3);
  --bg-grid: rgba(120, 200, 150, 0.04);
  --hero-glow: rgba(111, 211, 160, 0.18);
  --focus-ring: rgba(111, 211, 160, 0.5);
  --accent-shadow: rgba(47, 143, 91, 0.32);
  --badge-glow: rgba(111, 211, 160, 0.55);
  color-scheme: dark;
}
[data-skin="skin3"][data-theme="light"] {
  --bg: #f1f7f3;
  --surface: #ffffff;
  --surface-2: #eef5f0;
  --surface-3: #e2eee7;
  --border: #dbe8e0;
  --border-strong: #c4dccb;
  --text: #18241c;
  --text-2: #4d6a58;
  --text-3: #7f9988;
  --accent: #2f8f5b;
  --accent-hover: #257a4c;
  --accent-soft: rgba(47, 143, 91, 0.10);
  --ok: #4e8f63;
  --ok-soft: rgba(78, 143, 99, 0.11);
  --warn: #b8822a;
  --warn-soft: rgba(184, 130, 42, 0.11);
  --danger: #b4563e;
  --danger-soft: rgba(180, 86, 62, 0.09);
  --shadow: 0 12px 34px rgba(20, 60, 40, 0.12);
  --grad: linear-gradient(135deg, #2f8f5b 0%, #54c78f 100%);
  --header-bg: rgba(255, 255, 255, 0.86);
  --code-bg: #f5faf6;
  --scroll-thumb: #cfe0d5;
  --bg-glow: rgba(47, 143, 91, 0.08);
  --grad-brand: linear-gradient(135deg, #2f8f5b 0%, #3aa876 55%, #54c78f 100%);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(47, 143, 91, 0.26);
  --bg-grid: rgba(47, 143, 91, 0.05);
  --hero-glow: rgba(47, 143, 91, 0.14);
  --focus-ring: rgba(47, 143, 91, 0.4);
  --accent-shadow: rgba(47, 143, 91, 0.25);
  --badge-glow: rgba(47, 143, 91, 0.45);
  color-scheme: light;
}

/* ============================================================
   模板四 · 极简灰白（monochrome 高级灰）  data-skin="skin4"
   ============================================================ */
[data-skin="skin4"], [data-skin="skin4"][data-theme="dark"] {
  --bg: #0e0e11;
  --surface: #16161a;
  --surface-2: #1d1d22;
  --surface-3: #26262c;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.22);
  --text: #f4f4f5;
  --text-2: #b9b9c0;
  --text-3: #7d7d85;
  --accent: #a8a8b3;
  --accent-hover: #bdbdc7;
  --accent-soft: rgba(168, 168, 179, 0.14);
  --ok: #9aa89a;
  --ok-soft: rgba(154, 168, 154, 0.14);
  --warn: #c4a76a;
  --warn-soft: rgba(196, 167, 106, 0.14);
  --danger: #c48a86;
  --danger-soft: rgba(196, 138, 134, 0.13);
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  --grad: linear-gradient(135deg, #a8a8b3 0%, #5f5f6a 100%);
  --header-bg: rgba(14, 14, 17, 0.82);
  --code-bg: #121216;
  --scroll-thumb: #33333a;
  --bg-glow: rgba(200, 200, 210, 0.07);
  --grad-brand: linear-gradient(135deg, #a8a8b3 0%, #787883 55%, #5f5f6a 100%);
  --glass-bg: rgba(22, 22, 26, 0.66);
  --glass-border: rgba(255, 255, 255, 0.18);
  --bg-grid: rgba(255, 255, 255, 0.03);
  --hero-glow: rgba(200, 200, 210, 0.12);
  --focus-ring: rgba(200, 200, 210, 0.4);
  --accent-shadow: rgba(95, 95, 106, 0.3);
  --badge-glow: rgba(200, 200, 210, 0.45);
  color-scheme: dark;
}
[data-skin="skin4"][data-theme="light"] {
  --bg: #f6f6f7;
  --surface: #ffffff;
  --surface-2: #f0f0f2;
  --surface-3: #e8e8eb;
  --border: #e4e4e8;
  --border-strong: #d0d0d6;
  --text: #1a1a1e;
  --text-2: #55555e;
  --text-3: #8f8f98;
  --accent: #5f5f6a;
  --accent-hover: #4b4b55;
  --accent-soft: rgba(95, 95, 106, 0.10);
  --ok: #5e7a5e;
  --ok-soft: rgba(94, 122, 94, 0.11);
  --warn: #9a7a3e;
  --warn-soft: rgba(154, 122, 62, 0.11);
  --danger: #a05a54;
  --danger-soft: rgba(160, 90, 84, 0.09);
  --shadow: 0 12px 34px rgba(30, 30, 40, 0.12);
  --grad: linear-gradient(135deg, #5f5f6a 0%, #8a8a94 100%);
  --header-bg: rgba(255, 255, 255, 0.88);
  --code-bg: #f7f7f8;
  --scroll-thumb: #d2d2d8;
  --bg-glow: rgba(95, 95, 106, 0.06);
  --grad-brand: linear-gradient(135deg, #5f5f6a 0%, #787883 55%, #8a8a94 100%);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(95, 95, 106, 0.24);
  --bg-grid: rgba(95, 95, 106, 0.045);
  --hero-glow: rgba(95, 95, 106, 0.12);
  --focus-ring: rgba(95, 95, 106, 0.35);
  --accent-shadow: rgba(95, 95, 106, 0.22);
  --badge-glow: rgba(95, 95, 106, 0.4);
  color-scheme: light;
}

/* ============================================================
   模板五 · 樱花粉紫（温柔浪漫）  data-skin="skin5"
   ============================================================ */
[data-skin="skin5"], [data-skin="skin5"][data-theme="dark"] {
  --bg: #150f17;
  --surface: #1d1520;
  --surface-2: #251a29;
  --surface-3: #2e2033;
  --border: rgba(240, 180, 220, 0.16);
  --border-strong: rgba(240, 180, 220, 0.32);
  --text: #f7eef4;
  --text-2: #d6b8ca;
  --text-3: #9a7d90;
  --accent: #e879b9;
  --accent-hover: #f08fc5;
  --accent-soft: rgba(232, 121, 185, 0.14);
  --ok: #9db97a;
  --ok-soft: rgba(157, 185, 122, 0.14);
  --warn: #e0b04e;
  --warn-soft: rgba(224, 176, 78, 0.14);
  --danger: #dd8a70;
  --danger-soft: rgba(221, 138, 112, 0.13);
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  --grad: linear-gradient(135deg, #e879b9 0%, #b06ad9 100%);
  --header-bg: rgba(21, 15, 23, 0.82);
  --code-bg: #191120;
  --scroll-thumb: #3d2a38;
  --bg-glow: rgba(232, 121, 185, 0.10);
  --grad-brand: linear-gradient(135deg, #e879b9 0%, #c87ae0 55%, #a86ad9 100%);
  --glass-bg: rgba(29, 21, 32, 0.66);
  --glass-border: rgba(240, 180, 220, 0.3);
  --bg-grid: rgba(240, 180, 220, 0.04);
  --hero-glow: rgba(232, 121, 185, 0.18);
  --focus-ring: rgba(232, 121, 185, 0.5);
  --accent-shadow: rgba(176, 106, 217, 0.32);
  --badge-glow: rgba(232, 121, 185, 0.55);
  color-scheme: dark;
}
[data-skin="skin5"][data-theme="light"] {
  --bg: #fdf4f8;
  --surface: #ffffff;
  --surface-2: #fbeef5;
  --surface-3: #f7e4ef;
  --border: #f2dce8;
  --border-strong: #e8c2d8;
  --text: #35202c;
  --text-2: #7c5568;
  --text-3: #a98b99;
  --accent: #d6498f;
  --accent-hover: #bc3b7b;
  --accent-soft: rgba(214, 73, 143, 0.10);
  --ok: #5f8a4e;
  --ok-soft: rgba(95, 138, 78, 0.11);
  --warn: #b8822a;
  --warn-soft: rgba(184, 130, 42, 0.11);
  --danger: #b4563e;
  --danger-soft: rgba(180, 86, 62, 0.09);
  --shadow: 0 12px 34px rgba(90, 40, 70, 0.12);
  --grad: linear-gradient(135deg, #d6498f 0%, #b06ad9 100%);
  --header-bg: rgba(255, 255, 255, 0.86);
  --code-bg: #fdf6fa;
  --scroll-thumb: #e6ccd9;
  --bg-glow: rgba(214, 73, 143, 0.07);
  --grad-brand: linear-gradient(135deg, #d6498f 0%, #c4579f 55%, #b06ad9 100%);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(214, 73, 143, 0.26);
  --bg-grid: rgba(214, 73, 143, 0.05);
  --hero-glow: rgba(214, 73, 143, 0.14);
  --focus-ring: rgba(214, 73, 143, 0.4);
  --accent-shadow: rgba(214, 73, 143, 0.25);
  --badge-glow: rgba(214, 73, 143, 0.45);
  color-scheme: light;
}

/* 模板三/四/五：正文背景光晕 + 极淡网格 */
[data-skin="skin3"] body,
[data-skin="skin6"]body,
[data-skin="skin7"]body,
[data-skin="skin8"]body,
[data-skin="skin4"] body,
[data-skin="skin5"] body {
  background-image:
    radial-gradient(1100px 520px at 50% -8%, var(--bg-glow), transparent 72%),
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
}

/* 模板三/四/五：覆盖残留的蓝紫色硬编码渐变（共用一套规则，各取各的变量） */
[data-skin="skin3"] .btn-primary,
[data-skin="skin6"] .btn-primary,
[data-skin="skin7"] .btn-primary,
[data-skin="skin8"] .btn-primary,
[data-skin="skin3"] .publish-btn,
[data-skin="skin6"] .publish-btn,
[data-skin="skin7"] .publish-btn,
[data-skin="skin8"] .publish-btn,
[data-skin="skin3"] .gp-num.active,
[data-skin="skin6"] .gp-num.active,
[data-skin="skin7"] .gp-num.active,
[data-skin="skin8"] .gp-num.active,
[data-skin="skin3"] .g-hover-open,
[data-skin="skin6"] .g-hover-open,
[data-skin="skin7"] .g-hover-open,
[data-skin="skin8"] .g-hover-open,
[data-skin="skin3"] .tab-btn.active,
[data-skin="skin6"] .tab-btn.active,
[data-skin="skin7"] .tab-btn.active,
[data-skin="skin8"] .tab-btn.active,
[data-skin="skin3"] .nav-link.active,
[data-skin="skin6"] .nav-link.active,
[data-skin="skin7"] .nav-link.active,
[data-skin="skin8"] .nav-link.active,
[data-skin="skin3"] .badge-hot,
[data-skin="skin6"] .badge-hot,
[data-skin="skin7"] .badge-hot,
[data-skin="skin8"] .badge-hot,
[data-skin="skin3"] .tm-use,
[data-skin="skin6"] .tm-use,
[data-skin="skin7"] .tm-use,
[data-skin="skin8"] .tm-use,
[data-skin="skin3"] .qr-btn,
[data-skin="skin6"] .qr-btn,
[data-skin="skin7"] .qr-btn,
[data-skin="skin8"] .qr-btn,
[data-skin="skin4"] .btn-primary,
[data-skin="skin4"] .publish-btn,
[data-skin="skin4"] .gp-num.active,
[data-skin="skin4"] .g-hover-open,
[data-skin="skin4"] .tab-btn.active,
[data-skin="skin4"] .nav-link.active,
[data-skin="skin4"] .badge-hot,
[data-skin="skin4"] .tm-use,
[data-skin="skin4"] .qr-btn,
[data-skin="skin5"] .btn-primary,
[data-skin="skin5"] .publish-btn,
[data-skin="skin5"] .gp-num.active,
[data-skin="skin5"] .g-hover-open,
[data-skin="skin5"] .tab-btn.active,
[data-skin="skin5"] .nav-link.active,
[data-skin="skin5"] .badge-hot,
[data-skin="skin5"] .tm-use,
[data-skin="skin5"] .qr-btn { background: var(--grad-brand); }
[data-skin="skin3"] .btn-primary:hover,
[data-skin="skin6"] .btn-primary:hover,
[data-skin="skin7"] .btn-primary:hover,
[data-skin="skin8"] .btn-primary:hover,
[data-skin="skin3"] .publish-btn:hover,
[data-skin="skin6"] .publish-btn:hover,
[data-skin="skin7"] .publish-btn:hover,
[data-skin="skin8"] .publish-btn:hover,
[data-skin="skin3"] .g-hover-open:hover,
[data-skin="skin6"] .g-hover-open:hover,
[data-skin="skin7"] .g-hover-open:hover,
[data-skin="skin8"] .g-hover-open:hover,
[data-skin="skin4"] .btn-primary:hover,
[data-skin="skin4"] .publish-btn:hover,
[data-skin="skin4"] .g-hover-open:hover,
[data-skin="skin5"] .btn-primary:hover,
[data-skin="skin5"] .publish-btn:hover,
[data-skin="skin5"] .g-hover-open:hover { background: var(--accent-hover); }
[data-skin="skin3"] .btn-primary,
[data-skin="skin6"] .btn-primary,
[data-skin="skin7"] .btn-primary,
[data-skin="skin8"] .btn-primary,
[data-skin="skin4"] .btn-primary,
[data-skin="skin5"] .btn-primary { box-shadow: 0 4px 14px var(--accent-shadow); }
[data-skin="skin3"] .site-cover,
[data-skin="skin6"] .site-cover,
[data-skin="skin7"] .site-cover,
[data-skin="skin8"] .site-cover,
[data-skin="skin4"] .site-cover,
[data-skin="skin5"] .site-cover { background: var(--grad-brand); }
[data-skin="skin3"] .hero-badge,
[data-skin="skin6"] .hero-badge,
[data-skin="skin7"] .hero-badge,
[data-skin="skin8"] .hero-badge,
[data-skin="skin3"] .section-kicker,
[data-skin="skin6"] .section-kicker,
[data-skin="skin7"] .section-kicker,
[data-skin="skin8"] .section-kicker,
[data-skin="skin4"] .hero-badge,
[data-skin="skin4"] .section-kicker,
[data-skin="skin5"] .hero-badge,
[data-skin="skin5"] .section-kicker { color: var(--accent); border-color: var(--border-strong); }
[data-skin="skin3"] ::selection,
[data-skin="skin4"] ::selection,
[data-skin="skin5"] ::selection { background: var(--accent-soft); }
[data-skin="skin3"] .gp-btn.active,
[data-skin="skin6"] .gp-btn.active,
[data-skin="skin7"] .gp-btn.active,
[data-skin="skin8"] .gp-btn.active,
[data-skin="skin3"] .page-btn.active,
[data-skin="skin6"] .page-btn.active,
[data-skin="skin7"] .page-btn.active,
[data-skin="skin8"] .page-btn.active,
[data-skin="skin3"] .filter-chip.active,
[data-skin="skin6"] .filter-chip.active,
[data-skin="skin7"] .filter-chip.active,
[data-skin="skin8"] .filter-chip.active,
[data-skin="skin4"] .gp-btn.active,
[data-skin="skin4"] .page-btn.active,
[data-skin="skin4"] .filter-chip.active,
[data-skin="skin5"] .gp-btn.active,
[data-skin="skin5"] .page-btn.active,
[data-skin="skin5"] .filter-chip.active { background: var(--accent-soft); color: var(--accent); border-color: var(--border-strong); }
[data-skin="skin3"] .gl-hero::before,
[data-skin="skin6"] .gl-hero::before,
[data-skin="skin7"] .gl-hero::before,
[data-skin="skin8"] .gl-hero::before,
[data-skin="skin3"] .rk-hero::before,
[data-skin="skin6"] .rk-hero::before,
[data-skin="skin7"] .rk-hero::before,
[data-skin="skin8"] .rk-hero::before,
[data-skin="skin3"] .rk-hero::after,
[data-skin="skin6"] .rk-hero::after,
[data-skin="skin7"] .rk-hero::after,
[data-skin="skin8"] .rk-hero::after,
[data-skin="skin3"] .tp-hero::before,
[data-skin="skin6"] .tp-hero::before,
[data-skin="skin7"] .tp-hero::before,
[data-skin="skin8"] .tp-hero::before,
[data-skin="skin3"] .cl-hero::before,
[data-skin="skin6"] .cl-hero::before,
[data-skin="skin7"] .cl-hero::before,
[data-skin="skin8"] .cl-hero::before,
[data-skin="skin4"] .gl-hero::before,
[data-skin="skin4"] .rk-hero::before,
[data-skin="skin4"] .rk-hero::after,
[data-skin="skin4"] .tp-hero::before,
[data-skin="skin4"] .cl-hero::before,
[data-skin="skin5"] .gl-hero::before,
[data-skin="skin5"] .rk-hero::before,
[data-skin="skin5"] .rk-hero::after,
[data-skin="skin5"] .tp-hero::before,
[data-skin="skin5"] .cl-hero::before { background: var(--hero-glow); }
[data-skin="skin3"] .gl-go,
[data-skin="skin6"] .gl-go,
[data-skin="skin7"] .gl-go,
[data-skin="skin8"] .gl-go,
[data-skin="skin3"] .tp-filter.on,
[data-skin="skin6"] .tp-filter.on,
[data-skin="skin7"] .tp-filter.on,
[data-skin="skin8"] .tp-filter.on,
[data-skin="skin4"] .gl-go,
[data-skin="skin4"] .tp-filter.on,
[data-skin="skin5"] .gl-go,
[data-skin="skin5"] .tp-filter.on { background: var(--grad-brand); box-shadow: 0 6px 18px var(--accent-shadow); }
[data-skin="skin3"] .rk-col-head::after,
[data-skin="skin6"] .rk-col-head::after,
[data-skin="skin7"] .rk-col-head::after,
[data-skin="skin8"] .rk-col-head::after,
[data-skin="skin4"] .rk-col-head::after,
[data-skin="skin5"] .rk-col-head::after { background: linear-gradient(90deg, transparent, var(--focus-ring), transparent); }
[data-skin="skin3"] .rk-col-ico,
[data-skin="skin6"] .rk-col-ico,
[data-skin="skin7"] .rk-col-ico,
[data-skin="skin8"] .rk-col-ico,
[data-skin="skin4"] .rk-col-ico,
[data-skin="skin5"] .rk-col-ico { background: linear-gradient(135deg, var(--accent-soft), var(--accent-soft)); border-color: var(--border-strong); }
[data-skin="skin3"] .gl-page:hover,
[data-skin="skin6"] .gl-page:hover,
[data-skin="skin7"] .gl-page:hover,
[data-skin="skin8"] .gl-page:hover,
[data-skin="skin3"] .tp-filter:hover,
[data-skin="skin6"] .tp-filter:hover,
[data-skin="skin7"] .tp-filter:hover,
[data-skin="skin8"] .tp-filter:hover,
[data-skin="skin3"] .tp-page:hover,
[data-skin="skin6"] .tp-page:hover,
[data-skin="skin7"] .tp-page:hover,
[data-skin="skin8"] .tp-page:hover,
[data-skin="skin3"] .rk-row:hover,
[data-skin="skin6"] .rk-row:hover,
[data-skin="skin7"] .rk-row:hover,
[data-skin="skin8"] .rk-row:hover,
[data-skin="skin3"] .cl-card:hover,
[data-skin="skin6"] .cl-card:hover,
[data-skin="skin7"] .cl-card:hover,
[data-skin="skin8"] .cl-card:hover,
[data-skin="skin3"] .tp-card:hover,
[data-skin="skin6"] .tp-card:hover,
[data-skin="skin7"] .tp-card:hover,
[data-skin="skin8"] .tp-card:hover,
[data-skin="skin3"] .gl-tools input:focus,
[data-skin="skin6"] .gl-tools input:focus,
[data-skin="skin7"] .gl-tools input:focus,
[data-skin="skin8"] .gl-tools input:focus,
[data-skin="skin4"] .gl-page:hover,
[data-skin="skin4"] .tp-filter:hover,
[data-skin="skin4"] .tp-page:hover,
[data-skin="skin4"] .rk-row:hover,
[data-skin="skin4"] .cl-card:hover,
[data-skin="skin4"] .tp-card:hover,
[data-skin="skin4"] .gl-tools input:focus,
[data-skin="skin5"] .gl-page:hover,
[data-skin="skin5"] .tp-filter:hover,
[data-skin="skin5"] .tp-page:hover,
[data-skin="skin5"] .rk-row:hover,
[data-skin="skin5"] .cl-card:hover,
[data-skin="skin5"] .tp-card:hover,
[data-skin="skin5"] .gl-tools input:focus { border-color: var(--focus-ring); box-shadow: 0 0 0 3px var(--accent-soft); }
[data-skin="skin3"] .cl-badge,
[data-skin="skin6"] .cl-badge,
[data-skin="skin7"] .cl-badge,
[data-skin="skin8"] .cl-badge,
[data-skin="skin4"] .cl-badge,
[data-skin="skin5"] .cl-badge { box-shadow: 0 0 0 4px var(--accent-soft), 0 0 18px var(--badge-glow); }

/* ---------- 皮肤下拉选择（右上角，日/夜切换同风格） ---------- */
.skin-dd { position: relative; }
.skin-dd .skin-switch .sk-chev { width: 13px; height: 13px; opacity: .7; transition: transform .18s; flex: none; }
.skin-dd.open .skin-switch .sk-chev { transform: rotate(180deg); }
.skin-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 178px; padding: 6px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); display: none;
}
.skin-dd.open .skin-menu { display: block; animation: ddIn .14s ease-out; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.sk-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  font-size: 12.5px; font-weight: 500; color: var(--text-2);
  padding: 7px 10px; border-radius: 8px; border: none; background: none;
  cursor: pointer; text-align: left; transition: all .14s;
}
.sk-item:hover { background: var(--accent-soft); color: var(--text); }
.sk-item.active { color: var(--accent); font-weight: 700; }
.sk-item .sk-dot { width: 13px; height: 13px; border-radius: 50%; flex: none; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border-strong); }
[data-skin="skin2"] .skin-switch .sk-dot { background: linear-gradient(135deg, #d9bf80, #a8833a); }
[data-skin="skin3"] .skin-switch .sk-dot { background: linear-gradient(135deg, #6fd3a0, #2f8f5b); }
[data-skin="skin4"] .skin-switch .sk-dot { background: linear-gradient(135deg, #a8a8b3, #5f5f6a); }
[data-skin="skin5"] .skin-switch .sk-dot { background: linear-gradient(135deg, #e879b9, #b06ad9); }

/* ---------- 站点切换器（右上角，多站点） ---------- */
.site-switch { position: relative; }
.site-switch-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; border-radius: 10px; padding: 0 12px;
  font-size: 12.5px; font-weight: 600;
  color: var(--text-2); background: var(--surface);
  border: 1px solid var(--border); cursor: pointer; user-select: none;
  transition: border-color .2s, color .2s;
}
.site-switch-btn:hover { color: var(--text); border-color: var(--border-strong); }
.site-switch-btn .sk-chev { width: 13px; height: 13px; opacity: .7; transition: transform .18s; flex: none; }
.site-switch.open .site-switch-btn .sk-chev { transform: rotate(180deg); }
.site-sw-name { white-space: nowrap; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.site-sw-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 212px; max-height: 330px; overflow-y: auto; padding: 6px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); display: none;
}
.site-switch.open .site-sw-menu { display: block; animation: ddIn .14s ease-out; }
.site-sw-head { font-size: 11.5px; color: var(--text-3); padding: 5px 10px 4px; font-weight: 600; }
.site-sw-head .site-sw-cur { color: var(--accent); font-weight: 700; }
.site-sw-sub { font-size: 11px; color: var(--text-3); padding: 0 10px 7px; line-height: 1.45; opacity: .9; }
.site-sw-item {
  display: flex; flex-direction: column; gap: 2px; width: 100%;
  font-size: 12.5px; color: var(--text-2);
  padding: 7px 10px; border-radius: 8px; border: none; background: none;
  cursor: pointer; text-align: left; transition: all .14s;
  position: relative;
}
.site-sw-item:hover { background: var(--accent-soft); color: var(--text); }
.site-sw-item.active { color: var(--accent); font-weight: 700; }
.site-sw-cur-badge {
  position: absolute; top: 6px; right: 8px;
  font-size: 10.5px; font-weight: 700; font-style: normal;
  color: var(--accent); background: var(--accent-soft);
  padding: 1px 7px; border-radius: 999px; line-height: 1.4;
}
.site-sw-dir { font-family: ui-monospace, Consolas, "Courier New", monospace; font-size: 12px; }
.site-sw-t { font-size: 11.5px; color: var(--text-3); }
.site-sw-item.active .site-sw-t { color: var(--accent); opacity: .78; }
.site-sw-add {
  display: block; width: 100%; margin-top: 4px;
  font-size: 12.5px; font-weight: 600; color: var(--accent);
  padding: 8px 10px; border-radius: 8px; border: none; background: var(--accent-soft);
  cursor: pointer; text-align: left; transition: all .14s;
}
.site-sw-add:hover { filter: brightness(1.08); }
.site-sw-empty { font-size: 12px; color: var(--text-3); padding: 8px 10px; }

/* 账号面板：多站点引导提示 */
.multi-tip {
  margin-bottom: 8px; padding: 7px 10px;
  font-size: 11.5px; line-height: 1.5; color: var(--text-2);
  background: var(--accent-soft); border: 1px solid var(--border);
  border-radius: 8px;
}
/* ---- v1.2.149 安全设置浮层 + 卡密到期进度条 ---- */
/* 安全设置按钮容器：菜单 absolute 定位锚点 */
.sec-wrap { position: relative; display: inline-flex; }
/* 安全设置下拉浮层（挂在按钮容器下，按钮正下方弹出，不依赖 JS 算坐标） */
.sec-drop {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 1300; min-width: 180px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35); padding: 6px; display: flex; flex-direction: column; gap: 4px;
  animation: foldIn .18s ease;
}
@keyframes foldIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.sec-drop-item {
  display: block; width: 100%; padding: 10px 14px; border: none; border-radius: 9px;
  background: none; color: var(--text); font-size: 13px; text-align: left; cursor: pointer;
  transition: background .15s;
}
.sec-drop-item:hover { background: var(--accent-soft); color: var(--accent); }
/* 编辑器发布区右侧：站点管理下拉（与右上角同款） */
.pub-site-switch { position: relative; margin-left: 12px; }
.pub-site-switch .site-sw-menu { position: absolute; top: calc(100% + 6px); left: 0; }
.pub-site-switch.open .site-sw-menu { display: block; }
/* 卡密到期进度条 */
.exp-bar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-top: 8px; }
.exp-bar-in { height: 100%; border-radius: 999px; transition: width .4s ease; }
.exp-bar-in.ok { background: linear-gradient(90deg, #10b981, #34d399); }
.exp-bar-in.warn { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.exp-bar-in.danger { background: linear-gradient(90deg, #ef4444, #f87171); }
.me-exp-row { display: flex; align-items: center; gap: 8px; }
.me-exp-row b { flex: none; }
/* 安全设置按钮（me-actions 三列之一） */
.sec-entry { border-style: dashed; }
.sec-entry:hover { border-color: rgba(139, 92, 246, .55); background: var(--accent-soft); }
@media (max-width: 640px) {
  .pub-site-switch { margin-left: 6px; }
  .pub-site-switch .site-sw-menu { left: auto; right: 0; min-width: 200px; }
}
@media (max-width: 760px) {
  .site-switch-btn { height: 34px; border-radius: 9px; padding: 0 9px; font-size: 12px; }
  .site-sw-name { max-width: 56px; }
  .site-sw-menu { min-width: 200px; }
}

/* ---------- 全站统一线性图标（内联 SVG） ---------- */
.ic { display: inline-block; vertical-align: -2.5px; margin-right: 5px; flex: none; }
.header-nav .ic { margin-right: 4px; vertical-align: -2px; }
.diag-bar .ic { vertical-align: -3px; }
.rk-col-ico .ic { margin-right: 0; }

/* ---------- 展示区骨架屏（数据加载前显示） ---------- */
.sk-card {
  position: relative; border-radius: 18px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border);
  height: 310px;
}
.sk-cover { height: 62%; background: var(--surface-3); }
.sk-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.sk-line { height: 12px; border-radius: 6px; background: var(--surface-3); }
.sk-line.w70 { width: 70%; }
.sk-line.w45 { width: 45%; }
.sk-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent);
  background-size: 200% 100%;
  animation: skShimmer 1.4s infinite;
}
@keyframes skShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
[data-theme="light"] .sk-card::after { background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .05), transparent); background-size: 200% 100%; }

/* ---------- 封面配色扩充（新增 6 套色系，深色/浅色双适配） ---------- */
.gallery-card.cv-8  .g-cover { --g1: rgba(217, 119, 6, .66); --g2: rgba(245, 158, 11, .46); --g3: rgba(180, 83, 9, .38); --gb1: #4a2c08; --gb2: #5c3a10; --gb3: #7a4d1a; }
.gallery-card.cv-9  .g-cover { --g1: rgba(132, 204, 22, .62); --g2: rgba(34, 197, 94, .44); --g3: rgba(101, 163, 13, .36); --gb1: #233b0c; --gb2: #2d4a12; --gb3: #3a5c18; }
.gallery-card.cv-10 .g-cover { --g1: rgba(14, 165, 233, .66); --g2: rgba(37, 99, 235, .46); --g3: rgba(2, 132, 199, .38); --gb1: #0b2440; --gb2: #123055; --gb3: #1a3f6e; }
.gallery-card.cv-11 .g-cover { --g1: rgba(185, 28, 28, .62); --g2: rgba(251, 113, 133, .44); --g3: rgba(136, 19, 55, .38); --gb1: #3a0f14; --gb2: #4d1520; --gb3: #641d2c; }
.gallery-card.cv-12 .g-cover { --g1: rgba(147, 51, 234, .64); --g2: rgba(217, 70, 239, .44); --g3: rgba(109, 40, 217, .38); --gb1: #2c0e4a; --gb2: #3a1460; --gb3: #4a1a78; }
.gallery-card.cv-13 .g-cover { --g1: rgba(5, 150, 105, .64); --g2: rgba(16, 185, 129, .44); --g3: rgba(4, 120, 87, .36); --gb1: #0b2e22; --gb2: #0f3a2b; --gb3: #144a36; }
[data-theme="light"] .gallery-card.cv-8  .g-cover { --g1: rgba(217, 119, 6, .20); --g2: rgba(245, 158, 11, .14); --g3: rgba(180, 83, 9, .12); --gb1: #fff7e8; --gb2: #ffefd2; --gb3: #ffe3b3; }
[data-theme="light"] .gallery-card.cv-9  .g-cover { --g1: rgba(132, 204, 22, .20); --g2: rgba(34, 197, 94, .14); --g3: rgba(101, 163, 13, .12); --gb1: #f2fbe8; --gb2: #e6f7d8; --gb3: #d9f2c4; }
[data-theme="light"] .gallery-card.cv-10 .g-cover { --g1: rgba(14, 165, 233, .22); --g2: rgba(37, 99, 235, .14); --g3: rgba(2, 132, 199, .12); --gb1: #e8f6ff; --gb2: #d8edff; --gb3: #c4e2ff; }
[data-theme="light"] .gallery-card.cv-11 .g-cover { --g1: rgba(185, 28, 28, .20); --g2: rgba(251, 113, 133, .14); --g3: rgba(136, 19, 55, .12); --gb1: #fff0f0; --gb2: #ffe2e4; --gb3: #ffd0d4; }
[data-theme="light"] .gallery-card.cv-12 .g-cover { --g1: rgba(147, 51, 234, .20); --g2: rgba(217, 70, 239, .14); --g3: rgba(109, 40, 217, .12); --gb1: #f6efff; --gb2: #ede2ff; --gb3: #e0d0ff; }
[data-theme="light"] .gallery-card.cv-13 .g-cover { --g1: rgba(5, 150, 105, .20); --g2: rgba(16, 185, 129, .14); --g3: rgba(4, 120, 87, .12); --gb1: #eafaf3; --gb2: #daf5ea; --gb3: #c6efe0; }

/* ---------- 卡片 hover 动效微调：光晕跟随鼠标 + 封面提亮 ---------- */
.gallery-card::after {
  content: ''; position: absolute; inset: 0; border-radius: 14px; pointer-events: none; z-index: 2;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, .16), transparent 62%);
  opacity: 0; transition: opacity .25s;
}
.gallery-card:hover::after { opacity: 1; }
.gallery-card:hover .g-cover { box-shadow: inset 0 0 44px rgba(255, 255, 255, .07); }
[data-theme="light"] .gallery-card::after { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, .12), transparent 62%); }

/* ---------- 移动端底部导航（首页 / 展示 / 排行 / 模板 / 更新） ---------- */
.bottom-nav { display: none; }
@media (max-width: 760px) {
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .14);
  }
  .bn-item {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: var(--text-3); font-size: 11px; text-decoration: none;
    padding: 4px 12px; border-radius: 10px; transition: color .2s;
    -webkit-tap-highlight-color: transparent;
  }
  .bn-item .ic { margin: 0; }
  .bn-item.active { color: var(--accent); }
  /* 前台页面 flex 布局：内容不足一屏时页脚自动贴到底部导航上方，一次滚动即可看到两行文字 */
  body.f-body { padding-bottom: 0; display: flex; flex-direction: column; min-height: 100vh; }
  /* 页脚推到底部 + 底部留出导航高度：长页面滚到底 padding 恰好被导航盖住（零多余留白），短页面文字直接在导航上方 */
  body.f-body .site-footer { margin-top: auto; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .back-top { bottom: 78px; right: 16px; width: 38px; height: 38px; }
}

/* ============================================================
   模板六 · 云海天青（清爽天空蓝）  data-skin="skin6"
   ============================================================ */
[data-skin="skin6"], [data-skin="skin6"][data-theme="dark"] {
  --bg: #0a1420;
  --surface: #0f1c2b;
  --surface-2: #142334;
  --surface-3: #1a2c40;
  --border: rgba(120, 200, 255, 0.16);
  --border-strong: rgba(120, 200, 255, 0.32);
  --text: #eaf3fb;
  --text-2: #a9c2d8;
  --text-3: #6f8ca6;
  --accent: #38bdf8;
  --accent-hover: #5ecbfa;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --ok: #7ec8a3;
  --ok-soft: rgba(126, 200, 163, 0.14);
  --warn: #e0b04e;
  --warn-soft: rgba(224, 176, 78, 0.14);
  --danger: #e07b7b;
  --danger-soft: rgba(224, 123, 123, 0.13);
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  --grad: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
  --header-bg: rgba(10, 20, 32, 0.82);
  --code-bg: #0d1826;
  --scroll-thumb: #1c3046;
  --bg-glow: rgba(56, 189, 248, 0.10);
  --grad-brand: linear-gradient(135deg, #38bdf8 0%, #4f8ef7 55%, #6366f1 100%);
  --glass-bg: rgba(15, 28, 43, 0.66);
  --glass-border: rgba(120, 200, 255, 0.3);
  --bg-grid: rgba(120, 200, 255, 0.04);
  --hero-glow: rgba(56, 189, 248, 0.18);
  --focus-ring: rgba(56, 189, 248, 0.5);
  --accent-shadow: rgba(56, 189, 248, 0.32);
  --badge-glow: rgba(56, 189, 248, 0.55);
  color-scheme: dark;
}
[data-skin="skin6"][data-theme="light"] {
  --bg: #f2f8fd;
  --surface: #ffffff;
  --surface-2: #e9f3fa;
  --surface-3: #dcebf5;
  --border: #d4e6f4;
  --border-strong: #b8d8ec;
  --text: #1b2b3a;
  --text-2: #4c6b85;
  --text-3: #86a3ba;
  --accent: #0ea5e9;
  --accent-hover: #0284c7;
  --accent-soft: rgba(14, 165, 233, 0.10);
  --ok: #3e8f67;
  --ok-soft: rgba(62, 143, 103, 0.11);
  --warn: #a8821f;
  --warn-soft: rgba(168, 130, 31, 0.11);
  --danger: #b45050;
  --danger-soft: rgba(180, 80, 80, 0.09);
  --shadow: 0 12px 34px rgba(40, 80, 120, 0.12);
  --grad: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  --header-bg: rgba(255, 255, 255, 0.86);
  --code-bg: #f0f7fc;
  --scroll-thumb: #c8dded;
  --bg-glow: rgba(14, 165, 233, 0.07);
  --grad-brand: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 55%, #6366f1 100%);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(14, 165, 233, 0.26);
  --bg-grid: rgba(14, 165, 233, 0.05);
  --hero-glow: rgba(14, 165, 233, 0.14);
  --focus-ring: rgba(14, 165, 233, 0.4);
  --accent-shadow: rgba(14, 165, 233, 0.25);
  --badge-glow: rgba(14, 165, 233, 0.45);
  color-scheme: light;
}

/* ============================================================
   模板七 · 霓虹夜航（科技霓虹）  data-skin="skin7"
   ============================================================ */
[data-skin="skin7"], [data-skin="skin7"][data-theme="dark"] {
  --bg: #07070d;
  --surface: #0d0d18;
  --surface-2: #131322;
  --surface-3: #1a1a2e;
  --border: rgba(167, 139, 250, 0.16);
  --border-strong: rgba(167, 139, 250, 0.32);
  --text: #ede9ff;
  --text-2: #b3a8dd;
  --text-3: #6f668f;
  --accent: #22d3ee;
  --accent-hover: #5ee7f7;
  --accent-soft: rgba(34, 211, 238, 0.14);
  --ok: #7ed3a3;
  --ok-soft: rgba(126, 211, 163, 0.14);
  --warn: #e8c05a;
  --warn-soft: rgba(232, 192, 90, 0.14);
  --danger: #e07b9e;
  --danger-soft: rgba(224, 123, 158, 0.13);
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
  --grad: linear-gradient(135deg, #22d3ee 0%, #a78bfa 100%);
  --header-bg: rgba(7, 7, 13, 0.84);
  --code-bg: #0a0a14;
  --scroll-thumb: #22223a;
  --bg-glow: rgba(34, 211, 238, 0.08);
  --grad-brand: linear-gradient(135deg, #22d3ee 0%, #7c6ef2 55%, #a78bfa 100%);
  --glass-bg: rgba(13, 13, 24, 0.66);
  --glass-border: rgba(167, 139, 250, 0.3);
  --bg-grid: rgba(167, 139, 250, 0.04);
  --hero-glow: rgba(34, 211, 238, 0.16);
  --focus-ring: rgba(34, 211, 238, 0.5);
  --accent-shadow: rgba(124, 110, 242, 0.35);
  --badge-glow: rgba(34, 211, 238, 0.5);
  color-scheme: dark;
}
[data-skin="skin7"][data-theme="light"] {
  --bg: #f4f3ff;
  --surface: #ffffff;
  --surface-2: #ebeafb;
  --surface-3: #dfddf7;
  --border: #d8d5f4;
  --border-strong: #bfbaf0;
  --text: #23204a;
  --text-2: #56508a;
  --text-3: #8882b0;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-soft: rgba(124, 58, 237, 0.10);
  --ok: #3e8f67;
  --ok-soft: rgba(62, 143, 103, 0.11);
  --warn: #a8821f;
  --warn-soft: rgba(168, 130, 31, 0.11);
  --danger: #b45050;
  --danger-soft: rgba(180, 80, 80, 0.09);
  --shadow: 0 12px 34px rgba(60, 40, 120, 0.13);
  --grad: linear-gradient(135deg, #22d3ee 0%, #a78bfa 100%);
  --header-bg: rgba(255, 255, 255, 0.86);
  --code-bg: #f2f1fd;
  --scroll-thumb: #cecaf0;
  --bg-glow: rgba(124, 58, 237, 0.07);
  --grad-brand: linear-gradient(135deg, #22d3ee 0%, #7c6ef2 55%, #a78bfa 100%);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(124, 58, 237, 0.26);
  --bg-grid: rgba(124, 58, 237, 0.05);
  --hero-glow: rgba(124, 58, 237, 0.14);
  --focus-ring: rgba(124, 58, 237, 0.4);
  --accent-shadow: rgba(124, 58, 237, 0.25);
  --badge-glow: rgba(124, 58, 237, 0.45);
  color-scheme: light;
}

/* ============================================================
   模板八 · 暖阳焦糖（温暖焦糖橙）  data-skin="skin8"
   ============================================================ */
[data-skin="skin8"], [data-skin="skin8"][data-theme="dark"] {
  --bg: #18100a;
  --surface: #201610;
  --surface-2: #291c13;
  --surface-3: #332317;
  --border: rgba(240, 170, 90, 0.16);
  --border-strong: rgba(240, 170, 90, 0.32);
  --text: #faf0e6;
  --text-2: #d8bca2;
  --text-3: #967a60;
  --accent: #ea7c2f;
  --accent-hover: #f28c43;
  --accent-soft: rgba(234, 124, 47, 0.14);
  --ok: #9db97a;
  --ok-soft: rgba(157, 185, 122, 0.14);
  --warn: #e0b04e;
  --warn-soft: rgba(224, 176, 78, 0.14);
  --danger: #d96a5e;
  --danger-soft: rgba(217, 106, 94, 0.13);
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  --grad: linear-gradient(135deg, #ea7c2f 0%, #c05a1e 100%);
  --header-bg: rgba(24, 16, 10, 0.82);
  --code-bg: #1b120b;
  --scroll-thumb: #3a2718;
  --bg-glow: rgba(234, 124, 47, 0.10);
  --grad-brand: linear-gradient(135deg, #ea7c2f 0%, #d96b28 55%, #c05a1e 100%);
  --glass-bg: rgba(32, 22, 16, 0.66);
  --glass-border: rgba(240, 170, 90, 0.3);
  --bg-grid: rgba(240, 170, 90, 0.04);
  --hero-glow: rgba(234, 124, 47, 0.18);
  --focus-ring: rgba(234, 124, 47, 0.5);
  --accent-shadow: rgba(192, 90, 30, 0.32);
  --badge-glow: rgba(234, 124, 47, 0.55);
  color-scheme: dark;
}
[data-skin="skin8"][data-theme="light"] {
  --bg: #fdf5ee;
  --surface: #ffffff;
  --surface-2: #fbece0;
  --surface-3: #f8e2d0;
  --border: #f0dcc8;
  --border-strong: #e4c4a6;
  --text: #3a2518;
  --text-2: #7d5c40;
  --text-3: #a88b6f;
  --accent: #d96b28;
  --accent-hover: #c05a1e;
  --accent-soft: rgba(217, 107, 40, 0.10);
  --ok: #5f8a4e;
  --ok-soft: rgba(95, 138, 78, 0.11);
  --warn: #b8822a;
  --warn-soft: rgba(184, 130, 42, 0.11);
  --danger: #b4563e;
  --danger-soft: rgba(180, 86, 62, 0.09);
  --shadow: 0 12px 34px rgba(90, 50, 20, 0.12);
  --grad: linear-gradient(135deg, #ea7c2f 0%, #c05a1e 100%);
  --header-bg: rgba(255, 255, 255, 0.86);
  --code-bg: #faf1e8;
  --scroll-thumb: #e6cdb6;
  --bg-glow: rgba(217, 107, 40, 0.07);
  --grad-brand: linear-gradient(135deg, #ea7c2f 0%, #d96b28 55%, #c05a1e 100%);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(217, 107, 40, 0.26);
  --bg-grid: rgba(217, 107, 40, 0.05);
  --hero-glow: rgba(217, 107, 40, 0.14);
  --focus-ring: rgba(217, 107, 40, 0.4);
  --accent-shadow: rgba(217, 107, 40, 0.25);
  --badge-glow: rgba(217, 107, 40, 0.45);
  color-scheme: light;
}

/* 模板六/七/八：按钮光点渐变 */
[data-skin="skin6"] .skin-switch .sk-dot { background: linear-gradient(135deg, #38bdf8, #6366f1); }
[data-skin="skin7"] .skin-switch .sk-dot { background: linear-gradient(135deg, #22d3ee, #a78bfa); }
[data-skin="skin8"] .skin-switch .sk-dot { background: linear-gradient(135deg, #ea7c2f, #c05a1e); }

/* ---------- 右上角操作按钮：统一矩形 ---------- */
.header-actions .skin-switch,
.header-actions .icon-btn,
.header-actions .btn {
  height: 32px; min-width: 32px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.header-actions .skin-switch { gap: 6px; font-size: 12.5px; font-weight: 600; }
.header-actions .skin-switch .sk-dot { width: 13px; height: 13px; }
.header-actions .icon-btn { width: auto; }
.header-actions .icon-btn svg { width: 16px; height: 16px; }
.header-actions .btn { font-size: 13px; font-weight: 600; }
.header-actions .btn:hover { transform: none; }
.header-actions .skin-switch:hover,
.header-actions .icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
@media (max-width: 760px) {
  .header-actions .skin-switch,
  .header-actions .icon-btn,
  .header-actions .btn { height: 30px; padding: 0 9px; }
}

/* ================= v1.2.93 展示区布局切换：网格 / 列表 / 瀑布流 ================= */
body[data-view="list"] .gallery-grid,
body[data-view="list"] .gl-grid { grid-template-columns: 1fr; gap: 12px; }
body[data-view="list"] .gallery-card { display: flex; flex-direction: row; align-items: stretch; }
body[data-view="list"] .gallery-card .g-cover { width: 230px; height: auto; min-height: 150px; flex: none; }
body[data-view="list"] .gallery-card .g-body { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 14px 20px; }
body[data-view="list"] .gallery-card .g-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body[data-view="masonry"] .gallery-grid,
body[data-view="masonry"] .gl-grid { display: block; columns: 3 250px; column-gap: 16px; }
body[data-view="masonry"] .gallery-grid .gallery-card,
body[data-view="masonry"] .gl-grid .gallery-card { break-inside: avoid; margin-bottom: 16px; }
@media (max-width: 760px) {
  body[data-view="masonry"] .gallery-grid,
  body[data-view="masonry"] .gl-grid { columns: 2 150px; column-gap: 10px; }
  body[data-view="list"] .gallery-card { flex-direction: column; }
  body[data-view="list"] .gallery-card .g-cover { width: auto; height: 148px; min-height: 0; }
  body[data-view="list"] .gallery-card .g-body { padding: 12px 14px; }
}

/* ================= v1.2.93 卡片真实封面（上传图 / 渐变二选一，后台可切模式） ================= */
.g-cover.has-cover { background-size: cover !important; background-position: center !important; }
.g-cover.has-cover::before { display: none; }
.g-cover.has-cover::after { background: linear-gradient(180deg, transparent 28%, rgba(5, 7, 16, .52) 100%); }
[data-theme="light"] .g-cover.has-cover::after { background: linear-gradient(180deg, transparent 32%, rgba(5, 7, 16, .46) 100%); }
/* 封面图懒加载渐显：进入视口后淡入并轻微缩放，避免图片生硬出现 */
.g-cover.has-cover { background-color: var(--surface); }
.g-cover.has-cover.g-cover-in { animation: gCoverIn .5s ease both; }
@keyframes gCoverIn { from { opacity: 0; transform: scale(1.04); filter: saturate(.55); } to { opacity: 1; transform: scale(1); filter: saturate(1); } }
/* ================= 发布成功庆祝动效（重设计：独立庆祝区、不重叠、对勾常驻、纸屑播完消失） ================= */
.celebrate { position: relative; height: 84px; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.c-check { position: relative; z-index: 2; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; opacity: 0; }
.celebrate.play .c-check { animation: cPop .55s cubic-bezier(.22, 1.4, .36, 1) .05s both; }
.c-check svg { width: 60px; height: 60px; }
.c-check .ck-circle { fill: none; stroke: #22c55e; stroke-width: 3; stroke-dasharray: 190; stroke-dashoffset: 190; }
.celebrate.play .ck-circle { animation: ckDraw .5s .18s ease forwards; }
.c-check .ck-tick { fill: none; stroke: #22c55e; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 46; stroke-dashoffset: 46; }
.celebrate.play .ck-tick { animation: ckDraw .3s .58s ease forwards; }
@keyframes ckDraw { to { stroke-dashoffset: 0; } }
@keyframes cPop { 0% { opacity: 0; transform: scale(.3); } 55% { transform: scale(1.16); } 75% { transform: scale(.96); } 100% { opacity: 1; transform: scale(1); } }
.c-confetti { position: absolute; left: 50%; top: 50%; pointer-events: none; }
.c-confetti i { position: absolute; width: 7px; height: 13px; border-radius: 2px; opacity: 0; }
.celebrate.play .c-confetti i { animation: cfFly 1.1s cubic-bezier(.16, .8, .4, 1) forwards; }
@keyframes cfFly {
  0% { opacity: 0; transform: translate(0, 0) rotate(0) scale(.8); }
  12% { opacity: 1; transform: translate(calc(var(--dx) * .3), calc(var(--dy) * .3)) rotate(calc(var(--rz) * .35)); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rz)) scale(1); }
}

/* ================= v1.2.93 首页 hero 光效升级 ================= */
.hero {
  background:
    radial-gradient(640px 440px at 12% -4%, rgba(139, 92, 246, .15), transparent 62%),
    radial-gradient(540px 400px at 90% 6%, rgba(34, 211, 238, .11), transparent 60%),
    radial-gradient(460px 340px at 46% 112%, rgba(236, 72, 153, .10), transparent 62%);
}
[data-theme="light"] .hero {
  background:
    radial-gradient(640px 440px at 12% -4%, rgba(139, 92, 246, .10), transparent 62%),
    radial-gradient(540px 400px at 90% 6%, rgba(34, 211, 238, .08), transparent 60%),
    radial-gradient(460px 340px at 46% 112%, rgba(236, 72, 153, .06), transparent 62%);
}
.hero::before { animation: heroFloat 14s ease-in-out infinite alternate; }
@keyframes heroFloat {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-70px, 34px) scale(1.14); }
  100% { transform: translate(34px, -22px) scale(.94); }
}

/* ================= v1.2.93 全局动效细节 ================= */
.btn, .icon-btn, .gallery-card, .rk-row, .tpl-card, .sk-item, .gl-card,
.gallery-card .g-cover, .g-hover, .g-hover-meta { transition-timing-function: cubic-bezier(.2, .7, .3, 1); }
.gallery-card { animation: cardIn .45s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.nav a { position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 2px;
  border-radius: 2px; background: var(--accent); transition: right .28s cubic-bezier(.2, .7, .3, 1);
}
.nav a:hover::after, .nav a.active::after { right: 0; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
::-webkit-scrollbar-track { background: transparent; }
@media (prefers-reduced-motion: reduce) {
  .gallery-card, .reveal { animation: none; transition: none; }
}
/* ================= v1.2.93 后台私密徽标 ================= */
.s-pwd-tag { font-style: normal; font-size: 11px; color: var(--accent); border: 1px solid var(--accent-soft);
  background: var(--accent-soft); border-radius: 999px; padding: 1px 7px; margin-left: 6px; vertical-align: 1px; }
/* ================= v1.2.170 后台：私密密码查看/重置 + 站点操作「更多」折叠 ================= */
.s-pwd-tag { cursor: pointer; }
.s-pwd-tag:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.pwd-cur { font-family: ui-monospace, Consolas, monospace; font-size: 14px; color: var(--text);
  background: var(--surface-2); border: 1px dashed var(--border); border-radius: 8px; padding: 7px 12px; }
#pwdCurWrap.muted .pwd-cur { color: var(--text-3); font-style: italic; font-family: inherit; }
.sc-desc { font-size: 13px; color: var(--text-2); line-height: 1.8; }
.inline-2 { display: flex; gap: 8px; align-items: center; }
.inline-2 input { flex: 1; min-width: 0; }
.ops-more { position: relative; display: inline-flex; }
.ops-more-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 26px; padding: 0 6px;
  border: 1px solid var(--border); border-radius: 7px; color: var(--text-3);
  background: var(--surface-2); cursor: pointer;
}
.ops-more-btn:hover { color: var(--accent); border-color: var(--accent); }
.ops-more-menu {
  position: absolute; top: calc(100% + 4px); right: 0; z-index: 80;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35); padding: 4px; min-width: 132px;
}
.ops-more-menu.hidden { display: none; }
.ops-more-menu button {
  display: flex; width: 100%; align-items: center; gap: 7px; text-align: left;
  background: none; border: none; color: var(--text); padding: 8px 12px; border-radius: 7px;
  cursor: pointer; font-size: 13px; white-space: nowrap;
}
.ops-more-menu button:hover { background: var(--accent-soft); color: var(--accent); }
.ops-more-menu button.on { color: var(--accent); }

/* ================= v1.2.119 批次：登录弹窗分栏 / 克隆 / 统计详情 / 批量 / hover 光晕 / 移动端发布栏 ================= */
/* ---- 登录 / 注册弹窗：左右分栏 ---- */
.modal-auth-lg { max-width: 780px; width: 92%; padding: 0; overflow: hidden; }
.auth-shell { display: flex; min-height: 420px; }
.auth-brand {
  flex: 0 0 300px; padding: 34px 30px; color: #fff; position: relative;
  background: linear-gradient(160deg, #7c3aed 0%, #6d28d9 45%, #4f46e5 100%);
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.auth-brand::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.22), transparent 55%), radial-gradient(ellipse at 90% 90%, rgba(34,211,238,.25), transparent 50%); pointer-events: none; }
.auth-brand-logo { font-size: 30px; font-weight: 800; letter-spacing: 1px; position: relative; z-index: 1; }
.auth-brand-logo::after { content: '静态托管'; font-size: 12px; font-weight: 600; margin-left: 10px; opacity: .85; letter-spacing: 2px; }
.auth-brand-title { font-size: 20px; font-weight: 700; position: relative; z-index: 1; }
.auth-brand-sub { font-size: 13px; line-height: 1.7; opacity: .88; position: relative; z-index: 1; }
.auth-brand-points { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 9px; position: relative; z-index: 1; }
.auth-brand-points li { display: flex; align-items: center; gap: 8px; font-size: 13px; opacity: .95; }
.auth-brand-points li svg { width: 15px; height: 15px; stroke-width: 2.4; flex: none; }
.auth-form { flex: 1; padding: 22px 26px 18px; background: var(--surface); }
.auth-form .modal-head { padding: 0 0 14px; }
/* 登录 / 注册面板叠加在同一网格格位：两个面板始终占位（隐藏仅透明不可点），弹窗高度恒定，切换 tab 时不跳动 */
.auth-form .modal-body { display: grid; align-items: start; }
.auth-form .modal-body > div { grid-area: 1 / 1; }
.auth-form .modal-body > div.auth-panel-off { visibility: hidden; pointer-events: none; }
/* 面板隐藏瞬间禁用内部元素过渡（如 .btn 的 transition:all 会把 visibility 也过渡 0.18s 导致按钮延迟消失） */
.auth-form .modal-body > div.auth-panel-off, .auth-form .modal-body > div.auth-panel-off * { transition: none; }
/* 通用步骤叠加：隐藏面板保持占位，弹窗不跳动 */
.stack-panels { display: grid; align-items: start; }
.stack-panels > div { grid-area: 1 / 1; }
.stack-panels > div.hidden { visibility: hidden; pointer-events: none; display: block; }
.stack-panels > div.hidden, .stack-panels > div.hidden * { transition: none; }
.auth-form .modal-body .field { margin-bottom: 11px; }
.auth-form .modal-body .field > span { font-size: 12.5px; }
.auth-form .modal-body .btn-block { margin-top: 4px; }
/* ---- v1.2.148 登录注册表单动效 ---- */
/* 面板切换：滑动淡入（隐藏面板不带动画，避免抖动） */
.auth-form .modal-body > div:not(.auth-panel-off) { animation: authPanelIn .34s cubic-bezier(.2,.7,.3,1) both; }
@keyframes authPanelIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.auth-form .modal-body > div.auth-panel-off, .auth-form .modal-body > div.auth-panel-off * { animation: none; }
/* 输入框 focus：轻微上浮 + 边框光晕 */
.auth-form .field input { transition: border-color .2s, box-shadow .2s, transform .18s; }
.auth-form .field input:focus { transform: translateY(-1px); }
/* 主按钮按下微反馈 */
.auth-form .btn-block:active { transform: scale(.985); }
@media (max-width: 640px) {
  .auth-brand { display: none; }
  .modal-auth-lg { max-width: 420px; }
}
/* ---- 克隆 / 统计详情弹窗 ---- */
.clone-entry svg, .backup-entry svg, .trash-entry svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 13px 12px; text-align: center; }
.stat-card .sc-num { font-size: 22px; font-weight: 800; color: var(--accent); font-family: ui-monospace, monospace; }
.stat-card .sc-label { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.stat-block { margin-top: 14px; }
.stat-block-title { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; }
.stat-chart { min-height: 130px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.t-bars.tall { height: 130px; align-items: flex-end; }
.t-bars.tall .t-bar { width: 6px; }
.traffic-actions { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.traffic-actions .link-btn { font-size: 12px; color: var(--accent); padding: 0; }
@media (max-width: 640px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}
/* ---- 文件批量选择 ---- */
.f-cb { display: inline-flex; align-items: center; padding: 0 8px 0 2px; cursor: pointer; }
.f-cb input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; margin: 0; }
.file-row.selected { background: var(--accent-soft); }
.fm-batch { display: flex; align-items: center; gap: 8px; padding: 2px 2px; }
.fm-batch-count { font-size: 12px; color: var(--accent); font-weight: 600; margin-right: 4px; white-space: nowrap; }
/* ---- 移动端编辑器底部固定发布栏 ---- */
@media (max-width: 768px) {
  .editor-sub { padding-bottom: 86px; }
  .pub-actions { position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; z-index: 40; }
  .pub-actions #expireAlert { width: 100%; max-width: 100%; margin: 0 0 8px; }
  .publish-bar { margin-left: 0; }
}
/* ---- 模板市场卡片：真实缩略图 + 热门/NEW 标签 ---- */
.tp-thumb {
  height: 120px; position: relative; overflow: hidden;
  background: linear-gradient(145deg, #2a2a66, #46308a 60%, #7c3aed);
}
[data-theme="light"] .tp-thumb { background: linear-gradient(145deg, #e3e7fb, #d9d2f5 60%, #c9baf2); }
.tp-thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.tp-thumb .t-style { position: absolute; top: 8px; left: 10px; z-index: 2; font-size: 11px; color: #fff;
  background: rgba(0, 0, 0, .38); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 2px 9px; backdrop-filter: blur(4px); }
[data-theme="light"] .tp-thumb .t-style { color: #4c4690; background: rgba(255, 255, 255, .7); border-color: rgba(70, 60, 140, .25); }
.tp-thumb .t-ico {
  position: absolute; left: 10px; bottom: 8px; z-index: 2; width: 30px; height: 30px; border-radius: 9px;
  background: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, .5); color: #3b2f8f;
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
}
.tp-thumb .t-wm { position: absolute; right: 8px; bottom: 4px; z-index: 2; font-size: 40px; font-weight: 800;
  color: rgba(255, 255, 255, .3); font-family: ui-monospace, Consolas, monospace; pointer-events: none; user-select: none; }
[data-theme="light"] .tp-thumb .t-wm { color: rgba(60, 50, 120, .16); }
.tp-thumb .t-tag {
  position: absolute; top: 8px; right: 10px; z-index: 2; font-size: 11px; font-weight: 700; color: #fff;
  border-radius: 999px; padding: 2px 9px; letter-spacing: .5px;
}
.tp-thumb .t-hot { background: linear-gradient(135deg, #f43f5e, #fb923c); box-shadow: 0 3px 10px rgba(244, 63, 94, .4); }
.tp-thumb .t-new { background: linear-gradient(135deg, #10b981, #22d3ee); box-shadow: 0 3px 10px rgba(16, 185, 129, .4); }
.tp-thumb .t-style + .t-tag, .tp-thumb .t-tag + .t-tag { left: auto; }
/* ---- 后台：数据总览大屏 + 内容审核 + 空状态 ---- */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 44px 20px; text-align: center; }
.empty-state .es-ico { color: var(--accent); opacity: .95; }
.empty-state .es-ico svg { width: 44px; height: 44px; }
.empty-state b { color: var(--text-2); font-size: 14px; }
.empty-state span { color: var(--text-3); font-size: 12.5px; max-width: 340px; line-height: 1.6; }
.audit-item { display: flex; align-items: center; gap: 14px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; flex-wrap: wrap; }
.audit-main { flex: 1; min-width: 220px; display: grid; gap: 3px; }
.audit-main b { font-size: 14px; color: var(--text); }
.audit-meta { font-size: 12px; color: var(--text-3); }
.audit-meta b { color: var(--danger); font-size: 12px; }
.audit-files { font-size: 12px; color: var(--accent); font-family: ui-monospace, monospace; background: var(--accent-soft);
  border-radius: 8px; padding: 5px 10px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-actions { margin-left: auto; }
@media (max-width: 640px) {
  .audit-item { flex-direction: column; align-items: stretch; }
  .audit-actions { margin-left: 0; }
  .audit-files { max-width: none; }
}

/* ============================================================
   页面转场过渡（全站统一）：main 淡入上移，避免生硬跳转。
   ⚠ 动画只作用于 <main>：弹窗(.modal-overlay)挂在 body 下、在 main 之外，
   若动画加在 body 上会残留 transform，部分浏览器会把 fixed 弹窗
   当成页面定位跑到网页正中间，必须滚动才看得到。
   ============================================================ */
body.page-enter main {
  animation: pageFadeIn .45s cubic-bezier(.2, .7, .3, 1) both;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
/* 独立页骨架内容随页面上浮（兼容已有 .reveal 入场，二者不冲突） */
body.page-enter main > section,
body.page-enter main > .container {
  animation: secFadeIn .55s cubic-bezier(.2, .7, .3, 1) both;
}
@keyframes secFadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
/* 移动端：转场时长缩短，减少迟滞感 */
@media (max-width: 640px) {
  body.page-enter main { animation-duration: .3s; }
  body.page-enter main > section,
  body.page-enter main > .container { animation-duration: .4s; }
}
/* 减动效偏好：跳过转场 */
@media (prefers-reduced-motion: reduce) {
  body.page-enter main, body.page-enter main > section,
  body.page-enter main > .container { animation: none; }
}

/* ============================================================
   暗色模式细节打磨（v1.2.148）
   ============================================================ */
/* 日/夜切换时背景与文字平滑过渡，避免生硬跳色 */
body, .site-header, .hero, .card, .gallery-card, .modal, .auth-form,
.chart-card, .stat-card, .ov-card, .rk-pod, .tpl-card, .detail-card,
.switch .track, .file-row, .f-cell, .back-top {
  transition: background-color .3s ease, border-color .3s ease, color .2s ease, box-shadow .3s ease;
}
/* 暗色滚动条：更贴合主题 */
html[data-theme="dark"] ::-webkit-scrollbar { width: 9px; height: 9px; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2f3a50, #232c3f); border-radius: 6px; border: 2px solid var(--bg);
}
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #3b4a66; }
/* 暗色文本选区：品牌色高亮 */
html[data-theme="dark"] ::selection { background: rgba(139, 92, 246, .45); color: #fff; }
html[data-theme="light"] ::selection { background: rgba(99, 102, 241, .25); color: inherit; }
/* 暗色卡片阴影更柔和（避免纯黑生硬） */
html[data-theme="dark"] .gallery-card:hover,
html[data-theme="dark"] .chart-card:hover,
html[data-theme="dark"] .stat-card:hover,
html[data-theme="dark"] .tpl-card:hover {
  box-shadow: 0 14px 34px rgba(2, 6, 16, .5), 0 0 0 1px rgba(139, 92, 246, .12);
}
/* 暗色输入框内光：聚焦时光晕更明显，弱化生硬边框 */
html[data-theme="dark"] .field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .18), 0 0 22px rgba(139, 92, 246, .12);
}

/* ============================================================
   字体排版升级（v1.2.148）
   ============================================================ */
/* 中文渲染：优先现代无衬线（HarmonyOS / MiSans 等已安装则使用，未安装回退现有栈） */
body, button, input, textarea, select {
  font-family: -apple-system, BlinkMacSystemFont, "HarmonyOS Sans SC", "MiSans", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
}
/* 大标题：收紧字距更精致，数字/英文用系统字体 */
h1, h2, h3, .modal-title, .hero-title, .sc-title, .rk-col-title, .dt-title, .tp-title {
  letter-spacing: .02em;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* 数字排版：统计数字 / 计数 / 时间用等宽数字，避免跳动 */
.s-num, .sc-num, .ov-num, .hero-stats b, .rk-pod-meta, .g-views, .dt-views,
.chart-head b, .stat-card .sc-num, .expire-alert b, .count-num, .me-card .me-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
/* 正文小字：行高与字距微调，阅读更舒展 */
p, .es-sub, .g-desc, .rk-pod-desc, .dt-desc, .auth-brand-sub, .modal-tip {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
/* 移动端：字号略收紧，避免大屏字级在小屏发飘 */
@media (max-width: 640px) {
  h1 { letter-spacing: .01em; }
  body { line-height: 1.65; }
}