@charset "utf-8";
/* ==========================================================================
   1010 十全十美项目网 · 设计系统
   暖橙社区风 · 浅色 / 深色双主题
   主题由 <html data-theme="light|dark"> 控制，令牌集中在这里，组件只用变量
   ========================================================================== */

/* ==========================================================================
   1. 设计令牌
   ========================================================================== */
:root {
  /* 品牌色阶（暖橙） */
  --brand-50:  #fff7ed;
  --brand-100: #ffedd5;
  --brand-200: #fed7aa;
  --brand-300: #fdba74;
  --brand-400: #fb923c;
  --brand-500: #f97316;
  --brand-600: #ea580c;
  --brand-700: #c2410c;

  /* 语义色 */
  --brand:        var(--brand-500);
  --brand-hover:  var(--brand-600);
  --brand-ink:    #ffffff;
  --brand-soft:   var(--brand-50);
  --brand-border: var(--brand-200);

  --info:    #2563eb;
  --success: #16a34a;
  --warn:    #d97706;
  --danger:  #dc2626;
  --info-soft:    #eff6ff;
  --success-soft: #f0fdf4;
  --warn-soft:    #fffbeb;
  --danger-soft:  #fef2f2;

  /* 中性色（暖调） */
  --bg:            #fbf9f7;
  --bg-elev:       #ffffff;
  --surface:       #ffffff;
  --surface-2:     #f7f4f1;
  --surface-3:     #efeae5;
  --border:        #eae4de;
  --border-strong: #dcd3ca;

  --text:      #1c1917;
  --text-sub:  #57534e;
  --text-mute: #a8a29e;
  --text-on-brand: #ffffff;

  /* 等级色 */
  --lv1: #292524;  /* 黑V */
  --lv2: #8b5cf6;  /* 紫V */
  --lv3: #2563eb;  /* 蓝V */
  --lv4: #d4a017;  /* 金V */
  --lv5: #dc2626;  /* 红V */

  /* 圆角 */
  --r-xs: 6px;
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-full: 999px;

  /* 阴影（暖调投影，深色下会被覆盖） */
  --sh-xs: 0 1px 2px rgba(28, 25, 23, .05);
  --sh-sm: 0 1px 3px rgba(28, 25, 23, .06), 0 1px 2px rgba(28, 25, 23, .04);
  --sh:    0 4px 14px rgba(28, 25, 23, .07), 0 1px 3px rgba(28, 25, 23, .04);
  --sh-lg: 0 12px 32px rgba(28, 25, 23, .12), 0 4px 10px rgba(28, 25, 23, .06);
  --sh-brand: 0 6px 18px rgba(249, 115, 22, .28);

  /* 尺寸 */
  --wrap: 1200px;
  --side: 320px;
  --gap: 16px;
  --header-h: 64px;

  /* 动效 */
  --t-fast: 120ms cubic-bezier(.4, 0, .2, 1);
  --t:      180ms cubic-bezier(.4, 0, .2, 1);
  --t-slow: 320ms cubic-bezier(.4, 0, .2, 1);

  /* 字体 */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-num: ui-rounded, "SF Pro Rounded", var(--font);

  color-scheme: light;
}

/* -------------------- 深色主题 -------------------- */
[data-theme="dark"] {
  --brand:        var(--brand-400);
  --brand-hover:  var(--brand-300);
  --brand-soft:   rgba(249, 115, 22, .14);
  --brand-border: rgba(249, 115, 22, .32);

  --info-soft:    rgba(37, 99, 235, .16);
  --success-soft: rgba(22, 163, 74, .16);
  --warn-soft:    rgba(217, 119, 6, .16);
  --danger-soft:  rgba(220, 38, 38, .16);

  --bg:            #14100e;
  --bg-elev:       #1c1817;
  --surface:       #1c1817;
  --surface-2:     #241f1d;
  --surface-3:     #2e2825;
  --border:        #332c28;
  --border-strong: #453c37;

  --text:      #f6f2ef;
  --text-sub:  #b9afa8;
  --text-mute: #7d736c;

  --lv1: #6b6663;
  --lv2: #a78bfa;
  --lv3: #60a5fa;
  --lv4: #e3b341;
  --lv5: #f87171;

  --sh-xs: 0 1px 2px rgba(0, 0, 0, .4);
  --sh-sm: 0 1px 3px rgba(0, 0, 0, .5);
  --sh:    0 4px 16px rgba(0, 0, 0, .55);
  --sh-lg: 0 16px 40px rgba(0, 0, 0, .65);
  --sh-brand: 0 6px 18px rgba(249, 115, 22, .22);

  color-scheme: dark;
}

/* 无 JS 时跟随系统 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --brand: var(--brand-400); --brand-hover: var(--brand-300);
    --brand-soft: rgba(249,115,22,.14); --brand-border: rgba(249,115,22,.32);
    --bg: #14100e; --bg-elev: #1c1817; --surface: #1c1817;
    --surface-2: #241f1d; --surface-3: #2e2825;
    --border: #332c28; --border-strong: #453c37;
    --text: #f6f2ef; --text-sub: #b9afa8; --text-mute: #7d736c;
    --lv1: #6b6663; --lv2: #a78bfa; --lv3: #60a5fa; --lv4: #e3b341; --lv5: #f87171;
    color-scheme: dark;
  }
}

/* ==========================================================================
   2. 基础
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--t), color var(--t);
}

h1, h2, h3, h4, h5 { margin: 0; font-weight: 650; line-height: 1.35; letter-spacing: -.01em; }
p { margin: 0 0 .75em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { max-width: 100%; vertical-align: middle; }
img { height: auto; }

a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--brand); }

button, input, select, textarea { font: inherit; color: inherit; }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--gap) 0; }

::selection { background: var(--brand-200); color: var(--brand-700); }
[data-theme="dark"] ::selection { background: rgba(249, 115, 22, .35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* 滚动条 */
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--r-full); }
*::-webkit-scrollbar-thumb:hover { background: var(--text-mute); }

/* ==========================================================================
   3. 布局
   ========================================================================== */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 660px; }
.wrap.mid { max-width: 960px; }

.page-main { min-height: 52vh; padding: var(--gap) 0 32px; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--side);
  gap: var(--gap);
  align-items: start;
}
.layout > * { min-width: 0; }

