/* ============================================================
   5ZH 个人空间 v1.1 —— Apple 风格设计系统（产品级优化）
   设计原则：克制、层次、玻璃质感、微动效、无障碍
   ============================================================ */

:root {
  /* 色板 */
  --bg: #fbfbfd;
  --bg-deep: #f2f2f7;
  --card: #ffffff;
  --card-glass: rgba(255, 255, 255, 0.72);
  --nav-bg: rgba(251, 251, 253, 0.72);
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.1);
  --accent-grad: linear-gradient(135deg, #2997ff 0%, #0071e3 100%);
  --danger: #ff3b30;
  --danger-soft: rgba(255, 59, 48, 0.1);
  --success: #34c759;
  --success-soft: rgba(52, 199, 89, 0.14);
  --warning: #ff9f0a;
  --warning-soft: rgba(255, 159, 10, 0.16);
  --border: rgba(0, 0, 0, 0.09);
  --border-strong: rgba(0, 0, 0, 0.16);

  /* 阴影（分层） */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 32px 80px rgba(0, 0, 0, 0.18);

  /* 圆角 */
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --radius-pill: 980px;

  /* 动效 */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.2, 0.9, 0.3, 1.2);
  --dur: 0.28s;

  /* 尺寸 */
  --nav-h: 48px;
  --max-w: 980px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
          "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "Cascadia Code", Consolas, "Courier New", monospace;
}

[data-theme="dark"] {
  --bg: #000000;
  --bg-deep: #0d0d0f;
  --card: #1c1c1e;
  --card-glass: rgba(28, 28, 30, 0.72);
  --nav-bg: rgba(0, 0, 0, 0.7);
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --accent: #2997ff;
  --accent-hover: #4da6ff;
  --accent-soft: rgba(41, 151, 255, 0.16);
  --accent-grad: linear-gradient(135deg, #64b5ff 0%, #2997ff 100%);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 32px 80px rgba(0, 0, 0, 0.7);
}

/* ============ 基础 ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .3s ease, color .3s ease;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img, video { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

::-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(--text-3); }
::-webkit-scrollbar-track { background: transparent; }

input, textarea, select {
  font-family: inherit; font-size: 15px; color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
textarea { resize: vertical; min-height: 96px; line-height: 1.65; }
::placeholder { color: var(--text-3); }

.hidden { display: none !important; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 22px; }
.section-title {
  font-size: 27px; font-weight: 700; letter-spacing: -0.02em;
  margin: 10px 0 20px;
}

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 22px; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), opacity var(--dur) var(--ease);
  white-space: nowrap; user-select: none; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 14px var(--accent-soft), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 22px var(--accent-soft); }
.btn-ghost {
  background: var(--card); color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.btn-ghost:hover { background: var(--bg-deep); transform: translateY(-1px); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-danger:hover { background: rgba(255, 59, 48, 0.18); }
.btn-sm { padding: 6px 15px; font-size: 13px; }
.btn-lg { padding: 15px 36px; font-size: 17px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 10px; color: var(--text-2);
  transition: background .18s, color .18s, transform .18s;
  font-size: 15px;
}
.icon-btn:hover { background: var(--bg-deep); color: var(--text); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn.danger:hover { background: var(--danger-soft); color: var(--danger); }

/* ============ 顶栏 ============ */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 16px; height: var(--nav-h); }
.brand {
  font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--text);
  display: inline-flex; align-items: center; gap: 9px;
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 27px; height: 27px; border-radius: 9px; flex: none;
  background: var(--accent-grad);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0;
  box-shadow: 0 3px 10px var(--accent-soft);
}
.nav-links { display: flex; gap: 2px; margin: 0 auto; }
.nav-link {
  padding: 7px 15px; border-radius: var(--radius-pill); font-size: 14px;
  color: var(--text-2); transition: color .2s, background .2s, font-weight .2s;
}
.nav-link:hover { color: var(--text); background: var(--bg-deep); }
.nav-link.active { color: var(--text); font-weight: 600; background: var(--accent-soft); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.lang-btn, .theme-btn, .admin-chip {
  padding: 6px 13px; border-radius: var(--radius-pill); font-size: 13px;
  color: var(--text-2); transition: background .2s, color .2s, transform .2s;
}
.lang-btn:hover, .theme-btn:hover, .admin-chip:hover { background: var(--bg-deep); color: var(--text); }
.lang-btn:active, .theme-btn:active { transform: scale(0.94); }
.admin-chip.is-on { background: var(--success-soft); color: var(--success); font-weight: 600; }
/* 顶部登录入口（未登录态） */
.admin-login-chip { border: 1px solid var(--border-strong); }

/* ============ Hero ============ */
.hero {
  position: relative; text-align: center;
  padding: 96px 0 44px; overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .5; z-index: -1;
  animation: orbFloat 14s ease-in-out infinite alternate;
}
.hero::before {
  width: 520px; height: 520px; left: -140px; top: -180px;
  background: radial-gradient(circle, rgba(41, 151, 255, 0.28), transparent 65%);
}
.hero::after {
  width: 460px; height: 460px; right: -120px; top: -60px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.2), transparent 65%);
  animation-delay: -7s;
}
.hero h1 {
  font-size: clamp(42px, 7.5vw, 68px); font-weight: 700;
  letter-spacing: -0.035em; line-height: 1.06;
  background: linear-gradient(180deg, var(--text) 0%, var(--text-2) 120%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: riseIn .6s var(--ease) both;
}
.hero p {
  margin-top: 16px; font-size: clamp(17px, 2.5vw, 23px);
  color: var(--text-2); font-weight: 400; letter-spacing: -0.01em;
  animation: riseIn .6s var(--ease) .1s both;
}
.hero-actions {
  margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  animation: riseIn .6s var(--ease) .18s both;
}

/* ============ 卡片与网格 ============ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--card-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  animation: riseIn .5s var(--ease) both;
}
.card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.card-media {
  aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-deep);
  position: relative;
}
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.045); }
.card-body { padding: 17px 19px 19px; }
.card-title { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 5px; line-height: 1.35; }
.card-desc { font-size: 14px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta {
  margin-top: 12px; font-size: 12.5px; color: var(--text-3);
  display: flex; gap: 12px; align-items: center; letter-spacing: 0.01em;
}
.badge {
  display: inline-block; padding: 3px 11px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent);
}
.card-arrow {
  margin-left: auto; opacity: 0; transform: translateX(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  color: var(--accent); font-weight: 700;
}
.card:hover .card-arrow { opacity: 1; transform: translateX(0); }

/* ============ 骨架屏 ============ */
.skel { background: linear-gradient(100deg, var(--bg-deep) 40%, var(--card) 50%, var(--bg-deep) 60%);
  background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--radius-sm); }
