/* ===========================================================
   邑聚 · 编辑式杂志风格样式
   色调：暖米 / 墨黑 / 朱砂 / 苔绿 / 黛蓝
   字体：衬线为主，营造书卷气与人味
   =========================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "PingFang SC", "Microsoft YaHei", Georgia, "Times New Roman", serif;
    font-size: 16px;
    color: #2b2520;
    background: #f4ede0;
    background-image:
        radial-gradient(circle at 10% 0%, rgba(196, 86, 64, 0.04) 0, transparent 40%),
        radial-gradient(circle at 90% 100%, rgba(90, 122, 96, 0.05) 0, transparent 40%);
    line-height: 1.75;
    min-height: 100vh;
}
a { color: inherit; text-decoration: none; transition: color 0.18s; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }
input, textarea, select {
    font-family: inherit; font-size: inherit; outline: none; color: inherit;
}
::selection { background: #c45640; color: #fff7ed; }

:root {
    --ink: #2b2520;
    --ink-soft: #5a4d3f;
    --ink-fade: #8a7d6f;
    --paper: #fbf5e8;
    --paper-warm: #f4ede0;
    --paper-deep: #e8dcc4;
    --vermilion: #c45640;
    --vermilion-dark: #9b3d2b;
    --vermilion-soft: #f0d4cb;
    --moss: #5a7a60;
    --moss-dark: #3f5944;
    --indigo: #3a4f6b;
    --gold: #c89b3c;
    --rule: #d8cdb5;
    --rule-soft: #e8dcc4;
    --shadow-sm: 0 1px 2px rgba(60, 40, 20, 0.05);
    --shadow: 0 2px 6px rgba(60, 40, 20, 0.07);
    --shadow-lg: 0 6px 20px rgba(60, 40, 20, 0.1);
    --radius-sm: 3px;
    --radius: 6px;
    --radius-lg: 12px;
    --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, sans-serif;
    --serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", Georgia, "Times New Roman", serif;
}

.app-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.main-content { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 24px 20px 32px; align-self: center; }

/* ===== 顶栏 ===== */
.topbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(251, 245, 232, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--rule);
}
.topbar-inner {
    max-width: 1080px; margin: 0 auto;
    padding: 0 20px; height: 56px;
    display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-logo {
    width: 34px; height: 34px;
    background: var(--ink); color: var(--paper);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-size: 20px; font-weight: 700;
    align-self: center;
    transform: translateY(-1px);
}
.brand-name {
    font-family: var(--serif); font-size: 22px; font-weight: 700;
    color: var(--ink); letter-spacing: 2px;
}
.brand-name::after {
    content: ""; display: inline-block; width: 6px; height: 6px;
    background: var(--vermilion); border-radius: 50%;
    margin-left: 6px; vertical-align: middle; transform: translateY(-2px);
}
.nav-toggle {
    display: none; flex-direction: column; gap: 5px; padding: 6px;
}
.nav-toggle span {
    width: 22px; height: 2px; background: var(--ink);
    border-radius: 1px; transition: 0.3s;
}
.topbar-nav { display: flex; align-items: center; gap: 2px; }
.topbar-nav a {
    padding: 8px 14px; border-radius: var(--radius-sm);
    font-family: var(--sans); font-size: 14px;
    color: var(--ink-soft);
    position: relative;
    transition: 0.2s;
}
.topbar-nav a:hover { color: var(--vermilion); background: rgba(196, 86, 64, 0.06); }
.topbar-nav a.active {
    color: var(--vermilion);
    background: transparent;
}
.topbar-nav a.active::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
    height: 2px; background: var(--vermilion);
}
.topbar-nav a.nav-logout { color: var(--ink-fade); }
.topbar-nav a.nav-logout:hover { color: var(--vermilion-dark); }
.badge {
    background: var(--vermilion); color: #fff;
    font-family: var(--sans);
    font-size: 11px; min-width: 17px; height: 17px;
    border-radius: 9px; padding: 0 5px;
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: 4px; font-weight: 600;
    box-shadow: 0 0 0 2px var(--paper);
}
.topbar-online {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px; margin-left: 8px;
    background: var(--paper-warm);
    border: 1px solid var(--rule);
    border-radius: 16px;
    font-family: var(--sans); font-size: 12px;
    color: var(--ink-fade);
}
.topbar-online .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--moss);
    box-shadow: 0 0 0 3px rgba(90, 122, 96, 0.15);
    animation: pulse 2.4s infinite;
}
.topbar-online .online-total {
    font-weight: 600; color: var(--moss-dark);
    font-variant-numeric: tabular-nums;
}

/* ===== 首页 hero ===== */
.hero {
    margin: -24px -20px 24px;
    padding: 64px 20px 56px;
    background:
        linear-gradient(180deg, rgba(251, 245, 232, 0) 0%, var(--paper-warm) 100%),
        radial-gradient(ellipse at top, rgba(200, 155, 60, 0.12) 0%, transparent 60%);
    text-align: center;
    border-bottom: 1px solid var(--rule);
    position: relative;
}
.hero::before {
    content: "邑"; position: absolute; top: 30px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--serif); font-size: 200px; font-weight: 700;
    color: rgba(43, 37, 32, 0.04); pointer-events: none;
    line-height: 1;
}
.hero-inner { max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }
.hero h1 {
    font-family: var(--serif); font-size: 38px;
    font-weight: 700; letter-spacing: 4px;
    color: var(--ink); margin-bottom: 10px;
}
.hero h1 .accent { color: var(--vermilion); }
.hero-tag {
    font-family: var(--serif); font-size: 17px;
    color: var(--ink-soft); font-style: italic;
    margin-bottom: 28px; letter-spacing: 1px;
}
.hero-tag::before, .hero-tag::after {
    content: " — "; color: var(--rule); font-style: normal;
}
.hero-stats {
    display: flex; justify-content: center; gap: 48px;
    margin: 28px 0 32px;
    padding: 20px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong {
    font-family: var(--serif); font-size: 32px; font-weight: 700;
    color: var(--ink); line-height: 1;
}
.hero-stats span {
    font-family: var(--sans); font-size: 12px;
    color: var(--ink-fade); letter-spacing: 2px; margin-top: 6px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note {
    margin-top: 16px; font-family: var(--sans);
    font-size: 13px; color: var(--ink-fade);
}
.hero-note a { color: var(--vermilion); border-bottom: 1px solid var(--vermilion); }

/* ===== 首页：聊天预览区块 ===== */
.chat-previews {
    margin: 32px 0 28px;
}
.section-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 18px; padding-bottom: 12px;
    border-bottom: 2px solid var(--ink);
    flex-wrap: wrap; gap: 8px;
}
.section-head h2 {
    font-family: var(--serif); font-size: 24px;
    font-weight: 700; color: var(--ink);
    letter-spacing: 2px;
}
.section-head h2::before {
    content: "§ "; color: var(--vermilion); font-weight: 400;
}
.section-head p {
    font-family: var(--sans); font-size: 13px;
    color: var(--ink-fade);
}
.section-head p a {
    color: var(--vermilion);
    border-bottom: 1px solid var(--vermilion);
}
.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.preview-card {
    display: flex; flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
    transition: 0.25s;
    position: relative;
}
.preview-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--vermilion);
    opacity: 0; transition: 0.25s;
}
.preview-card:hover {
    transform: translateY(-3px);
    border-color: var(--ink-fade);
    box-shadow: var(--shadow-lg);
}
.preview-card:hover::before { opacity: 1; }
.preview-head {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px 10px;
    border-bottom: 1px dashed var(--rule);
}
.preview-icon {
    width: 38px; height: 38px;
    background: var(--ink); color: var(--paper);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-size: 18px; font-weight: 700;
    flex-shrink: 0;
}
.preview-card:hover .preview-icon {
    background: var(--vermilion);
    transform: rotate(-6deg);
    transition: 0.3s;
}
.preview-title { flex: 1; min-width: 0; }
.preview-name {
    font-family: var(--serif); font-size: 16px;
    font-weight: 700; color: var(--ink);
    letter-spacing: 1px;
}
.preview-meta {
    margin-top: 2px;
    font-family: var(--sans); font-size: 11px;
    color: var(--ink-fade);
}
.preview-online {
    display: inline-flex; align-items: center; gap: 5px;
    color: var(--ink-fade);
}
.preview-online .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--ink-fade);
}
.preview-online.has-online { color: var(--moss-dark); }
.preview-online.has-online .dot {
    background: var(--moss);
    box-shadow: 0 0 0 3px rgba(90, 122, 96, 0.15);
    animation: pulse 2.4s infinite;
}
.mini-chat {
    flex: 1;
    padding: 12px 16px;
    background:
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 28px,
            rgba(216, 205, 181, 0.12) 28px,
            rgba(216, 205, 181, 0.12) 29px
        );
    min-height: 100px;
    display: flex; flex-direction: column; gap: 6px;
}
.mini-msg {
    font-family: var(--sans); font-size: 12px;
    color: var(--ink-soft);
    line-height: 1.5;
}
.mini-author {
    color: var(--vermilion-dark);
    font-weight: 600;
    margin-right: 4px;
}
.mini-author::after { content: "："; color: var(--ink-fade); font-weight: 400; }
.mini-content { color: var(--ink); }
.mini-empty {
    font-family: var(--serif); font-style: italic;
    font-size: 12px; color: var(--ink-fade);
    text-align: center; padding: 20px 8px;
}
.preview-foot {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 16px;
    border-top: 1px solid var(--rule);
    font-family: var(--sans); font-size: 12px;
    color: var(--ink-fade);
    background: var(--paper-warm);
    transition: 0.2s;
}
.preview-card:hover .preview-foot {
    color: var(--vermilion);
    background: var(--vermilion-soft);
}
.preview-foot .arrow {
    font-family: var(--serif); font-size: 18px;
    transition: 0.2s;
}
.preview-card:hover .preview-foot .arrow {
    transform: translateX(4px);
}

