:root {
    --bg: #f5f5f5;
    --card: #fff;
    --text: #333;
    --text-sub: #555;
    --text-muted: #999;
    --border: #e4e7ed;
    --divider: #f0f0f0;
    --hover: #f7f8f9;
    --header-bg: #fff;
    --header-shadow: 0 1px 2px rgba(0, 0, 0, .05);
    --primary: #007fff;
    --primary-dark: #006fd6;
    --primary-soft: #e8f4ff;
    --primary-border: #cfe8ff;
    --mark-color: red;
    --search-bg: #f5f5f5;
    --search-icon: #b8c0c8;
    --search-focus: rgba(0, 127, 255, .18);
    --block-min-h: 160px;
    --lock-vh: 100dvh;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { height: 100%; overflow-y: scroll; scrollbar-gutter: stable; -webkit-text-size-adjust: none !important; text-size-adjust: none !important; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: var(--lock-vh); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6; touch-action: manipulation; overscroll-behavior-y: none; -webkit-text-size-adjust: none !important; text-size-adjust: none !important; }
a, button, input, textarea, select, img, label { touch-action: manipulation; }
img { max-width: 100%; height: auto; -webkit-user-drag: none; user-select: none; }
body, .site-header, .cat-nav, .nav-item, .nav-item::after, .search-form, #post-list, .article-list, .hot-box, .hot-item, .hot-num, .page-btn, .site-footer, .post-detail, .feed-status, mark { transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 10px; }
a { color: inherit; text-decoration: none; }
mark { background: none; color: var(--mark-color); font-weight: bold; padding: 0; }

/* ---------- header ---------- */
.site-header { background: var(--header-bg); box-shadow: var(--header-shadow); position: sticky; top: 0; z-index: 100; }
.header-top { display: flex; align-items: center; height: 60px; gap: 12px; }
.logo { display: flex; align-items: center; white-space: nowrap; margin-right: 10px; }
.logo img { height: 32px; width: 105px; display: block; border-radius: 6px; }
.cat-nav { flex: 1; min-width: 0; display: flex; align-items: center; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cat-nav::-webkit-scrollbar { display: none; }
.nav-item { position: relative; display: inline-flex; align-items: center; padding: 0 10px; line-height: 58px; color: var(--text-sub); white-space: nowrap; font-size: 16px; }
.nav-item::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: transparent; }
.nav-item:hover { color: var(--primary); }
.nav-item.active { color: var(--primary); font-weight: 600; }
.nav-item.active::after { background: var(--primary); }
.search-form { flex: 0 0 300px; width: 300px; height: 38px; display: flex; align-items: center; border-radius: 4px; background: var(--search-bg); }
.search-form:focus-within { box-shadow: 0 0 0 2px var(--search-focus); }
.icon { display: inline-block; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.125em; }
.search-icon { width: 16px; height: 16px; color: var(--search-icon); }
.search-form input { flex: 1; border: none; outline: none; padding: 0 12px; font-size: 14px; background: transparent; color: var(--text); min-width: 0; }
.search-form button { border: none; background: none; cursor: pointer; display: flex; align-items: center; padding: 0 12px; }
.search-form button:hover .search-icon { color: var(--primary); }

/* ---------- feed ---------- */
.main { display: flex; flex: 1; flex-direction: column; width: 100%; padding: 10px 10px 10px; }
.home-layout { display: flex; gap: 14px; align-items: flex-start; }
.feed-main { flex: 1; min-width: 0; }
.hot-side { flex: 0 0 300px; width: 300px; }
/* 详情页双列布局：左主栏 + 右排行栏，风险提示在主栏下方 */
.home-layout.post-page { display: grid; grid-template-columns: 1fr 300px; gap: 14px; align-items: start; }
.home-layout.post-page .feed-main { grid-column: 1; grid-row: 1; min-width: 0; }
.home-layout.post-page .hot-side { grid-column: 2; grid-row: 1; }
.home-layout.post-page .risk-tip { grid-column: 1; grid-row: 2; }
.feed-status { color: var(--text-sub); font-size: 13px; padding: 0 24px; line-height: 56px; margin-bottom: 10px; background: var(--card); border-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, .03); }
.feed-status .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); margin-right: 6px; vertical-align: 1px; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