.main, .sidebar { display: flex; flex-direction: column; gap: var(--gap); }
.sidebar { position: sticky; top: calc(var(--header-h) + 12px); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.stack { display: flex; flex-direction: column; gap: var(--gap); }

/* 无障碍 */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ==========================================================================
   4. 顶栏 / 头部 / 导航
   ========================================================================== */
.topbar {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-mute);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 34px; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-right a { color: var(--text-sub); }
.topbar-right a:hover { color: var(--brand); }

.header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header .wrap {
  display: flex; align-items: center; gap: 20px;
  height: var(--header-h);
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 38px; height: 38px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: var(--r);
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  color: #fff; font-size: 15px; font-weight: 800; letter-spacing: -.5px;
  box-shadow: var(--sh-brand);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text strong { font-size: 17px; font-weight: 750; letter-spacing: -.02em; }
.logo-text span { font-size: 11.5px; color: var(--text-mute); }

/* 搜索 */
.header-search { flex: 1; max-width: 460px; display: flex; position: relative; }
.header-search input {
  flex: 1; min-width: 0; height: 40px; padding: 0 96px 0 16px;
  border: 1px solid var(--border); border-radius: var(--r-full);
  background: var(--surface-2); color: var(--text);
  outline: none; transition: border-color var(--t), background var(--t), box-shadow var(--t);
}
.header-search input::placeholder { color: var(--text-mute); }
.header-search input:focus {
  border-color: var(--brand); background: var(--surface);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.header-search button {
  position: absolute; right: 4px; top: 4px; height: 32px; padding: 0 18px;
  border: 0; border-radius: var(--r-full); cursor: pointer;
  background: var(--brand); color: var(--brand-ink); font-size: 13px; font-weight: 600;
  transition: background var(--t);
}
.header-search button:hover { background: var(--brand-hover); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-me { display: flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: var(--r-full); transition: background var(--t); }
.header-me:hover { background: var(--surface-2); }
.header-me span { font-size: 13px; font-weight: 550; }

.unread-dot {
  position: absolute; top: -5px; right: -6px; min-width: 17px; height: 17px; padding: 0 5px;
  display: grid; place-items: center; border-radius: var(--r-full);
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
  border: 2px solid var(--bg-elev);
}

/* 主题切换 */
.theme-toggle {
  width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--r-full);
  background: var(--surface); color: var(--text-sub); cursor: pointer;
  transition: color var(--t), border-color var(--t), background var(--t);
}
.theme-toggle:hover { color: var(--brand); border-color: var(--brand-border); background: var(--brand-soft); }
.theme-toggle svg { width: 17px; height: 17px; fill: currentColor; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* 主导航 */
.nav {
  position: sticky; top: var(--header-h); z-index: 55;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; gap: 4px; }
.nav a {
  position: relative; padding: 12px 16px;
  font-size: 15px; font-weight: 550; color: var(--text-sub); white-space: nowrap;
  transition: color var(--t);
}
.nav a::after {
  content: ''; position: absolute; left: 16px; right: 16px; bottom: 0; height: 2.5px;
  border-radius: 2px 2px 0 0; background: var(--brand);
  transform: scaleX(0); transition: transform var(--t);
}
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--brand); font-weight: 650; }
.nav a.on::after { transform: scaleX(1); }

/* ==========================================================================
   5. 按钮
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 18px; border-radius: var(--r-sm);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-size: 14px; font-weight: 550; white-space: nowrap; cursor: pointer;
  transition: all var(--t);
}
.btn:hover {
  color: var(--brand); border-color: var(--brand-border); background: var(--brand-soft);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn:disabled, .btn.disabled { opacity: .5; pointer-events: none; }
.btn svg { width: 16px; height: 16px; fill: currentColor; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  border-color: transparent; color: #fff; box-shadow: var(--sh-brand);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff; border-color: transparent;
}
.btn-ghost { background: transparent; border-color: transparent; }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }

.btn-xs { height: 24px; padding: 0 9px; font-size: 12px; border-radius: var(--r-xs); font-weight: 500; }
.btn-sm { height: 32px; padding: 0 13px; font-size: 13px; border-radius: var(--r-xs); }
.btn-lg { height: 46px; padding: 0 28px; font-size: 15.5px; border-radius: var(--r); }
.btn-block { width: 100%; }
.btn-admin { gap: 5px; }

/* ==========================================================================
   6. 卡片 / 区块
   ========================================================================== */
.card, .box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}
.card-hd, .box-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.card-hd h1, .card-hd h2, .card-hd h3, .card-hd h4,
.box-hd h1, .box-hd h2, .box-hd h3, .box-hd h4 {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 650; white-space: nowrap;
}
.card-hd h1::before, .card-hd h2::before, .card-hd h3::before, .card-hd h4::before,
.box-hd h1::before, .box-hd h2::before, .box-hd h3::before, .box-hd h4::before {
  content: ''; width: 3px; height: 15px; border-radius: 2px;
  background: linear-gradient(var(--brand-400), var(--brand-600));
}
.card-bd, .box-bd { padding: 18px; }
.card-bd.flush, .box-bd.flush { padding: 0; }
.card-ft, .box-ft { padding: 12px 18px; border-top: 1px solid var(--border); background: var(--surface-2); }
.card-hd .more, .box-hd .more {
  font-size: 13px; color: var(--text-mute); font-weight: 400;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right;
}
.card-hd .more:hover, .box-hd .more:hover { color: var(--brand); }

.page-h1 { font-size: 22px; margin-bottom: 4px; letter-spacing: -.02em; }
.page-sub { font-size: 13.5px; color: var(--text-mute); margin-bottom: var(--gap); }

/* 面包屑 */
.crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--text-mute); padding: 4px 0 12px; }
.crumb a { color: var(--text-sub); }
.crumb a:hover { color: var(--brand); }
.crumb .sep { opacity: .5; }

/* ==========================================================================
   7. 首页 Hero
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  padding: 30px 28px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700) 70%);
  color: #fff;
  box-shadow: var(--sh);
}
.hero::before {
  content: ''; position: absolute; right: -70px; top: -90px; width: 300px; height: 300px;
  border-radius: 50%; background: rgba(255, 255, 255, .12);
}
.hero::after {
  content: ''; position: absolute; right: 90px; bottom: -130px; width: 220px; height: 220px;
  border-radius: 50%; background: rgba(255, 255, 255, .08);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { font-size: 25px; margin-bottom: 8px; letter-spacing: -.02em; }
.hero p { font-size: 14.5px; opacity: .92; max-width: 62ch; }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-links a {
  padding: 7px 15px; border-radius: var(--r-full); font-size: 13.5px; font-weight: 550;
  background: rgba(255, 255, 255, .16); color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  transition: background var(--t);
}
.hero-links a:hover { background: rgba(255, 255, 255, .28); color: #fff; }

/* ==========================================================================
   8. Tab 条 / 筛选
   ========================================================================== */
.tabs {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  padding: 8px 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--sh-sm);
}
.tabs a, .tabs button {
  padding: 6px 14px; border-radius: var(--r-full); border: 0; background: transparent;
  font-size: 13.5px; font-weight: 550; color: var(--text-sub); cursor: pointer;
  transition: all var(--t);
}
.tabs a:hover, .tabs button:hover { background: var(--surface-2); color: var(--text); }
.tabs a.on, .tabs button.on {
  background: var(--brand-soft); color: var(--brand); font-weight: 650;
}
.tabs .spacer { margin-left: auto; }
.tabs .kf { margin-left: auto; font-size: 13px; color: var(--text-sub); }
.tabs .kf b { color: var(--brand); }

/* 标签云 / 友情链接 */
.links { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13.5px; color: var(--text-sub); }
.links a:hover { color: var(--brand); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: var(--r-full);
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 13px; color: var(--text-sub); transition: all var(--t);
}
.chip:hover, .chip.on { background: var(--brand-soft); border-color: var(--brand-border); color: var(--brand); }

/* ==========================================================================
   9. 帖子 / 内容列表
   ========================================================================== */
.rank-tip {
  padding: 10px 18px; border-bottom: 1px solid var(--border);
  background: var(--brand-soft); font-size: 12.5px; color: var(--text-sub); line-height: 1.75;
}
.rank-tip b { color: var(--brand-600); }
[data-theme="dark"] .rank-tip b { color: var(--brand-300); }