/* ===== 首页：特性卡片 ===== */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 32px 0 24px;
}
.feature-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    transition: 0.25s;
    position: relative;
}
.feature-card::before {
    content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 32px; height: 2px; background: var(--vermilion);
    opacity: 0; transition: 0.25s;
}
.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--ink-fade);
    box-shadow: var(--shadow-lg);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    font-size: 32px; margin-bottom: 10px;
    line-height: 1;
}
.feature-card h3 {
    font-family: var(--serif); font-size: 18px;
    font-weight: 700; color: var(--ink);
    margin-bottom: 6px; letter-spacing: 1px;
}
.feature-card p {
    font-family: var(--sans); font-size: 13px;
    color: var(--ink-fade); line-height: 1.6;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 9px 22px;
    font-family: var(--sans); font-size: 14px; font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all 0.2s;
    cursor: pointer; white-space: nowrap;
    letter-spacing: 1px;
}
.btn-primary {
    background: var(--ink); color: var(--paper);
    border-color: var(--ink);
}
.btn-primary:hover {
    background: var(--vermilion); border-color: var(--vermilion);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196, 86, 64, 0.25);
}
.btn-outline {
    background: transparent; color: var(--ink);
    border-color: var(--ink);
}
.btn-outline:hover {
    background: var(--ink); color: var(--paper);
}
.btn-vermilion {
    background: var(--vermilion); color: var(--paper);
    border-color: var(--vermilion);
}
.btn-vermilion:hover { background: var(--vermilion-dark); border-color: var(--vermilion-dark); }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

/* ===== 表单 ===== */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; gap: 14px; }
.form-row > .form-group { flex: 1; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-family: var(--sans); font-size: 12px;
    color: var(--ink-fade); font-weight: 500;
    letter-spacing: 1px; text-transform: uppercase;
}
.form-group input, .form-group textarea, .form-group select {
    padding: 10px 12px;
    border: 1px solid var(--rule);
    border-bottom: 1px solid var(--ink);
    border-radius: var(--radius-sm);
    font-size: 14px; font-family: var(--sans);
    background: rgba(251, 245, 232, 0.6);
    transition: 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--vermilion);
    border-bottom-color: var(--vermilion);
    background: var(--paper);
}
.form-group textarea { resize: vertical; min-height: 90px; }

/* ===== 登录注册 ===== */
.auth-page {
    min-height: 70vh; display: flex; align-items: center; justify-content: center;
    padding: 32px 16px;
}
.auth-card {
    background: var(--paper);
    padding: 40px 36px;
    width: 100%; max-width: 440px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    position: relative;
}
.auth-card::before {
    content: ""; position: absolute; top: -1px; left: 24px; right: 24px; height: 3px;
    background: var(--vermilion);
}
.auth-card h1 {
    font-family: var(--serif); font-size: 28px;
    font-weight: 700; color: var(--ink);
    margin-bottom: 6px; letter-spacing: 2px;
}
.auth-sub {
    font-family: var(--sans); font-size: 13px;
    color: var(--ink-fade); margin-bottom: 24px;
}
.auth-foot {
    text-align: center; margin-top: 20px;
    font-family: var(--sans); font-size: 13px; color: var(--ink-fade);
    padding-top: 16px; border-top: 1px dashed var(--rule);
}
.auth-foot a { color: var(--vermilion); border-bottom: 1px solid var(--vermilion); }

/* ===== Alert ===== */
.alert {
    padding: 10px 14px; border-radius: var(--radius-sm);
    font-family: var(--sans); font-size: 13px;
    margin-bottom: 14px;
    border-left: 3px solid;
}
.alert-error { background: var(--vermilion-soft); color: var(--vermilion-dark); border-color: var(--vermilion); }
.alert-success { background: #e0ebe1; color: var(--moss-dark); border-color: var(--moss); }

/* ===== 页面标题 ===== */
.page-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--ink);
}
.page-head::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1px;
    background: var(--ink); margin-top: 4px;
}
.page-head h1 {
    font-family: var(--serif); font-size: 26px;
    font-weight: 700; color: var(--ink); letter-spacing: 2px;
}
.page-head h1::before {
    content: "§ "; color: var(--vermilion); font-weight: 400;
}
.page-head p {
    font-family: var(--sans); font-size: 13px;
    color: var(--ink-fade); margin-top: 4px;
}

/* ===== 房间列表 ===== */
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
}
.room-card {
    background: var(--paper);
    padding: 18px 20px;
    display: flex; align-items: center; gap: 14px;
    transition: 0.2s;
    border: none;
    position: relative;
}
.room-card:hover {
    background: var(--paper-warm);
    z-index: 1;
    box-shadow: var(--shadow);
}
.room-card:hover .room-icon {
    background: var(--vermilion);
    transform: rotate(-6deg);
}
.room-icon {
    width: 44px; height: 44px;
    background: var(--ink); color: var(--paper);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-size: 22px; font-weight: 700;
    flex-shrink: 0; transition: 0.3s;
}
.room-info { flex: 1; min-width: 0; }
.room-name {
    font-family: var(--serif); font-size: 17px;
    font-weight: 700; color: var(--ink);
}
.room-desc {
    font-family: var(--sans); font-size: 12px;
    color: var(--ink-fade); margin-top: 2px;
}
.room-online {
    font-family: var(--sans); font-size: 12px;
    color: var(--ink-fade);
    display: flex; align-items: center; gap: 5px;
}
.room-online .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--ink-fade);
}
.room-online.has-online { color: var(--moss-dark); }
.room-online.has-online .dot {
    background: var(--moss);
    box-shadow: 0 0 0 3px rgba(90, 122, 96, 0.15);
    animation: pulse 2.4s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(90, 122, 96, 0.15); }
    50% { box-shadow: 0 0 0 6px rgba(90, 122, 96, 0); }
}