.skel-hero { width: 55%; height: 46px; margin: 0 auto 12px; }
.skel-media { aspect-ratio: 16/10; border-radius: 0; }
.skel-line { height: 14px; width: 80%; margin-top: 10px; }
.skel-line.short { width: 50%; }
.skel-card { border: none; box-shadow: none; }

/* ============ 空状态 ============ */
.empty { text-align: center; padding: 84px 0; color: var(--text-3); }
.empty-icon {
  width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 24px;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: var(--text-3);
}
.empty p { max-width: 340px; margin: 0 auto; font-size: 14px; }

/* ============ 页脚 ============ */
.footer {
  margin-top: 80px; border-top: 1px solid var(--border);
  background: var(--bg-deep);
  padding: 52px 0 34px; font-size: 13px; color: var(--text-3);
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; }
.footer-brand { font-weight: 700; color: var(--text); font-size: 15px; letter-spacing: -0.01em; }
.footer-admin { margin-top: 16px; display: flex; gap: 10px; }

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; bottom: 46px; transform: translateX(-50%) translateY(12px);
  background: rgba(28, 28, 30, 0.94); color: #fff;
  padding: 12px 24px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg); z-index: 220;
  opacity: 0; transition: opacity .25s var(--ease), transform .25s var(--ease);
  pointer-events: none; max-width: 88vw; text-align: center;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: rgba(217, 48, 37, 0.95); }

