:root {
    --desktop-bg: #f3f5f4;
    --desktop-panel: #ffffff;
    --desktop-ink: #1d2421;
    --desktop-muted: #68736e;
    --desktop-line: #dde3e0;
    --desktop-red: #b53934;
    --desktop-red-dark: #8f2925;
    --desktop-green: #285c4a;
    --desktop-gold: #aa7c2d;
    --desktop-shadow: 0 10px 28px rgba(24, 38, 32, .08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--desktop-bg); }
.admin-html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}
body {
    min-width: 320px;
    color: var(--desktop-ink);
    background: var(--desktop-bg) !important;
    font-family: "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif !important;
    letter-spacing: 0;
}
a { text-decoration: none; }
.desktop-shell { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.desktop-utility { height: 34px; color: #cbd4d0; background: #18221e; font-size: 12px; }
.desktop-utility .desktop-shell { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.desktop-utility .desktop-shell > div { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.desktop-utility a { color: #e0e6e3; }
.desktop-register { padding: 5px 12px; border-radius: 4px; color: #fff !important; background: var(--desktop-red); }
.desktop-site-header { position: sticky; top: 0; z-index: 900; border-bottom: 1px solid var(--desktop-line); background: rgba(255,255,255,.97); }
.desktop-header-inner { min-height: 72px; display: flex; align-items: stretch; gap: 36px; }
.desktop-brand { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; color: var(--desktop-ink); }
.desktop-brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #8c2521; border-radius: 5px; color: #fff; background: var(--desktop-red); font: 700 23px serif; box-shadow: inset 0 0 0 3px rgba(255,255,255,.12); }
.desktop-brand > span:last-child { display: flex; flex-direction: column; }
.desktop-brand strong { font-size: 20px; }
.desktop-brand small { margin-top: 2px; color: var(--desktop-muted); font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.desktop-main-nav { display: flex; flex: 1; align-items: stretch; margin-left: 0; }
.desktop-main-nav a { position: relative; min-width: 82px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 13px; color: #46514c; font-size: 14px; font-weight: 600; }
.desktop-main-nav svg, .desktop-publish svg { width: 17px; height: 17px; }
.desktop-main-nav a::after { content: ""; position: absolute; right: 14px; bottom: -1px; left: 14px; height: 3px; background: var(--desktop-red); transform: scaleX(0); }
.desktop-main-nav a:hover, .desktop-main-nav a.active { color: var(--desktop-red); }
.desktop-main-nav a.active::after { transform: scaleX(1); }
.desktop-main-nav a[href="index.php"] { align-self: center; min-height: 38px; border: 1px solid var(--desktop-line); border-radius: 4px; background: #fff; }
.desktop-main-nav a[href="admin.php"] { margin-left: auto; }
.desktop-publish { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; align-self: center; margin-left: auto; padding: 0 15px; border-radius: 4px; color: #fff; background: var(--desktop-red); font-weight: 700; }
.desktop-publish:hover { background: var(--desktop-red-dark); }
.desktop-profile-action, .desktop-membership-action, .desktop-recharge-nav-action { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; align-self: center; margin-left: auto; padding: 0 15px; border: 1px solid var(--desktop-line); border-radius: 4px; color: #46514c; background: #fff; font-weight: 700; white-space: nowrap; }
.desktop-profile-action:hover, .desktop-membership-action:hover, .desktop-membership-action.active, .desktop-recharge-nav-action:hover, .desktop-recharge-nav-action.active { color: var(--desktop-red); border-color: var(--desktop-red); }
.desktop-profile-action svg, .desktop-membership-action svg, .desktop-recharge-nav-action svg { width: 17px; height: 17px; }
.desktop-header-actions { position: relative; display: flex; align-items: center; gap: 10px; margin-left: 20px; }
.desktop-header-actions .desktop-profile-action, .desktop-header-actions .desktop-membership-action, .desktop-header-actions .desktop-recharge-nav-action { margin-left: 0; }
.desktop-checkin { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; border: 1px solid #c99a3e; border-radius: 4px; color: #76551b; background: #fff8e9; font: inherit; font-weight: 700; cursor: pointer; }
.desktop-checkin:hover { border-color: #aa7c2d; background: #fff1cf; }
.desktop-checkin svg { width: 17px; height: 17px; }
.desktop-checkin.checked { border-color: #b8c5bf; color: #69766f; background: #eef2f0; }
.desktop-checkin-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 1100; width: 430px; padding: 18px; border: 1px solid var(--desktop-line); border-radius: 6px; color: var(--desktop-ink); background: #fff; box-shadow: 0 16px 36px rgba(24,38,32,.16); }
.desktop-checkin-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.desktop-checkin-panel-head > div { display: flex; flex-direction: column; gap: 4px; }
.desktop-checkin-panel-head strong { font-size: 16px; }
.desktop-checkin-panel-head span { color: var(--desktop-muted); font-size: 12px; }
.desktop-checkin-panel-head button { width: 28px; height: 28px; padding: 0; border: 1px solid var(--desktop-line); border-radius: 4px; color: #64716b; background: #fff; font-size: 19px; line-height: 1; cursor: pointer; }
.desktop-checkin-panel-head button:hover { color: var(--desktop-red); border-color: var(--desktop-red); }
.desktop-checkin-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.desktop-checkin-day { min-width: 0; height: 86px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid #e0e5e2; border-radius: 5px; background: #f7f9f8; }
.desktop-checkin-day span, .desktop-checkin-day small { color: #7a8580; font-size: 10px; white-space: nowrap; }
.desktop-checkin-day strong { margin: 5px 0 2px; color: #8b692b; font-size: 16px; }
.desktop-checkin-day.current { border-color: #c99a3e; background: #fff8e9; box-shadow: inset 0 -3px 0 #c99a3e; }
.desktop-checkin-day.claimed { border-color: #b9d7c8; background: #eff8f3; }
.desktop-checkin-day.claimed strong { color: #287451; }
.desktop-checkin-day.claimed::after { content: "已领"; margin-top: 3px; color: #287451; font-size: 9px; }
.desktop-checkin-status { margin: 14px 0 10px; color: #5c6762; font-size: 13px; text-align: center; }
.desktop-checkin-claim { width: 100%; min-height: 40px; border: 0; border-radius: 4px; color: #fff; background: var(--desktop-red); font-weight: 700; cursor: pointer; }
.desktop-checkin-claim:hover { background: var(--desktop-red-dark); }
.desktop-checkin-claim:disabled { color: #69766f; background: #e4e9e6; cursor: default; }
.desktop-checkin-rule { display: block; margin-top: 9px; color: #8a948f; font-size: 11px; text-align: center; }

.desktop-hero { position: relative; height: 190px; overflow: hidden; color: #fff; background: #26372f url('../img/community-hero.jpg') center 48% / cover no-repeat; }
.desktop-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,25,20,.86), rgba(18,35,29,.58) 60%, rgba(18,30,25,.2)); }
.desktop-hero-inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.desktop-hero h1 { margin: 0 0 8px; font: 700 34px/1.25 serif; }
.desktop-hero p { margin: 0; color: rgba(255,255,255,.8); font-size: 14px; }
.desktop-hero-action { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 1px solid rgba(255,255,255,.45); border-radius: 4px; color: #fff; background: rgba(24,38,32,.55); font-weight: 700; }
.desktop-hero-action svg { width: 17px; }

body > .container { width: min(1200px, calc(100% - 40px)) !important; max-width: 1200px !important; min-height: auto !important; margin: 22px auto 48px !important; background: transparent !important; }
body > .container > .header { position: relative !important; top: auto !important; width: 100% !important; max-width: none !important; height: 58px !important; padding: 0 20px !important; border: 1px solid var(--desktop-line) !important; border-radius: 6px 6px 0 0; background: var(--desktop-panel) !important; }
body > .container > .header .logo { color: var(--desktop-ink); font-size: 18px; }
body > .container > .header .menu-btn { color: var(--desktop-red) !important; }
body > .container > .content { margin-top: 0 !important; padding: 18px 0 0 !important; }

.desktop-home-page > .container { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.desktop-home-page > .container > .header { display: none !important; }
.desktop-home-page > .container > .sidebar { position: fixed; }
.desktop-home-page > .container > .content { grid-column: 1; padding-top: 0 !important; }
.desktop-home-aside { grid-column: 2; display: grid; gap: 16px; }
.desktop-bottom-publish { grid-column: 1 / -1; display: flex; justify-content: center; padding: 6px 0 4px; }
.desktop-bottom-publish a { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 24px; border-radius: 4px; color: #fff; background: var(--desktop-red); font-weight: 700; box-shadow: 0 4px 12px rgba(181,57,52,.16); }
.desktop-bottom-publish a:hover { background: var(--desktop-red-dark); }
.desktop-bottom-publish svg { width: 17px; height: 17px; }
.desktop-side-panel { overflow: hidden; border: 1px solid var(--desktop-line); border-radius: 6px; background: var(--desktop-panel); }
.desktop-side-panel h2 { margin: 0; padding: 15px 17px; border-bottom: 1px solid var(--desktop-line); font-size: 15px; }
.desktop-side-links { display: grid; padding: 8px 16px 14px; }
.desktop-side-links a { display: flex; align-items: center; justify-content: space-between; min-height: 42px; border-bottom: 1px dashed var(--desktop-line); color: #48534e; }
.desktop-side-links a:last-child { border-bottom: 0; }
.desktop-side-links a:hover { color: var(--desktop-red); }
.desktop-account-card { position: relative; padding: 18px; color: #fff; background: #273a31; }
.desktop-account-card > strong, .desktop-account-head strong { display: block; margin-bottom: 6px; font-size: 18px; }
.desktop-account-card > p { margin: 0 0 15px; color: #becac4; font-size: 12px; }
.desktop-account-card > a { display: inline-flex; min-height: 34px; align-items: center; padding: 0 12px; border-radius: 4px; color: #2a271f; background: #d7ae58; font-weight: 700; }
.desktop-account-card .desktop-recharge-action { margin-left: 0; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.5); }
.desktop-account-card .desktop-recharge-action:hover { border-color: #fff; background: rgba(255,255,255,.1); }

.desktop-home-page .announcement, .desktop-home-page .search-container, .desktop-home-page .post-item,
.post-detail, .comments-section, .profile-header, .profile-tabs, .content-card, .recharge-form, .recharge-records, .current-gold,
.form-container, .editor-container, .banned-item, .stats-card {
    border: 1px solid var(--desktop-line) !important;
    border-radius: 6px !important;
    box-shadow: none !important;
}
.desktop-home-page .announcement { margin-bottom: 14px; background: #fff5f3 !important; color: #9c312b !important; }
.home-category-nav { display: flex; gap: 7px; margin-bottom: 12px; padding: 9px 10px; overflow-x: auto; border: 1px solid var(--desktop-line); border-radius: 6px; background: var(--desktop-panel); scrollbar-width: thin; }
.home-category-nav a { min-width: max-content; height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #dfe5e2; border-radius: 4px; color: #4f5a55; background: #f8faf9; font-size: 13px; font-weight: 700; }
.home-category-label { display: inline-flex; align-items: center; gap: 8px; }
.home-category-nav a strong { min-width: 22px; height: 20px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; border-radius: 3px; color: #68736e; background: #e8eeeb; font-size: 11px; }
.home-category-nav a:hover { color: var(--desktop-red); border-color: #d8aaa6; background: #fff7f6; }
.home-category-nav a.active { color: #fff; border-color: var(--desktop-red); background: var(--desktop-red); }
.home-category-nav a.active strong { color: var(--desktop-red); background: #fff; }
.desktop-home-page .search-container { margin-bottom: 14px; padding: 10px !important; background: var(--desktop-panel) !important; }
.desktop-home-page .search-box { min-height: 46px; gap: 8px; padding: 4px 5px 4px 14px !important; border: 1px solid #dfe5e2; border-radius: 4px !important; background: #f8faf9 !important; }
.desktop-home-page .search-input { height: 36px; padding: 0 !important; }
.desktop-home-page .search-btn { min-width: 86px; height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 14px; border-radius: 4px !important; background: var(--desktop-red); font-weight: 700; }
.desktop-home-page .search-btn:hover { background: var(--desktop-red-dark); }
.desktop-home-page .search-btn svg { width: 15px; height: 15px; }
.desktop-home-page .post-sort-nav { margin: -2px 0 14px; padding: 8px 10px; border: 1px solid var(--desktop-line); border-radius: 6px; background: var(--desktop-panel); }
.desktop-home-page .post-sort-label, .desktop-home-page .post-sort-nav a { height: 34px; border-radius: 17px; }
.desktop-home-page .post-sort-nav a:hover { color: var(--desktop-red); background: #fff3f1; }
.desktop-home-page .post-sort-nav a.active { color: #fff; background: var(--desktop-red); }
.desktop-home-page .post-sort-nav a.active:hover { color: #fff; background: var(--desktop-red-dark); }
.desktop-home-page .post-list { display: grid; gap: 12px; }
.desktop-home-page .post-item { margin: 0 !important; padding: 18px 20px !important; background: var(--desktop-panel) !important; transition: transform .16s ease, border-color .16s ease; }
.desktop-home-page .post-item:hover { border-color: #c9d2ce !important; transform: translateY(-1px); }
.post-list-card-layout { display: flex; align-items: stretch; gap: 18px; min-width: 0; }
.post-list-card-main { min-width: 0; flex: 1; }
.post-list-thumbnail { width: 154px; height: 104px; flex: 0 0 154px; align-self: center; border: 1px solid var(--desktop-line); border-radius: 4px; object-fit: cover; background: #f3f6f4; }
.post-list-thumbnail-placeholder { display: none; }
.desktop-home-page .post-title { font-size: 18px !important; }
.post-category-badge { display: inline-flex; margin: 7px 0 5px; padding: 3px 8px; border-left: 3px solid var(--desktop-red); color: #7b403c; background: #fff3f1; font-size: 12px; font-weight: 700; }
.post-pin-state { display: inline-flex; align-items: center; margin: 7px 0 5px 6px; padding: 3px 8px; border: 1px solid #e6c36f; border-radius: 12px; color: #8a5a00; background: #fff3c9; font-size: 12px; font-weight: 700; line-height: 1; }
.post-review-state { display: inline-flex; align-items: center; margin: 7px 0 5px 6px; padding: 3px 8px; border: 1px solid transparent; border-radius: 12px; font-size: 12px; font-weight: 700; line-height: 1; }
.post-review-state.pending { color: #9a6500; border-color: #f0d28b; background: #fff6dc; }
.post-review-state.rejected { color: #b33038; border-color: #efb6ba; background: #fff0f1; }
.desktop-home-page .post-content { min-height: 24px; color: var(--desktop-muted) !important; }
.desktop-home-page .post-footer { color: #7d8883 !important; }

.form-container { width: min(520px, 100%) !important; margin: 32px auto !important; padding: 30px !important; background: var(--desktop-panel) !important; }
.form-title { color: var(--desktop-ink) !important; font-size: 24px !important; }
.form-control, textarea, input, select { border-color: #cfd7d3 !important; }
.form-control:focus, textarea:focus, input:focus, select:focus { border-color: var(--desktop-red) !important; box-shadow: 0 0 0 3px rgba(181,57,52,.1) !important; outline: 0; }
.btn, .btn-primary { border-radius: 4px !important; background: var(--desktop-red) !important; }
.btn:hover, .btn-primary:hover { background: var(--desktop-red-dark) !important; }
.btn-secondary { background: #68736e !important; }

.editor-container { width: min(900px, 100%) !important; margin: 22px auto !important; padding: 26px !important; background: var(--desktop-panel) !important; }
.post-content-editor { min-height: 300px !important; }
.post-editor-page > .container > .header { display: none !important; }
.post-editor-heading { width: min(1080px, 100%); display: flex; align-items: end; justify-content: space-between; margin: 4px auto 16px; }
.post-editor-heading h1 { margin: 0 0 5px; font-size: 27px; }
.post-editor-heading p { margin: 0; color: var(--desktop-muted); }
.post-editor-page .post-editor-shell { width: min(1080px, 100%) !important; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; margin: 0 auto !important; padding: 24px !important; background: var(--desktop-panel) !important; }
.post-editor-main { min-width: 0; }
.post-editor-page .post-title-field { margin-bottom: 18px; }
.post-editor-page .post-title-field label { display: block; margin-bottom: 7px; color: #4f5a55; font-weight: 700; }
.post-editor-page .post-title-field input { height: 46px; }
.post-editor-page .editor-toolbar { min-height: 52px; padding: 8px; border: 1px solid var(--desktop-line); border-radius: 5px 5px 0 0; background: #f5f7f6; }
.post-editor-page .tool-btn { min-width: 36px; height: 34px; padding: 0 9px; border-color: var(--desktop-line); border-radius: 4px; background: #fff; }
.post-editor-page .tool-btn:hover { color: var(--desktop-red); border-color: var(--desktop-red); }
.post-editor-page .editor-container { width: 100% !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; }
.post-editor-page .post-content-editor { min-height: 520px !important; padding: 20px !important; border: 1px solid var(--desktop-line) !important; border-top: 0 !important; border-radius: 0 0 5px 5px !important; line-height: 1.75; }
.post-editor-page .preview-container { margin-top: 16px; padding: 18px; border: 1px solid var(--desktop-line); border-radius: 5px; background: #fafcfb; }
.preview-paywall { margin: 22px 0; padding: 12px; border: 1px dashed var(--desktop-gold); color: #795a24; background: #fff8e9; text-align: center; font-weight: 700; }
.post-editor-side { display: grid; gap: 16px; }
.editor-side-panel { padding: 18px; border: 1px solid var(--desktop-line); border-radius: 5px; background: #fafcfb; }
.editor-side-panel h2 { margin: 0 0 14px; font-size: 15px; }
.post-editor-page .image-upload { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 !important; padding: 18px !important; border: 1px dashed #bfc9c4 !important; border-radius: 5px !important; background: #fff !important; }
.post-editor-page .image-upload span { color: #3f4b45; font-weight: 700; }
.post-editor-page .image-upload small { margin-top: 7px; color: var(--desktop-muted); }
.post-editor-page .image-preview { width: 100%; grid-template-columns: repeat(3, 1fr); }
.paid-content-head { display: flex; align-items: center; justify-content: space-between; }
.paid-content-head h2 { margin: 0; }
.unlock-mode-selector { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; padding: 3px; border: 1px solid var(--desktop-line); border-radius: 5px; background: #eef2f0; }
.unlock-mode-selector label { min-width: 0; cursor: pointer; }
.unlock-mode-selector input { position: absolute; opacity: 0; pointer-events: none; }
.unlock-mode-selector span { min-height: 34px; display: flex; align-items: center; justify-content: center; padding: 5px 4px; border-radius: 3px; color: #69736e; background: transparent; font-size: 12px; font-weight: 700; text-align: center; }
.unlock-mode-selector input:checked + span { color: #fff; background: var(--desktop-red); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.unlock-mode-selector input:focus-visible + span { outline: 2px solid var(--desktop-red); outline-offset: 1px; }
.paid-toggle { position: relative; width: 42px; height: 24px; }
.paid-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.paid-toggle span { display: block; width: 42px; height: 24px; border-radius: 12px; background: #cbd3cf; cursor: pointer; transition: .18s ease; }
.paid-toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: .18s ease; }
.paid-toggle input:checked + span { background: var(--desktop-red); }
.paid-toggle input:checked + span::after { transform: translateX(18px); }
.paid-content-controls { display: grid; gap: 10px; margin-top: 16px; }
.paid-content-controls > label { color: var(--desktop-muted); font-size: 12px; font-weight: 700; }
.paid-content-controls #priceControl > label { display: block; margin-bottom: 7px; color: var(--desktop-muted); font-size: 12px; font-weight: 700; }
.comment-unlock-note { padding: 11px 12px; border-left: 3px solid var(--desktop-red); color: #58635d; background: #f5f7f6; font-size: 12px; line-height: 1.65; }
.price-field { height: 42px; display: grid; grid-template-columns: 1fr auto; align-items: center; overflow: hidden; border: 1px solid #cfd7d3; border-radius: 4px; background: #fff; }
.post-editor-page .price-input { display: block !important; width: 100% !important; height: 100%; padding: 0 10px; border: 0 !important; background: transparent; }
.price-field span { padding-right: 11px; color: var(--desktop-gold); font-size: 12px; font-weight: 700; }
.paywall-insert { min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--desktop-red); border-radius: 4px; color: var(--desktop-red); background: #fff; font-weight: 700; cursor: pointer; }
.paywall-insert svg { width: 16px; }
.paywall-state { color: #8a948f; font-size: 12px; text-align: center; }
.paywall-state.ready { color: var(--desktop-green); font-weight: 700; }
.editor-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.post-editor-page .editor-actions .btn { width: 100%; margin: 0; }
.post-detail, .comments-section { width: min(1200px, 100%); margin: 0 auto 18px !important; padding: 28px 32px !important; background: var(--desktop-panel) !important; }
.detail-title { font-size: 30px !important; line-height: 1.35 !important; }
.detail-content { min-height: 160px; font-size: 16px !important; line-height: 1.9 !important; }
.detail-category-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid #e2bbb8; border-radius: 4px; color: var(--desktop-red); background: #fff5f3; font-size: 12px; font-weight: 700; }
.detail-category-badge:hover { border-color: var(--desktop-red); }
.comment-item { padding: 18px 0 !important; border-bottom: 1px solid var(--desktop-line) !important; }
.paid-gate { margin: 28px 0 12px; padding: 32px 24px; border-top: 1px solid var(--desktop-line); border-bottom: 1px solid var(--desktop-line); background: linear-gradient(180deg, #fafcfb, #f4f7f5); text-align: center; }
.paid-gate-icon { width: 42px; height: 42px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 50%; color: var(--desktop-red); background: #f4e6e4; }
.paid-gate-icon svg { width: 20px; }
.paid-gate strong { display: block; font-size: 17px; }
.paid-gate p { margin: 8px 0 18px; color: var(--desktop-muted); }
.paid-gate .unlock-btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border: 0; border-radius: 4px; color: #fff; background: var(--desktop-red); font-weight: 700; cursor: pointer; }
.paid-unlocked-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--desktop-green); font-size: 12px; font-weight: 700; }
.paid-unlocked-divider::before, .paid-unlocked-divider::after { content: ""; height: 1px; flex: 1; background: var(--desktop-line); }
.paid-detail-content { min-height: 100px; }
.post-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.post-images img { width: 100%; max-height: 520px; object-fit: contain; border: 1px solid var(--desktop-line); border-radius: 5px; background: #f7f9f8; }

.profile-header, .profile-info, .profile-tabs, .profile-tabs + .post-list, .profile-tabs + .comments-list { width: min(1200px, 100%); margin-right: auto !important; margin-left: auto !important; background-color: var(--desktop-panel) !important; }
.profile-header { height: 180px !important; min-height: 180px; aspect-ratio: auto; margin-top: 0 !important; border-radius: 6px 6px 0 0 !important; background-color: #202a26 !important; background-size: cover !important; background-position: var(--profile-background-position, center) !important; background-repeat: no-repeat !important; }
.profile-header.is-positioning { cursor: grab; user-select: none; touch-action: none; }
.profile-header.is-positioning:active { cursor: grabbing; }
.profile-info { display: grid; grid-template-columns: 390px 130px minmax(330px, 1fr); align-items: center; gap: 28px; min-height: 190px; padding: 28px 32px !important; border-right: 1px solid var(--desktop-line); border-left: 1px solid var(--desktop-line); }
.profile-info .profile-stats { position: static; justify-content: flex-end; gap: 30px; }
.profile-avatar-slot { justify-self: center; }
.profile-info .profile-meta p { margin: 4px 0; color: var(--desktop-muted); }
.profile-info .edit-profile-btn, .profile-info .message-btn { border-radius: 4px; background: var(--desktop-red); }
.profile-tabs { border: 1px solid var(--desktop-line); border-top: 0; border-radius: 0 0 6px 6px !important; }
.profile-tabs .tab.active { color: var(--desktop-red); border-color: var(--desktop-red); }
.profile-tabs ~ .post-list, .profile-tabs ~ .comments-list { width: min(1200px, 100%); margin: 16px auto; }
.profile-tabs ~ .post-list .post-item, .profile-tabs ~ .comments-list .comment-item { margin-bottom: 12px; border: 1px solid var(--desktop-line); border-radius: 6px; background: var(--desktop-panel); }

.tab-bar { position: relative !important; top: auto !important; width: 100% !important; max-width: none !important; border: 1px solid var(--desktop-line) !important; border-top: 0 !important; background: var(--desktop-panel) !important; }
.message-list .conversation-item, .user-list .user-item { min-height: 74px; padding: 14px 18px !important; }
.chat-messages { min-height: 520px !important; max-height: 58vh !important; }
.chat-input { position: sticky !important; bottom: 0; max-width: none !important; }

.recharge-container { width: min(900px, 100%) !important; margin: 24px auto !important; }
.current-gold, .recharge-form, .recharge-records { margin-bottom: 16px !important; padding: 24px !important; background: var(--desktop-panel) !important; }
.records-table { width: 100%; }

.page-title { padding: 24px; border: 1px solid var(--desktop-line); border-radius: 6px; background: var(--desktop-panel); text-align: left !important; }
.stats-card { color: #fff; background: #2b4d40 !important; }
.banned-list { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px !important; }
.banned-item { background: var(--desktop-panel) !important; }

body > .container > .tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 18px 0 !important; padding: 7px; border: 1px solid var(--desktop-line); border-radius: 6px; background: var(--desktop-panel); }
body > .container > .tabs a { border-radius: 4px !important; }
.content-card { margin-bottom: 18px !important; padding: 22px !important; background: var(--desktop-panel) !important; }
.table-responsive { overflow-x: auto; }
table { border-collapse: collapse; }
th { background: #f2f5f3 !important; color: #46514c !important; }
th, td { border-color: var(--desktop-line) !important; }

/* 管理后台字段较多，单独使用接近整屏的工作区。 */
.admin-page > .container {
    width: calc(100% - 24px) !important;
    max-width: 1680px !important;
}
.admin-page .table-responsive {
    width: 100%;
    overflow-x: auto;
}
.admin-page .users-table {
    min-width: 1380px;
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
}
.admin-page .users-table th,
.admin-page .users-table td {
    white-space: nowrap;
    padding-left: 10px !important;
    padding-right: 10px !important;
}
.admin-page .users-table th:nth-child(1) { width: 4.5%; }
.admin-page .users-table th:nth-child(2) { width: 4.5%; }
.admin-page .users-table th:nth-child(3) { width: 8%; }
.admin-page .users-table th:nth-child(4) { width: 8%; }
.admin-page .users-table th:nth-child(5) { width: 14%; }
.admin-page .users-table th:nth-child(6) { width: 10%; }
.admin-page .users-table th:nth-child(7) { width: 8%; }
.admin-page .users-table th:nth-child(8) { width: 15%; }
.admin-page .users-table th:nth-child(9) { width: 15%; }
.admin-page .users-table th:nth-child(10) { width: 13%; }
.admin-page .users-table td:nth-child(3),
.admin-page .users-table td:nth-child(4),
.admin-page .users-table td:nth-child(5),
.admin-page .users-table td:nth-child(6) {
    overflow-wrap: anywhere;
    white-space: normal;
}
.admin-page .users-table td:last-child .btn-group {
    min-width: 0;
    flex-wrap: wrap;
}
.admin-page .category-manage-toolbar { display: grid; grid-template-columns: auto minmax(220px, 420px) 38px minmax(150px, 210px) auto; gap: 10px; align-items: center; margin: 4px 0 22px; padding: 16px 0; border-top: 1px solid var(--desktop-line); border-bottom: 1px solid var(--desktop-line); }
.admin-page .category-manage-toolbar label { color: #46514c; font-weight: 700; }
.admin-page .category-manage-toolbar input { min-height: 40px; padding: 0 12px; border: 1px solid #cfd7d3; border-radius: 4px; }
.admin-page .category-manage-toolbar .btn { min-height: 40px; margin: 0; padding: 0 18px; }
.admin-page .category-table { max-width: 1120px; }
.admin-page .category-table form { margin: 0; }
.admin-page .category-table button:disabled { opacity: .45; cursor: not-allowed; }
.admin-page {
    --admin-sticky-top: 72px;
    --admin-users-summary-height: 144px;
}
.admin-page .admin-users-sticky {
    position: sticky;
    top: var(--admin-sticky-top);
    z-index: 80;
    padding-top: 1px;
    border-bottom: 1px solid var(--desktop-line);
    background: var(--desktop-panel);
    box-shadow: 0 5px 10px rgba(24, 38, 32, .05);
}
.admin-page .admin-users-sticky h2 {
    margin: 0 0 16px !important;
}
.admin-page .admin-users-sticky .post-stats-grid {
    margin: 0 0 18px;
}
.admin-page .admin-users-sticky .post-stat-card,
.admin-page .admin-users-sticky .post-stat-card:hover,
.admin-page .admin-users-sticky .post-stat-card.active {
    border-color: #e5e7eb;
    color: #4b5563;
    background: #f9fafb;
    transform: none;
}
.admin-page .admin-users-sticky .post-stat-card strong,
.admin-page .admin-users-sticky .post-stat-card:hover strong,
.admin-page .admin-users-sticky .post-stat-card.active strong {
    color: #111827;
}
.admin-page .users-table thead th {
    position: sticky;
    top: calc(var(--admin-sticky-top) + var(--admin-users-summary-height));
    z-index: 70;
    box-shadow: inset 0 -1px 0 var(--desktop-line);
}

@media (min-width: 1450px) {
    .admin-page .users-table-scroll { overflow: visible; }
}

.night-mode .desktop-site-header, .night-mode .desktop-side-panel, .night-mode .desktop-home-page .post-item { background: #1d2421 !important; }

.shop-admin-create { display:grid; grid-template-columns: minmax(180px,1.4fr) minmax(150px,1fr) 140px 150px auto; gap:12px; align-items:end; margin:18px 0 24px; padding:18px; border:1px solid var(--desktop-line); border-radius:6px; background:#fafcfb; }
.shop-admin-create .form-group { margin:0; }
.shop-admin-list { display:grid; gap:14px; }
.shop-admin-product { padding:18px; border:1px solid var(--desktop-line); border-radius:6px; background:#fff; }
.shop-admin-product-head { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.shop-admin-product-head strong { font-size:17px; }
.shop-admin-stock { margin-left:auto; color:#68736e; font-size:13px; }
.shop-admin-edit-grid { display:grid; grid-template-columns:2fr 1.3fr 130px 150px; gap:10px; margin-bottom:12px; }
.shop-admin-edit-grid label, .shop-admin-inline label { display:grid; gap:6px; color:#68736e; font-size:12px; font-weight:700; }
.shop-admin-inventory { display:grid; grid-template-columns:auto minmax(300px,1fr) auto; gap:14px; align-items:start; padding-top:15px; border-top:1px solid var(--desktop-line); }
.shop-admin-inline { display:flex; align-items:end; gap:9px; }
.shop-admin-inline .form-control { width:100px; }
.shop-admin-import textarea { width:100%; resize:vertical; }
.shop-admin-import-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:8px; }
.shop-admin-cdk-details { margin-top:16px; border-top:1px solid var(--desktop-line); }
.shop-admin-cdk-details summary { padding:15px 2px 4px; color:#37443e; font-weight:700; cursor:pointer; }
.shop-admin-cdk-details[open] summary { color:var(--desktop-red); }
.shop-admin-cdk-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:9px; margin:12px 0; }
.shop-admin-cdk-toolbar span { color:#748079; font-size:12px; }
.shop-admin-hidden-cdks { position:fixed; left:-9999px; width:1px; height:1px; opacity:0; }
.shop-admin-cdk-table-wrap { max-height:390px; border:1px solid var(--desktop-line); border-radius:5px; }
.shop-admin-cdk-table { width:100%; min-width:760px; }
.shop-admin-cdk-table thead th { position:sticky; top:0; z-index:2; }
.shop-admin-cdk-table code { color:#25342d; font-size:12px; user-select:all; }
@media (max-width:980px) { .shop-admin-create { grid-template-columns:repeat(2,minmax(0,1fr)); } .shop-admin-create button { width:100%; } .shop-admin-edit-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .shop-admin-inventory { grid-template-columns:1fr; } .shop-admin-inline { justify-content:flex-start; } }
@media (max-width:760px) { .shop-admin-create { grid-template-columns:1fr; padding:14px; } .shop-admin-product { padding:14px; } .shop-admin-edit-grid { grid-template-columns:1fr; } .shop-admin-product-head { flex-wrap:wrap; } .shop-admin-stock { width:100%; margin-left:0; } .shop-admin-import-actions { align-items:flex-start; flex-direction:column; } }

@media (min-width: 981px) {
    /* Wide five-card home layout, matching the reference gallery. */
    .desktop-home-page > .container {
        position: relative;
        display: block;
        width: min(1480px, calc(100% - 48px)) !important;
        max-width: 1480px !important;
        margin-top: 0 !important;
    }
    .desktop-home-page > .container > .content { width: 100%; }
    .desktop-home-page {
        --lobby-gold: #e0aa4e;
        --lobby-gold-bright: #ffd889;
        --lobby-panel: #181b1d;
        --lobby-panel-soft: #202326;
        --lobby-line: rgba(224,170,78,.38);
        color: #ece5d8;
        background: radial-gradient(circle at 50% 0, #33291d 0, #1a1c1d 480px, #141719 1000px) !important;
    }
    .desktop-home-page .desktop-hero {
        height: 260px;
        background-position: center 54%;
        filter: saturate(.88) contrast(1.08);
    }
    .desktop-home-page .desktop-hero::before {
        background:
            linear-gradient(180deg, rgba(10,11,12,.48), rgba(13,14,15,.22) 48%, rgba(12,14,15,.92)),
            radial-gradient(circle at 67% 47%, rgba(236,166,67,.26), transparent 34%),
            linear-gradient(90deg, rgba(9,12,13,.9), rgba(25,19,13,.38) 52%, rgba(9,10,11,.74));
    }
    .desktop-home-page .desktop-hero::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--lobby-gold), transparent);
        opacity: .7;
    }
    .desktop-home-page .home-category-nav {
        position: absolute;
        top: -88px;
        right: 0;
        left: 0;
        z-index: 920;
        width: 100%;
        height: 76px;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
        border: 1px solid var(--lobby-line);
        border-radius: 11px;
        background: linear-gradient(180deg, rgba(32,33,34,.94), rgba(18,20,21,.97));
        box-shadow: 0 15px 35px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.05);
        backdrop-filter: blur(10px);
    }
    .desktop-home-page .home-category-nav a {
        min-width: 0;
        height: 100%;
        justify-content: center;
        gap: 10px;
        padding: 0 14px;
        border: 0;
        border-right: 1px solid rgba(224,170,78,.22);
        border-radius: 0;
        color: #d5cec1;
        background: transparent;
        font-size: 15px;
        transition: color .2s ease, background .2s ease, box-shadow .2s ease;
    }
    .desktop-home-page .home-category-nav a:last-child { border-right: 0; }
    .desktop-home-page .home-category-nav .home-category-icon { width: 34px; height: 34px; display: grid; flex: 0 0 34px; place-items: center; color: var(--lobby-gold-bright); }
    .desktop-home-page .home-category-nav .home-category-icon svg { width: 27px; height: 27px; stroke-width: 1.7; }
    .desktop-home-page .home-category-nav a strong { min-width: 25px; color: #e8d4ae; background: rgba(224,170,78,.14); }
    .desktop-home-page .home-category-nav a:hover { color: #fff4dd; background: rgba(224,170,78,.1); }
    .desktop-home-page .home-category-nav a.active {
        color: #fff2cf;
        background: linear-gradient(135deg, rgba(166,99,25,.82), rgba(98,61,24,.78));
        box-shadow: inset 0 0 28px rgba(255,195,85,.18), inset 0 -3px 0 var(--lobby-gold);
    }
    .desktop-home-page .home-category-nav a.active strong { color: #58360f; background: #f2c66e; }
    .desktop-home-page .post-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
    .desktop-home-page .post-item {
        position: relative;
        min-width: 0;
        height: auto;
        overflow: hidden;
        padding: 0 !important;
        border-radius: 8px;
        border-color: #d9e1e2 !important;
        background: #fff !important;
        box-shadow: 0 7px 18px rgba(0,0,0,.18);
    }
    .desktop-home-page .post-list-card-layout { width: 100%; height: 100%; flex-direction: column; gap: 0; }
    .desktop-home-page .post-card-media {
        position: relative;
        width: 100%;
        aspect-ratio: 3 / 2;
        flex: 0 0 auto;
        overflow: hidden;
        background: #172126;
    }
    .desktop-home-page .post-card-media::before {
        content: '';
        position: absolute;
        inset: -8px;
        z-index: 0;
        pointer-events: none;
        background-image: var(--post-card-image, none);
        background-position: center;
        background-size: cover;
        filter: blur(10px) brightness(.62) saturate(.82);
        transform: scale(1.06);
    }
    .desktop-home-page .post-card-media::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 2;
        pointer-events: none;
        background: linear-gradient(180deg, transparent 30%, rgba(5,8,10,.12) 46%, rgba(5,8,10,.88) 76%, rgba(4,6,8,.98) 100%);
    }
    .desktop-home-page .post-card-image-overlay {
        position: absolute;
        inset: 0;
        z-index: 3;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 46px 13px 10px;
        color: #fff;
        text-shadow: 0 1px 3px rgba(0,0,0,.92);
    }
    .desktop-home-page .post-list-card-main {
        position: static;
        z-index: auto;
        display: flex;
        flex: 1;
        flex-direction: column;
        justify-content: flex-start;
        min-height: 76px;
        padding: 9px 12px 10px;
        color: #263034;
        background: #fff;
        text-shadow: none;
    }
    .desktop-home-page .post-list-thumbnail {
        position: absolute;
        inset: 0;
        z-index: 1;
        width: 100%;
        height: 100%;
        border: 0;
        border-radius: 0;
        object-fit: contain;
        background: transparent;
    }
    .desktop-home-page .post-list-thumbnail-placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        color: #928a7d;
        background: linear-gradient(135deg, #24282a, #1a1d1f);
        font-size: 12px;
    }
    .desktop-home-page .post-list-thumbnail-placeholder svg { width: 20px; height: 20px; }
    .desktop-home-page .post-author-row { flex: 0 0 auto; margin-bottom: 4px; color: rgba(255,255,255,.88); }
    .desktop-home-page .post-author-avatar { width: 20px; height: 20px; }
    .desktop-home-page .post-author-name { overflow: hidden; color: rgba(255,255,255,.88) !important; text-overflow: ellipsis; white-space: nowrap; }
    .desktop-home-page .post-category-badge { width: fit-content; flex: 0 0 auto; align-self: flex-start; margin: 1px 0 5px; padding: 1px 6px; border-left-color: #f1c66f; color: #fff2cf; background: rgba(12,17,20,.54); font-size: 11px; }
    .desktop-home-page .post-card-status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-bottom: 5px; }
    .desktop-home-page .post-card-status-row:empty { display: none; }
    .desktop-home-page .post-pin-state,
    .desktop-home-page .post-review-state { position: static; width: auto; max-width: 100%; margin: 0; align-self: auto; text-shadow: none; }
    .desktop-home-page .post-title {
        display: -webkit-box;
        min-height: 38px;
        flex: 0 0 38px;
        overflow: hidden;
        color: #fff !important;
        font-size: 16px !important;
        font-weight: 800;
        line-height: 1.38;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .desktop-home-page .post-paid-tip { margin: 0 0 5px; overflow: hidden; color: #d84b43; text-overflow: ellipsis; white-space: nowrap; }
    .desktop-home-page .post-content { display: block; min-height: 17px; margin: 0 0 6px; overflow: hidden; color: #748084 !important; text-overflow: ellipsis; white-space: nowrap; }
    .desktop-home-page .post-footer { flex: 0 0 auto; gap: 8px; margin-top: auto; padding-top: 0; color: #748084 !important; font-size: 11px; white-space: nowrap; }
    .desktop-home-page .post-footer span:nth-child(2) { display: none; }
    .desktop-home-page .post-item:hover { border-color: rgba(224,170,78,.72) !important; transform: translateY(-2px); box-shadow: 0 11px 24px rgba(0,0,0,.28); }
    .desktop-home-page .desktop-home-aside { position: absolute; top: -238px; right: 0; z-index: 930; width: 750px; }
    .desktop-home-page .desktop-account-card {
        min-height: 96px;
        display: grid;
        grid-template-columns: 220px minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: center;
        padding: 14px 16px 14px 20px;
        border: 1px solid var(--lobby-line);
        border-radius: 11px;
        background: linear-gradient(150deg, rgba(29,29,29,.96), rgba(15,17,18,.94));
        box-shadow: 0 14px 34px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.06);
        backdrop-filter: blur(10px);
    }
    .desktop-home-page .desktop-account-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
    .desktop-home-page .desktop-account-head { grid-column: 1; grid-row: 1; }
    .desktop-home-page .desktop-account-head strong { margin: 0; color: #fff0d2; font-size: 18px; }
    .desktop-home-page .desktop-account-head .desktop-account-logout { min-height: auto; padding: 3px 0; border: 0; color: #bcb09d; background: transparent; font-size: 12px; font-weight: 500; }
    .desktop-home-page .desktop-account-head .desktop-account-logout:hover { color: var(--lobby-gold-bright); }
    .desktop-home-page .desktop-account-card > p { grid-column: 1; grid-row: 2; margin: 2px 0 0; color: #b9ae9d; }
    .desktop-home-page .desktop-account-actions { grid-column: 2; grid-row: 1 / span 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; height: 66px; border-left: 1px solid rgba(224,170,78,.24); }
    .desktop-home-page .desktop-account-actions .desktop-account-action {
        width: 100%;
        min-height: 66px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        margin: 0;
        padding: 0 10px;
        border: 0;
        border-right: 1px solid rgba(224,170,78,.2);
        border-radius: 0;
        color: #d8d0c2;
        background: transparent;
        font: inherit;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
    }
    .desktop-home-page .desktop-account-actions .desktop-account-action:last-child { border-right: 0; }
    .desktop-home-page .desktop-account-actions .desktop-account-action:hover { color: #fff1d0; background: rgba(224,170,78,.09); }
    .desktop-home-page .desktop-account-actions .desktop-account-profile { color: var(--lobby-gold-bright); background: rgba(224,170,78,.1); box-shadow: inset 0 -3px 0 var(--lobby-gold); }
    .desktop-home-page .desktop-account-actions .desktop-account-profile:hover { color: #fff4dc; background: rgba(224,170,78,.16); }
    .desktop-home-page .desktop-account-actions svg { width: 22px; height: 22px; stroke-width: 1.8; }
    .desktop-home-page .desktop-account-checkin.checked { color: #c7bdad; background: transparent; }
    .desktop-home-page .desktop-account-card > .desktop-checkin-panel { top: calc(100% + 10px); right: 0; }
    .desktop-home-page .desktop-utility .desktop-shell > div,
    .desktop-home-page .desktop-header-actions { margin-right: 750px; }
    .desktop-home-page .desktop-bottom-publish { margin-top: 18px; }
    /* 首页导航覆盖在横幅上，移除单独的导航底板并收紧首屏高度。 */
    .desktop-home-page .desktop-utility {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        z-index: 910;
        color: rgba(255, 255, 255, .82);
        background: transparent;
    }
    .desktop-home-page .desktop-utility .desktop-shell {
        width: min(1480px, calc(100% - 48px));
    }
    .desktop-home-page .desktop-utility a {
        color: #fff;
    }
    .desktop-home-page .desktop-site-header {
        position: absolute;
        top: 24px;
        right: 0;
        left: 0;
        z-index: 900;
        border-bottom: 0;
        background: transparent !important;
    }
    .desktop-home-page .desktop-header-inner {
        width: min(1480px, calc(100% - 48px));
        min-height: 104px;
        padding-left: 0;
        align-items: center;
    }
    .desktop-home-page .desktop-brand,
    .desktop-home-page .desktop-main-nav a {
        color: #eadcc2;
    }
    .desktop-home-page .desktop-brand small {
        color: rgba(255, 255, 255, .62);
    }
    .desktop-home-page .desktop-main-nav a:hover,
    .desktop-home-page .desktop-main-nav a.active {
        color: #fff;
    }
    .desktop-home-page .desktop-main-nav a[href="index.php"] {
        min-width: 94px;
        font-size: 17px;
        font-weight: 700;
        border-color: rgba(224,170,78,.55);
        color: #f2dfba;
        background: rgba(16,17,18,.66);
    }
    .desktop-home-page .desktop-main-nav a[href="index.php"] svg {
        width: 20px;
        height: 20px;
        color: var(--lobby-gold-bright);
    }
    .desktop-home-page .desktop-profile-action,
    .desktop-home-page .desktop-membership-action {
        min-height: 38px;
        border-color: rgba(255, 255, 255, .56);
        color: #fff;
        background: rgba(20, 31, 26, .4);
    }
    .desktop-home-page .desktop-profile-action:hover,
    .desktop-home-page .desktop-membership-action:hover,
    .desktop-home-page .desktop-membership-action.active {
        border-color: #fff;
        color: #fff;
        background: rgba(20, 31, 26, .5);
    }
    .desktop-home-page .desktop-checkin {
        min-height: 38px;
        border-color: rgba(255, 255, 255, .56);
        color: #fff;
        background: rgba(20, 31, 26, .4);
    }
    .desktop-home-page .desktop-checkin:hover {
        border-color: #ffe4a6;
        background: rgba(90, 61, 16, .68);
    }
    .desktop-home-page .desktop-checkin.checked,
    .desktop-home-page .desktop-checkin:disabled {
        border-color: rgba(255, 255, 255, .56);
        color: #fff;
        background: rgba(20, 31, 26, .4);
    }
    .desktop-home-page .desktop-hero-inner {
        width: min(1480px, calc(100% - 48px));
    }
    .desktop-home-page .desktop-hero-inner > div {
        max-width: 460px;
        margin: 0 760px 38px 260px;
    }
    .desktop-home-page .desktop-hero h1 {
        margin-bottom: 6px;
        color: #f2d8a5;
        font-size: 38px;
        letter-spacing: 3px;
        text-shadow: 0 3px 18px rgba(0,0,0,.6);
    }
    .desktop-home-page .desktop-hero p { color: rgba(238,223,196,.78); }
    .desktop-home-page .post-sort-nav {
        margin: 14px 0 14px;
        border-color: var(--lobby-line);
        color: #c9bead;
        background: linear-gradient(180deg, #202325, #191c1e);
        box-shadow: 0 8px 22px rgba(0,0,0,.2);
    }
    .desktop-home-page .post-sort-label { color: #cbb990; }
    .desktop-home-page .post-sort-nav a { color: #c9c0b3; }
    .desktop-home-page .post-sort-nav a:hover { color: #ffe7b4; background: rgba(224,170,78,.1); }
    .desktop-home-page .post-sort-nav a.active,
    .desktop-home-page .post-sort-nav a.active:hover { color: #2a1b08; background: var(--lobby-gold); }
    .desktop-home-page .post-item {
        border-color: rgba(224,170,78,.26) !important;
        color: #eee6d8;
        background: linear-gradient(180deg, #202427, #171a1c) !important;
        box-shadow: 0 10px 24px rgba(0,0,0,.18) !important;
    }
    .desktop-home-page .post-item:hover { border-color: rgba(244,190,95,.68) !important; transform: translateY(-3px); }
    .desktop-home-page .post-list-thumbnail { border-bottom-color: rgba(224,170,78,.25); }
    .desktop-home-page .post-author-name,
    .desktop-home-page .post-content,
    .desktop-home-page .post-footer { color: #a9a196 !important; }
    .desktop-home-page .post-title { color: #f0e7d7 !important; }
    .desktop-home-page .post-category-badge { border-left-color: var(--lobby-gold); color: #edc77e; background: rgba(224,170,78,.09); }
    .desktop-home-page .pagination .page-btn { border-color: var(--lobby-line); color: #d7cdbd; background: #1d2022; }
    .desktop-home-page .pagination .page-btn.active { color: #281a08; border-color: var(--lobby-gold); background: var(--lobby-gold); }
    .desktop-home-page .desktop-bottom-publish a { color: #2c1d08; background: var(--lobby-gold); box-shadow: 0 6px 18px rgba(224,170,78,.18); }
    .desktop-home-page .desktop-bottom-publish a:hover { background: var(--lobby-gold-bright); }
    .desktop-home-page .desktop-checkin-panel { border-color: var(--lobby-line); }
    .desktop-home-page > .container { padding-bottom: 36px; }
    .desktop-home-page .empty-tip { color: #aaa094; }
    .desktop-home-page .post-paid-tip { color: #efb55d; }
    .desktop-home-page .content { position: relative; z-index: 10; }
    .desktop-home-page .desktop-main-nav a[href="cdk_shop.php"] { color: #e9dcc4; }
    .desktop-home-page .desktop-main-nav a[href="cdk_shop.php"]:hover { color: var(--lobby-gold-bright); }
    .desktop-home-page .desktop-main-nav a::after { background: var(--lobby-gold); }
    .desktop-home-page .desktop-main-nav a.active::after { transform: scaleX(1); }
    .desktop-home-page .desktop-home-aside a,
    .desktop-home-page .desktop-home-aside button { position: relative; z-index: 1; }
    .desktop-home-page .desktop-account-card > .desktop-checkin-panel {
        top: calc(100% + 12px);
        right: 0;
        color: var(--desktop-ink);
        background: #fff;
    }

    /* Scheme one: cool misty wuxia hero with a light content gallery. */
    .desktop-home-page {
        --lobby-gold: #d8b36a;
        --lobby-gold-bright: #f2d495;
        --lobby-panel: #14242b;
        --lobby-panel-soft: #1c3037;
        --lobby-line: rgba(194,215,220,.3);
        color: var(--desktop-ink);
        background: #edf1f3 !important;
    }
    .desktop-home-page .desktop-hero {
        height: 285px;
        background-position: center 48%;
        filter: saturate(.78) contrast(1.08) hue-rotate(7deg);
    }
    .desktop-home-page .desktop-hero::before {
        background:
            linear-gradient(180deg, rgba(5,16,22,.38), rgba(7,20,27,.18) 46%, rgba(6,17,23,.86)),
            radial-gradient(circle at 63% 30%, rgba(243,198,117,.28), transparent 28%),
            linear-gradient(90deg, rgba(4,17,24,.93), rgba(12,35,43,.55) 56%, rgba(7,21,29,.72));
    }
    .desktop-home-page .desktop-hero::after {
        background: linear-gradient(90deg, transparent, rgba(218,187,124,.7), transparent);
        opacity: .55;
    }
    .desktop-home-page .desktop-hero-inner > div {
        max-width: 500px;
        margin: 12px 560px 38px 0;
    }
    .desktop-home-page .desktop-hero h1 {
        color: #f3ead9;
        font-size: 42px;
        letter-spacing: 4px;
    }
    .desktop-home-page .desktop-hero p { color: rgba(231,239,239,.76); }
    .desktop-home-page .home-category-nav {
        top: -116px;
        right: 570px;
        width: auto;
        height: 104px;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        border-color: rgba(194,215,220,.32);
        border-radius: 12px;
        background: linear-gradient(155deg, rgba(18,35,42,.86), rgba(11,24,30,.92));
        box-shadow: 0 15px 35px rgba(3,14,19,.25), inset 0 1px 0 rgba(255,255,255,.07);
    }
    .desktop-home-page .home-category-nav a {
        min-width: 0;
        height: 100%;
        flex-direction: column;
        gap: 7px;
        padding: 11px 8px 9px;
        border-right-color: rgba(194,215,220,.17);
        color: #d8e1e2;
        font-size: 13px;
    }
    .desktop-home-page .home-category-nav .home-category-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        color: #cadbdd;
    }
    .desktop-home-page .home-category-nav .home-category-icon svg { width: 29px; height: 29px; }
    .desktop-home-page .home-category-nav .home-category-label { gap: 6px; white-space: nowrap; }
    .desktop-home-page .home-category-nav a strong { color: #d7e2e3; background: rgba(220,233,234,.13); }
    .desktop-home-page .home-category-nav a:hover { color: #fff; background: rgba(130,178,188,.12); }
    .desktop-home-page .home-category-nav a.active {
        color: #fff2d3;
        background: linear-gradient(150deg, rgba(151,119,64,.54), rgba(64,76,67,.5));
        box-shadow: inset 0 -3px 0 #d8b36a, inset 0 0 28px rgba(216,179,106,.13);
    }
    .desktop-home-page .home-category-nav a.active .home-category-icon { color: #f0cf8a; }
    .desktop-home-page .home-category-nav a.active strong { color: #3b3222; background: #ead098; }
    .desktop-home-page .desktop-home-aside { top: -255px; width: 530px; }
    .desktop-home-page .desktop-account-card {
        min-height: 204px;
        display: block;
        padding: 23px 24px 20px;
        border-color: rgba(194,215,220,.3);
        border-radius: 12px;
        background: linear-gradient(145deg, rgba(24,43,49,.96), rgba(13,29,35,.96));
        box-shadow: 0 16px 38px rgba(2,13,18,.32), inset 0 1px 0 rgba(255,255,255,.06);
    }
    .desktop-home-page .desktop-account-head { display: flex; }
    .desktop-home-page .desktop-account-head strong { color: #f2f5f3; font-size: 22px; }
    .desktop-home-page .desktop-account-head .desktop-account-logout { color: #b8c8c9; }
    .desktop-home-page .desktop-account-head .desktop-account-logout:hover { color: #fff; }
    .desktop-home-page .desktop-account-card > p { margin: 5px 0 18px; color: #b9cacc; }
    .desktop-home-page .desktop-account-actions {
        display: grid;
        height: 86px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        border-left: 0;
    }
    .desktop-home-page .desktop-account-actions .desktop-account-action {
        min-height: 86px;
        gap: 8px;
        padding: 8px 5px;
        border: 1px solid rgba(194,215,220,.32);
        border-radius: 8px;
        color: #d9e3e3;
        background: rgba(255,255,255,.025);
        font-size: 13px;
    }
    .desktop-home-page .desktop-account-actions .desktop-account-action:last-child { border-right: 1px solid rgba(194,215,220,.32); }
    .desktop-home-page .desktop-account-actions .desktop-account-action:hover { border-color: rgba(238,244,244,.72); color: #fff; background: rgba(255,255,255,.07); }
    .desktop-home-page .desktop-account-actions .desktop-account-profile {
        color: #30291d;
        border-color: #d8b36a;
        background: linear-gradient(180deg, #e5c174, #cda253);
        box-shadow: none;
    }
    .desktop-home-page .desktop-account-actions .desktop-account-profile:hover { color: #211b12; background: #efd18e; }
    .desktop-home-page .desktop-account-actions svg { width: 25px; height: 25px; }
    .desktop-home-page .desktop-account-checkin.checked { color: #c1cdce; background: rgba(255,255,255,.02); }
    .desktop-home-page .desktop-utility .desktop-shell > div,
    .desktop-home-page .desktop-header-actions { margin-right: 530px; }
    .desktop-home-page .desktop-site-header { top: 30px; }
    .desktop-home-page .desktop-header-inner { min-height: 84px; }
    .desktop-home-page .desktop-main-nav a[href="index.php"] {
        border-color: rgba(194,215,220,.5);
        color: #fff;
        background: rgba(11,28,35,.54);
    }
    .desktop-home-page .desktop-main-nav a[href="index.php"] svg { color: #d7c38f; }
    .desktop-home-page .desktop-main-nav a[href="cdk_shop.php"] { color: #dbe4e3; }
    .desktop-home-page .desktop-main-nav a[href="cdk_shop.php"]:hover { color: #fff; }
    .desktop-home-page .desktop-main-nav a::after { background: #d8b36a; }
    .desktop-home-page .post-sort-nav {
        margin-top: 14px;
        border-color: #d9e1e2;
        color: #657278;
        background: rgba(255,255,255,.96);
        box-shadow: 0 7px 20px rgba(25,48,57,.07);
    }
    .desktop-home-page .post-sort-label { color: #758287; }
    .desktop-home-page .post-sort-nav a { color: #566267; }
    .desktop-home-page .post-sort-nav a:hover { color: #345b64; background: #edf5f6; }
    .desktop-home-page .post-sort-nav a.active,
    .desktop-home-page .post-sort-nav a.active:hover { color: #fff; background: #315f68; }
    .desktop-home-page .post-item {
        border-color: #d9e1e2 !important;
        color: var(--desktop-ink);
        background: #fff !important;
        box-shadow: 0 8px 22px rgba(28,50,57,.07) !important;
    }
    .desktop-home-page .post-item:hover { border-color: #aebfc3 !important; }
    .desktop-home-page .post-list-thumbnail { border-bottom-color: #dfe5e6; }
    .desktop-home-page .post-list-thumbnail-placeholder { color: #93a0a2; background: linear-gradient(135deg, #edf2f2, #f8faf9); }
    .desktop-home-page .post-author-name,
    .desktop-home-page .post-content,
    .desktop-home-page .post-footer { color: #748084 !important; }
    .desktop-home-page .post-title { color: #263034 !important; }
    .desktop-home-page .post-category-badge { border-left-color: #47737b; color: #41676e; background: #edf5f6; }
    .desktop-home-page .post-paid-tip { color: #d84b43; }
    .desktop-home-page .pagination .page-btn { border-color: #d7dfe0; color: #59666a; background: #fff; }
    .desktop-home-page .pagination .page-btn.active { color: #fff; border-color: #315f68; background: #315f68; }
    .desktop-home-page .desktop-bottom-publish a { color: #fff; background: #315f68; box-shadow: 0 6px 18px rgba(49,95,104,.18); }
    .desktop-home-page .desktop-bottom-publish a:hover { background: #244c54; }
    .desktop-home-page .empty-tip { color: #7d898c; }

    /* Match the selected concept's larger hero proportions and placement. */
    .desktop-home-page > .container,
    .desktop-home-page .desktop-utility .desktop-shell,
    .desktop-home-page .desktop-header-inner,
    .desktop-home-page .desktop-hero-inner {
        width: min(1628px, calc(100% - 64px)) !important;
        max-width: 1628px !important;
    }
    .desktop-home-page .desktop-hero {
        height: 384px;
        background-image: url('../img/hero-wuxia-v2.png');
        background-position: right 49%;
        background-size: 115% auto;
        filter: none;
    }
    .desktop-home-page .desktop-hero::before {
        z-index: 0;
        background:
            linear-gradient(180deg, rgba(3,12,18,.14), transparent 48%, rgba(4,14,20,.4)),
            linear-gradient(90deg, rgba(3,14,21,.36), transparent 48%, rgba(4,15,22,.18));
    }
    .desktop-home-page .desktop-hero::after {
        display: none;
    }
    .desktop-home-page .desktop-hero-inner { z-index: 2; }
    .desktop-home-page .desktop-hero-inner > div {
        max-width: 520px;
        margin: 0 560px 38px 0;
    }
    .desktop-home-page .desktop-hero h1 {
        margin-bottom: 10px;
        color: #efe1c8;
        font-size: 50px;
        letter-spacing: 2px;
        line-height: 1.22;
    }
    .desktop-home-page .desktop-hero p {
        color: rgba(239,226,201,.86);
        font-size: 17px;
    }
    .desktop-home-page .desktop-site-header { top: 27px; }
    .desktop-home-page .desktop-header-inner { min-height: 74px; }
    .desktop-home-page .desktop-main-nav a[href="index.php"] {
        min-width: 105px;
        min-height: 44px;
        font-size: 17px;
    }
    .desktop-home-page .desktop-main-nav a[href="cdk_shop.php"] {
        min-width: 129px;
        min-height: 44px;
        align-self: center;
        justify-content: center;
        border: 1px solid rgba(194,215,220,.42);
        border-radius: 5px;
        background: rgba(11,28,35,.46);
    }
    .desktop-home-page .home-category-nav {
        top: -145px;
        right: auto;
        left: 0;
        width: 820px;
        height: 112px;
    }
    .desktop-home-page .home-category-nav a { height: 110px; }
    .desktop-home-page .home-category-nav .home-category-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }
    .desktop-home-page .home-category-nav .home-category-icon svg {
        width: 36px;
        height: 36px;
        stroke-width: 1.7;
    }
    .desktop-home-page .desktop-home-aside {
        top: -310px;
        right: 0;
        width: 530px;
    }
    .desktop-home-page .desktop-account-card { min-height: 220px; }
    .desktop-home-page .desktop-account-card {
        padding: 22px 24px 18px;
        background: linear-gradient(145deg, rgba(15,22,26,.96), rgba(10,16,19,.95));
    }
    .desktop-home-page .desktop-account-card > p { margin-bottom: 21px; }
    .desktop-home-page .desktop-account-actions { height: 108px; }
    .desktop-home-page .desktop-account-actions .desktop-account-action {
        min-height: 108px;
        font-size: 14px;
    }
    .desktop-home-page .desktop-account-actions svg {
        width: 32px;
        height: 32px;
    }
    .desktop-home-page .post-sort-nav { margin: 20px 0 28px; }
    .desktop-home-page .desktop-account-actions svg {
        fill: none !important;
        stroke: currentColor !important;
        color: inherit;
    }
    .desktop-home-page .desktop-recharge-action svg {
        width: 32px;
        height: 32px;
        stroke-width: 1.8;
    }

    /* Compact version of the selected hero: same composition, less vertical space. */
    .desktop-home-page .desktop-hero {
        height: 320px;
        background-position: center 48%;
        background-size: 100% auto;
    }
    .desktop-home-page .desktop-site-header { top: 20px; }
    .desktop-home-page .desktop-header-inner { min-height: 66px; }
    .desktop-home-page .desktop-main-nav a[href="index.php"],
    .desktop-home-page .desktop-main-nav a[href="cdk_shop.php"] {
        min-height: 40px;
    }
    .desktop-home-page .desktop-hero-inner > div {
        margin-bottom: 34px;
    }
    .desktop-home-page .desktop-hero h1 {
        margin-bottom: 7px;
        font-size: 42px;
    }
    .desktop-home-page .desktop-hero p { font-size: 15px; }
    .desktop-home-page .home-category-nav {
        top: -122px;
        height: 92px;
    }
    .desktop-home-page .home-category-nav a {
        height: 90px;
        gap: 4px;
        padding-top: 7px;
        padding-bottom: 7px;
    }
    .desktop-home-page .home-category-nav .home-category-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }
    .desktop-home-page .home-category-nav .home-category-icon svg {
        width: 32px;
        height: 32px;
    }
    .desktop-home-page .desktop-home-aside {
        top: -260px;
        width: 450px;
    }
    .desktop-home-page .desktop-account-card {
        min-height: 180px;
        padding: 16px 20px;
    }
    .desktop-home-page .desktop-account-head strong { font-size: 20px; }
    .desktop-home-page .desktop-account-card > p {
        margin-top: 3px;
        margin-bottom: 12px;
    }
    .desktop-home-page .desktop-account-actions {
        height: 86px;
        gap: 7px;
    }
    .desktop-home-page .desktop-account-actions .desktop-account-action {
        min-height: 86px;
        gap: 6px;
        font-size: 13px;
    }
    .desktop-home-page .desktop-account-actions svg,
    .desktop-home-page .desktop-recharge-action svg {
        width: 27px;
        height: 27px;
    }

    /* Image-overlay post cards: keep these after the light-theme overrides above. */
    .desktop-home-page .post-item {
        border-color: #d9e1e2 !important;
        color: #263034;
        background: #fff !important;
        box-shadow: 0 7px 18px rgba(0,0,0,.18) !important;
    }
    .desktop-home-page .post-item:hover {
        border-color: rgba(224,170,78,.72) !important;
        box-shadow: 0 11px 24px rgba(0,0,0,.28) !important;
    }
    .desktop-home-page .post-list-thumbnail-placeholder {
        color: #9ba8aa;
        background: linear-gradient(135deg, #1c272b, #0b1114);
    }
    .desktop-home-page .post-author-name { color: rgba(255,255,255,.88) !important; }
    .desktop-home-page .post-footer { color: #748084 !important; }
    .desktop-home-page .post-card-image-overlay .post-title { color: #fff !important; }
    .desktop-home-page .post-category-badge {
        border-left-color: #f1c66f;
        color: #fff2cf;
        background: rgba(12,17,20,.58);
    }
    .desktop-home-page .post-paid-tip { color: #d84b43; }
}

@media (min-width: 1692px) {
    .desktop-home-page .desktop-home-aside {
        right: calc((1692px - 100vw) / 2);
    }
}

@media (max-width: 980px) {
    .desktop-header-inner { gap: 14px; }
    .desktop-main-nav a { min-width: auto; padding: 0 9px; }
    .desktop-main-nav svg { display: none; }
    .desktop-publish { display: none; }
    .desktop-home-page > .container { grid-template-columns: minmax(0, 1fr) 260px; }
}

@media (max-width: 760px) {
    .desktop-utility, .desktop-site-header, .desktop-hero, .desktop-home-aside { display: none !important; }
    body > .container { display: block !important; width: 100% !important; max-width: 480px !important; margin: 0 auto !important; background: #fff !important; }
    .admin-page > .container { width: 100% !important; max-width: 480px !important; }
    .admin-page .admin-users-sticky,
    .admin-page .users-table thead th { position: static; }
    body > .container > .header { position: fixed !important; top: 0 !important; max-width: 480px !important; height: 50px !important; padding: 0 15px !important; border: 0 !important; border-bottom: 1px solid #eee !important; border-radius: 0 !important; }
    .desktop-home-page > .container > .header { display: flex !important; }
    body > .container > .content { margin-top: 50px !important; padding: 0 !important; }
    .desktop-home-page > .container > .content { margin-top: 50px !important; }
    .form-container, .editor-container, .post-detail, .comments-section, .recharge-container { width: 100% !important; margin: 0 !important; padding: 20px 15px !important; border: 0 !important; border-radius: 0 !important; }
    .post-editor-page > .container > .header { display: flex !important; }
    .post-editor-heading { display: none; }
    .post-editor-page .post-editor-shell { display: block; width: 100% !important; margin-top: 50px !important; padding: 16px !important; }
    .post-editor-side { margin-top: 16px; }
    .post-editor-page .post-content-editor { min-height: 330px !important; }
    .post-images { grid-template-columns: 1fr; }
    .post-list-card-layout { gap: 12px; }
    .desktop-home-page .post-list { grid-template-columns: minmax(0, 1fr); }
    .desktop-home-page .post-item,
    .desktop-home-page .post-list-card-layout,
    .desktop-home-page .post-list-card-main { min-width: 0; }
    .post-list-thumbnail { width: 112px; height: 76px; flex-basis: 112px; }
    body > .container > .header + .form-container,
    body > .container > .header + .editor-container,
    body > .container > .header + .post-detail,
    body > .container > .header + .profile-header,
    body > .container > .header + .recharge-container,
    body > .container > .header + .content { margin-top: 50px !important; }
    .banned-list { grid-template-columns: 1fr; }
    .tab-bar { position: fixed !important; top: 50px !important; max-width: 480px !important; }
    .chat-messages { min-height: 0 !important; }
    .profile-header, .profile-info, .profile-tabs { width: 100%; }
    .profile-info { display: grid; grid-template-columns: 1fr; min-height: 0; padding: 24px 20px 20px !important; border: 0; gap: 18px; }
    .profile-avatar-slot { order: -1; }
    .profile-info .profile-stats { position: static; justify-content: space-around; gap: 20px; }
}