/* ===== 聊天页 ===== */
.chat-page {
    display: flex; gap: 0;
    height: calc(100vh - 130px);
    min-height: 400px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
}
.chat-main { flex: 1; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--rule);
    background: var(--paper-warm);
}
.chat-back {
    font-family: var(--serif); font-size: 26px;
    color: var(--ink); padding: 0 4px;
    line-height: 1;
}
.chat-back:hover { color: var(--vermilion); }
/* 聊天头部：返回首页按钮（‹ 首页） */
.chat-home-btn {
    display: inline-flex; align-items: center; gap: 1px;
    flex-shrink: 0;
    padding: 4px 8px 4px 4px;
    border-radius: var(--radius-sm);
    color: var(--ink-soft);
    transition: 0.2s;
    line-height: 1;
}
.chat-home-btn:hover { color: var(--vermilion); background: rgba(196, 86, 64, 0.06); }
.chat-home-arrow {
    font-family: var(--serif);
    font-size: 24px;
    line-height: 1;
    transform: translateY(-1px);
}
.chat-home-text {
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 1px;
}
.chat-home-btn:hover .chat-home-arrow { color: var(--vermilion); }
.chat-title { display: flex; align-items: center; gap: 10px; flex: 1; }
.chat-title h2 {
    font-family: var(--serif); font-size: 18px;
    font-weight: 700; color: var(--ink);
}
.chat-title small {
    font-family: var(--sans); font-size: 12px;
    color: var(--ink-fade);
}
.room-ico {
    width: 36px; height: 36px;
    background: var(--ink); color: var(--paper);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-size: 18px; font-weight: 700;
}
.chat-side-toggle {
    font-family: var(--sans); font-size: 14px;
    padding: 6px 10px; display: none;
    color: var(--ink-fade);
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
}
.chat-messages {
    flex: 1; overflow-y: auto; padding: 16px 18px;
    display: flex; flex-direction: column; gap: 10px;
    min-height: 0;
    overscroll-behavior: contain;
    background:
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 36px,
            rgba(216, 205, 181, 0.15) 36px,
            rgba(216, 205, 181, 0.15) 37px
        );
}
.chat-input-bar {
    display: flex; gap: 8px; padding: 12px 14px;
    border-top: 1px solid var(--rule);
    background: var(--paper);
}
.chat-input-bar input {
    flex: 1; padding: 10px 14px;
    border: 1px solid var(--rule);
    border-radius: 22px; font-size: 14px;
    font-family: var(--sans);
    background: var(--paper-warm);
}
.chat-input-bar input:focus { border-color: var(--vermilion); background: var(--paper); }
.btn-img {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border: 1px solid var(--rule);
    border-radius: 50%;
    background: var(--paper-warm);
    font-size: 18px; line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
}
.btn-img:hover { background: var(--paper); border-color: var(--vermilion); }
.btn-img:disabled { opacity: 0.5; cursor: wait; }
.guest-bar {
    flex: 1; display: flex; justify-content: space-between; align-items: center;
    padding: 8px 14px;
    background: var(--vermilion-soft);
    border-radius: 22px;
    font-family: var(--sans); font-size: 13px;
    color: var(--vermilion-dark);
}

.msg { display: flex; gap: 10px; max-width: 80%; align-items: flex-start; }
.msg.self { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar {
    width: 34px; height: 34px;
    border-radius: 4px;
    flex-shrink: 0;
    background: var(--paper-deep);
    object-fit: cover;
}
.msg-avatar.clickable-avatar { cursor: pointer; transition: 0.2s; }
.msg-avatar.clickable-avatar:hover { opacity: 0.8; transform: scale(1.08); }
.msg-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.msg.self .msg-body { align-items: flex-end; }
.msg-author {
    font-family: var(--sans); font-size: 11px;
    color: var(--ink-fade); padding: 0 4px;
}
.msg-bubble {
    padding: 9px 14px;
    border-radius: 4px 12px 12px 12px;
    background: var(--paper-warm);
    border: 1px solid var(--rule);
    font-family: var(--sans); font-size: 14px;
    color: var(--ink);
    word-break: break-word;
    box-shadow: var(--shadow-sm);
}
.msg.self .msg-bubble {
    background: var(--ink); color: var(--paper);
    border-color: var(--ink);
    border-radius: 12px 4px 12px 12px;
}
.msg-bubble.msg-bubble-image {
    padding: 4px;
    background: transparent !important;
    border: none !important;
    box-shadow: var(--shadow-sm);
    border-radius: 8px;
    overflow: hidden;
}
.msg-bubble.msg-bubble-image img {
    display: block;
    max-width: 220px;
    max-height: 220px;
    width: auto; height: auto;
    border-radius: 6px;
    cursor: zoom-in;
    object-fit: contain;
    background: var(--paper-warm);
}
.msg-time {
    font-family: var(--sans); font-size: 10px;
    color: var(--ink-fade); padding: 0 4px;
    display: flex; align-items: center; gap: 4px;
}
.msg.self .msg-time { justify-content: flex-end; }
.msg-read-status {
    font-size: 10px;
    color: var(--ink-fade);
    padding: 1px 4px;
    border-radius: 3px;
    background: rgba(0,0,0,0.04);
}
.msg-read-status.is-read {
    color: var(--moss);
    background: rgba(90,122,96,0.08);
}
.msg-system {
    text-align: center; font-family: var(--sans); font-size: 12px;
    color: var(--ink-fade); padding: 6px;
    font-style: italic;
}
.msg-system::before, .msg-system::after { content: " · "; }

.chat-side {
    width: 220px;
    border-left: 1px solid var(--rule);
    padding: 16px;
    overflow-y: auto;
    background: var(--paper-warm);
    flex-shrink: 0;
}
.chat-side h3 {
    font-family: var(--serif); font-size: 14px;
    color: var(--ink); margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--rule);
    letter-spacing: 1px;
}
.online-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.online-item {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--sans); font-size: 13px;
    color: var(--ink-soft);
}
.online-item .mini-avatar {
    width: 22px; height: 22px; border-radius: 3px;
}
.chat-room-info {
    font-family: var(--sans); font-size: 12px;
    color: var(--ink-fade);
    border-top: 1px dashed var(--rule);
    padding-top: 12px;
    font-style: italic;
}

/* ===== 好友 ===== */
.friends-page { display: flex; flex-direction: column; gap: 24px; }
.friends-search { position: relative; }
.friends-search input {
    width: 100%; padding: 11px 16px;
    border: 1px solid var(--rule);
    border-bottom: 1px solid var(--ink);
    border-radius: var(--radius-sm);
    background: var(--paper);
    font-family: var(--sans); font-size: 14px;
}
.search-results {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-height: 320px; overflow-y: auto; z-index: 10;
    display: none;
}
.search-results.show { display: block; }
.search-result-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--rule-soft);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--paper-warm); }
.search-result-item .info { flex: 1; min-width: 0; }
.search-result-item .name {
    font-family: var(--serif); font-weight: 600;
    color: var(--ink);
}
.search-result-item .sub {
    font-family: var(--sans); font-size: 12px;
    color: var(--ink-fade);
}

