/* ============================================================
   校园社区 — 毛玻璃淡蓝 UI（苹果式磨砂质感）
   主题色：淡蓝 + 白半透明 + 大圆角
   状态色：待认证/待审核 = 红色毛玻璃徽章
   ============================================================ */

:root {
  --blue: #5aa9ff;
  --blue-2: #8ec5ff;
  --blue-soft: rgba(140, 197, 255, 0.18);
  --ink: #16324f;
  --ink-2: #4a6b8a;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-border: rgba(255, 255, 255, 0.6);
  --line: rgba(120, 170, 220, 0.25);
  --red: #ff5a6e;
  --red-soft: rgba(255, 90, 110, 0.16);
  --green: #34c77b;
  --gold: #f5a623;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 8px 32px rgba(60, 110, 170, 0.16);
  --blur: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

/* 开源手写体：霞鹜文楷 Lite（LXGW WenKai Lite，OFL 开源许可，美观清晰、手写风格） */
@font-face {
  font-family: 'LXGWWenKaiLite';
  src: url('../fonts/LXGWWenKaiLite-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'LXGWWenKaiLite';
  src: url('../fonts/LXGWWenKaiLite-Regular.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

html, body { height: 100%; }

body {
  font-family: 'LXGWWenKaiLite', -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, #eaf6ff 0%, #d8edff 40%, #cfe8ff 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- 背景光斑 ---------- */
.bg-scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; }
.blob-1 { width: 520px; height: 520px; background: radial-gradient(circle, #bcdcff, transparent 70%); top: -120px; left: -80px; }
.blob-2 { width: 460px; height: 460px; background: radial-gradient(circle, #a8d8ff, transparent 70%); bottom: -100px; right: -60px; }
.blob-3 { width: 380px; height: 380px; background: radial-gradient(circle, #e8f4ff, transparent 70%); top: 40%; left: 55%; }

/* ---------- 毛玻璃导航 ---------- */
.glass-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.6);
  backdrop-filter: blur(var(--blur)) saturate(1.6);
  border-bottom: 1px solid var(--glass-border);
}
.nav-left { display: flex; align-items: center; gap: 10px; }
.logo-dot { width: 22px; height: 22px; border-radius: 8px; background: linear-gradient(135deg, var(--blue), var(--blue-2)); display: inline-block; }
.nav-left b { font-size: 17px; letter-spacing: .5px; }
.nav-center { display: flex; gap: 4px; }
.nav-tab {
  border: none; background: transparent; color: var(--ink-2);
  padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .2s; display: flex; align-items: center; gap: 6px;
}
.nav-tab .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nav-tab.active {
  background: var(--blue-soft); color: var(--blue);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.nav-right { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  border: none; background: transparent; color: var(--ink-2); cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  position: relative; transition: background .2s;
}
.icon-btn:hover { background: rgba(255,255,255,.5); }
.icon-btn .ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mini-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--blue-2));
  display: inline-block; background-size: cover; background-position: center; border: 2px solid #fff;
}
.red-dot {
  position: absolute; top: 8px; right: 8px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 3px rgba(255,255,255,.8);
}

/* ---------- 主体 ---------- */
.app-main { position: relative; z-index: 1; max-width: 980px; margin: 0 auto; padding: 20px 16px 90px; }

/* ---------- 卡片（毛玻璃） ---------- */
.glass-card {
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.5);
  backdrop-filter: blur(var(--blur)) saturate(1.5);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- 通用工具 ---------- */
.hidden { display: none !important; }
.btn {
  border: none; cursor: pointer; font-weight: 600; font-size: 14px;
  padding: 11px 20px; border-radius: 999px; transition: all .2s; display: inline-flex; align-items: center; gap: 8px;
}
.btn .ic { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; box-shadow: 0 6px 18px rgba(90,169,255,.35); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.55); color: var(--ink-2); border: 1px solid var(--line); }
.btn-danger { background: linear-gradient(135deg, #ff6b81, #ff5a6e); color: #fff; }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.input, .textarea, .select {
  width: 100%; padding: 12px 15px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: rgba(255,255,255,.6); color: var(--ink);
  font-size: 14px; outline: none; transition: border .2s, box-shadow .2s;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.textarea { resize: vertical; min-height: 90px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.hint { font-size: 12px; color: var(--ink-2); margin-top: 5px; }

/* ---------- 徽章 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px; letter-spacing: .3px;
}
.badge-red {
  color: var(--red); background: var(--red-soft);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,90,110,.3);
}
.badge-green { color: var(--green); background: rgba(52,199,123,.14); border: 1px solid rgba(52,199,123,.3); }
.badge-gold { color: var(--gold); background: rgba(245,166,35,.14); border: 1px solid rgba(245,166,35,.35); }
.badge-gray { color: var(--ink-2); background: rgba(120,150,180,.14); border: 1px solid rgba(120,150,180,.25); }

/* 红色毛玻璃提示条 */
.alert-red {
  background: var(--red-soft); color: var(--red);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,90,110,.32);
  border-radius: var(--radius-sm); padding: 12px 15px; font-size: 13px; font-weight: 600;
}

/* ---------- 论坛 ---------- */
.view-title { font-size: 22px; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.circle-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; }
.circle-strip::-webkit-scrollbar { display: none; }
.chip {
  border: 1px solid var(--line); background: rgba(255,255,255,.55); color: var(--ink-2);
  padding: 8px 15px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: all .2s; display: flex; align-items: center; gap: 6px;
}
.chip .ic { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.chip.active { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; border-color: transparent; }
.post-list { display: flex; flex-direction: column; gap: 14px; }
.post-card { padding: 18px 20px; cursor: pointer; transition: transform .15s, box-shadow .2s; }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(60,110,170,.2); }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.post-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg,var(--blue),var(--blue-2)); background-size: cover; flex-shrink: 0; border: 2px solid #fff; }
.post-author { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.post-meta { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.post-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; line-height: 1.4; }
.post-content { font-size: 14px; color: var(--ink-2); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-foot { display: flex; gap: 16px; margin-top: 12px; color: var(--ink-2); font-size: 13px; }
.post-foot button { display: flex; align-items: center; gap: 5px; color: inherit; background: none; border: none; cursor: pointer; font-size: 13px; }
.post-foot button.liked { color: var(--red); }
.pin-tag { color: var(--gold); font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 3px; }

/* 发帖浮钮 */
.fab {
  position: fixed; right: 22px; bottom: 26px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff;
  box-shadow: 0 10px 28px rgba(90,169,255,.45); display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.fab:hover { transform: scale(1.06); }
.fab .ic { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; }

/* ---------- 帖子详情 ---------- */
.post-detail { padding: 22px 24px; }
.back-row { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.back-row button { background: none; border: none; color: var(--blue); font-weight: 700; cursor: pointer; font-size: 14px; display: flex; align-items: center; gap: 4px; }
.detail-title { font-size: 22px; font-weight: 800; line-height: 1.4; margin-bottom: 10px; }
.detail-content { font-size: 15px; color: var(--ink); line-height: 1.85; white-space: pre-wrap; }
.detail-meta { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--ink-2); font-size: 13px; }
.comment-box { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); }
.comment-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(120,170,220,.12); }
.comment-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,var(--blue-2),var(--blue)); background-size: cover; flex-shrink: 0; }
.comment-body { flex: 1; }
.comment-author { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.comment-text { font-size: 14px; margin-top: 4px; line-height: 1.6; }
.comment-time { font-size: 11px; color: var(--ink-2); margin-top: 4px; }

/* ---------- 聊天 ---------- */
.chat-layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; height: calc(100vh - 180px); }
@media (max-width: 760px) { .chat-layout { grid-template-columns: 1fr; height: calc(100vh - 200px); } .chat-list-pane { display:none; } }
.conv-list { padding: 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.conv-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-sm); cursor: pointer; transition: background .2s; }
.conv-item:hover { background: rgba(255,255,255,.5); }
.conv-item.active { background: var(--blue-soft); }
.conv-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,var(--blue),var(--blue-2)); background-size: cover; flex-shrink: 0; position: relative; }
.conv-name { font-weight: 700; font-size: 14px; }
.conv-preview { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.conv-unread { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.chat-window { display: flex; flex-direction: column; overflow: hidden; }
.chat-head { padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 700; display: flex; align-items: center; justify-content: space-between; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; gap: 8px; max-width: 78%; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.msg-bubble { padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.55; word-break: break-word; }
.msg .other .msg-bubble { background: rgba(255,255,255,.75); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--glass-border); border-top-left-radius: 4px; }
.msg.mine .msg-bubble { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; border-top-right-radius: 4px; }
.msg-time { font-size: 11px; color: var(--ink-2); align-self: flex-end; padding: 0 4px; }
.post-link-card { background: rgba(255,255,255,.7); border: 1px solid var(--blue-soft); border-radius: 12px; padding: 8px 12px; font-size: 13px; color: var(--blue); cursor: pointer; margin-top: 6px; display: block; }
.chat-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-input-row .input { flex: 1; border-radius: 999px; }

/* ---------- 通知抽屉 ---------- */
.drawer {
  position: fixed; top: 0; right: 0; width: 340px; max-width: 90vw; height: 100%; z-index: 120;
  transform: translateX(105%); transition: transform .3s ease;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px; border-bottom: 1px solid var(--line); }
.drawer-body { padding: 14px; overflow-y: auto; height: calc(100% - 64px); }
.drawer-mask { position: fixed; inset: 0; background: rgba(20,50,80,.28); z-index: 110; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.notif-item { padding: 12px; border-radius: var(--radius-sm); margin-bottom: 8px; background: rgba(255,255,255,.55); font-size: 13px; cursor: pointer; }

/* ---------- 登录/注册 ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 6vh 16px; }
.auth-card { width: 100%; max-width: 420px; padding: 34px 30px; }
.auth-logo { text-align: center; margin-bottom: 22px; }
.auth-logo .logo-dot { width: 52px; height: 52px; border-radius: 18px; margin-bottom: 10px; }
.auth-logo h1 { font-size: 24px; font-weight: 800; }
.auth-logo p { color: var(--ink-2); font-size: 13px; margin-top: 4px; }
.auth-tabs { display: flex; background: rgba(255,255,255,.5); border-radius: 999px; padding: 4px; margin-bottom: 22px; }
.auth-tabs button { flex: 1; border: none; background: transparent; padding: 9px; border-radius: 999px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.auth-tabs button.active { background: #fff; color: var(--blue); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.agree-box { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--ink-2); margin: 4px 0 14px; }
.agree-box a { color: var(--blue); cursor: pointer; }
.checkbox { width: 18px; height: 18px; accent-color: var(--blue); margin-top: 1px; }

/* ---------- 个人中心 ---------- */
.profile-hero { padding: 24px; display: flex; gap: 18px; align-items: center; }
.big-avatar { width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(135deg,var(--blue),var(--blue-2)); background-size: cover; flex-shrink: 0; border: 3px solid #fff; position: relative; }
.profile-name { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.profile-sub { color: var(--ink-2); font-size: 13px; margin-top: 4px; }
.profile-row { display: flex; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.stat { background: rgba(255,255,255,.55); border-radius: var(--radius-sm); padding: 10px 16px; text-align: center; }
.stat b { font-size: 18px; display: block; }
.stat span { font-size: 12px; color: var(--ink-2); }
.section { padding: 20px 24px; margin-top: 16px; }
.section h3 { font-size: 16px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid rgba(120,170,220,.12); }
.setting-row:last-child { border-bottom: none; }
.setting-label { font-size: 14px; font-weight: 600; }
.setting-desc { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.switch { position: relative; width: 48px; height: 28px; border-radius: 14px; background: rgba(150,180,210,.4); cursor: pointer; transition: background .2s; border: none; }
.switch.on { background: linear-gradient(135deg, var(--blue), var(--blue-2)); }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.switch.on::after { transform: translateX(20px); }

/* 我的帖子 */
.my-post { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; border-radius: var(--radius-sm); background: rgba(255,255,255,.5); margin-bottom: 8px; cursor: pointer; }
.my-post b { font-size: 14px; }
.my-post span { font-size: 12px; color: var(--ink-2); }

/* ---------- 管理后台 ---------- */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 12px; margin-bottom: 18px; }
.admin-stat { padding: 16px; text-align: center; }
.admin-stat b { font-size: 22px; display: block; }
.admin-stat span { font-size: 12px; color: var(--ink-2); }
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-panel { padding: 18px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid rgba(120,170,220,.12); }
.table th { color: var(--ink-2); font-weight: 700; }
.row-actions { display: flex; gap: 6px; }
.row-actions button { font-size: 12px; padding: 5px 10px; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--glass-strong); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border); border-radius: 999px; padding: 11px 20px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow); animation: toastIn .25s ease;
}
.toast.err { color: var(--red); background: rgba(255,255,255,.85); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(20,50,80,.3); z-index: 150; display: flex; align-items: center; justify-content: center; padding: 16px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal { width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto; padding: 24px; }
.modal h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.modal-close { float: right; background: none; border: none; font-size: 18px; cursor: pointer; color: var(--ink-2); }

/* 头像框叠层 */
.frame-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- 空态 / 加载 ---------- */
.empty { text-align: center; color: var(--ink-2); padding: 40px 20px; font-size: 14px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--blue-soft); border-top-color: var(--blue); border-radius: 50%; margin: 30px auto; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(140,180,220,.4); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* 深色模式（预留） */
@media (prefers-color-scheme: dark) {
  body { background: linear-gradient(160deg, #0e1c2e, #12314f 60%, #0f2a44); }
  :root {
    --ink: #e8f1fa; --ink-2: #9db8d0;
    --glass: rgba(20,40,60,.6); --glass-strong: rgba(24,48,72,.8);
    --glass-border: rgba(120,180,230,.18); --line: rgba(120,170,220,.18);
    --blue-soft: rgba(90,169,255,.16);
  }
  .input, .textarea, .select { background: rgba(30,55,80,.5); color: var(--ink); }
  .chip, .conv-item:hover { background: rgba(60,100,140,.3); }
  .stat, .my-post, .notif-item, .msg .other .msg-bubble, .post-link-card, .auth-tabs { background: rgba(40,70,100,.4); }
  .auth-tabs button.active { background: rgba(90,169,255,.25); color: #fff; }
}

/* ============================================================
   扩展模块样式：空间 / 朋友 / 成长 / 装饰 / 设置
   ============================================================ */

/* 我的页快捷入口 */
.quick-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.quick-card {
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-radius: 16px; padding: 14px 6px; display: flex; flex-direction: column;
  align-items: center; gap: 8px; color: var(--ink); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.quick-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(90,150,230,.18); }
.quick-card svg { color: var(--blue, #5aa9ff); }

/* 空间页 */
.space-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.moment {
  margin-bottom: 12px; padding: 14px 16px;
}
.moment-head { display: flex; align-items: center; gap: 10px; }
.moment-time { font-size: 12px; color: var(--ink-2); }
.moment-body { margin: 10px 0; font-size: 14px; line-height: 1.7; white-space: pre-wrap; }
.moment-foot { display: flex; gap: 16px; align-items: center; }
.danger-link { color: var(--red); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.gb-item { margin-bottom: 10px; padding: 12px 14px; }
.gb-head { display: flex; align-items: center; gap: 8px; }
.gb-time { font-size: 11px; color: var(--ink-2); margin-left: auto; }
.gb-text { margin-top: 6px; font-size: 14px; }

/* 朋友页 */
.friend-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.friend-row:last-child { border-bottom: none; }
.fr-req-badge {
  background: var(--red); color: #fff; font-size: 11px; border-radius: 10px;
  min-width: 18px; height: 18px; line-height: 18px; text-align: center; padding: 0 5px; margin-left: 4px;
}

/* 成长页 */
.btn-lg { padding: 12px 26px; font-size: 15px; }
.level-badge {
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ffd56b, #f5a623); color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: 0 6px 16px rgba(245,166,35,.4); flex-shrink: 0;
}
.exp-bar { height: 10px; border-radius: 6px; background: rgba(120,170,220,.25); overflow: hidden; margin-top: 6px; }
.exp-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #5aa9ff, #8ec5ff); transition: width .5s ease; }
.badge-cell {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 14px;
  padding: 12px 14px; margin: 4px; font-size: 12px; font-weight: 600; width: 92px;
}
.badge-cell.got { color: var(--gold); border-color: rgba(245,166,35,.5); }
.badge-cell.locked { opacity: .45; filter: grayscale(.6); }

/* 装饰中心 */
.decor-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px; width: 96px;
  background: var(--glass); border: 2px solid var(--glass-border); border-radius: 14px;
  padding: 12px 8px; cursor: pointer; font-size: 12px; transition: transform .15s ease, border-color .15s ease;
}
.decor-item:hover { transform: translateY(-3px); }
.decor-item.active { border-color: var(--blue, #5aa9ff); box-shadow: 0 0 0 3px rgba(90,169,255,.18); }
.decor-item.locked { opacity: .5; }
.decor-swatch {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 20px; background: rgba(120,170,220,.2);
}

/* 设置页 */
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: none; }
.setting-label { font-weight: 600; }
.setting-desc { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.switch {
  width: 46px; height: 27px; border-radius: 20px; background: rgba(140,170,210,.35);
  border: none; position: relative; cursor: pointer; transition: background .2s ease; flex-shrink: 0;
}
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: left .2s ease;
}
.switch.on { background: var(--blue, #34c77b); }
.switch.on::after { left: 22px; }

/* 通知抽屉 */
.notif-item { display: flex; gap: 10px; align-items: flex-start; padding: 12px 10px; border-radius: 12px; cursor: pointer; border-bottom: 1px solid var(--line); }
.notif-item.unread { background: var(--blue-soft, rgba(90,169,255,.12)); }
.notif-item:hover { background: var(--glass-strong); }
.notif-avatar { flex-shrink: 0; }

/* 通用小元素 */
.mini-avatar {
  width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #8ec5ff, #5aa9ff);
  display: inline-block; background-size: cover; background-position: center; flex-shrink: 0;
}
.empty { text-align: center; color: var(--ink-2); padding: 30px 10px; font-size: 13px; }
.hidden { display: none !important; }

/* ============================================================
   高级功能样式：搜索/热帖 / 帖子操作 / 群管理 / 消息撤回
   ============================================================ */
.home-search input { border-radius: 22px; }
.hot-rank {
  width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center;
  justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0;
  background: rgba(140,170,210,.25); color: var(--ink-2);
}
.rank-0 { background: linear-gradient(135deg,#ffd56b,#f5a623); color:#fff; }
.rank-1 { background: linear-gradient(135deg,#c9d6e8,#9db2c8); color:#fff; }
.rank-2 { background: linear-gradient(135deg,#f0c6a0,#d9936b); color:#fff; }
.post-foot { flex-wrap: wrap; row-gap: 6px; }
.post-foot button, .post-foot .like-btn { color: var(--ink-2); }
.badge-gray { background: rgba(140,160,190,.3); color: var(--ink-2); font-size: 11px; padding: 2px 8px; border-radius: 10px; margin-left: 4px; }
.msg-recall {
  background: none; border: none; color: var(--ink-2); font-size: 11px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; opacity: .8;
}
.msg-recall:hover { color: var(--red); opacity: 1; }
.recalled { color: var(--ink-2); font-style: italic; opacity: .7; }
.moment-comments { border-radius: 10px; background: rgba(140,170,210,.08); padding: 8px 10px; margin-top: 8px; }
.friend-row .badge { margin-left: 4px; }