/* ============ 模态框 ============ */
.modal-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px) saturate(120%); -webkit-backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center; padding: 22px;
  animation: fadeIn .22s var(--ease);
}
.modal {
  background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); width: 100%; max-width: 560px;
  max-height: 88vh; overflow-y: auto;
  border: 1px solid var(--border);
  animation: popIn .32s var(--ease-spring);
}
.modal.wide { max-width: 780px; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px 0; position: sticky; top: 0; z-index: 2;
}
.modal-head h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.modal-body { padding: 18px 26px 28px; }
.modal-close {
  color: var(--text-3); font-size: 24px; line-height: 1; width: 34px; height: 34px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.modal-close:hover { background: var(--bg-deep); color: var(--text); }

/* 弹窗打开时暂停首页背景动画，避免 backdrop-filter 遮罩持续重采样导致移动端闪屏 */
body.modal-open .hero::before, body.modal-open .hero::after { animation-play-state: paused; }

/* ============ 表单 ============ */
.form-row { margin-bottom: 17px; }
.form-row label {
  display: block; font-size: 13px; font-weight: 600; color: var(--text-2);
  margin-bottom: 7px; letter-spacing: 0.01em;
}
.form-hint { font-size: 12px; color: var(--text-3); margin-top: 5px; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }
.pill-group { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 22px; }
.pill {
  padding: 8px 17px; border-radius: var(--radius-pill); font-size: 14px;
  color: var(--text-2); border: 1px solid var(--border);
  background: var(--card); transition: all .2s var(--ease);
}
.pill:hover { color: var(--text); border-color: var(--border-strong); transform: translateY(-1px); }
.pill.active {
  background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600;
  box-shadow: 0 4px 12px var(--accent-soft);
}

/* ============ 上传控件 ============ */
.upload-drop {
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm);
  padding: 28px; text-align: center; color: var(--text-2); font-size: 14px;
  cursor: pointer; transition: border-color .2s, background .2s, color .2s;
  background: var(--card-glass);
}
.upload-drop:hover, .upload-drop.dragover {
  border-color: var(--accent); background: var(--accent-soft); color: var(--accent);
}
.upload-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
/* 分段选择器（原图 / 压缩） */
.seg {
  display: inline-flex; background: var(--bg-deep);
  border-radius: var(--radius-pill); padding: 3px; gap: 2px; margin-bottom: 10px;
}
.seg-item {
  border: 0; background: transparent; color: var(--text-2);
  font-size: 13px; font-weight: 500; padding: 6px 14px;
  border-radius: 999px; cursor: pointer; transition: all .2s;
  -webkit-tap-highlight-color: transparent;
}
.seg-item.active { background: var(--card); color: var(--text); box-shadow: var(--shadow-sm); font-weight: 600; }
.upload-item {
  position: relative; width: 86px; height: 86px; border-radius: var(--radius-sm);
  overflow: hidden; border: 1px solid var(--border); background: var(--bg-deep);
  box-shadow: var(--shadow-xs);
}
.upload-item img { width: 100%; height: 100%; object-fit: cover; }
.upload-item .remove {
  position: absolute; top: 5px; right: 5px; width: 22px; height: 22px;
  border-radius: 50%; background: rgba(0, 0, 0, 0.62); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
  transition: transform .15s;
}
.upload-item .remove:hover { transform: scale(1.15); }
/* 上传状态角标：…上传中 / ✓成功 / ✗失败 */
.upload-item .st {
  position: absolute; right: 4px; bottom: 4px; width: 18px; height: 18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 11px; font-weight: 700;
}
.upload-item.pending { opacity: .8; }
.upload-item.ok .st { background: rgba(52, 199, 89, 0.92); }
.upload-item.fail { outline: 2px solid #ff3b30; outline-offset: -2px; }
.upload-item.fail .st { background: rgba(255, 59, 48, 0.92); }
/* 上传日志（持久显示，替代一闪而过的 toast） */
.upload-log { margin-top: 8px; font-size: 12.5px; color: var(--text-3); min-height: 16px; word-break: break-all; line-height: 1.5; }
.upload-log .lg-fail { color: #ff3b30; font-weight: 500; }
.upload-log .lg-cur { color: var(--text-3); }
.upload-log.err { color: #ff3b30; font-weight: 500; }
/* 上传按钮（button 版触发文件选择） */
.upload-btn { border: 0; font: inherit; cursor: pointer; display: block; width: 100%; }
.file-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--bg-deep); border-radius: var(--radius-pill);
  padding: 7px 15px; font-size: 13px; color: var(--text); max-width: 100%;
}
.file-chip .x { color: var(--text-3); cursor: pointer; }
.file-chip .x:hover { color: var(--danger); }

/* ============ 创作内容块 ============ */
.creation-body { max-width: 720px; margin: 0 auto; padding: 34px 0 12px; }
.creation-title {
  font-size: clamp(30px, 5.5vw, 44px); font-weight: 700;
  letter-spacing: -0.03em; margin-bottom: 10px; line-height: 1.15;
}
.creation-meta { color: var(--text-3); font-size: 13px; margin-bottom: 32px; }
.blk { margin: 22px 0; }
.blk-h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 34px 0 12px; }
.blk-h3 { font-size: 20px; font-weight: 600; margin: 26px 0 10px; }
.blk-p { font-size: 16.5px; line-height: 1.85; }
.blk-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); cursor: zoom-in; }
.blk-img img { width: 100%; transition: transform .5s var(--ease); }
.blk-img:hover img { transform: scale(1.015); }
.blk-caption { font-size: 13px; color: var(--text-3); text-align: center; margin-top: 10px; }
.blk-video video { width: 100%; border-radius: var(--radius); background: #000; box-shadow: var(--shadow-sm); }
.blk-audio audio { width: 100%; }
.blk-quote {
  border-left: 4px solid var(--accent); padding: 16px 22px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--accent-soft); font-size: 17px; line-height: 1.7;
}
.blk-quote .src { display: block; margin-top: 9px; font-size: 13px; color: var(--text-3); }
.blk-list { padding-left: 26px; }
.blk-list li { margin: 7px 0; }
.blk-code { border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-deep); border: 1px solid var(--border); }
.blk-code .lang {
  padding: 7px 15px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-3); border-bottom: 1px solid var(--border); font-weight: 600;
}
.blk-code pre { padding: 16px; font-family: var(--mono); font-size: 13px; overflow-x: auto; line-height: 1.6; }
.blk-divider { height: 1px; background: var(--border); margin: 34px 0; }