.pending-section h3, .friends-list-section h3 {
    font-family: var(--serif); font-size: 16px;
    color: var(--ink); margin-bottom: 12px;
    letter-spacing: 1px;
}
.pending-section h3::before, .friends-list-section h3::before {
    content: "› "; color: var(--vermilion);
}
.pending-item, .friend-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    margin-bottom: 8px;
    transition: 0.2s;
}
.pending-item:hover, .friend-item:hover {
    border-color: var(--ink-fade);
    box-shadow: var(--shadow);
}
.friend-info { flex: 1; min-width: 0; }
.friend-name {
    font-family: var(--serif); font-weight: 600;
    color: var(--ink);
    display: flex; align-items: center; gap: 8px;
}
.status-dot {
    width: 7px; height: 7px; border-radius: 50%;
}
.status-dot.online {
    background: var(--moss);
    box-shadow: 0 0 0 2px rgba(90, 122, 96, 0.2);
}
.status-dot.offline { background: var(--rule); }
.friend-sub {
    font-family: var(--sans); font-size: 12px;
    color: var(--ink-fade); margin-top: 2px;
}

/* ===== 私信 ===== */
.pm-page { display: flex; flex-direction: column; gap: 4px; }
.pm-list { display: flex; flex-direction: column; gap: 1px; }
.pm-item {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    transition: 0.2s;
    position: relative;
}
.pm-item:hover { background: var(--paper-warm); border-color: var(--ink-fade); }
.pm-item.unread::before {
    content: ""; position: absolute; left: 0; top: 12px; bottom: 12px;
    width: 3px; background: var(--vermilion);
    border-radius: 0 2px 2px 0;
}
.pm-info { flex: 1; min-width: 0; }
.pm-head {
    display: flex; justify-content: space-between;
    align-items: center;
}
.pm-name {
    font-family: var(--serif); font-weight: 600;
    color: var(--ink);
}
.pm-head small {
    font-family: var(--sans); font-size: 11px;
    color: var(--ink-fade);
}
.pm-preview {
    font-family: var(--sans); font-size: 13px;
    color: var(--ink-fade);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-top: 2px;
}
.empty-card, .pm-empty {
    text-align: center; padding: 80px 20px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}
.empty-card p, .pm-empty p {
    font-family: var(--serif); font-style: italic;
    color: var(--ink-fade); margin-bottom: 16px;
    font-size: 16px;
}

/* PM 对话页 */
.pm-chat-page {
    height: calc(100vh - 130px);
    height: calc(100dvh - 130px); /* dvh: 移动端动态视口高度，避免地址栏遮挡 */
    min-height: 300px;
}
/* 无顶栏无底栏页面：聊天/私信对话框占满视口 */
.hide-chrome .main-content { padding: 0; }
.hide-chrome .pm-chat-page,
.hide-chrome .chat-page {
    height: 100vh;
    height: 100dvh;
    min-height: 300px;
    border-radius: 0;
    border: none;
    box-shadow: none;
}
.pm-chat-main {
    height: 100%;
    display: flex; flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.pm-chat-head {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--rule);
    background: var(--paper-warm);
}
.pm-chat-head h2 {
    font-family: var(--serif); font-size: 17px;
    font-weight: 700; color: var(--ink);
}
.pm-chat-head small {
    font-family: var(--sans); font-size: 12px;
    color: var(--ink-fade);
}
.pm-profile-link {
    margin-left: auto;
    font-family: var(--sans); font-size: 13px;
    color: var(--vermilion);
}
.pm-messages {
    flex: 1; overflow-y: auto; padding: 16px 18px;
    display: flex; flex-direction: column; gap: 10px;
    min-height: 0;
    overscroll-behavior: contain;
    background:
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 36px,
            rgba(216, 205, 181, 0.15) 36px,
            rgba(216, 205, 181, 0.15) 37px
        );
}
.pm-input-bar {
    display: flex; gap: 8px; padding: 10px 12px;
    border-top: 1px solid var(--rule);
    flex-shrink: 0; /* 输入栏不被压缩 */
}
.pm-input-bar input[type="file"] { display: none !important; }
.pm-input-bar input[type="text"] {
    flex: 1; padding: 8px 14px;
    border: 1px solid var(--rule);
    border-radius: 22px;
    font-family: var(--sans); font-size: 14px;
    background: var(--paper-warm);
}
.pm-input-bar input[type="text"]:focus { border-color: var(--vermilion); background: var(--paper); }

/* ===== 头像 ===== */
.avatar {
    border-radius: 4px; object-fit: cover;
    background: var(--paper-deep);
}
.avatar-sm { width: 32px; height: 32px; }
.avatar-md { width: 48px; height: 48px; }
.avatar-xl { width: 88px; height: 88px; }

/* ===== 生活志 ===== */
.moments-feed { display: flex; flex-direction: column; gap: 1px; background: var(--rule); }
.moment-card {
    background: var(--paper);
    padding: 22px 24px;
    transition: 0.2s;
}
.moment-card:hover { background: var(--paper-warm); }
.moment-head {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 14px;
}
.moment-head .avatar {
    width: 40px; height: 40px;
}
.moment-user { flex: 1; }
.moment-user .name {
    font-family: var(--serif); font-weight: 600;
    font-size: 15px; color: var(--ink);
}
.moment-user .meta {
    font-family: var(--sans); font-size: 12px;
    color: var(--ink-fade);
}
.moment-mood {
    display: inline-block;
    padding: 2px 10px;
    background: var(--vermilion-soft);
    color: var(--vermilion-dark);
    border-radius: 11px;
    font-family: var(--sans); font-size: 11px;
    margin-left: 8px;
}
.moment-content {
    font-family: var(--serif); font-size: 15px;
    line-height: 1.85; color: var(--ink);
    margin-bottom: 10px;
    white-space: pre-wrap; word-break: break-word;
}
.moment-images {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 4px; margin-bottom: 12px;
}
.moment-images img {
    aspect-ratio: 1; object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid var(--rule);
}
.moment-images img:hover { transform: scale(0.98); opacity: 0.9; }
.moment-location {
    font-family: var(--sans); font-size: 12px;
    color: var(--ink-fade); margin-bottom: 10px;
    font-style: italic;
}
.moment-location::before { content: "⌖ "; font-style: normal; color: var(--vermilion); }
.moment-actions {
    display: flex; gap: 24px; padding-top: 12px;
    border-top: 1px dashed var(--rule);
}
.moment-action {
    font-family: var(--sans); font-size: 13px;
    color: var(--ink-fade);
    display: flex; align-items: center; gap: 5px;
    cursor: pointer; transition: 0.2s;
}
.moment-action:hover { color: var(--vermilion); }
.moment-action.liked { color: var(--vermilion); }

/* 生活志删除按钮 */
.moment-delete {
    font-family: var(--sans); font-size: 14px;
    color: var(--ink-fade);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: 0.2s;
    align-self: flex-start;
}
.moment-delete:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.08);
}

/* 首页生活志板块 */
.home-moments-section { margin: 40px 0; }
.home-moments-section .section-head { margin-bottom: 20px; }

