/* ============================================================
   兽社区 · 全局样式（简白 / 移动端友好 / 模仿 Twitter 信息流）
   ============================================================ */
:root {
    --bg: #ffffff;
    --bg-soft: #f7f9fa;
    --bg-hover: #eff3f4;
    --border: #eff3f4;
    --border-strong: #cfd9de;
    --text: #0f1419;
    --text-soft: #536471;
    --text-muted: #8b98a5;
    --primary: #1d9bf0;
    --primary-dark: #1a8cd8;
    --danger: #f4212e;
    --success: #00ba7c;
    --warn: #ffad1f;
    --vip: linear-gradient(135deg, #ff9a3e, #ff5e3a);
    --radius: 16px;
    --radius-sm: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-hover: 0 6px 20px rgba(0,0,0,0.06);
    --max-w: 1100px;
    --side-w: 260px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
    background: var(--bg-soft);
    color: var(--text);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; vertical-align: middle; }
button, input, textarea, select { font: inherit; color: inherit; }
textarea { resize: vertical; }

/* ---------- 顶栏 ---------- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}
.topbar-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 10px 16px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; }
.brand-logo { font-size: 22px; }
.topnav { display: flex; align-items: center; gap: 8px; }
.nav-btn {
    padding: 7px 16px; border-radius: 999px; background: var(--text);
    color: #fff !important; font-weight: 600; font-size: 14px;
    border: 1px solid var(--text);
    transition: opacity .15s;
}
.nav-btn:hover { color: #fff !important; opacity: .85; }
.nav-btn.ghost { background: transparent; color: var(--text) !important; border-color: var(--border-strong); }
.nav-btn.ghost:hover { background: var(--bg-hover); color: var(--text) !important; }
.nav-user { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; }
.nav-user:hover { background: var(--bg-hover); }
.nav-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.nav-name { font-weight: 600; font-size: 14px; max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 主容器 ---------- */
.container {
    max-width: var(--max-w);
    margin: 24px auto;
    padding: 0 16px 80px;
}

/* ---------- 卡片 ---------- */
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.card-title { margin: 0 0 16px; font-size: 17px; font-weight: 700; }

/* ---------- VIP 标签 ---------- */
.vip-tag {
    display: inline-block;
    background: var(--vip);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}
.vip-tag.big { font-size: 12px; padding: 3px 8px; }

/* ---------- 首页布局 ---------- */
.home-wrap {
    display: grid;
    grid-template-columns: var(--side-w) 1fr;
    gap: 16px;
}
.home-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 72px; align-self: start; }
.home-feed { min-width: 0; }

.cat-card .cat-list { list-style: none; padding: 0; margin: 0; }
.cat-list li a {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px; border-radius: var(--radius-sm);
    font-weight: 500; color: var(--text);
}
.cat-list li a:hover { background: var(--bg-hover); }
.cat-list li a.active { background: var(--text); color: #fff; }
.cat-icon { font-size: 16px; }

.user-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.user-card .me-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }
.user-card .me-info { margin-bottom: 12px; }
.user-card .me-name { font-weight: 700; font-size: 16px; }
.user-card .me-status { color: var(--text-soft); font-size: 13px; margin-top: 4px; }

/* ---------- 搜索卡 ---------- */
.search-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.search-form { display: flex; align-items: center; gap: 8px; padding: 4px 12px; }
.search-icon { color: var(--text-muted); flex-shrink: 0; }
.search-form input[type=text] {
    flex: 1; border: none; outline: none; padding: 8px 0; font-size: 15px; background: transparent;
}
.search-form button {
    background: var(--text); color: #fff; border: none; padding: 8px 18px;
    border-radius: 999px; font-weight: 700; cursor: pointer;
}
.search-form button:hover { opacity: .85; }