/* ============ 音乐列表 ============ */
.music-list .row {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px;
  border-radius: var(--radius-sm); transition: background .2s, transform .2s;
  cursor: pointer;
}
.music-list .row:hover { background: var(--bg-deep); }
.music-list .row.playing { background: var(--accent-soft); }
.music-list .cover {
  width: 46px; height: 46px; border-radius: 10px; overflow: hidden; flex: none;
  background: var(--bg-deep); box-shadow: var(--shadow-xs);
}
.music-list .cover img { width: 100%; height: 100%; object-fit: cover; }
.music-list .name { font-weight: 600; font-size: 15px; }
.music-list .artist { font-size: 13px; color: var(--text-3); }

/* ============ 播放器 ============ */
.player-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 70; width: min(680px, calc(100vw - 32px));
  background: var(--card-glass);
  backdrop-filter: saturate(180%) blur(28px); -webkit-backdrop-filter: saturate(180%) blur(28px);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 12px 16px;
  animation: riseIn .35s var(--ease) both;
}
.player-inner { display: flex; align-items: center; gap: 14px; }
.player-cover {
  width: 52px; height: 52px; border-radius: 12px; background: var(--bg-deep);
  overflow: hidden; flex: none; box-shadow: var(--shadow-sm);
}
.player-cover img { width: 100%; height: 100%; object-fit: cover; }
.player-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.player-info .name {
  font-size: 14px; font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.player-info .artist { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-ctl { display: flex; align-items: center; gap: 4px; flex: none; }
.player-ctl .icon-btn { width: 38px; height: 38px; border-radius: 50%; font-size: 14px; }
.player-ctl .play-btn {
  background: var(--accent); color: #fff; width: 46px; height: 46px;
  box-shadow: 0 6px 16px var(--accent-soft);
}
.player-ctl .play-btn:hover { background: var(--accent-hover); color: #fff; transform: scale(1.05); }
.player-seek { flex: 1; min-width: 90px; display: flex; align-items: center; gap: 8px; }
.seek, .vol {
  -webkit-appearance: none; appearance: none; height: 5px; border-radius: 4px;
  background: linear-gradient(to right, var(--accent) var(--val, 0%), var(--bg-deep) var(--val, 0%));
  outline: none; cursor: pointer; width: 100%;
}
.seek::-webkit-slider-thumb, .vol::-webkit-slider-thumb {
  -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%;
  background: var(--card); border: 3px solid var(--accent); box-shadow: var(--shadow-xs);
  transition: transform .15s;
}
.seek::-webkit-slider-thumb:hover { transform: scale(1.2); }
.seek::-moz-range-thumb, .vol::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%; background: var(--card);
  border: 3px solid var(--accent); cursor: pointer;
}
.vol { width: 74px; }
.time {
  font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; flex: none;
  min-width: 92px; text-align: center;
}
body.has-player { padding-bottom: 104px; }

/* 均衡器动画 */
.eq { display: inline-flex; gap: 2.5px; align-items: flex-end; height: 14px; margin-right: 4px; }
.eq i {
  width: 3px; border-radius: 2px; background: var(--accent);
  animation: eqBounce 1s ease-in-out infinite;
}
.eq i:nth-child(1) { height: 40%; animation-delay: 0s; }
.eq i:nth-child(2) { height: 100%; animation-delay: .18s; }
.eq i:nth-child(3) { height: 65%; animation-delay: .36s; }
@keyframes eqBounce { 0%, 100% { transform: scaleY(0.4); } 50% { transform: scaleY(1); } }

/* ============ 文件中心 ============ */
.gate {
  max-width: 430px; margin: 96px auto; text-align: center;
  background: var(--card-glass); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 48px 36px; box-shadow: var(--shadow-lg);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  animation: riseIn .5s var(--ease) both;
}
.gate .gate-icon {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.gate h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
.gate p { color: var(--text-2); font-size: 14px; margin-bottom: 24px; }

.file-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px;
  border-radius: var(--radius-sm); transition: background .18s;
  animation: riseIn .4s var(--ease) both;
}
.file-row:hover { background: var(--bg-deep); }
.file-row .ficon {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.file-row .fname { flex: 1; min-width: 0; font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row .fmeta { font-size: 12px; color: var(--text-3); flex: none; }

/* ============ 动态详情浮层 ============ */
.detail-mask {
  position: fixed; inset: 0; z-index: 190; background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fadeIn .22s var(--ease);
}
.detail-panel {
  background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  width: 100%; max-width: 740px; max-height: 88vh; overflow-y: auto;
  border: 1px solid var(--border);
  animation: popIn .32s var(--ease-spring);
}
.detail-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px; }
.detail-media img {
  width: 100%; max-height: 260px; object-fit: cover; cursor: zoom-in;
  transition: opacity .2s;
}
.detail-media img:hover { opacity: .88; }
.detail-body {
  padding: 30px 34px 40px;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  height: 100%;
}
.detail-body h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; line-height: 1.3; }
.detail-meta { font-size: 13px; color: var(--text-3); margin-bottom: 20px; }
.detail-hero {
  position: relative; border-radius: 18px; overflow: hidden; cursor: pointer;
  aspect-ratio: 4 / 3; max-height: 420px;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.06), var(--bg-deep));
}
.detail-hero img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; display: block;
}
/* 详情图片加载完成淡入，避免多图同时渲染的视觉闪烁 */
.detail-hero img.img-fade, .detail-thumbs img.img-fade { opacity: 0; transition: opacity .3s var(--ease); }
.detail-hero img.img-fade.loaded, .detail-thumbs img.img-fade.loaded { opacity: 1; }
.detail-hero-text {
  display: flex; align-items: center; justify-content: center; height: 170px;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.07), var(--bg-deep));
}
.detail-hero-text span { font-size: 42px; color: var(--accent); opacity: .8; }
.detail-hero-count {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 12px; font-weight: 600;
  padding: 4px 11px; border-radius: var(--radius-pill);
}
.detail-video video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 18px; }
.detail-content { margin-top: 18px; font-size: 16px; line-height: 1.85; white-space: pre-wrap; color: var(--text); }
.detail-thumbs {
  display: flex; gap: 8px; margin-top: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding-bottom: 2px; overscroll-behavior-x: contain;
}
.detail-thumbs img {
  flex: 0 0 96px; width: 96px; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 10px; cursor: zoom-in; border: 1px solid var(--border);
  scroll-snap-align: start;
  transition: opacity 0.2s, transform 0.15s;
}
.detail-thumbs img:hover { opacity: .85; }
.detail-thumbs img:active { transform: scale(.96); }