.post-item {
  display: flex; gap: 14px; padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  transition: background var(--t);
}
.post-item:last-child { border-bottom: 0; }
.post-item:hover { background: var(--surface-2); }

.post-thumb {
  width: 132px; height: 92px; flex-shrink: 0;
  border-radius: var(--r); overflow: hidden;
  background: var(--surface-3);
  display: grid; place-items: center; color: var(--text-mute); font-size: 12px;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.post-item:hover .post-thumb img { transform: scale(1.05); }

.post-main { flex: 1; min-width: 0; }
.post-title {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: 16px; font-weight: 650; line-height: 1.45; margin-bottom: 6px;
}
.post-title a:hover { color: var(--brand); }
.post-desc {
  font-size: 13.5px; color: var(--text-sub); margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-meta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-mute);
}
.post-meta .author { display: inline-flex; align-items: center; gap: 6px; color: var(--text-sub); }
.post-meta .author:hover { color: var(--brand); }
.post-meta .ct-mini { color: var(--brand-600); font-weight: 550; }
[data-theme="dark"] .post-meta .ct-mini { color: var(--brand-300); }

/* ==========================================================================
   10. 标签 / 徽章
   ========================================================================== */
.tag {
  display: inline-flex; align-items: center; height: 21px; padding: 0 8px;
  border-radius: var(--r-xs); font-size: 11.5px; font-weight: 550; line-height: 1;
  background: var(--surface-3); color: var(--text-sub);
}
.tag-top     { background: var(--danger); color: #fff; }
.tag-hot     { background: var(--warn-soft); color: var(--warn); }
.tag-publish { background: var(--success-soft); color: var(--success); }
.tag-seek    { background: var(--info-soft); color: var(--info); }
.tag-red     { background: var(--danger-soft); color: var(--lv5); }
.tag-ad      { background: var(--brand-soft); color: var(--brand-600); }
[data-theme="dark"] .tag-ad { color: var(--brand-300); }

.lv-badge {
  display: inline-flex; align-items: center; gap: 3px; height: 19px; padding: 0 7px;
  border-radius: var(--r-xs); font-size: 11px; font-weight: 700; line-height: 1;
  color: #fff; white-space: nowrap;
}
.lv-badge.lv-1 { background: var(--lv1); }
.lv-badge.lv-2 { background: var(--lv2); }
.lv-badge.lv-3 { background: var(--lv3); }
.lv-badge.lv-4 { background: var(--lv4); }
.lv-badge.lv-5 { background: var(--lv5); }
.lv-badge.star {
  background: linear-gradient(135deg, #f59e0b, #dc2626);
}
.lv-badge.star::before { content: '★'; font-size: 10px; }
[data-theme="dark"] .lv-badge { color: #14100e; }
[data-theme="dark"] .lv-badge.lv-1 { color: #f6f2ef; }

/* ==========================================================================
   11. 头像
   ========================================================================== */
.avatar {
  border-radius: var(--r-full); object-fit: cover; flex-shrink: 0;
  background: var(--surface-3); border: 1px solid var(--border);
}
.avatar-sm { width: 30px; height: 30px; }
.avatar-md { width: 42px; height: 42px; }
.avatar-lg { width: 68px; height: 68px; }
.avatar-xl { width: 78px; height: 78px; }

/* ==========================================================================
   12. 排行榜 / 列表
   ========================================================================== */
.rank-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px dashed var(--border);
  font-size: 13.5px;
}
.rank-list li:last-child { border-bottom: 0; }
.rank-no {
  width: 20px; height: 20px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: var(--r-xs); background: var(--surface-3); color: var(--text-mute);
  font-size: 11px; font-weight: 700; font-family: var(--font-num);
}
.rank-list li:nth-child(1) .rank-no { background: var(--danger); color: #fff; }
.rank-list li:nth-child(2) .rank-no { background: var(--brand-500); color: #fff; }
.rank-list li:nth-child(3) .rank-no { background: var(--lv4); color: #fff; }
.rank-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-val { font-size: 12.5px; color: var(--text-mute); font-family: var(--font-num); }
/* 带头像整行可点 */
.rank-u { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.rank-u:hover .rank-name { color: var(--brand); }
.rank-no.rn-owner { background: var(--danger); color: #fff; }
.rank-no.rn-admin { background: var(--brand); color: #fff; }
.mb-ops { display: flex; gap: 4px; opacity: 0; transition: opacity var(--t-fast); }
.rank-list li:hover .mb-ops { opacity: 1; }
.mb-ops button {
  width: 22px; height: 22px; border-radius: var(--r-xs); cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text-mute); font-size: 11px; line-height: 1;
}
.mb-ops button:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

/* 公告 / 简单列表 */
.notice-list li {
  display: flex; gap: 10px; padding: 9px 0;
  border-bottom: 1px dashed var(--border); font-size: 13.5px;
}
.notice-list li:last-child { border-bottom: 0; }
.notice-list .dt { flex-shrink: 0; color: var(--text-mute); font-size: 12.5px; font-family: var(--font-num); }
.notice-list .tx { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-list a:hover { color: var(--brand); }
/* 规则说明类列表：整段自然换行，圆点用绝对定位避免撑成 flex 项 */
.notice-list.plain li {
  display: block; position: relative; padding-left: 14px;
  color: var(--text-sub); line-height: 1.8; font-size: 13px;
}
.notice-list.plain li::before {
  content: '·'; position: absolute; left: 2px; top: 8px;
  color: var(--brand); font-weight: 700; line-height: 1;
}
.notice-list.plain li b { color: var(--text); }
.notice-list.plain .tx { white-space: normal; overflow: visible; text-overflow: clip; }

/* ==========================================================================
   13. 表单
   ========================================================================== */
.form-row { margin-bottom: 16px; }
.form-row > label {
  display: block; margin-bottom: 6px;
  font-size: 13px; font-weight: 550; color: var(--text-sub);
}
.req::after { content: '必填'; margin-left: 6px; font-size: 11px; color: var(--danger); font-weight: 400; }

.input, .select, .textarea, input[type=text], input[type=password], input[type=search],
input[type=tel], input[type=number], input[type=email], select, textarea {
  width: 100%; height: 40px; padding: 0 14px;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--text);
  outline: none; transition: border-color var(--t), box-shadow var(--t);
}
textarea, .textarea { height: auto; min-height: 96px; padding: 10px 14px; resize: vertical; line-height: 1.7; }
select, .select { cursor: pointer; appearance: none; padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5 6 8.5 10 4.5' stroke='%23a8a29e' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px;
}
.input:focus, .select:focus, .textarea:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
input::placeholder, textarea::placeholder { color: var(--text-mute); }
input[type=checkbox], input[type=radio] { width: auto; height: auto; accent-color: var(--brand); }
label.check {
  display: inline-flex !important; align-items: center; gap: 8px; cursor: pointer;
  font-size: 13.5px; color: var(--text-sub); margin-bottom: 0 !important;
}

.input-group { display: flex; gap: 10px; align-items: center; }
.input-group > * { min-width: 0; }
.input-group .btn { flex-shrink: 0; }

.hint { font-size: 12.5px; color: var(--text-mute); margin-top: 6px; }
.hint b { color: var(--brand); }

.textarea-lg { min-height: 150px; }

.form-ft {
  display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap;
  padding-top: 18px; border-top: 1px solid var(--border);
}
.form-ft > .btn:last-child { margin-left: auto; }

.readonly-box {
  padding: 11px 14px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 14px; color: var(--text);
}

.pay-total {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; margin-bottom: 16px; border-radius: var(--r);
  background: var(--brand-soft); border: 1px solid var(--brand-border);
  font-size: 13.5px; color: var(--text-sub);
}
.pay-total b { font-size: 26px; font-weight: 750; color: var(--brand-600); }
[data-theme="dark"] .pay-total b { color: var(--brand-300); }

/* 卡片式单选 */
.radio-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.radio-cards.rc-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.radio-cards .rc {
  position: relative; display: block; padding: 12px 14px; cursor: pointer;
  border: 1px solid var(--border-strong); border-radius: var(--r);
  background: var(--surface); transition: all var(--t);
}
.radio-cards .rc input { position: absolute; opacity: 0; pointer-events: none; }
.radio-cards .rc b { display: block; font-size: 14px; font-weight: 650; color: var(--text); }
.radio-cards .rc span { display: block; margin-top: 3px; font-size: 12px; color: var(--text-mute); }
.radio-cards .rc:hover { border-color: var(--brand-border); }
.radio-cards .rc.on {
  border-color: var(--brand); background: var(--brand-soft);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.radio-cards .rc.on b { color: var(--brand-600); }
[data-theme="dark"] .radio-cards .rc.on b { color: var(--brand-300); }

/* 勾选式标签 */
.chips-check .chip { cursor: pointer; user-select: none; }
.chips-check .chip input { position: absolute; opacity: 0; pointer-events: none; }
.chips-check .chip.on {
  background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600;
}

/* 上传器 */
.uploader { display: flex; flex-wrap: wrap; gap: 10px; }
.uploader-item, .uploader-add {
  width: 92px; height: 92px; border-radius: var(--r); overflow: hidden; position: relative;
}
.uploader-item img { width: 100%; height: 100%; object-fit: cover; }
.uploader-item .del {
  position: absolute; right: 4px; top: 4px; width: 20px; height: 20px;
  display: grid; place-items: center; border-radius: var(--r-full);
  background: rgba(0, 0, 0, .6); color: #fff; font-style: normal; font-size: 14px; cursor: pointer;
}
.uploader-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 1.5px dashed var(--border-strong); background: var(--surface-2);
  color: var(--text-mute); font-size: 12px; cursor: pointer; transition: all var(--t);
}
.uploader-add:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.uploader-add span:first-child { font-size: 22px; line-height: 1; }

/* 表单页 */
.form-page { max-width: 460px; margin: 32px auto; }

/* ==========================================================================
   14. 提示 / 空状态 / 进度
   ========================================================================== */
.alert {
  display: flex; align-items: flex-start; gap: 9px;
  padding: 11px 14px; border-radius: var(--r); font-size: 13.5px;
  border: 1px solid transparent;
}
.alert-info  { background: var(--info-soft);    color: var(--info);    border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.alert-warn  { background: var(--warn-soft);    color: var(--warn);    border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.alert-error { background: var(--danger-soft);  color: var(--danger);  border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.alert-ok,
.alert-success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 25%, transparent); }
.alert { margin-bottom: 14px; }
.alert:last-child { margin-bottom: 0; }
.alert a { text-decoration: underline; text-underline-offset: 2px; }

.empty { padding: 48px 20px; text-align: center; color: var(--text-mute); }
.empty-icon { font-size: 40px; line-height: 1; margin-bottom: 10px; opacity: .5; }
.empty p { font-size: 13.5px; }
.empty.sm { padding: 24px 16px; }

.progress { height: 7px; border-radius: var(--r-full); background: var(--surface-3); overflow: hidden; }
.progress > i {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-600));
  transition: width var(--t-slow);
}

/* 统计格 */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(108px, 1fr)); gap: 10px; }
.stat-box {
  padding: 16px; border-radius: var(--r); background: var(--surface-2);
  border: 1px solid var(--border);
}
.stat-box .num, .stat-box > b {
  display: block; font-size: 24px; font-weight: 700;
  font-family: var(--font-num); letter-spacing: -.02em; line-height: 1.2;
}
.stat-box .sub, .stat-box .info, .stat-box > span {
  display: block; margin-top: 3px; font-size: 12.5px; color: var(--text-mute);
}

/* ==========================================================================
   15. 表格
   ========================================================================== */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th, .table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.table th {
  background: var(--surface-2); color: var(--text-sub);
  font-weight: 600; font-size: 12.5px; white-space: nowrap;
}
.table tbody tr { transition: background var(--t); }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table.solid th, .table.solid td { border: 1px solid var(--border); }
.table.tight th, .table.tight td { padding: 8px 10px; }

/* ==========================================================================
   16. 分页
   ========================================================================== */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 20px 0; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 34px; height: 34px; padding: 0 11px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--surface); font-size: 13.5px; color: var(--text-sub);
  transition: all var(--t);
}
.pager a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.pager .cur, .pager em {
  background: var(--brand); border-color: var(--brand); color: #fff; font-style: normal; font-weight: 600;
}
.pager .disabled { opacity: .45; pointer-events: none; }

/* ==========================================================================
   17. 详情页
   ========================================================================== */
.detail-title { font-size: 23px; line-height: 1.4; margin-bottom: 12px; letter-spacing: -.02em; }
.detail-title .tag, .detail-title .lv-badge { vertical-align: middle; }
.detail-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--text-mute);
}
.detail-meta .au { display: flex; align-items: center; gap: 9px; color: var(--text); }
.detail-meta .au b { font-size: 14px; }
.detail-meta .dm { font-size: 12.5px; }
.detail-meta .ml-auto { margin-left: auto; }

.detail-body { padding: 18px 0; font-size: 15px; line-height: 1.9; white-space: pre-wrap; word-break: break-word; }
.detail-body img { border-radius: var(--r); margin-bottom: 12px; cursor: zoom-in; }

.detail-imgs { display: flex; flex-direction: column; gap: 12px; padding-bottom: 18px; }
.detail-imgs img {
  max-width: 100%; border-radius: var(--r); cursor: zoom-in;
  border: 1px solid var(--border);
}

.contact {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 14px 16px; border-radius: var(--r);
  background: var(--brand-soft); border: 1px dashed var(--brand-border);
}
.contact .ct-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.contact .ct-ico { font-size: 20px; }
.contact .ct-t { font-size: 12px; color: var(--text-mute); }
.contact .ct-v { font-size: 16px; font-weight: 700; color: var(--brand-600); letter-spacing: .01em; }
[data-theme="dark"] .contact .ct-v { color: var(--brand-300); }
.contact b { color: var(--brand-600); font-size: 15px; }
[data-theme="dark"] .contact b { color: var(--brand-300); }
.risk-tip { margin: 8px 0 0; font-size: 12px; color: var(--text-mute); line-height: 1.7; }

.lead { font-size: 15px; color: var(--text-sub); line-height: 1.8; margin: 14px 0 0; }

.price-bar {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  padding: 16px; border-radius: var(--r);
  background: var(--brand-soft); border: 1px dashed var(--brand-border);
}
.price-bar .pb-item span { display: block; font-size: 12px; color: var(--text-mute); margin-bottom: 3px; }
.price-bar .pb-item b { font-size: 17px; font-weight: 700; color: var(--brand-600); }
[data-theme="dark"] .price-bar .pb-item b { color: var(--brand-300); }

.actbar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--border);
}
.actbar .act-sp { margin-left: auto; }
.actbar .owner { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.actbar .on { color: var(--brand); border-color: var(--brand-border); background: var(--brand-soft); }

/* ==========================================================================
   18. 评论
   ========================================================================== */
.comment-form { margin-bottom: 8px; }
.comment-form .textarea { min-height: 86px; }
.comment-form .cf-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-top: 10px;
}
.comment-form .grow { flex: 1; min-width: 0; }