#post-list { background: var(--card); border-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, .03); }
.article-ul { list-style: none; }
.article-list { display: flex; align-items: center; width: 100%; padding: 16px 24px; border-bottom: 1px solid var(--divider); }
.article-list:hover { background: var(--hover); }
.article-list .figure { flex: 0 0 22px; height: 22px; width: 22px; margin-right: 10px; background-size: 22px 22px; background-repeat: no-repeat; }
.article-list .title { flex: 1; font-size: 16px; font-weight: 500; margin: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.article-list .title a:hover { color: var(--primary); }
.article-list .badge { flex: 0 0 auto; font-size: 12px; color: var(--text-muted); font-weight: 400; }
.article-list.top .title a { color: var(--text); font-weight: 600; }
.article-list.top .title a:hover { color: var(--primary); }
.article-list.top .top-flag { flex: 0 0 auto; margin-right: 10px; background: #ff5a5f; color: #fff; font-size: 12px; line-height: 1; padding: 3px 8px; border-radius: 4px; font-weight: 400; white-space: nowrap; }

/* ---------- live realtime ---------- */
.feed-status { display: flex; align-items: center; justify-content: space-between; }
.status-left { display: inline-flex; align-items: center; }
.live-count { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; line-height: 22px; font-variant-numeric: tabular-nums; box-shadow: 0 2px 6px rgba(0, 127, 255, .35); animation: liveBlink 1s infinite; }
.live-count.warn { animation: livePulse .5s infinite; }
.live-count.done { display: inline; height: auto; min-width: 0; padding: 0; border-radius: 0; background: none; color: var(--text); font-weight: 400; box-shadow: none; animation: none; white-space: nowrap; }
@keyframes liveBlink { 0%, 100% { opacity: 1; } 50% { opacity: .75; } }
@keyframes livePulse { 50% { opacity: .5; } }

.article-list.is-new { background: #e7f2ff; }
.article-list.is-new:hover { background: #dbeeff; }

/* ---------- empty state ---------- */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 20px; text-align: center; list-style: none; }
.empty svg { color: #d8dde6; margin-bottom: 12px; }
.empty-title { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.empty-tip { font-size: 13px; color: var(--text-muted); line-height: 1.8; max-width: 320px; }
.empty-home { margin-top: 18px; padding: 9px 28px; border-radius: 999px; background: #f2f7ff; color: var(--primary); font-size: 14px; font-weight: 500; }
.empty-home:hover { background: var(--primary-soft); color: var(--primary-dark); }

/* ---------- hot sidebar ---------- */
.hot-box { width: 100%; min-height: 440px; background: var(--card); border-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, .03); }
.hot-box + .hot-promo { margin-top: 10px; }
.hot-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; border-bottom: 1px solid var(--divider); }
.hot-tabs { display: flex; gap: 12px; }
.hot-tab { cursor: pointer; padding: 2px 0; font-size: 14px; color: var(--text-muted); user-select: none; }
.hot-tab:hover { color: var(--primary); }
.hot-tab.active { color: var(--primary); font-weight: 600; }
.hot-list { list-style: none; width: 100%; min-height: 395px; display: flex; flex-direction: column; }
.hot-item { display: flex; align-items: center; gap: 8px; padding: 10px 15px; border-bottom: 1px solid var(--divider); }
.hot-item:last-child { border-bottom: none; }
.hot-item:hover { background: var(--hover); }
.hot-num { flex: 0 0 20px; width: 20px; height: 20px; line-height: 20px; text-align: center; font-size: 12px; color: var(--text-muted); background: var(--hover); font-weight: bold; }
.hot-num.top { background: var(--primary); color: #fff; }
.hot-link { flex: 1; font-size: 15px; color: var(--text-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-link:hover { color: var(--primary); }
.hot-empty { padding: 30px 15px; text-align: center; color: var(--text-muted); font-size: 13px; list-style: none; margin: auto 0; }

/* ---------- hot promo (排行榜下方推广位) ---------- */
.hot-promo { background: var(--bg); border-radius: 4px; }
.hot-promo > * + * { margin-top: 10px; }
.joinGroup { border-radius: 10px; overflow: hidden; position: relative; isolation: isolate; }
.joinGroup a { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 13px 14px; }
.joinGroup img { display: block; }
.joinGroup::before { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 42%; background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.4) 50%, rgba(255,255,255,0) 100%); transform: skewX(-18deg); z-index: 1; animation: jg-shine 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes jg-shine { 0%, 50% { left: -70%; } 88%, 100% { left: 140%; } }
.jg-icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #fff; }
.jg-icon img { width: 40px; height: 40px; margin: 0; object-fit: cover; }
.jg-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; line-height: 1.25; }
.jg-mid b { font-size: 14.5px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .3px; }
.jg-mid span { font-size: 12px; color: rgba(255, 255, 255, .9); }
.jg-btn { flex: 0 0 auto; padding: 5px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 800; background: #fff; box-shadow: 0 1px 5px rgba(0, 0, 0, .15); font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; white-space: nowrap; letter-spacing: .5px; }
.jg-live { background: linear-gradient(120deg, #ffe9cd 0%, #ffcb92 55%, #ffb877 100%); box-shadow: 0 3px 10px rgba(255, 176, 110, .32); transition: transform .18s ease, box-shadow .18s ease; }
.jg-live .jg-mid b { color: #b25c00; }
.jg-live .jg-mid span { color: rgba(150, 78, 0, .74); }
.jg-live .jg-btn { color: #d97a00; }
.jg-live:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255, 170, 90, .38); }
.jg-bug { background: linear-gradient(120deg, #d8f6e3 0%, #aee9c6 55%, #93dfb2 100%); box-shadow: 0 3px 10px rgba(80, 200, 130, .32); transition: transform .18s ease, box-shadow .18s ease; }
.jg-bug .jg-mid b { color: #0b8a50; }
.jg-bug .jg-mid span { color: rgba(11, 120, 70, .74); }
.jg-bug .jg-btn { color: #0b9d5a; }
.jg-bug:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(70, 190, 120, .38); }
.promo-banner { display: block; }
.promo-banner img { display: block; width: 100%; height: auto; border-radius: 10px; }
.promo-qr { text-align: center; }
.promo-qr img { display: block; width: 100%; height: auto; }

/* ---------- pagination ---------- */
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 18px 0 10px; }
.page-btn { background: var(--card); border: 1px solid var(--border); padding: 5px 11px; font-size: 13px; color: var(--text-sub); }
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn.disabled { color: var(--text-muted); pointer-events: none; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--divider); background: var(--header-bg); color: var(--text-muted); font-size: 13px; padding: 22px 0; text-align: center; margin-top: auto; }
.site-footer a { color: var(--text-sub); }
.site-footer a:hover { color: var(--primary); }

/* ---------- post detail ---------- */
.post-detail { flex: 1; background: var(--card); padding: 20px; min-height: 360px; }
.post-detail h1 { font-size: 22px; line-height: 1.5; margin-bottom: 12px; word-break: break-word; color: var(--text); }
.post-meta { display: flex; gap: 14px; color: var(--text-muted); font-size: 13px; padding-bottom: 14px; border-bottom: 1px solid var(--divider); margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.post-meta .meta-cat { color: var(--primary); }
.post-copy-btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; font-size: 13px; line-height: 1.6; color: var(--primary); background: var(--primary-bg); border: 1px solid var(--primary-border); border-radius: 4px; cursor: pointer; font-family: inherit; white-space: nowrap; margin-left: auto; -webkit-tap-highlight-color: transparent; transition: transform 0.15s ease; }
.post-copy-btn:active { transform: scale(0.92); }
@media (hover: hover) {
    .post-copy-btn:hover { background: var(--primary); color: #fff; }
}
.post-copy-btn .icon { width: 13px; height: 13px; }
.post-meta-ops { margin-left: auto; display: inline-flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; min-width: 0; }
.post-meta-ops .admin-edit-btn { margin-left: 0; }
.admin-edit-btn, .admin-edit-link { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; font-size: 13px; color: var(--primary); background: var(--primary-bg); border: 1px solid var(--primary-border); border-radius: 4px; text-decoration: none; white-space: nowrap; }
.admin-edit-btn:hover, .admin-edit-link:hover { background: var(--primary); color: #fff; }
.admin-del-form { margin: 0; display: inline-flex; }
.admin-del-btn { color: #e4393c; background: #fef0f0; border-color: #fde2e2; cursor: pointer; font-family: inherit; }
.admin-del-btn:hover { background: #e4393c !important; color: #fff !important; }
.post-content { font-size: 16px; color: var(--text); word-break: break-word; }
.post-content img { max-width: 450px; height: auto; display: block; margin: 10px 0; cursor: zoom-in; border-radius: 4px; background: var(--hover); }
.post-content a { color: var(--primary); word-break: break-all; }
.post-content p { margin: 8px 0; }
.post-content h1, .post-content h2, .post-content h3, .post-content h4 { margin: 16px 0 8px; line-height: 1.4; }
.post-content blockquote { border-left: 3px solid var(--primary); background: var(--primary-soft); padding: 8px 12px; margin: 8px 0; color: var(--text-sub); }
.post-content table { border-collapse: collapse; width: 100%; margin: 8px 0; }
.post-content table td, .post-content table th { border: 1px solid var(--divider); padding: 6px 10px; }
.post-content pre { background: var(--hover); padding: 10px 12px; overflow-x: auto; margin: 8px 0; }

/* ---------- image lightbox ---------- */
.lightbox-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, .88); display: flex; align-items: center; justify-content: center; padding: 20px; overflow: auto; }
.lightbox-overlay .lightbox-img { max-width: 100%; max-height: 100%; margin: auto; border-radius: 6px; box-shadow: 0 10px 50px rgba(0, 0, 0, .55); transition: transform .18s ease; user-select: none; -webkit-user-drag: none; cursor: zoom-in; }
.lightbox-overlay .lightbox-img.zoomed { cursor: zoom-out; }
.lightbox-count { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; background: rgba(0, 0, 0, .5); padding: 3px 12px; border-radius: 12px; z-index: 10001; }
.lightbox-close { position: fixed; top: 10px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; z-index: 10001; }
.lightbox-close:hover { background: rgba(255, 255, 255, .32); }
.lightbox-prev, .lightbox-next { position: fixed; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; z-index: 10001; }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255, 255, 255, .32); }
.lightbox-prev.hide, .lightbox-next.hide, .lightbox-count.hide { display: none; }
.lightbox-toolbar { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .14); padding: 6px 8px; border-radius: 22px; backdrop-filter: blur(6px); z-index: 10001; }
.lightbox-toolbar button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox-toolbar button:hover { background: rgba(255, 255, 255, .35); }
.lightbox-toolbar button.zoom-scale { width: auto; padding: 0 10px; font-size: 13px; border-radius: 14px; cursor: default; background: transparent; pointer-events: none; }
.lightbox-toolbar .toolbar-sep { width: 1px; height: 18px; background: rgba(255, 255, 255, .3); }

/* ---------- weapp / qr copy & comments ---------- */
.weapp-copy, .qr-copy { display: inline-block; max-width: 100%; margin: 8px 0; padding: 10px 12px; background: var(--primary-soft); border: 1px dashed var(--primary); border-radius: 8px; color: var(--primary); font-size: 13px; word-break: break-all; cursor: pointer; }
.weapp-copy:active, .qr-copy:active { opacity: .8; }
.post-comments { margin: 10px 0; background: var(--card); border-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, .03); padding: 16px 20px; min-height: var(--block-min-h); }
.post-comments .comments-title { display: flex; align-items: center; gap: 6px; font-size: 17px; margin-bottom: 10px; color: var(--text); }
.post-comments .comments-title .icon { color: var(--primary); }
.post-comments .comments-title em { font-style: normal; color: var(--primary); }
.post-comments .no-comment { padding: 32px 0; text-align: center; color: var(--text-muted); font-size: 14px; }
.post-comments .comments-title .admin-edit-btn { margin-left: auto; }
.post-comments .comment-add, .post-comments .comment-edit, .post-edit-form { margin-bottom: 12px; padding: 10px; background: var(--bg); border: 1px dashed var(--divider); border-radius: 4px; }
.post-comments .comment-add textarea, .post-comments .comment-edit textarea, .post-comments .comment-editor { width: 100%; box-sizing: border-box; font-size: 14px; border: 1px solid #dcdfe6; border-radius: 4px; background: var(--card); color: var(--text); text-align: left; }
.post-comments .comment-add textarea, .post-comments .comment-edit textarea { min-height: 64px; padding: 8px 10px; resize: vertical; }
.post-comments .comment-add-actions, .post-comments .comment-edit-actions { margin-top: 8px; display: flex; gap: 8px; }
.post-comments .btn-save, .post-edit-form .btn-save { padding: 5px 16px; font-size: 13px; color: #fff; background: var(--primary); border: none; border-radius: 4px; cursor: pointer; }
.post-comments .btn-cancel, .post-edit-form .btn-cancel { padding: 5px 14px; font-size: 13px; color: var(--text-muted); background: none; border: 1px solid var(--divider); border-radius: 4px; cursor: pointer; }
/* 文章内联编辑（与后台富文本编辑器一致：边框/背景/高度/链接色） */
.post-edit-form .comment-editor { width: 100%; box-sizing: border-box; font-size: 14px; border: 1px solid #dcdfe6; border-radius: 4px; background: var(--card); color: var(--text); text-align: left; z-index: 0; }
.post-edit-form .w-e-toolbar { border: 1px solid #dcdfe6; border-bottom: none; border-radius: 4px 4px 0 0; }
.post-edit-form .w-e-text-container { min-height: 300px; }
.post-edit-form .w-e-text-container [data-slate-editor] { min-height: 300px; }
.post-edit-form .w-e-text-container a { color: #409eff; }
.post-edit-form .w-e-text-container img { max-width: 450px !important; height: auto !important; border-radius: 4px; }
.post-comments .comment-ops { margin-left: auto; display: inline-flex; gap: 6px; }
.post-comments .comment-op { display: inline-flex; align-items: center; gap: 3px; padding: 2px 6px; font-size: 12px; color: var(--text-muted); background: none; border: none; cursor: pointer; }
.post-comments .comment-op:hover { color: var(--primary); }
.comment-body a, .reply-content a { color: var(--primary); word-break: break-all; }
.comment-body img, .reply-content img { max-width: 450px; height: auto; display: block; margin: 8px 0; border-radius: 4px; background: var(--hover); cursor: zoom-in; }
.comment-item { padding: 10px 0; border-bottom: 1px dashed var(--divider); }
.comment-item:last-child { border-bottom: none; }
.comment-head { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--text-muted); margin-bottom: 4px; flex-wrap: wrap; }
.comment-author { color: var(--primary); font-weight: 600; }
.comment-body { font-size: 15px; color: var(--text); word-break: break-word; }
.comment-replies { margin: 8px 0 0; padding-left: 14px; border-left: 2px solid var(--divider); }
.nf-page { flex: 1; display: flex; align-items: center; justify-content: center; padding: 60px 20px; }
.nf-box { text-align: center; max-width: 480px; width: 100%; background: var(--card); border-radius: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, .03); padding: 50px 30px; }
.nf-code { font-size: 76px; font-weight: 800; line-height: 1; color: #999; letter-spacing: 2px; }
.nf-msg { margin-top: 18px; font-size: 18px; font-weight: 600; color: var(--text); }
.nf-tip { margin-top: 8px; font-size: 13px; color: var(--text-muted); }
.nf-actions { margin-top: 28px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.nf-btn { display: inline-flex; align-items: center; padding: 9px 26px; font-size: 14px; border-radius: 4px; text-decoration: none; color: var(--text-muted); border: 1px solid var(--divider); transition: all .15s; }
.nf-btn:hover { color: var(--primary); border-color: var(--primary); }
.nf-btn-home { color: #fff; background: var(--primary); border-color: var(--primary); }
.nf-btn-home:hover { color: #fff; opacity: .88; }
.risk-tip { margin: 10px 0; background: var(--card); border-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, .03); padding: 16px 20px; }
.risk-tip .risk-tip-title { display: flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.risk-tip .risk-tip-title .icon { color: var(--primary); }
.risk-tip .risk-tip-body { font-size: 13px; line-height: 1.7; color: #b7791f; background: #fff8e6; border: 1px solid #f5e2b0; border-radius: 6px; padding: 10px 12px; }
.reply-item { margin-top: 6px; font-size: 14px; }
.reply-author { color: var(--primary); font-weight: 600; margin-right: 8px; }
.reply-time { color: var(--text-muted); font-size: 12px; margin-right: 8px; }
.reply-content { color: var(--text); margin-top: 2px; word-break: break-word; }
#app-toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); background: rgba(0, 0, 0, .75); color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px; z-index: 10000; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
#app-toast.show { opacity: 1; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .container { max-width: 100%; }
    .home-layout { display: block; }
    .home-layout.post-page { display: block; }
    .hot-side { display: block; width: 100%; margin-top: 10px; }
    /* 详情页手机端：Q群入口+图片在前，排行榜在后 */
    .post-page .hot-side { display: flex; flex-direction: column; gap: 10px; }
    .post-page .hot-side .hot-promo { order: 1; margin-top: 0; }
    .post-page .hot-side .hot-box { order: 2; }
    .post-page .risk-tip .risk-tip-body { font-size: 12px; }
    .hot-box { min-height: 0; }
    .hot-list { min-height: 0; }
    .post-comments { min-height: 80px; }
    .header-top { flex-wrap: wrap; height: auto; padding: 8px 0 0; }
    .search-form { margin-left: auto; }
    .cat-nav { flex: 0 0 100%; order: 3; line-height: 36px; }
    .nav-item { line-height: 36px; font-size: 14px; padding: 0 7px; }
    .nav-item::after { left: 7px; right: 7px; }
    .post-content img { max-width: 85%; }
}
@media (max-width: 640px) {
    .container { padding: 8px 8px; }
    .feed-status { line-height: 38px; padding: 0 5px; margin-top: 5px; margin-bottom: 5px; }
    .header-top { padding: 10px 0 6px; }
    .logo { margin-left: 10px; }
    .logo img { height: 28px; width: 92px; }
    .search-form { flex: 0 0 auto; width: 170px; margin-left: auto; margin-right: 5px; }
    .article-list { padding: 11px 5px; }
    .article-list .title { font-size: 14px; margin: 0 8px; }
    .post-detail { flex: 1; padding: 10px 10px 10px; }
    .post-detail h1 { font-size: 18px; }
    .post-meta { row-gap: 10px; }
    .post-meta-ops { flex: 1 1 100%; margin-left: 0; justify-content: flex-start; gap: 6px; }
    .post-meta-ops .admin-edit-btn, .post-meta-ops .admin-edit-link { padding: 4px 10px; font-size: 13px; }
}