/* ============ 图片查看器（原图完整显示 + 左右切换） ============ */
.gallery {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(6, 8, 12, 0.96);
  display: flex; flex-direction: column;
  overscroll-behavior: contain;
  -webkit-tap-highlight-color: transparent;
}
.gallery.hidden { display: none; }
.g-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
}
.g-count { color: rgba(255, 255, 255, 0.75); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.g-close {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.g-close:hover { background: rgba(255, 255, 255, 0.22); }
.g-stage { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 64px 16px 92px; }
#g-img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 8px; opacity: 0; transition: opacity 0.25s ease;
}
#g-img.loaded { opacity: 1; }
.g-prev, .g-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff; font-size: 24px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s, opacity 0.2s;
}
.g-prev { left: 16px; } .g-next { right: 16px; }
.g-prev:hover, .g-next:hover { background: rgba(255, 255, 255, 0.2); }
.g-thumbs {
  position: absolute; bottom: 14px; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: center; gap: 8px; padding: 8px 12px;
  overflow-x: auto; overscroll-behavior-x: contain;
}
.g-thumbs img {
  width: 52px; height: 40px; object-fit: cover; border-radius: 6px;
  cursor: pointer; opacity: 0.4; border: 1px solid rgba(255, 255, 255, 0.08);
  transition: opacity 0.2s;
}
.g-thumbs img.on { opacity: 1; outline: 2px solid rgba(255, 255, 255, 0.85); }
/* 底部栏：缩略图横滑 + HD 原图按钮 */
.g-bar {
  position: absolute; bottom: 14px; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; gap: 10px; padding: 8px 12px;
}
.g-bar .g-thumbs {
  position: static; flex: 1; justify-content: flex-start; padding: 0;
}
.g-orig {
  flex: 0 0 auto; height: 34px; padding: 0 14px; border-radius: 17px;
  border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.1);
  color: #fff; font-size: 13px; font-weight: 500; letter-spacing: 0.3px;
  cursor: pointer; transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.g-orig:hover { background: rgba(255, 255, 255, 0.22); }