.comment-list > li, .comment-item {
  display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--border);
}
.comment-list > li:last-child, .comment-item:last-child { border-bottom: 0; }
.comment-main { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; }
.comment-head .tm { font-weight: 400; color: var(--text-mute); font-size: 12px; }
.comment-text { margin: 5px 0; font-size: 14px; line-height: 1.7; word-break: break-word; }
.comment-text .rp { color: var(--text-mute); }
.comment-imgs { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 8px; }
.comment-imgs img {
  width: 84px; height: 84px; object-fit: cover; border-radius: var(--r-sm);
  border: 1px solid var(--border); cursor: zoom-in;
}
.comment-foot { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--text-mute); }
.comment-foot a:hover { color: var(--brand); }
.comment-foot .time { color: var(--text-mute); }
.comment-locked { color: var(--danger); }

/* ==========================================================================
   19. 朋友圈
   ========================================================================== */
.moment-item { display: flex; gap: 12px; padding: 18px; border-bottom: 1px solid var(--border); }
.moment-item:last-child { border-bottom: 0; }
.moment-body { flex: 1; min-width: 0; }
.moment-head { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14.5px; }
.moment-head .name:hover { color: var(--brand); }
.moment-text { margin: 6px 0 10px; font-size: 14.5px; line-height: 1.75; }
.moment-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 340px; }
.moment-imgs.single { grid-template-columns: 1fr; max-width: 260px; }
.moment-imgs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); cursor: zoom-in; }
.moment-imgs.single img { aspect-ratio: 4 / 3; }
.moment-foot { display: flex; align-items: center; gap: 16px; margin-top: 10px; font-size: 12.5px; color: var(--text-mute); }
.moment-foot a, .moment-foot button {
  display: inline-flex; align-items: center; gap: 4px;
  border: 0; background: none; color: var(--text-mute); cursor: pointer; padding: 0;
}
.moment-foot a:hover, .moment-foot button:hover, .moment-foot .on { color: var(--brand); }
.moment-foot .ic { font-size: 13px; }
.moment-head .tm { margin-left: auto; font-weight: 400; font-size: 12px; color: var(--text-mute); }