/* 首页生活志紧凑布局（缩小一半） */
.home-moments-section .moments-feed {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    overflow: hidden;
}
.home-moments-section .moment-card {
    padding: 12px 14px;
}
.home-moments-section .moment-card:hover { background: var(--paper-warm); }
.home-moments-section .moment-head { gap: 8px; margin-bottom: 8px; }
.home-moments-section .moment-head .avatar { width: 28px; height: 28px; }
.home-moments-section .moment-user .name { font-size: 13px; }
.home-moments-section .moment-user .meta { font-size: 11px; }
.home-moments-section .moment-content {
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-moments-section .moment-images { gap: 4px; margin-bottom: 8px; }
.home-moments-section .moment-images img { width: 60px; height: 60px; }
.home-moments-section .moment-foot { font-size: 11px; gap: 12px; }
@media (max-width: 640px) {
    .home-moments-section .moments-feed { grid-template-columns: 1fr; }
}

/* ===== 个人主页 ===== */
.profile-page { display: flex; flex-direction: column; gap: 16px; }
.profile-banner {
    background: var(--paper);
    padding: 36px 24px 24px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.profile-banner::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--vermilion) 0%, var(--gold) 50%, var(--moss) 100%);
}
.profile-avatar-wrap { margin-bottom: 14px; }
.profile-avatar-wrap .avatar {
    border: 3px solid var(--paper);
    box-shadow: var(--shadow);
    margin: 0 auto;
}
.profile-meta h1 {
    font-family: var(--serif); font-size: 22px;
    font-weight: 700; color: var(--ink);
    letter-spacing: 2px;
}
.profile-signature {
    font-family: var(--serif); font-size: 14px;
    color: var(--ink-soft); font-style: italic;
    margin-top: 6px;
}
.profile-actions {
    margin-top: 16px;
    display: flex; gap: 8px; justify-content: center;
}
.profile-stats {
    display: flex; justify-content: space-around;
    background: var(--paper);
    padding: 18px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}
.profile-stats > div {
    text-align: center; flex: 1;
    position: relative;
}
.profile-stats > div:not(:last-child)::after {
    content: ""; position: absolute; right: 0; top: 8px; bottom: 8px;
    width: 1px; background: var(--rule);
}
.profile-stats strong {
    display: block;
    font-family: var(--serif); font-size: 22px; font-weight: 700;
    color: var(--ink);
}
.profile-stats span {
    font-family: var(--sans); font-size: 12px;
    color: var(--ink-fade); letter-spacing: 1px;
}
.profile-detail, .profile-moments {
    background: var(--paper);
    padding: 22px 24px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}
.profile-detail h3, .profile-moments h3 {
    font-family: var(--serif); font-size: 17px;
    color: var(--ink); margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--ink);
    letter-spacing: 1px;
}
.profile-detail h3::before, .profile-moments h3::before {
    content: "§ "; color: var(--vermilion); font-weight: 400;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.info-item {
    display: flex; flex-direction: column; gap: 3px;
    padding: 10px 14px;
    background: var(--paper);
}
.info-item .label {
    font-family: var(--sans); font-size: 11px;
    color: var(--ink-fade);
    letter-spacing: 1px;
}
.bio-section { margin-top: 20px; }
.bio-section p {
    font-family: var(--serif); font-size: 15px;
    line-height: 1.85; color: var(--ink);
    padding: 14px 18px;
    background: var(--paper-warm);
    border-left: 3px solid var(--vermilion);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ===== 设置页 ===== */
.settings-page {
    background: var(--paper);
    padding: 24px 28px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
}
.form-section {
    padding: 18px 0;
    border-bottom: 1px dashed var(--rule);
}
.form-section:last-of-type { border-bottom: none; }
.form-section h3 {
    font-family: var(--serif); font-size: 16px;
    color: var(--ink); margin-bottom: 14px;
    letter-spacing: 1px;
}
.avatar-input-wrap { display: flex; align-items: center; gap: 14px; }
.avatar-input-wrap img { flex-shrink: 0; }
.avatar-upload-area { flex: 1; }

/* ===== Modal ===== */
.modal {
    display: none; position: fixed; inset: 0;
    background: rgba(43, 37, 32, 0.55);
    z-index: 1000;
    align-items: center; justify-content: center;
    padding: 16px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.modal.show { display: flex; animation: fadein 0.2s; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    width: 100%; max-width: 480px;
    max-height: 90vh; overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.modal-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--vermilion);
}
.modal-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--rule);
}
.modal-head h3 {
    font-family: var(--serif); font-size: 17px;
    color: var(--ink); letter-spacing: 1px;
}
.modal-close {
    font-family: var(--serif); font-size: 24px;
    color: var(--ink-fade); padding: 0 4px;
    line-height: 1;
}
.modal-close:hover { color: var(--vermilion); }
.modal-body {
    padding: 18px 20px;
    overflow-y: auto; flex: 1;
}
.modal-body textarea {
    width: 100%; padding: 12px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    resize: vertical; font-size: 14px;
    font-family: var(--sans);
    background: var(--paper-warm);
}
.modal-body textarea:focus { border-color: var(--vermilion); background: var(--paper); }
.modal-foot {
    display: flex; gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--rule);
    align-items: center;
}
.modal-foot input {
    flex: 1; padding: 8px 12px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    font-family: var(--sans);
}
.moment-extras { display: flex; gap: 10px; margin-top: 12px; }
.extra-field { flex: 1; }
.extra-field label {
    display: block; font-family: var(--sans);
    font-size: 11px; color: var(--ink-fade);
    margin-bottom: 4px; letter-spacing: 1px;
}
.extra-field input {
    width: 100%; padding: 7px 10px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    font-family: var(--sans); font-size: 13px;
    background: var(--paper-warm);
}
.moment-visibility {
    display: flex; gap: 18px; margin-top: 14px;
    font-family: var(--sans); font-size: 13px;
    color: var(--ink-soft);
}
.moment-visibility label {
    display: flex; align-items: center; gap: 5px;
    cursor: pointer;
}

/* ===== 评论 ===== */
.comment-list { display: flex; flex-direction: column; gap: 0; }
.comment-item {
    display: flex; gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--rule);
}
.comment-item:last-child { border-bottom: none; }
.comment-item img {
    width: 26px; height: 26px;
    border-radius: 3px;
}
.comment-body { flex: 1; }
.comment-author {
    font-family: var(--serif); font-size: 13px;
    font-weight: 600; color: var(--ink);
}
.comment-content {
    font-family: var(--sans); font-size: 13px;
    color: var(--ink-soft);
}
.comment-time {
    font-family: var(--sans); font-size: 11px;
    color: var(--ink-fade);
}