.g-orig.on { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.3); }
/* 原图 canvas：覆盖在缩略图上，解码完成后淡入（不闪屏） */
#g-canvas {
  position: absolute; inset: 0; margin: auto;
  max-width: 100%; max-height: 100%;
  opacity: 0; transition: opacity 0.25s;
  pointer-events: none;
  z-index: 3;
}
@media (max-width: 768px) {
  .g-prev, .g-next { display: none; }
  .g-stage { padding: 58px 8px 78px; }
  .g-thumbs { gap: 6px; }
  .g-thumbs img { width: 44px; height: 34px; }
  .g-orig { height: 30px; padding: 0 12px; font-size: 12px; }
}

/* ============ 灯箱 ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 240; background: rgba(0, 0, 0, 0.92);
  display: flex; align-items: center; justify-content: center; cursor: zoom-out;
  animation: fadeIn .2s var(--ease);
}
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 12px; box-shadow: var(--shadow-xl); animation: popIn .25s var(--ease); }
.lightbox .lb-close {
  position: absolute; top: 20px; right: 24px; color: #fff; font-size: 32px;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.08); transition: background .2s;
}
.lightbox .lb-close:hover { background: rgba(255, 255, 255, 0.2); }

/* ============ 回到顶部 ============ */
.top-btn {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--card-glass); color: var(--text); font-size: 18px;
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: transform .25s var(--ease), opacity .25s var(--ease), background .2s;
}
.top-btn:hover { background: var(--card); transform: translateY(-3px); }
.top-btn.show { animation: riseIn .3s var(--ease); }

/* ============ 视图标题 ============ */
.view-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin: 6px 0 22px;
}
.view-head .section-title { margin: 0; font-size: 30px; }
.view-head .view-sub { font-size: 13px; color: var(--text-3); margin-top: 4px; letter-spacing: 0.01em; }
.view-head .pill-group { margin-bottom: 0; }

/* ============ 底部标签栏（移动端） ============ */
.tabbar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
  height: calc(66px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(28px); -webkit-backdrop-filter: saturate(180%) blur(28px);
  border-top: 1px solid var(--border);
}
.tab-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; color: var(--text-2); font-size: 11.5px; font-weight: 500;
  margin: 5px 7px; border-radius: 14px;
  transition: color .2s, transform .15s, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.tab-item .tab-ico { font-size: 21px; line-height: 1; }
.tab-item:active { transform: scale(0.92); }
.tab-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.tab-item.active .tab-ico { transform: translateY(-1px); }

/* ============ 内容更新提示条 ============ */
.update-bar {
  position: fixed; top: calc(var(--nav-h) + 14px); left: 50%; transform: translateX(-50%) translateY(-10px);
  z-index: 210; display: flex; align-items: center; gap: 14px;
  background: var(--card-glass); border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill); padding: 9px 10px 9px 20px;
  box-shadow: var(--shadow-lg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  font-size: 13.5px; color: var(--text); font-weight: 500;
  opacity: 0; transition: opacity .3s var(--ease), transform .3s var(--ease);
  max-width: calc(100vw - 32px);
}
.update-bar.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ 品牌图标 ============ */
.brand-mark-img { background: none; box-shadow: none; overflow: hidden; }
.brand-mark-img img { width: 100%; height: 100%; object-fit: cover; }