/* 发圈卡片 */
.publish-card { border-top: 3px solid var(--brand); }
.moment-form .mf-top { display: flex; gap: 12px; }
.moment-form .textarea { flex: 1; min-height: 64px; }
.moment-form .uploader { margin-top: 12px; }
.moment-form .mf-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 12px;
}
.moment-form .mf-foot .hint { margin: 0; }

/* 圈内评论 */
.moment-cmt {
  margin-top: 10px; padding: 6px 12px;
  background: var(--surface-2); border-radius: var(--r-sm);
}
.mc-row {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px;
  padding: 5px 0; font-size: 13px; line-height: 1.7;
}
.mc-row .nm { font-weight: 600; color: var(--text); }
.mc-row .nm:hover { color: var(--brand); }
.mc-row .rp { color: var(--text-mute); }
.mc-row .tx { flex: 1; min-width: 0; color: var(--text-sub); word-break: break-word; }
.mc-row .del { border: 0; background: none; padding: 0; cursor: pointer; font-size: 12px; color: var(--text-mute); }
.mc-row .del:hover { color: var(--danger); }
.mc-row .lock { font-size: 12px; color: var(--warn); white-space: nowrap; }
.mc-form { margin-top: 10px; }

/* 侧栏我的资料 */
.me-box { display: flex; align-items: center; gap: 12px; }
.me-main { flex: 1; min-width: 0; }
.me-name { display: flex; align-items: center; gap: 6px; font-weight: 650; font-size: 15px; }
.me-num { margin-top: 5px; display: flex; gap: 12px; font-size: 12px; color: var(--text-mute); }
.me-num b { color: var(--text); }
.me-quota {
  margin: 12px 0; padding: 9px 11px; border-radius: var(--r-sm);
  background: var(--brand-soft); font-size: 12.5px; color: var(--text-sub);
}
.me-quota b { color: var(--brand); }

/* ==========================================================================
   20. 社区
   ========================================================================== */
.community-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--gap); }
.community-card {
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); transition: all var(--t);
}
.community-card:hover { box-shadow: var(--sh); transform: translateY(-2px); border-color: var(--brand-border); }
.community-cover, .cc-cover {
  height: 108px; position: relative; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-300), var(--brand-600));
  color: #fff; font-size: 24px; font-weight: 700; letter-spacing: .05em;
}
.community-cover img, .cc-cover img { width: 100%; height: 100%; object-fit: cover; }
.community-body, .cc-main { padding: 14px; }
.community-body h4, .cc-main h3 {
  font-size: 15px; margin-bottom: 5px; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cc-main p {
  margin: 0 0 9px; font-size: 12.5px; color: var(--text-mute); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cc-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-mute); }
.community-card:hover .cc-main h3 { color: var(--brand); }

/* ==========================================================================
   21. 聊天
   ========================================================================== */
.chat-main { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.chat-main > * { min-width: 0; }
.chat-side { border-right: 1px solid var(--border); max-height: 540px; overflow-y: auto; }
.chat-side-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-bottom: 1px solid var(--border); cursor: pointer; transition: background var(--t);
}
.chat-side-item:hover { background: var(--surface-2); }
.chat-side-item.on { background: var(--brand-soft); }
.chat-side-item .cs-main { flex: 1; min-width: 0; }
.chat-side-item .name {
  display: block; font-size: 13.5px; font-weight: 550; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chat-side-item .last {
  display: block; margin-top: 2px; font-size: 12px; color: var(--text-mute);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chat-side-item .dot {
  flex-shrink: 0; min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center; border-radius: var(--r-full);
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 700;
}

.chat-pane { display: flex; flex-direction: column; }
.chat-empty { display: grid; place-items: center; }
.chat-head .ml-auto { margin-left: auto; }

.chat-head { display: flex; align-items: center; gap: 9px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.chat-body {
  height: 400px; overflow-y: auto; overscroll-behavior: contain;
  padding: 16px; display: flex; flex-direction: column; gap: 14px;
  background: var(--surface-2);
}
.chat-day { align-self: center; font-size: 12px; color: var(--text-mute); background: var(--surface-3); padding: 2px 10px; border-radius: var(--r-full); }

.chat-msg { display: flex; gap: 9px; max-width: 74%; }
.chat-msg .cm-main { min-width: 0; }
.chat-msg .cm-name {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 4px; font-size: 12px; color: var(--text-mute);
}
.chat-msg .cm-time {
  display: flex; align-items: center; gap: 8px;
  margin-top: 4px; font-size: 11px; color: var(--text-mute);
}
.chat-msg.self .cm-time { justify-content: flex-end; }
.chat-msg .cm-recall {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--text-mute); font-size: 11px; opacity: 0; transition: opacity var(--t-fast);
}
.chat-msg:hover .cm-recall { opacity: 1; }
.chat-msg .cm-recall:hover { color: var(--danger); }
.chat-msg .bubble {
  padding: 9px 13px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--border);
  font-size: 14px; line-height: 1.65; word-break: break-word;
}
.chat-msg.self { margin-left: auto; flex-direction: row-reverse; }
.chat-msg.self .bubble {
  background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
  border-color: transparent; color: #fff;
}
.chat-msg .bubble-media { padding: 5px; }
.chat-msg .bubble-media img { width: 172px; border-radius: var(--r-sm); display: block; cursor: zoom-in; }
.chat-msg .bubble-emoji {
  font-size: 30px; line-height: 1.25; padding: 4px 10px;
  background: transparent; border-color: transparent;
}
.chat-msg.self .bubble-emoji { background: transparent; }

/* 视频消息（入口预留） */
.bubble-video { position: relative; }
.bubble-video .play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%; background: rgba(0, 0, 0, .6);
  display: grid; place-items: center; color: #fff; font-size: 15px; padding-left: 3px;
}
.bubble-video .dur {
  position: absolute; right: 10px; bottom: 10px; padding: 1px 6px; border-radius: var(--r-xs);
  background: rgba(0, 0, 0, .65); color: #fff; font-size: 11px;
}