.announce {
    background: linear-gradient(135deg, #fff7e0, #ffe6e0);
    border: 1px solid #ffd9b3;
    color: #7a4a00;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
}

/* ---------- 帖子卡片 ---------- */
.post-list { display: flex; flex-direction: column; gap: 12px; }
.post-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    transition: box-shadow .15s, transform .15s;
}
.post-card:hover { box-shadow: var(--shadow-hover); }
.post-author { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.post-author:hover { color: var(--text); }
.post-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.post-author-info { display: flex; flex-direction: column; min-width: 0; }
.post-nickname { font-weight: 700; font-size: 15px; }
.post-meta { font-size: 13px; color: var(--text-soft); }
.post-cat { color: var(--primary); }

.post-body { display: block; color: var(--text); }
.post-body:hover { color: var(--text); }
.post-title {
    margin: 4px 0 6px; font-size: 17px; font-weight: 700; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-summary {
    margin: 0 0 10px; color: var(--text-soft); font-size: 14px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-summary.vip-locked { color: var(--text-muted); font-style: italic; }
.lock-icon { margin-right: 4px; }

.post-cover {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-top: 4px;
    background: #f0f0f0;
    aspect-ratio: 16 / 9;
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-cover.placeholder { display: flex; align-items: center; justify-content: center; min-height: 160px; color: var(--text-muted); }
.cover-badge {
    position: absolute; left: 10px; top: 10px;
    background: rgba(0,0,0,.6); color: #fff;
    font-size: 12px; padding: 3px 8px; border-radius: 999px;
}
.cover-badge.vip { left: auto; right: 10px; background: var(--vip); }

.post-actions {
    display: flex; align-items: center; gap: 22px;
    margin-top: 12px; color: var(--text-soft); font-size: 13px;
}
.post-actions .action { display: inline-flex; align-items: center; gap: 5px; }
.post-actions svg { color: var(--text-muted); }
.badge { padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.pending { background: #fff4e0; color: #9a6500; border: 1px solid #ffd687; }

.empty-state {
    padding: 60px 20px; text-align: center; color: var(--text-soft);
    background: var(--bg); border-radius: var(--radius); border: 1px dashed var(--border-strong);
}

.load-more, .load-end {
    text-align: center; padding: 16px; color: var(--text-muted); font-size: 14px;
    cursor: pointer;
}
.load-more:hover { color: var(--primary); }
.hidden { display: none; }

/* ---------- 浮动加号按钮 ---------- */
.fab {
    position: fixed; right: 24px; bottom: 28px;
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(29,155,240,.4);
    z-index: 40; transition: transform .15s, background .15s;
}
.fab:hover { background: var(--primary-dark); color: #fff; transform: scale(1.05); }

/* ---------- 页脚 ---------- */
.site-footer {
    text-align: center; padding: 28px 16px; color: var(--text-muted); font-size: 13px;
}

/* ---------- 认证页 ---------- */
.auth-page .container { max-width: 400px; margin-top: 60px; padding-bottom: 40px; }
.auth-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: center;
    box-shadow: var(--shadow);
}
.auth-logo { font-size: 48px; margin-bottom: 8px; }
.auth-title { margin: 0 0 6px; font-size: 24px; font-weight: 800; }
.auth-sub { margin: 0 0 24px; color: var(--text-soft); font-size: 14px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.auth-form input {
    padding: 14px 16px; border-radius: 12px;
    border: 1px solid var(--border-strong);
    outline: none; font-size: 15px;
    transition: border-color .15s;
}
.auth-form input:focus { border-color: var(--primary); }
.auth-foot { margin-top: 18px; color: var(--text-soft); font-size: 14px; }
.auth-foot a { color: var(--primary); font-weight: 600; }

/* ---------- 通用按钮 ---------- */
.btn-primary {
    background: var(--text); color: #fff;
    border: none; padding: 11px 24px;
    border-radius: 999px; font-weight: 700; cursor: pointer;
    transition: opacity .15s;
}
.btn-primary:hover { opacity: .85; }
.btn-primary[disabled] { opacity: .5; cursor: not-allowed; }
.btn-block { display: block; width: 100%; padding: 11px; }
.btn-small {
    background: var(--primary); color: #fff;
    border: none; padding: 6px 12px;
    border-radius: 999px; font-weight: 600; font-size: 13px; cursor: pointer;
    text-decoration: none; display: inline-block;
}
.btn-small:hover { color: #fff; opacity: .9; }
.alert { padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }
.alert.error { background: #ffeef0; color: var(--danger); border: 1px solid #ffd0d6; }
.alert.success { background: #e0fff0; color: var(--success); border: 1px solid #b8f0d4; }

/* ---------- 编辑器 ---------- */
.editor-wrap { max-width: 720px; margin: 0 auto; }
.editor-card { padding: 20px; }
.editor-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.editor-title { margin: 0; font-size: 18px; font-weight: 700; }
.back-link { color: var(--text-soft); font-size: 14px; }
.editor-form { display: flex; flex-direction: column; gap: 12px; }
.editor-cat, .editor-title-input {
    border: 1px solid var(--border-strong);
    padding: 12px 14px; border-radius: 12px;
    font-size: 15px; outline: none;
}
.editor-title-input { font-size: 18px; font-weight: 600; }
.editor-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    padding: 8px; border: 1px solid var(--border); border-radius: 12px;
    background: var(--bg-soft);
}
.editor-toolbar button, .editor-toolbar .upload-btn {
    border: none; background: transparent;
    padding: 6px 10px; border-radius: 8px;
    cursor: pointer; font-size: 14px; font-weight: 600;
    transition: background .15s;
}
.editor-toolbar button:hover, .editor-toolbar .upload-btn:hover { background: var(--bg-hover); }
.upload-btn { display: inline-flex; align-items: center; gap: 4px; }
.preview-btn { margin-left: auto !important; background: var(--primary) !important; color: #fff; }
#editor-content {
    min-height: 280px; padding: 14px 16px;
    border: 1px solid var(--border-strong); border-radius: 12px;
    outline: none; font-size: 15px; line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", monospace;
}
.preview-area {
    border: 1px dashed var(--border-strong);
    padding: 16px; border-radius: 12px;
    min-height: 100px; background: var(--bg-soft);
}
.media-preview { display: flex; flex-wrap: wrap; gap: 10px; }
.media-preview .media-item {
    position: relative; width: 110px; height: 110px;
    border-radius: 10px; overflow: hidden;
    background: var(--bg-hover);
}
.media-preview .media-item img,
.media-preview .media-item video { width: 100%; height: 100%; object-fit: cover; }
.media-preview .remove {
    position: absolute; top: 4px; right: 4px;
    background: rgba(0,0,0,.6); color: #fff; border: none;
    width: 22px; height: 22px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 14px; line-height: 1;
}
.vip-check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: var(--text-soft); }
.tip-box { background: #fff7e0; border: 1px solid #ffe08a; color: #7a4a00; padding: 10px 14px; border-radius: 10px; font-size: 13px; }
.editor-foot { display: flex; justify-content: flex-end; }

/* ---------- 帖子详情 ---------- */
.detail-wrap { max-width: 720px; margin: 0 auto; }
.post-detail .detail-author { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.detail-title { font-size: 26px; line-height: 1.3; margin: 8px 0 16px; font-weight: 800; }
.md-content {
    font-size: 16px; line-height: 1.75; word-break: break-word;
}
.md-content h1, .md-content h2, .md-content h3, .md-content h4 { margin: 1.2em 0 .6em; font-weight: 800; }
.md-content h1 { font-size: 24px; }
.md-content h2 { font-size: 20px; }
.md-content h3 { font-size: 18px; }
.md-content p { margin: .6em 0; }
.md-content img { display: block; max-width: 100%; border-radius: var(--radius-sm); margin: 12px 0; }
.md-content code { background: var(--bg-soft); padding: 2px 6px; border-radius: 4px; font-size: 90%; }
.md-content pre.md-code { background: #0f1419; color: #f0f0f0; padding: 14px 16px; border-radius: var(--radius-sm); overflow-x: auto; }
.md-content pre.md-code code { background: transparent; color: inherit; padding: 0; }
.md-content blockquote { border-left: 4px solid var(--primary); margin: 1em 0; padding: 4px 14px; background: var(--bg-soft); color: var(--text-soft); border-radius: 0 8px 8px 0; }
.md-content ul, .md-content ol { padding-left: 22px; }
.md-content hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }
.md-content a { color: var(--primary); }

.media-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 16px 0; }
.media-gallery img { width: 100%; height: auto; border-radius: var(--radius-sm); cursor: zoom-in; }
.media-gallery video { width: 100%; border-radius: var(--radius-sm); background: #000; }

.detail-stats {
    display: flex; gap: 18px; padding: 12px 0;
    color: var(--text-soft); font-size: 13px;
    border-top: 1px solid var(--border); margin-top: 16px;
}

.vip-mask {
    background: linear-gradient(135deg, #fff7e0, #ffe6f0);
    border: 1px solid #ffd6e3;
    border-radius: var(--radius);
    padding: 40px 24px; text-align: center;
}
.vip-mask .mask-icon { font-size: 48px; margin-bottom: 8px; }
.vip-mask h2 { margin: 8px 0; }
.vip-mask p { color: var(--text-soft); margin: 0 0 18px; }

.action-bar { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid var(--border); margin-top: 12px; flex-wrap: wrap; }
.act-btn {
    background: var(--bg-soft); border: 1px solid var(--border);
    padding: 8px 14px; border-radius: 999px;
    display: inline-flex; align-items: center; gap: 6px;
    cursor: pointer; font-weight: 600; font-size: 14px;
    transition: background .15s, color .15s;
}
.act-btn:hover { background: var(--bg-hover); }
.act-btn.active { background: #ffeef0; color: var(--danger); border-color: #ffd0d6; }
.act-btn.active svg { color: var(--danger); }
.act-btn.approve { background: var(--success); color: #fff; border-color: var(--success); }
.act-btn.delete { background: transparent; color: var(--danger); border-color: #ffd0d6; }
.login-prompt { padding: 14px; text-align: center; color: var(--text-soft); }
.login-prompt a { color: var(--primary); font-weight: 600; }

/* ---------- 评论 ---------- */
.comments-card { margin-top: 16px; }
.comment-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.comment-form textarea {
    border: 1px solid var(--border-strong);
    border-radius: 12px; padding: 12px 14px; min-height: 80px; outline: none;
    font-size: 15px;
}
.comment-form button { align-self: flex-end; }
.comment-list { display: flex; flex-direction: column; gap: 14px; }
.comment-item { display: flex; gap: 10px; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.comment-body { flex: 1; background: var(--bg-soft); border-radius: 14px; padding: 10px 14px; }
.comment-head { display: flex; justify-content: space-between; align-items: baseline; }
.comment-name { font-weight: 700; font-size: 14px; }
.comment-time { color: var(--text-muted); font-size: 12px; }
.comment-content { color: var(--text); font-size: 14px; margin-top: 4px; word-break: break-word; }

/* ---------- 个人资料 ---------- */
.profile-wrap { max-width: 720px; margin: 0 auto; }
.avatar-edit { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; margin-bottom: 12px; }
.avatar-edit img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); box-shadow: var(--shadow); }
.avatar-edit-tip { color: var(--primary); font-size: 13px; font-weight: 600; }
.avatar-edit input[type=file] { display: none; }
.profile-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--text-soft); font-weight: 600; }
.field input, .field textarea {
    border: 1px solid var(--border-strong);
    padding: 11px 14px; border-radius: 12px;
    outline: none; font-size: 15px; background: var(--bg);
}
.field input:disabled { background: var(--bg-soft); color: var(--text-soft); }
.field textarea { min-height: 70px; }
.vip-info { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg-soft); border-radius: 12px; font-size: 14px; }

.tab-bar { display: flex; border-bottom: 1px solid var(--border); margin: -20px -20px 16px; }
.tab-bar a {
    flex: 1; text-align: center; padding: 14px 0;
    font-weight: 700; color: var(--text-soft);
    border-bottom: 3px solid transparent;
}
.tab-bar a.active { color: var(--text); border-bottom-color: var(--primary); }

/* 用户主页 */
.user-header { display: flex; gap: 18px; align-items: flex-start; }
.user-big-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.user-meta h1 { margin: 0 0 6px; font-size: 22px; }
.user-bio { color: var(--text-soft); margin: 4px 0 10px; }
.user-stats { display: flex; gap: 14px; color: var(--text-soft); font-size: 13px; }
.user-stats b { color: var(--text); font-size: 16px; }

/* ---------- 会员页 ---------- */
.vip-wrap { max-width: 880px; margin: 0 auto; }
.vip-hero {
    background: linear-gradient(135deg, #ffeede, #ffe2e2);
    border-radius: 20px; padding: 36px 24px; text-align: center; margin-bottom: 24px;
}
.vip-hero .hero-icon { font-size: 52px; }
.vip-hero h1 { margin: 6px 0 8px; font-size: 28px; }
.vip-hero p { margin: 0; color: var(--text-soft); }
.hero-status { margin-top: 10px; font-size: 14px; color: var(--text-soft); }

.vip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.vip-plan {
    position: relative;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 26px 22px;
    text-align: center;
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.vip-plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.vip-plan.recommend { border-color: var(--primary); }
.plan-badge {
    position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #fff;
    padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.plan-name { font-size: 18px; font-weight: 700; }
.plan-days { color: var(--text-soft); margin: 4px 0; }
.plan-price { margin: 14px 0; color: var(--text-soft); }
.plan-price b { color: var(--primary); font-size: 36px; font-weight: 800; }
.plan-desc { color: var(--text-soft); font-size: 13px; margin-bottom: 16px; min-height: 36px; }

.vip-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.feature-item .f-icon { font-size: 32px; }
.feature-item b { display: block; margin: 8px 0; }
.feature-item p { margin: 0; color: var(--text-soft); font-size: 13px; }

/* ---------- 支付 ---------- */
.pay-wrap { max-width: 480px; margin: 0 auto; }
.pay-card.text-center { text-align: center; }
.pay-product { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.pay-product-name { font-weight: 700; font-size: 16px; }
.pay-product-desc { color: var(--text-soft); font-size: 13px; }
.pay-product-price b { color: var(--primary); font-size: 22px; }
.pay-methods { padding-top: 16px; }
.pay-tip { color: var(--text-soft); font-size: 13px; margin: 0 0 12px; }
.pay-method {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; border: 1px solid var(--border-strong);
    border-radius: 14px; margin-bottom: 10px;
    font-weight: 600; transition: border-color .15s, background .15s;
}
.pay-method:hover { border-color: var(--primary); background: var(--bg-soft); }
.pm-icon { font-size: 24px; }
.pm-name { flex: 1; }
.pm-arrow { color: var(--text-muted); font-size: 20px; }
.big-icon { font-size: 48px; }
.big-icon.ok { color: var(--success); }

/* ---------- 订单 ---------- */
.order-list { display: flex; flex-direction: column; gap: 10px; }
.order-item { display: flex; justify-content: space-between; align-items: center; padding: 14px; background: var(--bg-soft); border-radius: 12px; gap: 10px; }
.order-name { font-weight: 700; }
.order-meta { color: var(--text-soft); font-size: 12px; margin-top: 4px; }
.order-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.order-price { font-weight: 700; color: var(--primary); }
.status-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.status-tag.ok { background: #e0fff0; color: var(--success); }
.status-tag.wait { background: #fff4e0; color: #9a6500; }
.status-tag.err { background: #ffeef0; color: var(--danger); }

/* ---------- Toast ---------- */
.toast {
    position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%);
    background: rgba(15,20,25,.92); color: #fff;
    padding: 10px 18px; border-radius: 999px;
    z-index: 200; font-size: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    animation: toast-in .2s;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- 移动端适配 ---------- */
.mobile-hide { display: inline-flex; }
@media (max-width: 860px) {
    .home-wrap { grid-template-columns: 1fr; }
    .home-side { position: static; order: 2; }
    .home-feed { order: 1; }
    .vip-grid { grid-template-columns: 1fr; }
    .vip-features { grid-template-columns: 1fr; }
    .container { padding: 0 12px 80px; margin-top: 12px; }
    .nav-name { display: none; }
    .post-card { padding: 14px 14px; }
    .detail-title { font-size: 22px; }
    .media-gallery { grid-template-columns: 1fr; }
    .user-header { flex-direction: column; align-items: center; text-align: center; }
    .user-stats { justify-content: center; }
    .fab { right: 16px; bottom: 16px; width: 52px; height: 52px; }
    .mobile-hide { display: none !important; }
    .cat-list { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
    .cat-list::-webkit-scrollbar { display: none; }
    .cat-list li { flex-shrink: 0; }
    .cat-list li a { padding: 8px 14px; white-space: nowrap; }
    .cat-card .card-title { display: none; }
    .user-card { display: none; }
}
@media (max-width: 480px) {
    .nav-btn { padding: 6px 12px; font-size: 13px; }
    .brand-name { font-size: 16px; }
    .detail-title { font-size: 20px; }
    .vip-hero { padding: 26px 16px; }
    .vip-hero h1 { font-size: 24px; }
}