/* ============ 卡片媒体占位与角标 ============ */
.card-media-fallback {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--bg-deep) 100%);
}
.card-media-fallback span { font-size: 34px; color: var(--accent); opacity: .8; }
.card-media-text { background: linear-gradient(135deg, rgba(0, 113, 227, 0.07) 0%, var(--bg-deep) 100%); }
.media-count {
  position: absolute; right: 10px; bottom: 10px;
  background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: var(--radius-pill);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* 触屏设备：去掉悬停位移，箭头常显（表示可点） */
@media (hover: none) {
  .card:hover { transform: none; }
  .card:hover .card-media img { transform: none; }
  .card-arrow { opacity: .7; transform: none; }
  .btn:hover { transform: none; }
}

/* ============ 管理后台 ============ */
.admin { display: flex; min-height: calc(100vh - var(--nav-h)); }
.admin-side {
  width: 236px; flex: none; padding: 26px 14px;
  border-right: 1px solid var(--border); background: var(--bg-deep);
  position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow-y: auto;
}
.admin-side .as-brand { font-size: 15px; font-weight: 700; padding: 0 12px 20px; letter-spacing: -0.01em; }
.admin-side .as-item {
  display: flex; align-items: center; width: 100%; text-align: left;
  padding: 11px 13px; border-radius: 12px; font-size: 14px; color: var(--text-2);
  transition: all .18s var(--ease); margin-bottom: 2px; gap: 8px;
}
.admin-side .as-item:hover { background: var(--card); color: var(--text); box-shadow: var(--shadow-xs); }
.admin-side .as-item.active {
  background: var(--accent-soft); color: var(--accent); font-weight: 600;
}
.admin-side .as-logout {
  margin-top: 14px; border-top: 1px solid var(--border);
  border-radius: 0; padding-top: 13px; color: #ff3b30;
}
.admin-main { flex: 1; min-width: 0; padding: 30px 32px 70px; }
.admin-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.admin-head h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.panel {
  background: var(--card-glass); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.panel h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.01em; }
.row-item {
  display: flex; align-items: center; gap: 13px; padding: 12px 6px;
  border-bottom: 1px solid var(--border);
  transition: background .15s; border-radius: 10px; margin: 0 -6px; padding-left: 8px; padding-right: 8px;
}
.row-item:last-child { border-bottom: none; }
.row-item:hover { background: var(--bg-deep); }
.row-item .r-main { flex: 1; min-width: 0; }
.row-item .r-title { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-item .r-sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.row-item .r-actions { display: flex; gap: 5px; flex: none; }
.status-badge { font-size: 11px; padding: 3px 10px; border-radius: var(--radius-pill); font-weight: 600; letter-spacing: 0.02em; }
.status-published { background: var(--success-soft); color: var(--success); }
.status-draft { background: var(--warning-soft); color: var(--warning); }

/* 创作编辑器 */
.block-row {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 15px; margin-bottom: 13px; background: var(--card);
  box-shadow: var(--shadow-xs);
  transition: border-color .2s;
}
.block-row:hover { border-color: var(--border-strong); }
.block-row .b-head { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.block-row .b-type {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-3); flex: 1;
}
.block-row .b-cols { display: grid; gap: 10px; }
.block-row .b-cols.cols-2 { grid-template-columns: 1fr 1fr; }

/* ============ 动效 ============ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(0.96) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes orbFloat { from { transform: translateY(0) scale(1); } to { transform: translateY(40px) scale(1.08); } }
.view { animation: riseIn .4s var(--ease); }

/* ============ 主内容容器 ============ */
.view {
  max-width: 1220px; margin: 0 auto;
  padding: 30px 32px 110px;
}
/* 管理后台保持通栏布局（不套容器） */
.admin-shell { max-width: none; margin: 0; padding: 0; }

/* ============ 关于页 ============ */
.about-card {
  max-width: 640px; margin: 0 auto; padding: 46px 40px;
  text-align: center;
}
.about-avatar {
  width: 88px; height: 88px; margin: 0 auto 24px; border-radius: 26px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-size: 26px; font-weight: 700;
  letter-spacing: -0.02em; box-shadow: var(--shadow-lg); overflow: hidden;
}
.about-avatar img { width: 100%; height: 100%; object-fit: cover; }
.about-bio {
  font-size: 15.5px; line-height: 1.9; color: var(--text);
  text-align: left; white-space: normal;
}
.about-email {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  padding: 10px 22px; border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent);
  font-size: 14px; font-weight: 600;
  transition: all .2s var(--ease);
}
.about-email:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.about-empty { color: var(--text-3); font-size: 14px; padding: 12px 0; }

/* ============ 文本内链接 ============ */
.content a, .blk a, .about-bio a {
  color: var(--accent); text-decoration: underline; text-underline-offset: 3px;
  word-break: break-all;
}
.content a:hover, .blk a:hover, .about-bio a:hover { opacity: .82; }

/* ============ 无障碍：减少动效 ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============ 响应式 ============ */
/* 桌面端：卡片网格更舒展，避免单卡拉伸到整屏宽 */
@media (min-width: 861px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
}
@media (max-width: 860px) {
  /* 移动端全局禁用 CSS 动画：动画反复触发合成层重建，是安卓整屏黑闪的重要诱因 */
  *, *::before, *::after { animation: none !important; }
  .view { padding: 20px 16px 70px; }
  .admin-shell { padding: 0; }
  .nav { height: auto; }
  .nav-inner { flex-wrap: nowrap; height: auto; padding: 10px 12px 8px; gap: 8px; }
  /* 移动端顶部导航保持单行：品牌自适应压缩，按钮不换行 */
  .brand { flex: 1; min-width: 0; }
  .brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-links { display: flex; flex: none; }
  .nav-links .nav-link:not(.nav-link-about) { display: none; }
  .nav-actions { flex: none; gap: 4px; }
  .nav-actions .lang-btn, .nav-actions .theme-btn, .nav-actions .admin-chip { padding: 5px 10px; font-size: 12px; }
  .about-card { padding: 32px 22px; }
  .detail-body { padding: 24px 18px 28px; }
  .tabbar { display: flex; }
  .hero { padding: 62px 0 28px; }
  .grid { grid-template-columns: 1fr; }
  .admin { flex-direction: column; }
  .admin-side {
    width: 100%; border-right: none; border-bottom: 1px solid var(--border);
    padding: 12px 12px; display: flex; gap: 8px; overflow-x: auto;
    position: static; height: auto;
  }
  .admin-side .as-brand { display: none; }
  .admin-side .as-item { white-space: nowrap; width: auto; flex: none; }
  .admin-main { padding: 22px 16px 70px; }
  /* 移动端后台列表行改卡片式：首行缩略图+标题+日期，操作按钮整行换到第二行 */
  .row-item { flex-wrap: wrap; gap: 8px 12px; padding: 12px 4px; }
  .row-item .r-main { flex: 1 1 0; min-width: 0; }
  .row-item .r-sub { white-space: normal; line-height: 1.45; }
  .row-item .status-badge { display: none; }
  .row-item .r-actions { width: 100%; justify-content: flex-end; }
  .block-row .b-cols.cols-2 { grid-template-columns: 1fr; }
  .player-bar { width: calc(100vw - 20px); bottom: 82px; padding: 10px 12px; }
  .player-info { display: none; }
  .vol { display: none; }
  .time { min-width: 0; }
  body.has-player { padding-bottom: 150px; }
  .footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .top-btn { right: 16px; bottom: 82px; }
  .update-bar { top: 108px; }
  .toast { bottom: 84px; }
  /* 移动端禁用遮罩与浮层的 backdrop-filter：规避 Chrome 安卓 fixed+blur 持续闪屏 bug，纯背景色视觉一致 */
  .modal-mask, .toast, .update-bar, .detail-hero-count, .nav, .player-bar, .top-btn {
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
}

/* ============ v1.9：置顶徽标 / 点赞 / 开关 / 访问统计 ============ */
.pin-badge {
  display: inline-block; vertical-align: middle;
  margin-right: 8px; padding: 2px 9px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  border-radius: var(--radius-pill);
  box-shadow: 0 1px 4px rgba(0, 113, 227, .25);
  transform: translateY(-1px);
}

.like-btn {
  display: inline-flex; align-items: center; gap: 4px;
  margin-right: auto; padding: 5px 11px;
  background: transparent; color: var(--text-2);
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .18s var(--ease); line-height: 1;
}
.like-btn:hover { color: #ff3b30; border-color: rgba(255, 59, 48, .45); background: rgba(255, 59, 48, .06); }
.like-btn.on { color: #ff3b30; border-color: rgba(255, 59, 48, .5); background: rgba(255, 59, 48, .08); }
.detail-like {
  display: flex; align-items: center; gap: 10px;
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border);
}
.detail-like .like-btn { margin-right: 0; padding: 8px 18px; font-size: 14px; }
.detail-like-hint { font-size: 12px; color: var(--text-3); }

/* iOS 风格开关（管理表单） */
.switch { position: relative; display: inline-block; width: 48px; height: 29px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute; inset: 0; border-radius: 999px;
  background: rgba(120, 120, 128, .32); transition: background .2s var(--ease);
}
.switch span::before {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 25px; height: 25px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
  transition: transform .2s var(--ease);
}
.switch input:checked + span { background: #34c759; }
.switch input:checked + span::before { transform: translateX(19px); }

/* 管理后台：访问统计 */
.stat-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-kpi {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px 20px; box-shadow: var(--shadow-xs);
}
.stat-kpi-v { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.stat-kpi-l { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.stat-chart {
  display: flex; align-items: flex-end; gap: 4px;
  height: 180px; padding: 12px 4px 0; border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.stat-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.stat-bar {
  width: 100%; max-width: 22px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-soft) 100%);
  border-radius: 6px 6px 2px 2px;
  transition: height .4s var(--ease);
}
.stat-col:hover .stat-bar { filter: brightness(1.1); }
.stat-day { font-size: 10px; color: var(--text-3); writing-mode: vertical-lr; text-orientation: mixed; }
.stat-legend { display: flex; gap: 18px; font-size: 12px; color: var(--text-2); margin-bottom: 10px; }
.stat-legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; background: var(--accent); vertical-align: baseline; }

/* ===== v1.10.0 访客明细 / 地区分布表格 ===== */
.vt-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 6px 0 12px; }
.vt-table th, .vt-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line, rgba(128,128,128,.18)); }
.vt-table th { font-weight: 600; color: var(--text-2); font-size: 12px; white-space: nowrap; }
.vt-table tr:last-child td { border-bottom: none; }
.vt-table td.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12.5px; }
#stats-regions, #stats-visitors { overflow-x: auto; }

/* ===== v1.10.0 本地 IP 库状态 ===== */
.ipdb-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; padding: 6px 0 10px; }
.ipdb-line.ipdb-ok span::before { content: '●'; color: #34c759; margin-right: 6px; }
.ipdb-line.ipdb-warn span::before { content: '●'; color: #ff9f0a; margin-right: 6px; }
.ipdb-line .btn { flex: none; }