.chat-foot { padding: 12px 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 9px; }
.chat-foot-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chat-foot-bar .btn { height: 30px; padding: 0 11px; font-size: 13px; }
.chat-foot-bar .hint { margin: 0 0 0 auto; }
.chat-send { display: flex; gap: 9px; }
.chat-send input { flex: 1; min-width: 0; }

.emoji-pane {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 3px;
  padding: 9px; border: 1px solid var(--border); border-radius: var(--r);
  background: var(--surface); font-size: 20px; text-align: center;
  max-height: 152px; overflow-y: auto;
}
.emoji-pane span { cursor: pointer; line-height: 30px; border-radius: var(--r-xs); transition: background var(--t-fast); }
.emoji-pane span:hover { background: var(--brand-soft); }

/* ==========================================================================
   22. 个人主页
   ========================================================================== */
.profile { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.profile-main { flex: 1; min-width: 200px; }
.profile-name { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.profile-name h1 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.profile-sign { margin-top: 6px; font-size: 13.5px; color: var(--text-sub); }
.profile-line { margin-top: 5px; font-size: 12.5px; color: var(--text-mute); }
.profile-line b { color: var(--text-sub); font-family: var(--font-num); }
.profile-line .pl-tip {
  margin-left: 6px; padding: 1px 6px; border-radius: var(--r-full);
  background: var(--warn-soft); color: var(--warn); font-size: 11px; cursor: help;
}
.profile-stat { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 12px; }
.profile-stat > span { font-size: 12.5px; color: var(--text-mute); }
.profile-stat b { display: block; font-size: 18px; color: var(--text); font-family: var(--font-num); font-weight: 700; }
.profile-act { display: flex; gap: 8px; flex-wrap: wrap; }
.quota-tip {
  margin-top: 14px; padding: 9px 12px; border-radius: var(--r-sm);
  background: var(--brand-soft); font-size: 12.5px; color: var(--text-sub);
}
.quota-tip b { color: var(--brand); font-family: var(--font-num); }

/* 键值对列表 */
.kv-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-bottom: 1px dashed var(--border); font-size: 13px;
}
.kv-list li:last-child { border-bottom: 0; }
.kv-list li > span { color: var(--text-mute); }
.kv-list li > b { font-weight: 600; font-family: var(--font-num); }

.invite-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.invite-line .copyable { color: var(--brand); cursor: pointer; }

/* 会员中心快捷入口 */
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.quick-grid a {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 10px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface-2);
  font-size: 13px; color: var(--text-sub); transition: all var(--t);
}
.quick-grid a:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.quick-grid a span { font-size: 14px; }

/* 状态徽标 */
.st { display: inline-block; padding: 2px 8px; border-radius: var(--r-full); font-size: 11.5px; }
.st-ok   { background: var(--success-soft); color: var(--success); }
.st-wait { background: var(--warn-soft); color: var(--warn); }
.st-off  { background: var(--surface-3); color: var(--text-mute); }

.cell-u { display: inline-flex; align-items: center; gap: 8px; }
.cell-u a:hover { color: var(--brand); }

/* 站内通知 */
.msg-item { padding: 15px 18px; border-bottom: 1px solid var(--border); }
.msg-item:last-child { border-bottom: 0; }
.msg-item.unread { background: var(--brand-soft); }
.mi-head { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.mi-head .tm { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--text-mute); }
.mi-body { margin-top: 5px; font-size: 13.5px; line-height: 1.8; color: var(--text-sub); }
.mi-more { display: inline-block; margin-top: 6px; font-size: 12.5px; color: var(--brand); }
.comm-avatar { width: 92px; height: 92px; border-radius: var(--r-lg); flex-shrink: 0; overflow: hidden; }
.qr-img { width: 160px; height: 160px; border-radius: var(--r); background: #fff; padding: 6px; }

/* ==========================================================================
   23. VIP 权益
   ========================================================================== */
.vip-hero {
  margin-top: var(--gap);
  padding: 26px 28px; border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--brand-soft), var(--surface) 62%);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.vip-hero h1 { font-size: 24px; margin-bottom: 8px; }
.vip-hero p { max-width: 620px; font-size: 13.5px; line-height: 1.85; color: var(--text-sub); }
.vip-hero .vh-lv { display: flex; gap: 8px; flex-wrap: wrap; }
.vip-hero .vh-lv .lv-badge { font-size: 13px; padding: 6px 12px; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vip-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px; }
.vip-table th, .vip-table td {
  padding: 11px 10px; text-align: center;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.vip-table th { background: var(--surface-2); font-weight: 600; color: var(--text-sub); }
.vip-table tbody tr:hover { background: var(--surface-2); }
.vip-table tr.mine { background: var(--brand-soft); }
.vip-table tr.mine:hover { background: var(--brand-soft); }
.vip-table td:nth-child(7) { white-space: normal; min-width: 130px; color: var(--text-sub); }
.front { color: var(--brand); }
.c-red { color: var(--lv5); }

.vip-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 12px; }
.vip-card {
  padding: 18px 16px; border-radius: var(--r-lg); border: 1px solid var(--border);
  background: var(--surface); text-align: center; transition: all var(--t);
}
.vip-card:hover { transform: translateY(-3px); box-shadow: var(--sh); }
.vip-card .num { margin: 10px 0 4px; font-size: 26px; font-weight: 700; line-height: 1; }
.vip-card .num i { margin-left: 3px; font-size: 12px; font-style: normal; font-weight: 400; color: var(--text-mute); }
.vip-card .sub { font-size: 12px; color: var(--text-mute); min-height: 32px; }
.vip-card ul { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--border); }
.vip-card li { display: flex; justify-content: space-between; padding: 3px 0; font-size: 12.5px; color: var(--text-mute); }
.vip-card li b { color: var(--text); font-weight: 600; }
.vip-card.lvc-1 { border-top: 3px solid var(--lv1); }
.vip-card.lvc-2 { border-top: 3px solid var(--lv2); }
.vip-card.lvc-3 { border-top: 3px solid var(--lv3); }
.vip-card.lvc-4 { border-top: 3px solid var(--lv4); }
.vip-card.lvc-5 { border-top: 3px solid var(--lv5); }
.vip-bottom { margin-top: var(--gap); }