/* ===== 杂项 ===== */
.loading-text {
    text-align: center; padding: 32px;
    color: var(--ink-fade);
    font-family: var(--serif); font-style: italic;
    font-size: 14px;
}
.msg-loading {
    text-align: center; padding: 16px;
    color: var(--ink-fade);
    font-family: var(--sans); font-size: 13px;
}
.empty {
    text-align: center; padding: 24px;
    color: var(--ink-fade);
    font-family: var(--serif); font-style: italic;
}
.footer {
    padding: 24px 16px;
    text-align: center;
    color: var(--ink-fade);
    font-family: var(--serif); font-size: 12px;
    font-style: italic;
    border-top: 1px solid var(--rule);
    background: var(--paper-warm);
}

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--paper-warm); }
::-webkit-scrollbar-thumb {
    background: var(--rule);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--ink-fade); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    body { font-size: 15px; }
    .nav-toggle { display: flex; }
    .topbar-nav {
        position: absolute; top: 56px; left: 0; right: 0;
        flex-direction: column; background: var(--paper);
        padding: 8px;
        border-bottom: 1px solid var(--rule);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0; pointer-events: none;
        transition: 0.3s;
    }
    .topbar-nav.show {
        transform: translateY(0); opacity: 1; pointer-events: auto;
    }
    .topbar-nav a { width: 100%; }
    .topbar-nav a.active::after { display: none; }
    .topbar-nav a.active { background: var(--vermilion-soft); }
    .topbar-online {
        margin-left: 0; margin-top: 8px;
        align-self: flex-start;
    }

    .hero { padding: 24px 14px 22px; margin-bottom: 12px; margin-left: -12px; margin-right: -12px; }
    .hero h1 { font-size: 22px; letter-spacing: 2px; margin-bottom: 6px; }
    .hero-tag { font-size: 13px; margin-bottom: 16px; }
    .hero-stats { gap: 18px; padding: 12px 0; margin: 14px 0 18px; }
    .hero-stats strong { font-size: 20px; }
    .hero-stats span { font-size: 10px; letter-spacing: 1px; margin-top: 4px; }
    .hero-actions .btn { padding: 8px 18px; font-size: 13px; }
    .hero-note { margin-top: 12px; font-size: 12px; }
    .hero::before { font-size: 110px; top: 8px; }

    .main-content { padding: 12px 12px 16px; }
    /* 聊天/私信页面减小外层 padding，给对话框更多空间 */
    .main-content:has(.pm-chat-page),
    .main-content:has(.chat-page) { padding: 8px 8px 8px; }
    /* 无顶栏无底栏页面：对话框占满视口 */
    .hide-chrome .main-content { padding: 0; }

    /* 首页区块间距收紧 */
    .chat-previews { margin: 16px 0 14px; }
    .section-head { margin-bottom: 12px; padding-bottom: 8px; }
    .section-head h2 { font-size: 17px; letter-spacing: 1px; }
    .section-head p { font-size: 11px; }
    .home-moments-section .section-head { margin-bottom: 12px; }
    .features { margin: 16px 0 8px; gap: 10px; }
    .feature-card { padding: 14px 12px; }
    .feature-icon { font-size: 24px; margin-bottom: 6px; }
    .feature-card h3 { font-size: 15px; margin-bottom: 4px; }
    .feature-card p { font-size: 12px; line-height: 1.5; }
    /* 底部版权收紧 */
    .footer { padding: 12px 12px; font-size: 11px; }

    .chat-page { flex-direction: column; height: calc(100vh - 110px); height: calc(100dvh - 110px); min-height: 350px; }
    .pm-chat-page { height: calc(100vh - 90px); height: calc(100dvh - 90px); min-height: 300px; }
    .hide-chrome .chat-page,
    .hide-chrome .pm-chat-page { height: 100vh; height: 100dvh; }
    .pm-chat-head { padding: 8px 10px; gap: 8px; }
    .pm-chat-head h2 { font-size: 15px; }
    .pm-chat-head .avatar-sm { width: 28px; height: 28px; }
    .chat-head { padding: 8px 10px; gap: 8px; }
    /* 移动端：返回按钮组简化为紧凑图标式 */
    .chat-back-group { gap: 2px; }
    .chat-back-group .chat-back {
        font-size: 12px;
        padding: 5px 8px;
        border: none;
        background: transparent;
        color: var(--ink-soft);
    }
    .chat-back-group .chat-back:first-child {
        /* 「首页」按钮：紧凑带下划线指示 */
        border-bottom: 1px solid currentColor;
        border-radius: 0;
        padding: 2px 4px 3px;
        font-size: 12px;
    }
    .chat-back-group .chat-back-secondary {
        font-size: 22px;
        padding: 0 4px;
        line-height: 1;
    }
    .room-ico { width: 30px; height: 30px; font-size: 15px; border-radius: 3px; }
    .chat-title h2 { font-size: 15px; }
    .chat-title small { font-size: 11px; }
    .chat-side-toggle { font-size: 12px; padding: 4px 8px; }
    .pm-profile-link { font-size: 12px; }
    .pm-input-bar { padding: 8px 10px; gap: 6px; }
    .pm-input-bar input[type="text"] { padding: 7px 12px; font-size: 13px; }
    .pm-messages { padding: 10px 12px; gap: 8px; }
    .chat-main { min-height: 0; }
    .chat-side {
        position: fixed; top: 0; right: -260px;
        width: 240px; height: 100vh; z-index: 200;
        border-left: 1px solid var(--rule);
        background: var(--paper);
        transition: right 0.3s;
        padding-top: 60px;
        box-shadow: var(--shadow-lg);
    }
    .chat-side.show { right: 0; }
    .chat-side-toggle { display: block; }

    .room-grid { grid-template-columns: 1fr; }
    .preview-grid { grid-template-columns: 1fr; }
    .features { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 12px; }
    .info-grid { grid-template-columns: 1fr; }
    .auth-card { padding: 28px 22px; }
    .profile-stats { gap: 8px; }
    .profile-stats strong { font-size: 18px; }
    .moment-card { padding: 18px 16px; }
    .moment-images { grid-template-columns: repeat(2, 1fr); }
    .page-head h1 { font-size: 22px; }
}
@media (max-width: 480px) {
    .msg { max-width: 90%; }
    .hero h1 { font-size: 24px; }
    .hero-stats { gap: 16px; }
    .moment-images { grid-template-columns: 1fr 1fr; }
}
/* 平板尺寸：预览卡片显示2列 */
@media (min-width: 481px) and (max-width: 768px) {
    .preview-grid { grid-template-columns: repeat(2, 1fr); }
    .features { grid-template-columns: repeat(2, 1fr); }
}
/* 中等桌面：预览卡片显示3列，房间列表保持多列 */
@media (min-width: 769px) and (max-width: 1024px) {
    .preview-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== 会员中心 ===== */
.vip-page { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.vip-card {
    color: #fff; padding: 18px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.vip-card-head { display: flex; align-items: center; gap: 14px; }
.vip-card-head .avatar { border: 2px solid rgba(255,255,255,0.4); }
.vip-card-name { font-size: 20px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.vip-badge {
    font-size: 12px; padding: 2px 8px; border-radius: 10px;
    font-family: var(--sans); font-weight: 600;
}
.vip-card-points { font-size: 14px; opacity: 0.9; margin-top: 4px; }
.vip-card-points strong { font-size: 18px; }
.vip-card-meta {
    display: flex; justify-content: space-between; gap: 10px;
    margin-top: 14px; padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 13px; opacity: 0.9;
}

.card {
    background: var(--paper); border: 1px solid var(--rule);
    border-radius: var(--radius); overflow: hidden;
}
.card-head {
    padding: 14px 16px; display: flex; align-items: center;
    justify-content: space-between; gap: 10px;
    border-bottom: 1px solid var(--rule-soft);
}
.card-head h3 { font-size: 17px; }
.card-body { padding: 16px; }
.card-foot { padding: 10px 16px; border-top: 1px solid var(--rule-soft); text-align: center; }

.badge-success { background: var(--moss); color: #fff; }
.badge-warning { background: #f39c12; color: #fff; }
.badge-info { background: #3498db; color: #fff; }

/* 签到摘要 */
.checkin-summary { display: flex; gap: 6px; flex-wrap: wrap; }

/* 签到日历 */
.checkin-calendar {
    background: var(--paper-warm);
    border: 1px solid var(--rule-soft);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 14px;
}
.calendar-nav {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.cal-nav-btn {
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--paper); border: 1px solid var(--rule);
    border-radius: var(--radius-sm); color: var(--ink);
    font-size: 18px; line-height: 1; cursor: pointer;
    transition: 0.2s; text-decoration: none;
}
.cal-nav-btn:hover:not(.disabled) {
    background: var(--vermilion); color: #fff; border-color: var(--vermilion);
}
.cal-nav-btn.disabled { opacity: 0.3; cursor: not-allowed; }
.cal-title { text-align: center; }
.cal-title strong {
    display: block; font-family: var(--serif); font-size: 15px;
    color: var(--ink); font-weight: 600;
}
.cal-title small {
    display: block; font-size: 11px; color: var(--ink-fade); margin-top: 2px;
}
.calendar-weekdays {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 3px; margin-bottom: 4px;
}
.calendar-weekdays span {
    text-align: center; font-size: 11px;
    color: var(--ink-fade); font-family: var(--sans);
    padding: 4px 0;
}
.calendar-grid {
    display: grid; grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}
.cal-cell {
    aspect-ratio: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: var(--paper);
    border: 1px solid var(--rule-soft);
    border-radius: var(--radius-sm);
    padding: 2px;
    transition: 0.2s;
}
.cal-cell.empty {
    background: transparent; border: 1px solid transparent;
}
.cal-cell.checked {
    background: var(--vermilion-soft);
    border-color: var(--vermilion);
}
.cal-cell.today {
    border: 2px solid var(--vermilion);
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.15);
}
.cal-cell.future {
    background: var(--paper-warm);
    opacity: 0.55;
}
.cal-day {
    font-family: var(--sans); font-size: 12px;
    color: var(--ink); font-weight: 500;
}
.cal-cell.checked .cal-day { color: var(--vermilion-dark); font-weight: 600; }
.cal-points {
    font-size: 10px; color: var(--vermilion);
    font-weight: 600; line-height: 1; margin-top: 2px;
}
.cal-miss { color: var(--ink-fade); font-size: 14px; line-height: 0.5; }
.calendar-legend {
    display: flex; gap: 14px; flex-wrap: wrap;
    margin-top: 12px; padding-top: 10px;
    border-top: 1px dashed var(--rule);
    font-size: 11px; color: var(--ink-fade);
}
.calendar-legend span { display: inline-flex; align-items: center; gap: 4px; }
.legend-box {
    width: 12px; height: 12px;
    border-radius: 3px; border: 1px solid var(--rule-soft);
    display: inline-block;
}
.legend-box.checked { background: var(--vermilion-soft); border-color: var(--vermilion); }
.legend-box.missed { background: var(--paper); }
.legend-box.today { background: var(--paper); border: 2px solid var(--vermilion); }

@media (max-width: 480px) {
    .cal-cell { padding: 1px; }
    .cal-day { font-size: 11px; }
    .cal-points { font-size: 9px; }
}

/* VIP等级 */
.vip-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.vip-level-item {
    display: flex; flex-direction: column; gap: 8px;
    padding: 14px; border: 1px solid var(--rule-soft);
    border-radius: 8px; background: var(--paper);
    transition: 0.2s;
    position: relative;
}
.vip-level-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}
.vip-level-item.current {
    border-color: var(--vermilion);
    box-shadow: 0 0 0 2px rgba(196, 86, 64, 0.15);
    background: rgba(231, 76, 60, 0.03);
}
.vip-level-head { display: flex; align-items: center; justify-content: space-between; }
.vip-level-name { font-weight: 700; font-size: 15px; }
.tag-current {
    font-size: 11px; padding: 2px 8px;
    background: var(--vermilion); color: #fff;
    border-radius: 10px;
}
.vip-level-info {
    font-size: 13px; color: var(--ink-soft);
    display: flex; flex-direction: column; gap: 3px;
    flex: 1;
}
.vip-exchange-btn { align-self: flex-start; margin-top: 4px; }

/* 充值套餐 */
.recharge-packages {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}
.recharge-pkg {
    padding: 14px 10px; text-align: center;
    background: var(--paper-warm); border: 1px solid var(--rule-soft);
    border-radius: var(--radius); display: flex; flex-direction: column;
    gap: 4px; align-items: center;
}
.pkg-label { font-size: 12px; color: var(--ink-fade); }
.pkg-amount { font-size: 22px; font-weight: 700; color: var(--vermilion); }
.pkg-points { font-size: 13px; }
.pkg-bonus { font-size: 11px; color: var(--moss); font-weight: 600; }
.recharge-btn { margin-top: 8px; }

/* 积分明细 */
.log-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px dashed var(--rule-soft);
}
.log-item:last-child { border-bottom: none; }
.log-left { flex: 1; }
.log-source { font-weight: 600; }
.log-time { font-size: 11px; color: var(--ink-fade); margin-top: 2px; }
.log-remark { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.log-amount { font-weight: 700; font-family: var(--sans); font-size: 16px; }
.log-amount.plus { color: var(--moss); }
.log-amount.minus { color: var(--vermilion); }
.empty-text { text-align: center; color: var(--ink-fade); padding: 20px 0; }
.loading-text { text-align: center; color: var(--ink-fade); padding: 20px 0; }

.page-btn {
    display: inline-block; padding: 4px 10px; margin: 0 2px;
    border: 1px solid var(--rule); border-radius: var(--radius-sm);
    font-size: 13px; font-family: var(--sans);
}
.page-btn.active { background: var(--vermilion); color: #fff; border-color: var(--vermilion); }

/* 兑换/充值弹窗 */
.exchange-summary {
    background: var(--paper-warm); padding: 10px;
    border-radius: var(--radius); margin: 10px 0;
    display: flex; flex-direction: column; gap: 4px; font-size: 14px;
}

.recharge-order-info { display: flex; flex-direction: column; gap: 10px; }
.order-status {
    text-align: center; padding: 8px;
    border-radius: var(--radius); font-weight: 600;
}
.order-status.pending { background: #fff3cd; color: #856404; }
.order-status.paid { background: #d4edda; color: #155724; }
.order-row {
    display: flex; justify-content: space-between;
    padding: 6px 0; border-bottom: 1px dashed var(--rule-soft);
}
.order-row:last-of-type { border-bottom: none; }
.order-tip {
    font-size: 12px; color: var(--ink-fade);
    background: var(--paper-warm); padding: 8px;
    border-radius: var(--radius);
}

.order-item {
    padding: 10px 0; border-bottom: 1px solid var(--rule-soft);
}
.order-item:last-child { border-bottom: none; }
.order-item-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 4px;
}
.order-no { font-family: var(--sans); font-size: 13px; font-weight: 600; }
.order-status-tag {
    font-size: 11px; padding: 2px 8px;
    border-radius: 10px; font-family: var(--sans);
}
.order-status-tag.pending { background: #fff3cd; color: #856404; }
.order-status-tag.paid { background: #d4edda; color: #155724; }
.order-status-tag.cancelled { background: #f8d7da; color: #721c24; }
.order-status-tag.rejected { background: #f8d7da; color: #721c24; }
.order-item-info {
    display: flex; justify-content: space-between;
    font-size: 12px; color: var(--ink-soft);
}
.order-time { color: var(--ink-fade); }
.order-remark {
    font-size: 12px; color: var(--vermilion);
    margin-top: 4px; padding: 4px 8px;
    background: var(--vermilion-soft); border-radius: var(--radius-sm);
}

/* VIP徽章通用 */
.vip-badge-mini {
    display: inline-block; padding: 1px 6px; border-radius: 8px;
    font-family: var(--sans); font-size: 10px; font-weight: 600;
    margin-left: 4px; vertical-align: middle;
}
.profile-points { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.profile-points strong { color: var(--vermilion); font-size: 16px; }

/* 后台管理样式 */
/* ========= 后台管理 ========= */
.admin-body {
    background: #f4ede0;
    color: var(--ink);
    font-family: var(--sans);
    margin: 0;
}
.admin-shell {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 100vh;
}
.admin-sidebar {
    background: #2c3e50;
    color: #d9d2c5;
    padding: 18px 14px;
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh;
    box-shadow: 2px 0 12px rgba(0,0,0,0.06);
}
.admin-brand {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 8px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 14px;
}
.admin-brand .brand-mark {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--vermilion); color: #fff;
    border-radius: 8px; font-size: 18px; font-weight: 700;
}
.admin-brand .brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.admin-brand .brand-text strong { font-size: 16px; color: #fff; }
.admin-brand .brand-text small { font-size: 11px; color: #9aa4ad; }

.admin-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.admin-nav a {
    padding: 9px 14px;
    color: #cdd5dc; font-size: 14px;
    border-radius: 6px;
    border-left: 3px solid transparent;
    transition: 0.18s;
    text-decoration: none;
}
.admin-nav a:hover:not(.active) {
    background: rgba(255,255,255,0.05);
    color: #fff;
}
.admin-nav a.active {
    background: rgba(231, 76, 60, 0.12);
    color: var(--vermilion);
    border-left-color: var(--vermilion);
    font-weight: 600;
}
.admin-side-foot {
    padding: 12px 14px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.admin-side-foot a {
    color: #9aa4ad; font-size: 13px; text-decoration: none;
}
.admin-side-foot a:hover { color: #fff; }

.admin-main { display: flex; flex-direction: column; min-width: 0; }
.admin-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    position: sticky; top: 0; z-index: 10;
}
.admin-topbar h1 { margin: 0; font-size: 18px; font-weight: 600; }
.admin-topbar .topbar-user { font-size: 13px; color: var(--ink-fade); }
.admin-content { padding: 20px 24px; flex: 1; }

/* 统计卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px; margin-bottom: 18px;
}
.stat-card {
    background: var(--paper);
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid var(--rule);
    border-left: 3px solid var(--vermilion);
    transition: 0.2s;
    overflow: hidden;
}
.stat-card:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.stat-card .stat-label { font-size: 12px; color: var(--ink-fade); margin-bottom: 4px; }
.stat-card .stat-value {
    font-size: 22px; font-weight: 700; color: var(--vermilion);
    line-height: 1.2; word-break: break-all;
}
.stat-card .stat-extra { font-size: 11px; color: var(--moss); margin-top: 4px; }
.stat-card.tone-moss { border-left-color: var(--moss); }
.stat-card.tone-moss .stat-value { color: var(--moss); }
.stat-card.tone-warn { border-left-color: #c45640; }
.stat-card.tone-warn .stat-value { color: #c45640; }
.stat-card.tone-ink { border-left-color: var(--ink-fade); }
.stat-card.tone-ink .stat-value { color: var(--ink); }

/* 卡片容器（页面通用） */
.admin-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}
.admin-card .card-head {
    padding: 12px 18px;
    border-bottom: 1px solid var(--rule-soft);
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(0,0,0,0.01);
}
.admin-card .card-head h3 { margin: 0; font-size: 15px; font-weight: 600; }
.admin-card .card-body { padding: 16px 18px; }
.admin-card .card-body-flush { padding: 0; }
.admin-card .card-foot {
    padding: 12px 18px;
    border-top: 1px solid var(--rule-soft);
    background: var(--paper-warm);
}

/* 表格 */
.admin-table {
    width: 100%; border-collapse: collapse;
    background: var(--paper);
    font-size: 13px;
}
.admin-table th, .admin-table td {
    padding: 11px 14px; text-align: left;
    border-bottom: 1px solid var(--rule-soft);
    vertical-align: middle;
}
.admin-table th {
    background: #f7f1e6;
    font-weight: 600;
    color: var(--ink-soft);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    position: sticky; top: 0;
}
.admin-table tbody tr { transition: 0.15s; }
.admin-table tbody tr:hover { background: var(--paper-warm); }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table .avatar-sm {
    width: 28px; height: 28px; border-radius: 50%;
    vertical-align: middle; margin-right: 8px;
    object-fit: cover;
}
.admin-table td.col-id { color: var(--ink-fade); font-family: var(--mono); }
.admin-table td.col-time { color: var(--ink-fade); font-family: var(--mono); font-size: 12px; }
.admin-table th.col-check, .admin-table td.col-check {
    width: 36px;
    text-align: center;
    padding-left: 12px;
    padding-right: 8px;
}
.admin-table th.col-check input,
.admin-table td.col-check input {
    width: 16px; height: 16px;
    cursor: pointer;
    vertical-align: middle;
    accent-color: var(--vermilion);
}
.bulk-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 4px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--ink-fade);
}
.bulk-bar #selCount { font-family: var(--mono); }
.bulk-bar .btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.admin-empty {
    text-align: center; color: var(--ink-fade);
    padding: 30px 20px; font-size: 14px;
}

/* 状态徽章 */
.user-status-1 { color: var(--moss); }
.user-status-0 { color: var(--vermilion); font-weight: 600; }
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px; font-weight: 600;
}
.tag-moss { background: rgba(76, 175, 80, 0.12); color: var(--moss); }
.tag-warn { background: rgba(196, 86, 64, 0.12); color: #c45640; }
.tag-fade { background: rgba(0,0,0,0.05); color: var(--ink-fade); }

/* 操作按钮区 */
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-actions button, .admin-actions a {
    padding: 5px 10px; font-size: 12px;
    border-radius: 4px;
    border: 1px solid var(--rule); background: var(--paper);
    color: var(--ink-soft); text-decoration: none;
    cursor: pointer; transition: 0.15s;
    font-family: var(--sans);
}
.admin-actions button:hover, .admin-actions a:hover {
    background: var(--paper-warm);
    border-color: var(--ink-fade);
}
.admin-actions .danger {
    color: var(--vermilion); border-color: var(--vermilion);
}
.admin-actions .danger:hover { background: var(--vermilion); color: #fff; }
.admin-actions .success {
    color: var(--moss); border-color: var(--moss);
}
.admin-actions .success:hover { background: var(--moss); color: #fff; }

/* 过滤器/搜索表单 */
.admin-filter {
    display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap;
    padding: 14px 16px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 8px;
    align-items: center;
}
.admin-filter input, .admin-filter select {
    padding: 7px 12px;
    border: 1px solid var(--rule);
    border-radius: 4px;
    font-size: 13px;
    font-family: var(--sans);
    background: #fff;
    min-width: 120px;
}
.admin-filter input:focus, .admin-filter select:focus {
    outline: none;
    border-color: var(--vermilion);
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.1);
}
.admin-filter .spacer { flex: 1; }

/* 分页 */
.admin-pagination {
    margin-top: 16px; text-align: center;
    display: flex; gap: 4px; justify-content: center;
    flex-wrap: wrap;
}
.admin-pagination .page-btn {
    display: inline-block;
    padding: 5px 11px;
    border: 1px solid var(--rule);
    border-radius: 4px;
    font-size: 13px;
    color: var(--ink-soft);
    text-decoration: none;
    background: var(--paper);
    transition: 0.15s;
}
.admin-pagination .page-btn:hover {
    border-color: var(--vermilion);
    color: var(--vermilion);
}
.admin-pagination .page-btn.active {
    background: var(--vermilion); color: #fff;
    border-color: var(--vermilion);
}

/* 详情表格（key-value） */
.admin-table.kv th { width: 130px; background: var(--paper-warm); }
.admin-table.kv td { background: var(--paper); }

/* 详情行的旧式样式（兼容） */
.admin-detail-modal {
    background: var(--paper); padding: 16px;
    border-radius: 8px; max-width: 480px;
    width: 100%; max-height: 80vh; overflow-y: auto;
}
.detail-row {
    display: flex; padding: 6px 0;
    border-bottom: 1px dashed var(--rule-soft);
}
.detail-label { width: 100px; color: var(--ink-fade); font-size: 13px; }
.detail-value { flex: 1; font-size: 14px; word-break: break-all; }

/* 响应式：窄屏折叠侧边栏 */
@media (max-width: 860px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: static; height: auto;
        flex-direction: row; align-items: center;
        padding: 10px 14px; gap: 12px;
        overflow-x: auto;
    }
    .admin-brand { padding: 0; border: 0; margin: 0; }
    .admin-brand .brand-text { display: none; }
    .admin-nav { flex-direction: row; gap: 2px; }
    .admin-nav a {
        border-left: 0;
        border-bottom: 2px solid transparent;
        padding: 6px 10px;
        white-space: nowrap;
    }
    .admin-nav a.active {
        background: transparent;
        border-bottom-color: var(--vermilion);
    }
    .admin-side-foot { display: none; }
    .admin-content { padding: 14px; }
    .admin-topbar { padding: 12px 14px; }
}