.rank-no.rn-plain { background: var(--surface-3); color: var(--text-mute); }

/* 搜索结果里的会员条目 */
.user-hits { display: grid; gap: 2px; }
.user-hit { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.user-hit:last-child { border-bottom: 0; }
.user-hit.locked { opacity: .55; }
.user-hit .uh-main { flex: 1; min-width: 0; }
.user-hit h4 { display: flex; align-items: center; gap: 7px; font-size: 15px; }
.user-hit h4 a:hover { color: var(--brand); }
.uh-desc { margin: 6px 0 10px; font-size: 12.5px; color: var(--text-mute); }
.uh-seen {
  margin-left: 6px; padding: 1px 6px; border-radius: var(--r-full);
  background: var(--surface-3); font-size: 11px;
}
.uh-act { display: flex; align-items: center; gap: 8px; }
.uh-act .lnk { font-size: 12.5px; color: var(--brand); }

/* ==========================================================================
   23b. 登录 / 注册
   ========================================================================== */
.auth {
  display: grid; grid-template-columns: 1fr 460px; gap: var(--gap);
  align-items: start; margin-top: var(--gap);
}
.auth-side {
  padding: 34px 32px; border-radius: var(--r-lg);
  background: linear-gradient(150deg, var(--brand-soft), var(--surface) 70%);
  border: 1px solid var(--border);
}
.auth-side .as-logo {
  width: 48px; height: 48px; margin-bottom: 18px;
  display: grid; place-items: center; border-radius: var(--r);
  background: var(--brand); color: #fff; font-weight: 800; font-size: 15px;
  font-family: var(--font-num);
}
.auth-side h2 { font-size: 22px; line-height: 1.5; margin-bottom: 10px; }
.auth-side > p { font-size: 13.5px; line-height: 1.9; color: var(--text-sub); }
.as-list { margin-top: 18px; }
.as-list li {
  position: relative; padding: 6px 0 6px 18px;
  font-size: 13px; color: var(--text-sub); line-height: 1.8;
}
.as-list li::before {
  content: '✓'; position: absolute; left: 0; top: 7px;
  color: var(--brand); font-weight: 700; font-size: 12px;
}
.as-lvlist { margin-top: 18px; }
.as-lvlist li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px dashed var(--border);
  font-size: 12.5px; color: var(--text-sub);
}
.as-lvlist li:last-child { border-bottom: 0; }
.as-lv { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.as-more { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--brand); }
.auth-form { margin: 0; }
.auth-form h1 { font-size: 18px; }
.auth-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth-tip {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border);
  font-size: 12.5px; line-height: 1.8; color: var(--text-mute); text-align: center;
}
.auth-tip a { color: var(--brand); }
.input-lg { height: 44px; font-size: 14.5px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.cap-row { display: flex; gap: 10px; }
.cap-row .input { flex: 1; min-width: 0; }
.cap-row .cap-img {
  height: 44px; width: 110px; border-radius: var(--r-sm);
  border: 1px solid var(--border); cursor: pointer; object-fit: cover;
}

/* ==========================================================================
   24. 广告位
   ========================================================================== */
.ad-hero {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface-3); box-shadow: var(--sh-sm);
}
.ad-hero img { width: 100%; display: block; aspect-ratio: 1000 / 190; object-fit: cover; }
.ad-side img { width: 100%; border-radius: var(--r); display: block; box-shadow: var(--sh-sm); }

/* 顶部广告轮播 */
.ad-slider {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface-3); box-shadow: var(--sh-sm);
  aspect-ratio: 1000 / 190;
}
.ad-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity var(--t-slow);
}
.ad-slide.on { opacity: 1; visibility: visible; }
.ad-slide img { width: 100%; height: 100%; object-fit: cover; }
.ad-slide-tt {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 20px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55));
  color: #fff; font-size: 14px; font-weight: 600;
}
.ad-dots { position: absolute; right: 14px; bottom: 12px; display: flex; gap: 6px; }
.ad-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .45); transition: all var(--t);
}
.ad-dots button.on { background: #fff; width: 20px; border-radius: var(--r-full); }

.ad-flow {
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--sh-sm);
}
.ad-flow-hd {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  border-bottom: 1px solid var(--border); font-size: 13.5px; font-weight: 600;
}
.ad-flow-inner { overflow: hidden; padding: 12px 0; }
.ad-flow-track { display: flex; gap: 12px; width: max-content; animation: ad-marquee 36s linear infinite; }
.ad-flow:hover .ad-flow-track { animation-play-state: paused; }
.ad-flow-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 14px;
  border: 1px solid var(--border); border-radius: var(--r-full);
  background: var(--surface-2); font-size: 13px; white-space: nowrap;
}
.ad-flow-item:hover { border-color: var(--brand-border); color: var(--brand); }
.ad-flow-item img { width: 40px; height: 28px; object-fit: cover; border-radius: var(--r-xs); flex-shrink: 0; }
@keyframes ad-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   25. 弹层 / Toast
   ========================================================================== */
.modal-mask {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(20, 16, 14, .6); backdrop-filter: blur(3px);
  animation: fade-in var(--t) both;
}
.modal {
  width: 100%; max-width: 460px; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface); box-shadow: var(--sh-lg);
  animation: pop-in var(--t) both;
}
.modal-sm { max-width: 330px; }
.modal-hd { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--border); font-weight: 650; }
.modal-hd .close { cursor: pointer; color: var(--text-mute); font-size: 20px; line-height: 1; }
.modal-hd .close:hover { color: var(--danger); }
.modal-bd { padding: 18px; }
.modal-ft { padding: 14px 18px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 9px; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.toast {
  position: fixed; left: 50%; bottom: 84px; z-index: 300;
  transform: translate(-50%, 14px); opacity: 0; pointer-events: none;
  max-width: 78vw; padding: 11px 20px; border-radius: var(--r-full);
  background: rgba(28, 25, 23, .93); color: #fff; font-size: 13.5px;
  box-shadow: var(--sh-lg);
  transition: opacity var(--t), transform var(--t);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   26. 页脚 / 移动端底栏
   ========================================================================== */
.footer {
  margin-top: 36px; padding: 32px 0 20px;
  background: var(--surface); border-top: 1px solid var(--border);
}
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-col h4 { font-size: 14px; margin-bottom: 12px; }
.footer-col li { margin-bottom: 8px; font-size: 13px; color: var(--text-mute); }
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-mute); text-align: center;
}

.tabbar { display: none; }
@media (max-width: 900px) {
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    display: grid; grid-template-columns: repeat(5, 1fr);
    background: color-mix(in srgb, var(--bg-elev) 94%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 7px 0 6px; font-size: 10.5px; color: var(--text-mute); position: relative;
  }
  .tabbar a svg { width: 21px; height: 21px; fill: currentColor; }
  .tabbar a.on { color: var(--brand); }
  .tabbar-plus svg { width: 27px; height: 27px; }
  .tabbar-dot {
    position: absolute; top: 4px; right: 50%; margin-right: -16px;
    min-width: 15px; height: 15px; padding: 0 4px; border-radius: var(--r-full);
    background: var(--danger); color: #fff; font-size: 10px; display: grid; place-items: center;
  }
  body { padding-bottom: 58px; }
}

/* ==========================================================================
   27. 后台
   ========================================================================== */
.admin-body { background: var(--bg); }
.admin-top {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.admin-top .wrap { display: flex; align-items: center; gap: 14px; height: 58px; }
.at-brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 15px; color: var(--text); white-space: nowrap; }
.at-brand:hover { color: var(--brand); }
.at-act { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.at-me { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-sub); white-space: nowrap; }

.admin-body .wrap { max-width: 1480px; }
.admin-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: var(--gap); align-items: start; margin-top: var(--gap); padding-bottom: var(--gap); }
.admin-layout > * { min-width: 0; }
.admin-side {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 10px; position: sticky; top: 78px; box-shadow: var(--sh-sm);
}
.admin-side h4 { padding: 12px 12px 5px; font-size: 11.5px; color: var(--text-mute); letter-spacing: .06em; }
.admin-side h4:first-child { padding-top: 4px; }
.admin-side a {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--r-sm);
  font-size: 13.5px; color: var(--text-sub); transition: all var(--t);
}
.admin-side a:hover { background: var(--surface-2); color: var(--text); }
.admin-side a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.admin-main { display: flex; flex-direction: column; gap: var(--gap); }
.admin-hd h1 { font-size: 20px; }
.admin-hd p { margin-top: 6px; font-size: 13px; color: var(--text-sub); line-height: 1.75; }
.admin-hd p b { color: var(--brand); }
.hd-search { display: flex; gap: 8px; }
.hd-search .input { height: 32px; width: 180px; font-size: 13px; }
.card-hd .tabs a { padding: 5px 10px; font-size: 12.5px; }

.todo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.todo-grid a {
  padding: 14px 16px; border-radius: var(--r); text-align: center;
  border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text-mute); transition: all var(--t);
}
.todo-grid a b { display: block; font-size: 24px; font-weight: 700; font-family: var(--font-num); color: var(--text-mute); }
.todo-grid a span { display: block; margin-top: 3px; font-size: 12.5px; }
.todo-grid a.has { border-color: var(--brand); background: var(--brand-soft); }
.todo-grid a.has b { color: var(--brand); }
.todo-grid a:hover { transform: translateY(-2px); box-shadow: var(--sh-sm); }

/* ==========================================================================
   28. 工具类
   ========================================================================== */
.text-mute { color: var(--text-mute); }
.text-sub  { color: var(--text-sub); }
.text-brand{ color: var(--brand); }
.text-danger { color: var(--danger); }
.text-c { text-align: center; }
.text-r { text-align: right; }
.fw4 { font-weight: 400; }
.fw6 { font-weight: 600; }
.fs12 { font-size: 12px; } .fs13 { font-size: 13px; } .fs16 { font-size: 16px; }
.mt0 { margin-top: 0; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mb0 { margin-bottom: 0; } .mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.flex { display: flex; } .flex-c { display: flex; align-items: center; }
.between { justify-content: space-between; }
.wrap-r { flex-wrap: wrap; }
.gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap12 { gap: 12px; }
.grow { flex: 1; min-width: 0; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--border); margin: 14px 0; }
.price { color: var(--brand-600); font-family: var(--font-num); }
[data-theme="dark"] .price { color: var(--brand-300); }
.thumb-sm {
  width: 38px; height: 38px; object-fit: cover; border-radius: var(--r-xs);
  display: inline-block; vertical-align: middle; margin-right: 3px; border: 1px solid var(--border);
}
.select-xs { width: 84px; display: inline-block; height: 24px; padding: 0 4px; font-size: 12px; }
.thumb-ad { width: 58px; height: 34px; object-fit: cover; border-radius: var(--r-xs); border: 1px solid var(--border); }
.form-grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 12px; }
.form-grid-auto .form-row { margin: 0; }
code {
  padding: 1px 5px; border-radius: var(--r-xs); font-size: 12px;
  font-family: var(--font-num); background: var(--surface-3); color: var(--text-sub);
}

/* ==========================================================================
   29. 响应式
   ========================================================================== */
@media (max-width: 1080px) {
  :root { --side: 290px; }
}

@media (max-width: 900px) {
  :root { --gap: 12px; --header-h: 58px; }

  .layout, .grid-2, .grid-3, .admin-layout, .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { order: 2; padding: 24px 20px; }
  .auth-side h2 { font-size: 19px; }
  .radio-cards, .radio-cards.rc-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar { position: static; }

  .topbar { display: none; }

  .header .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .header-search input { height: 38px; }
  .header-actions { margin-left: auto; }
  .logo-mark { width: 34px; height: 34px; font-size: 14px; }
  .logo-text strong { font-size: 15.5px; }
  .logo-text span { display: none; }

  /* 导航：4 列 2 行，不做左右滚动 */
  .nav { position: static; }
  .nav .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 4px 8px; }
  .nav a { padding: 9px 2px; font-size: 13px; text-align: center; border-radius: var(--r-sm); }
  .nav a::after { left: 30%; right: 30%; bottom: 2px; }
  .nav a.on { background: var(--brand-soft); }

  .footer-top { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer { margin-top: 24px; }

  .post-thumb { width: 104px; height: 76px; }
  .post-title { font-size: 15px; }
  .detail-title { font-size: 19px; }
  .hero { padding: 22px 20px; }
  .hero h1 { font-size: 21px; }

  .chat-main { grid-template-columns: minmax(0, 1fr); }
  .chat-side { border-right: 0; border-bottom: 1px solid var(--border); display: flex; max-height: none; overflow-x: auto; }
  .chat-side-item { border-bottom: 0; border-right: 1px solid var(--border); white-space: nowrap; }
  .chat-body { height: 320px; }

  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .form-page { margin: 16px auto; }
  .admin-side { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .admin-side h4 { display: none; }
  .admin-top .wrap { gap: 8px; }
  .card-hd { flex-wrap: wrap; }
  .hd-search { flex: 1 1 100%; flex-wrap: wrap; }
  .hd-search .input { flex: 1 1 100%; width: auto; min-width: 0; }
  .hd-search .select { flex: 1; width: auto; min-width: 0; }
  .hd-search .btn { flex: 0 0 auto; }
}

@media (max-width: 480px) {
  .nav a { font-size: 12px; letter-spacing: -.2px; }
  .tabs .kf { margin-left: 0; flex-basis: 100%; }
  .post-item { padding: 13px 14px; gap: 11px; }
  .post-thumb { width: 88px; height: 66px; }
  .card-bd, .box-bd { padding: 14px; }
  .card-hd, .box-hd { padding: 12px 14px; }
  .moment-imgs { max-width: 100%; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .hide-sm { display: none !important; }
  .footer-top { grid-template-columns: 1fr; }
  .at-me { display: none; }
  .admin-hd h1 { font-size: 18px; }
  .todo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 901px) {
  .show-sm { display: none !important; }
}

/* ==========================================================================
   30. 偏好 / 打印
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

@media (hover: none) {
  .btn:hover, .community-card:hover, .vip-card:hover { transform: none; }
}

@media print {
  .topbar, .header, .nav, .footer, .tabbar, .actbar, .ad-flow, .ad-hero, .sidebar { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .box { border: 1px solid #ddd; box-shadow: none; }
}
