/* ═══════════════════════════════════════════
   知微数字服务 · 蓝绿护眼主题
   ═══════════════════════════════════════════ */
:root {
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --primary-light: #14b8a6;
    --accent: #0891b2;
    --accent-glow: #06b6d4;
    --gold: #d97706;
    --bg: #e8f5f3;
    --bg-soft: #f0faf8;
    --bg-panel: rgba(255, 255, 255, 0.92);
    --card: #ffffff;
    --card-border: rgba(13, 148, 136, 0.18);
    --text: #152a2f;
    --muted: #3d5c62;
    --border: rgba(13, 148, 136, 0.14);
    --danger: #e11d48;
    --shadow: 0 2px 12px rgba(13, 148, 136, 0.08);
    --shadow-hover: 0 6px 24px rgba(13, 148, 136, 0.12);
    --glow-cyan: 0 4px 16px rgba(13, 148, 136, 0.2);
    --glow-purple: 0 4px 20px rgba(8, 145, 178, 0.15);
}

* { box-sizing: border-box; }

body.forum-body {
    margin: 0;
    font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

body.forum-cosmos {
    background:
        radial-gradient(ellipse 90% 60% at 10% 0%, rgba(167, 243, 232, 0.55), transparent 55%),
        radial-gradient(ellipse 70% 50% at 95% 10%, rgba(186, 230, 253, 0.45), transparent 50%),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(153, 246, 228, 0.35), transparent 55%),
        linear-gradient(165deg, #dff5f0 0%, #e8f5f3 35%, #eef8fb 70%, #e5f3f8 100%);
    background-attachment: fixed;
}

/* ─── 入场动画：星空大门 ─── */
.portal-intro {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(160deg, #0f766e 0%, #115e59 40%, #134e4a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.9s ease, visibility 0.9s;
}
.portal-intro.portal-out { opacity: 0; }
.portal-intro.portal-gone { display: none; }

.portal-stars {
    position: absolute;
    inset: 0;
    background: transparent;
}
.portal-stars-1 {
    box-shadow:
        100px 80px #fff, 200px 150px rgba(255,255,255,.8), 350px 60px #fff,
        500px 200px rgba(255,255,255,.6), 650px 100px #fff, 800px 300px rgba(255,255,255,.7),
        950px 50px #fff, 1100px 180px rgba(255,255,255,.5), 150px 350px #fff,
        400px 400px rgba(255,255,255,.8), 700px 450px #fff, 900px 380px rgba(255,255,255,.6),
        50px 500px rgba(255,255,255,.7), 300px 550px #fff, 600px 520px rgba(255,255,255,.5),
        850px 480px #fff, 1050px 530px rgba(255,255,255,.8), 1200px 250px #fff,
        250px 250px rgba(0,229,200,.6), 750px 150px rgba(124,108,255,.5),
        450px 480px rgba(0,229,200,.4), 1000px 420px rgba(124,108,255,.4);
    animation: starDrift 80s linear infinite;
}
.portal-stars-2 {
    box-shadow:
        80px 120px rgba(255,255,255,.5), 280px 220px #fff, 480px 80px rgba(255,255,255,.7),
        680px 320px #fff, 880px 140px rgba(255,255,255,.6), 180px 420px #fff,
        520px 280px rgba(255,255,255,.8), 820px 360px #fff, 1020px 200px rgba(255,255,255,.5);
    animation: starDrift 120s linear infinite reverse;
    opacity: 0.6;
}
.portal-stars-3 {
    box-shadow:
        160px 60px rgba(0,229,200,.8), 560px 180px rgba(124,108,255,.7),
        960px 90px rgba(0,229,200,.6), 360px 340px rgba(124,108,255,.5);
    animation: starTwinkle 4s ease-in-out infinite alternate;
}
@keyframes starDrift {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}
@keyframes starTwinkle {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.portal-nebula {
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,108,255,.25) 0%, rgba(0,229,200,.1) 40%, transparent 70%);
    filter: blur(60px);
    animation: nebulaPulse 6s ease-in-out infinite;
}
@keyframes nebulaPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
}

.portal-gate {
    position: absolute;
    top: 0; height: 100%; width: 50%;
    background: linear-gradient(90deg, #134e4a 0%, #0f766e 50%, #115e59 100%);
    border: 1px solid rgba(167, 243, 232, 0.25);
    z-index: 10;
}
.portal-gate-left {
    left: 0;
    border-right: 2px solid rgba(167, 243, 232, 0.45);
    box-shadow: inset -20px 0 60px rgba(167, 243, 232, 0.12);
    animation: gateOpenLeft 2.8s cubic-bezier(0.65, 0, 0.35, 1) 1.2s forwards;
}
.portal-gate-right {
    right: 0;
    border-left: 2px solid rgba(167, 243, 232, 0.45);
    box-shadow: inset 20px 0 60px rgba(167, 243, 232, 0.12);
    animation: gateOpenRight 2.8s cubic-bezier(0.65, 0, 0.35, 1) 1.2s forwards;
}
@keyframes gateOpenLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}
@keyframes gateOpenRight {
    0% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

.portal-beam {
    position: absolute;
    width: 4px; height: 0;
    background: linear-gradient(180deg, transparent, var(--primary), #fff, var(--primary), transparent);
    box-shadow: var(--glow-cyan), 0 0 80px rgba(0,229,200,.6);
    z-index: 5;
    animation: beamGrow 2s ease-out 0.8s forwards;
}
@keyframes beamGrow {
    0% { height: 0; opacity: 0; }
    30% { opacity: 1; }
    100% { height: 100vh; opacity: 0.8; }
}

.portal-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 229, 200, 0.3);
    z-index: 6;
}
.portal-ring-1 {
    width: 200px; height: 200px;
    animation: ringExpand 2s ease-out 1.5s forwards;
    opacity: 0;
}
.portal-ring-2 {
    width: 320px; height: 320px;
    animation: ringExpand 2.5s ease-out 1.8s forwards;
    opacity: 0;
}
@keyframes ringExpand {
    0% { transform: scale(0.3); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

.portal-intro-text {
    position: relative;
    z-index: 20;
    text-align: center;
    animation: introTextIn 1s ease 0.3s both;
}
.portal-intro-text h1 {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 12px;
    margin: 12px 0;
    background: linear-gradient(135deg, #fff 0%, #99f6e4 50%, #a5f3fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.portal-badge {
    font-size: 11px;
    letter-spacing: 4px;
    color: #99f6e4;
    border: 1px solid rgba(167, 243, 232, 0.45);
    padding: 4px 16px;
    border-radius: 20px;
    display: inline-block;
}
.portal-welcome {
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    margin: 0;
}
.portal-welcome em {
    color: #99f6e4;
    font-style: normal;
}
.portal-loading {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}
.portal-loading span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: loadDot 1.2s ease-in-out infinite;
}
.portal-loading span:nth-child(2) { animation-delay: 0.2s; }
.portal-loading span:nth-child(3) { animation-delay: 0.4s; }
@keyframes loadDot {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}
@keyframes introTextIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.portal-skip {
    position: absolute;
    bottom: 32px;
    right: 32px;
    z-index: 30;
    background: rgba(0,229,200,.1);
    border: 1px solid rgba(0,229,200,.3);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 24px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}
.portal-skip:hover {
    background: rgba(0,229,200,.2);
    box-shadow: var(--glow-cyan);
}

/* ─── 顶栏 ─── */
.forum-topbar {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    box-shadow: var(--shadow);
    color: var(--text);
    padding: 8px 28px;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.forum-topbar a {
    color: var(--muted);
    text-decoration: none;
    margin-left: 20px;
    font-size: 13px;
    transition: color 0.2s;
}
.forum-topbar a:hover, .forum-topbar a.active { color: var(--primary); }
.forum-topbar .logo {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.forum-topbar .logo a {
    color: var(--text);
    margin-left: 0;
}
.forum-topbar .logo a:hover { color: var(--primary); }
.logo-icon { color: var(--primary); font-size: 20px; }

/* 移动端子应用导航折叠 */
.nav-toggle-btn {
    display: none;
}

@media (max-width: 768px) {
    .nav-toggle-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        margin-left: auto;
        padding: 6px 12px;
        min-height: 36px;
        font-size: 13px;
        font-family: inherit;
        color: var(--primary-dark, #0f766e);
        background: rgba(204, 251, 241, 0.55);
        border: 1px solid rgba(13, 148, 136, 0.35);
        border-radius: 999px;
        cursor: pointer;
        touch-action: manipulation;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .nav-toggle-btn:active {
        opacity: 0.85;
        transform: scale(0.98);
    }

    .forum-topbar .topbar-left {
        justify-content: space-between !important;
        gap: 8px;
    }

    .forum-topbar.nav-collapsed .nav-links {
        display: none !important;
    }

    .forum-topbar.nav-expanded .nav-links {
        display: flex !important;
        flex-wrap: wrap !important;
        overflow: visible !important;
        align-items: center;
        gap: 6px;
        width: 100%;
        padding: 0 0 4px;
    }

    .forum-topbar.nav-expanded .nav-links a,
    .forum-topbar.nav-expanded .nav-user {
        margin-left: 0 !important;
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 12px;
        padding: 6px 10px;
    }

    .forum-topbar.nav-expanded .nav-user {
        width: 100%;
        order: 99;
        box-sizing: border-box;
        justify-content: center;
        padding: 8px 10px 4px;
        margin-top: 2px;
        border-top: 1px solid var(--card-border);
    }
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
}
.nav-user {
    color: var(--primary) !important;
    margin-left: 20px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ─── 首页绿色字幕滚动条（单行横滚，通栏） ─── */
.scroll-screen {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s ease 0.12s, transform 0.6s ease 0.12s;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.scroll-screen.scroll-visible {
    opacity: 1;
    transform: translateY(0);
}
.scroll-screen-bar {
    display: flex;
    align-items: center;
    width: 100%;
    height: 44px;
    max-height: 44px;
    overflow: hidden;
    background: linear-gradient(90deg, #047857 0%, #0d9488 35%, #14b8a6 65%, #0f766e 100%);
    border-top: 1px solid rgba(167, 243, 208, 0.45);
    border-bottom: 1px solid rgba(6, 78, 59, 0.55);
    box-shadow: 0 2px 12px rgba(13, 148, 136, 0.25);
}
.scroll-screen-label {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #ecfdf5;
    background: rgba(6, 95, 70, 0.55);
    border-right: 1px solid rgba(167, 243, 208, 0.35);
    white-space: nowrap;
}
.scroll-screen-ticker {
    flex: 1;
    min-width: 0;
    height: 44px;
    max-height: 44px;
    overflow: hidden;
    position: relative;
}
.scroll-marquee {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 44px;
    overflow: hidden;
}
.scroll-marquee-track {
    position: absolute;
    top: 0;
    left: 0;
    height: 44px;
    line-height: 44px;
    display: inline-block;
    white-space: nowrap;
    width: max-content;
    animation-name: scrollMarqueeLoop;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-duration: 60s;
    will-change: transform;
}
.scroll-marquee.is-paused .scroll-marquee-track {
    animation-play-state: paused;
}
.scroll-marquee-chunk {
    display: inline;
    white-space: nowrap;
    padding-right: 4em;
    font-size: 16px;
    line-height: 44px;
    letter-spacing: 0.5px;
    color: #f0fdf4;
    text-shadow: 0 1px 2px rgba(6, 78, 59, 0.5);
    word-break: keep-all;
    overflow-wrap: normal;
}
.scroll-screen-placeholder {
    padding-left: 16px;
    font-size: 14px;
    color: rgba(240, 253, 244, 0.85);
    line-height: 44px;
}
.scroll-screen-edit-btn {
    flex: 0 0 auto;
    margin: 0;
    padding: 0 18px;
    height: 100%;
    border: none;
    border-left: 1px solid rgba(167, 243, 208, 0.4);
    background: rgba(6, 95, 70, 0.75);
    color: #ecfdf5;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    white-space: nowrap;
}
.scroll-screen-edit-btn:hover {
    background: rgba(4, 120, 87, 0.95);
}
.scroll-screen-editor {
    background: #ecfdf5;
    border-bottom: 2px solid #0d9488;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.15);
}
.scroll-screen-editor-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 12px 20px 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 16px;
}
.scroll-screen-editor-inner > label:first-child {
    font-size: 13px;
    color: #065f46;
    margin-right: 8px;
}
.scroll-editor-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #047857;
}
.scroll-editor-field span {
    font-weight: 600;
}
.scroll-editor-field input,
.scroll-editor-field textarea {
    border: 1px solid #99f6e4;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    min-width: 120px;
}
.scroll-editor-field-full {
    flex: 1 1 100%;
}
.scroll-editor-field-full textarea {
    width: 100%;
    min-height: 72px;
    resize: vertical;
    box-sizing: border-box;
}
.scroll-editor-actions {
    flex: 1 1 100%;
    display: flex;
    gap: 10px;
    margin-top: 4px;
}
@keyframes scrollMarqueeLoop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─── 主布局：左主题 + 右内容 ─── */
.world-layout {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 0;
    max-width: 100%;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}
.world-layout--learn {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(200px, 240px);
}
.world-right-rail {
    border-left: 1px solid var(--card-border);
    padding: 20px 16px;
    background: rgba(255, 255, 255, 0.35);
    overflow-y: auto;
    max-height: calc(100vh - 58px);
}
.world-layout.world-visible {
    opacity: 1;
    transform: translateY(0);
}

.world-left {
    border-right: 1px solid var(--card-border);
    padding: 24px 20px 24px 28px;
    overflow-y: auto;
    max-height: calc(100vh - 58px);
    background: rgba(255, 255, 255, 0.35);
}

.world-main {
    padding: 24px 28px;
    overflow-y: auto;
    max-height: calc(100vh - 58px);
    min-height: 320px;
}

.world-panel { max-width: 400px; }

.panel-head { margin-bottom: 20px; }
.panel-tag {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
}
.panel-head h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
}
.panel-head p { margin: 0; color: var(--muted); font-size: 13px; }

.user-capsule {
    display: flex;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    gap: 12px;
    box-shadow: var(--shadow);
}
.capsule-stat { text-align: center; flex: 1; }
.capsule-stat b {
    display: block;
    font-size: 20px;
    color: var(--primary);
    font-weight: 600;
}
.capsule-stat b.capsule-theme { font-size: 13px; }
.capsule-stat span { font-size: 11px; color: var(--muted); }
.capsule-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

.topbar-asset-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 16px;
    padding: 6px 12px;
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.15);
    border-radius: 8px;
    font-size: 12px;
    color: var(--muted);
    flex-wrap: wrap;
}
.topbar-asset-item b {
    color: var(--primary);
    margin-right: 3px;
    font-weight: 600;
}
.topbar-asset-link {
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
}
.topbar-asset-link:hover { text-decoration: underline; }

.learn-asset-panel {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.learn-asset-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.learn-asset-cell {
    text-align: center;
    padding: 8px 4px;
    background: var(--bg-soft);
    border-radius: 8px;
}
.learn-asset-cell b {
    display: block;
    font-size: 15px;
    color: var(--primary);
    font-weight: 600;
}
.learn-asset-cell span {
    font-size: 10px;
    color: var(--muted);
}

/* 主题列表（左对齐） */
.theme-list { display: flex; flex-direction: column; gap: 10px; }

.theme-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s;
    text-align: left;
    box-shadow: var(--shadow);
}
.theme-row:hover {
    border-color: rgba(13, 148, 136, 0.35);
    box-shadow: var(--shadow-hover);
}
.theme-row.active {
    border-color: var(--primary);
    box-shadow: var(--glow-cyan);
    background: rgba(204, 251, 241, 0.45);
}
.theme-row.joined { border-left: 3px solid var(--primary); }

.theme-row-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
    min-width: 28px;
    padding-top: 2px;
}
.theme-row-body { flex: 1; min-width: 0; }
.theme-row-body h3 {
    margin: 0 0 4px;
    font-size: 15px;
    color: var(--text);
}
.theme-row-body p {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.theme-row-meta {
    margin-top: 6px;
    font-size: 11px;
    color: var(--primary-dark);
}
.theme-row-meta span { margin-right: 10px; }

.theme-row-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    flex-shrink: 0;
}
.btn-join {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: box-shadow 0.2s;
}
.btn-join:hover { box-shadow: var(--glow-cyan); }
.btn-enter {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-enter:hover { border-color: var(--primary); color: var(--primary); }
.badge-joined {
    font-size: 10px;
    color: var(--primary);
    border: 1px solid rgba(0,229,200,.3);
    padding: 3px 8px;
    border-radius: 4px;
}

/* ─── 右侧主内容 / 底部装饰舞台 ─── */
.world-showcase {
    padding: 0 28px 24px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.8s ease 0.35s, transform 0.8s ease 0.35s;
}
.world-showcase.world-visible {
    opacity: 1;
    transform: translateY(0);
}

.holo-stage {
    position: relative;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    background:
        radial-gradient(ellipse at 50% 30%, rgba(167, 243, 232, 0.5) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 80%, rgba(186, 230, 253, 0.35) 0%, transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 253, 250, 0.9) 100%);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.holo-stage-compact {
    display: flex;
    align-items: center;
    min-height: 0;
    height: auto;
    padding: 16px 20px;
}
.holo-stage-compact .holo-grid {
    opacity: 0.35;
    mask-image: radial-gradient(ellipse at 90% 50%, black 15%, transparent 55%);
}
.holo-stage-compact .holo-orbit-1 {
    width: 72px;
    height: 72px;
    top: 50%;
    right: 48px;
    left: auto;
    transform: translateY(-50%);
}
.holo-stage-compact .holo-core {
    width: 44px;
    height: 44px;
    top: 50%;
    right: 62px;
    left: auto;
    transform: translateY(-50%);
}
.holo-stage-compact .holo-info {
    position: static;
    flex: 1;
    padding: 0 100px 0 0;
    background: transparent;
    z-index: 10;
}
.holo-stage-compact .holo-info h2 {
    font-size: 20px;
    margin-bottom: 4px;
}
.holo-stage-compact .holo-info p {
    margin-bottom: 10px;
    font-size: 13px;
}
.holo-stage-compact .holo-metrics {
    gap: 20px;
    margin-bottom: 10px;
}
.holo-stage-compact .holo-metric em {
    font-size: 18px;
}
.holo-stage-compact .holo-actions .btn {
    padding: 8px 16px;
    font-size: 13px;
}

.holo-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(13, 148, 136, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 148, 136, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridScroll 20s linear infinite;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
@keyframes gridScroll {
    from { background-position: 0 0; }
    to { background-position: 40px 40px; }
}

.holo-scanline {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0,229,200,.02) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    animation: scanMove 8s linear infinite;
}
@keyframes scanMove {
    from { transform: translateY(0); }
    to { transform: translateY(4px); }
}

.holo-orbit {
    position: absolute;
    top: 38%; left: 50%;
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.holo-orbit-1 { width: 180px; height: 180px; animation: orbitSpin 12s linear infinite; }
.holo-orbit-2 { width: 260px; height: 260px; animation: orbitSpin 18s linear infinite reverse; }
.holo-orbit-3 { width: 340px; height: 340px; animation: orbitSpin 25s linear infinite; }
.orbit-dot {
    position: absolute;
    top: -4px; left: 50%;
    width: 8px; height: 8px;
    margin-left: -4px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: var(--glow-cyan);
}
@keyframes orbitSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.holo-core {
    position: absolute;
    top: 38%; left: 50%;
    transform: translate(-50%, -50%);
    width: 120px; height: 120px;
}
.holo-sphere {
    width: 100%; height: 100%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,.8), transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(8, 145, 178, 0.35), transparent 50%),
        linear-gradient(135deg, rgba(20, 184, 166, 0.5), rgba(8, 145, 178, 0.4));
    box-shadow:
        inset -8px -8px 24px rgba(13, 148, 136, 0.15),
        0 0 40px rgba(13, 148, 136, 0.25),
        0 0 60px rgba(8, 145, 178, 0.15);
    animation: spherePulse 4s ease-in-out infinite;
}
.holo-ring {
    position: absolute;
    inset: -20px;
    border: 2px solid transparent;
    border-top-color: var(--primary);
    border-right-color: rgba(124,108,255,.5);
    border-radius: 50%;
    animation: ringSpin 3s linear infinite;
}
@keyframes spherePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
@keyframes ringSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.holo-particles span {
    position: absolute;
    top: 38%; left: 50%;
    width: 4px; height: 4px;
    margin: -2px 0 0 -2px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.6;
    animation: particleFloat 3s ease-in-out infinite;
}
@keyframes particleFloat {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.holo-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 28px 32px;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.92) 35%);
    z-index: 10;
}
.holo-info-tag {
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 8px;
}
.holo-info h2 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 600;
    color: var(--text);
}
.holo-info p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 14px;
    max-width: 500px;
}
.holo-metrics {
    display: flex;
    gap: 32px;
    margin-bottom: 20px;
}
.holo-metric em {
    display: block;
    font-style: normal;
    font-size: 26px;
    font-weight: 600;
    color: var(--primary);
}
.holo-metric label {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 1px;
}
.holo-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.holo-deco {
    position: absolute;
    width: 60px; height: 60px;
    border: 1px solid rgba(13, 148, 136, 0.25);
    pointer-events: none;
}
.holo-deco-tl { top: 20px; left: 20px; border-right: none; border-bottom: none; }
.holo-deco-br { bottom: 20px; right: 20px; border-left: none; border-top: none; }

/* ─── 生态动态流 ─── */
.world-feed {
    opacity: 1;
    transform: none;
}
.feed-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.feed-head-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.feed-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}
.feed-icon { color: var(--primary); margin-right: 6px; }
.feed-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
}
.feed-link:hover { text-decoration: underline; }

/* ─── 通用组件 ─── */
.forum-wrap { max-width: 1100px; margin: 24px auto; padding: 0 16px; }

.forum-hero {
    background: var(--card);
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 24px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow);
}
.forum-hero h1 { margin: 0 0 8px; font-size: 26px; color: var(--text); }
.forum-hero p { margin: 0; color: var(--muted); line-height: 1.6; }

.post-read-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(204, 251, 241, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 8px;
}
.post-read-toolbar .tts-hint {
    font-size: 12px;
    color: var(--muted);
}
.post-read-toolbar .tts-warn {
    color: #b45309;
}
.post-body-wrap {
    margin-top: 14px;
}
.post-body {
    color: var(--text);
    font-size: 16px;
    line-height: 1.9;
    white-space: pre-wrap;
    letter-spacing: 0.02em;
    transition: max-height 0.25s ease;
}
.post-body.is-collapsed {
    max-height: 7.6em;
    overflow: hidden;
    position: relative;
}
.post-body.is-collapsed::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3em;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.96));
    pointer-events: none;
}
.forum-cosmos .post-body.is-collapsed::after {
    background: linear-gradient(to bottom, rgba(240, 253, 250, 0), rgba(240, 253, 250, 0.96));
}
.post-body-fold-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed rgba(13, 148, 136, 0.2);
}
.btn-fold {
    padding: 4px 12px;
    font-size: 13px;
    color: var(--primary-dark);
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.25);
    border-radius: 6px;
    cursor: pointer;
}
.btn-fold:hover {
    background: rgba(13, 148, 136, 0.15);
}
.btn-fold--primary {
    color: #fff;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    border-color: transparent;
}
.btn-fold--primary:hover {
    opacity: 0.92;
}
.post-body-pager {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 12px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed rgba(13, 148, 136, 0.2);
}
.post-body-pager-info {
    font-size: 13px;
    color: var(--muted);
    min-width: 72px;
}
.post-body-pager-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}
.btn-pager {
    min-width: 36px;
    padding: 4px 10px;
    font-size: 13px;
    color: var(--primary-dark);
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid rgba(13, 148, 136, 0.25);
    border-radius: 6px;
    cursor: pointer;
}
.btn-pager:hover:not(:disabled) {
    background: rgba(13, 148, 136, 0.15);
}
.btn-pager:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.btn-pager--active {
    color: #fff;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    border-color: transparent;
}
.comment-text {
    margin: 6px 0 0;
    color: var(--text);
    line-height: 1.75;
    font-size: 15px;
}

.forum-stats { display: flex; gap: 24px; margin-top: 16px; flex-wrap: wrap; }
.forum-stat {
    background: rgba(204, 251, 241, 0.5);
    border: 1px solid var(--card-border);
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
}
.forum-stat b { color: var(--primary); font-size: 18px; margin-right: 4px; }

.section-title {
    font-size: 18px;
    margin: 24px 0 14px;
    padding-left: 10px;
    border-left: 3px solid var(--primary);
    color: var(--text);
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.theme-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
    transition: all 0.2s;
    cursor: pointer;
}
.theme-card:hover {
    border-color: rgba(13, 148, 136, 0.35);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.theme-card.joined { border-color: var(--primary); background: rgba(204, 251, 241, 0.4); }
.theme-card .num { font-size: 12px; color: var(--primary); margin-bottom: 8px; font-weight: 600; }
.theme-card h3 { font-size: 16px; margin-bottom: 8px; color: var(--text); }
.theme-card p { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }
.theme-card .meta { font-size: 12px; color: var(--muted); }

.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    font-weight: 600;
    transition: background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
    box-shadow: 0 2px 10px rgba(13, 148, 136, 0.28);
}
.btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2dd4bf, var(--primary-dark));
    box-shadow: var(--shadow-hover), var(--glow-cyan);
    transform: translateY(-2px);
}
.btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 6px rgba(13, 148, 136, 0.22);
}
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    filter: grayscale(0.15);
}
.btn-glow { color: #fff; }
.btn-ghost {
    background: rgba(255, 255, 255, 0.8);
    color: var(--primary-dark);
    border: 1px solid rgba(13, 148, 136, 0.35);
}
.btn-ghost:hover { background: rgba(204, 251, 241, 0.6); box-shadow: none; }
.btn-outline {
    background: rgba(255, 255, 255, 0.85);
    color: var(--primary-dark);
    border: 1px solid rgba(13, 148, 136, 0.35);
    box-shadow: 0 1px 4px rgba(13, 148, 136, 0.08);
}
.btn-outline:hover:not(:disabled) {
    background: rgba(13, 148, 136, 0.1);
    border-color: var(--primary);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.18);
}
.btn-outline:active:not(:disabled) {
    transform: translateY(0);
}
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-danger { background: var(--danger); color: #fff; }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list-dark .post-item {
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.post-item {
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.post-item:hover { border-color: rgba(13, 148, 136, 0.3); box-shadow: var(--shadow-hover); }
.post-item h4 { margin: 0 0 8px; font-size: 15px; }
.post-item h4 a { color: var(--text); text-decoration: none; }
.post-item h4 a:hover { color: var(--primary); }
.post-meta { font-size: 12px; color: var(--muted); }
.post-meta span { margin-right: 14px; }
.author-tag { color: var(--primary) !important; }

/* ─── 用户等级标识 V0~V3 ─── */
.user-identity {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(13, 148, 136, 0.18);
    background: #f8fafc;
}
.user-avatar--sm {
    width: 24px;
    height: 24px;
    font-size: 11px;
}
.user-avatar--lg {
    width: 72px;
    height: 72px;
    font-size: 28px;
}
.user-avatar--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.18), rgba(59, 130, 246, 0.16));
    color: var(--primary-dark, #0f766e);
    font-weight: 700;
    line-height: 1;
}
.user-id-tag {
    font-size: 11px;
    color: var(--muted, #64748b);
    font-variant-numeric: tabular-nums;
}
.user-badge {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.5;
    vertical-align: middle;
}
.user-badge-v0 {
    background: rgba(100, 116, 139, 0.15);
    color: #64748b;
    border: 1px solid rgba(100, 116, 139, 0.25);
}
.user-badge-v1 {
    background: rgba(13, 148, 136, 0.15);
    color: #0f766e;
    border: 1px solid rgba(13, 148, 136, 0.3);
}
.user-badge-v2 {
    background: rgba(8, 145, 178, 0.15);
    color: #0369a1;
    border: 1px solid rgba(8, 145, 178, 0.35);
}
.user-badge-v3 {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.2), rgba(225, 29, 72, 0.12));
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.4);
}
.user-badge-super {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(225, 29, 72, 0.18));
    color: #7c3aed;
    border: 1px solid rgba(124, 58, 237, 0.45);
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.15);
}
.user-tier-name {
    font-size: 11px;
    color: var(--muted);
    font-style: normal;
    font-weight: 500;
}
.comment-item .author-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.comment-item .comment-time {
    font-size: 12px;
    color: var(--muted);
}
.post-actions { margin-top: 10px; display: flex; gap: 8px; }
.post-actions .btn-sm { padding: 4px 12px; font-size: 12px; }
.post-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    background: rgba(204, 251, 241, 0.7);
    color: var(--primary-dark);
    font-size: 11px;
    margin-right: 8px;
    border: 1px solid rgba(13, 148, 136, 0.2);
}
.post-tag-type {
    background: rgba(186, 230, 253, 0.6);
    color: var(--accent);
    border-color: rgba(8, 145, 178, 0.25);
}

.forum-form {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow);
}
.forum-form label { display: block; margin: 14px 0 6px; font-size: 14px; color: var(--muted); }
.forum-form input, .forum-form select, .forum-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-soft);
    color: var(--text);
}
.forum-form input:focus, .forum-form select:focus, .forum-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
    background: #fff;
}

.file-upload-box {
    border: 1px dashed rgba(13, 148, 136, 0.35);
    border-radius: 10px;
    padding: 20px;
    background: rgba(204, 251, 241, 0.25);
}
.file-upload-box input[type="file"] { width: 100%; padding: 8px 0; border: none; background: transparent; color: var(--muted); }
.file-hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; }

.rank-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.rank-table th, .rank-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
.rank-table th { background: rgba(204, 251, 241, 0.55); color: var(--primary-dark); }
.rank-table tr:hover td { background: rgba(240, 253, 250, 0.8); }
.rank-table--metrics td { vertical-align: top; font-size: 13px; }
.credit-val { color: #b45309; font-size: 15px; }
.metric-bars { min-width: 140px; }
.metric-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 11px;
}
.metric-label {
    flex: 0 0 36px;
    color: var(--muted);
}
.metric-bar {
    flex: 1;
    height: 6px;
    background: rgba(13, 148, 136, 0.15);
    border-radius: 3px;
    overflow: hidden;
}
.metric-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #0d9488, #14b8a6);
    border-radius: 3px;
}
.metric-num {
    flex: 0 0 34px;
    text-align: right;
    color: var(--primary-dark);
    font-size: 10px;
}
.btn-mini {
    padding: 4px 10px;
    font-size: 12px;
    border: 1px solid rgba(13, 148, 136, 0.4);
    background: rgba(13, 148, 136, 0.08);
    color: var(--primary-dark);
    border-radius: 6px;
    cursor: pointer;
}
.btn-primary-mini {
    padding: 6px 14px;
    font-size: 13px;
    border: none;
    background: linear-gradient(135deg, #0d9488, #14b8a6);
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-card {
    width: min(420px, 92vw);
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
.modal-card h3 { margin: 0 0 8px; font-size: 18px; }
.review-row {
    display: grid;
    grid-template-columns: 90px 1fr 48px;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    font-size: 13px;
}
.review-row input[type=range] { width: 100%; }
.review-remark {
    width: 100%;
    margin: 12px 0;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    box-sizing: border-box;
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}
.recharge-notice-wrap {
    padding: 12px 24px 0;
}
.recharge-notice {
    margin: 0;
    padding: 10px 14px;
    background: rgba(13, 148, 136, 0.12);
    border: 1px solid rgba(13, 148, 136, 0.35);
    border-radius: 8px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}
.recharge-notice-text { flex: 1; }
.recharge-notice-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.recharge-notice-close {
    min-width: 32px;
    padding: 2px 8px !important;
    font-size: 18px;
    line-height: 1;
}
.rank-num { font-weight: bold; color: var(--gold); width: 48px; }

.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tab {
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    background: var(--card);
    border: 1px solid var(--border);
    font-size: 14px;
    color: var(--muted);
    transition: all 0.2s;
}
.tab.active { background: rgba(204, 251, 241, 0.7); color: var(--primary-dark); border-color: var(--primary); }

.comment-box { margin-top: 20px; }
.comment-item {
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 14px;
}
.comment-item .author { color: var(--primary); font-weight: bold; margin-right: 8px; }

.media-preview { max-width: 100%; margin-top: 12px; border-radius: 10px; }
.media-preview video { max-width: 100%; border-radius: 10px; }
.media-preview img { max-width: 100%; border-radius: 10px; }

.media-block { margin-top: 16px; }
.media-block--video { margin-top: 20px; }

/* ─── 视频播放器（自适应竖屏/横屏 + 全屏） ─── */
.video-stage-wrap {
    margin-top: 4px;
}
.video-stage {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.18);
}
.video-stage--landscape {
    width: 100%;
}
.video-stage--portrait {
    width: min(100%, 420px);
    margin-left: auto;
    margin-right: auto;
}
.video-stage--square {
    width: min(100%, 560px);
    margin-left: auto;
    margin-right: auto;
}
.video-stage-bg {
    position: absolute;
    inset: -24px;
    background-size: cover;
    background-position: center;
    filter: blur(32px) saturate(1.15) brightness(0.38);
    transform: scale(1.08);
    z-index: 0;
    pointer-events: none;
}
.video-stage-bg--gradient {
    background:
        linear-gradient(160deg, rgba(15, 118, 110, 0.45) 0%, rgba(15, 23, 42, 0.55) 55%, rgba(2, 6, 23, 0.8) 100%),
        radial-gradient(ellipse at 30% 20%, rgba(45, 212, 191, 0.4), transparent 50%),
        linear-gradient(135deg, #134e4a 0%, #1e3a5f 45%, #0f172a 100%);
    filter: none;
    transform: none;
    inset: 0;
    z-index: 0;
}
.video-stage-player {
    position: relative;
    z-index: 1;
    width: 100%;
    display: block;
    background: transparent;
    outline: none;
}
.video-stage-player:not(.is-playing):not(.is-frame-ready) {
    opacity: 0;
}
.video-stage-player.is-frame-ready:not(.is-playing) {
    opacity: 1;
}
.video-stage-player.is-playing {
    opacity: 1;
    background: #000;
}
.video-click-play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    margin: 0;
}
.video-stage--landscape .video-stage-player {
    max-height: min(72vh, 680px);
    object-fit: contain;
}
.video-stage--portrait .video-stage-player {
    max-height: min(85vh, 920px);
    object-fit: contain;
}
.video-stage--square .video-stage-player {
    max-height: min(78vh, 720px);
    object-fit: contain;
}
.video-stage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}
.video-stage:fullscreen,
.video-stage:-webkit-full-screen {
    width: 100% !important;
    max-width: none !important;
    height: 100%;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}
.video-stage:fullscreen .video-stage-bg,
.video-stage:-webkit-full-screen .video-stage-bg {
    inset: -10%;
    filter: blur(48px) brightness(0.25);
}
.video-stage:fullscreen .video-stage-player,
.video-stage:-webkit-full-screen .video-stage-player {
    max-height: 100vh;
    max-width: 100vw;
    width: auto;
    height: auto;
    flex: 0 1 auto;
}

/* 感悟 · 音频播放器（带作者提供的背景图） */
.audio-reflection-card {
    width: 100%;
    max-width: 480px;
    min-height: 200px;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    background-color: #1a3a34;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-hover);
}
.audio-reflection-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px 18px 14px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.82) 0%,
        rgba(0, 0, 0, 0.4) 55%,
        rgba(0, 0, 0, 0.15) 100%
    );
}
.audio-reflection-label {
    color: #fff;
    font-size: 13px;
    margin-bottom: 8px;
    opacity: 0.95;
}
.audio-reflection-overlay audio {
    width: 100%;
    height: 40px;
    min-height: 44px;
    position: relative;
    z-index: 2;
}
.spirit-audio-play-btn {
    display: block;
    width: 100%;
    max-width: 220px;
    margin: 0 auto 10px;
    padding: 12px 20px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.45);
    position: relative;
    z-index: 3;
}
.spirit-audio-play-btn:active {
    transform: scale(0.98);
}
.spirit-audio-mobile-hint {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted, #64748b);
}
@media (max-width: 768px) {
    .audio-reflection-card {
        overflow: visible;
        min-height: 220px;
    }
    .audio-reflection-overlay {
        position: relative;
        min-height: 200px;
        padding-bottom: 18px;
    }
    .audio-reflection-overlay audio {
        height: 48px;
    }
}
.audio-cover-preview {
    width: 160px;
    height: 96px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border);
    margin-top: 8px;
}

/* 首页 · 活动中心 */
.activity-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}
.activity-hub-card {
    display: block;
    padding: 14px 16px;
    background: var(--bg-panel);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.activity-hub-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}
.activity-hub-card--featured {
    border-color: rgba(13, 148, 136, 0.35);
    background: linear-gradient(135deg, rgba(13,148,136,0.08), rgba(255,255,255,0.95));
}
.activity-hub-card h4 {
    margin: 8px 0 6px;
    font-size: 15px;
}
.activity-hub-card p {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
}
.activity-hub-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}

/* 数字世界 · 左栏资产 + 居中主内容 */
.portal-page {
    position: relative;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.portal-page.world-visible {
    opacity: 1;
    transform: translateY(0);
}
.portal-page--with-rail {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    align-items: start;
    column-gap: 0;
    max-width: 100%;
}
.portal-main-center {
    display: flex;
    justify-content: flex-start;
    padding: 0 20px 40px 12px;
    min-width: 0;
    width: 100%;
}
.portal-main-center .forum-wrap.portal-home {
    margin: 24px 0;
    max-width: none;
    width: 100%;
}
.portal-hub-grid--engines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.portal-hub-card--featured {
    min-height: 168px;
    border-width: 2px;
    box-shadow: var(--shadow-hover);
}
.portal-left-rail {
    padding: 12px 10px 20px 28px;
    position: sticky;
    top: 66px;
    align-self: start;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    box-sizing: border-box;
}
.portal-page:not(.portal-page--with-rail) .portal-main-center {
    padding-left: 16px;
    padding-right: 16px;
}
.portal-home {
    max-width: 1120px;
    padding: 0;
}
.portal-recharge-link { color: #e4393c !important; }
.portal-asset-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow);
}
.portal-home-hero h1 {
    margin: 8px 0 6px;
    font-size: 26px;
}
.portal-asset-head h3 {
    margin: 4px 0 6px;
    font-size: 18px;
}
.portal-asset-head .file-hint {
    margin: 0 0 12px;
}
.portal-user-capsule-side {
    margin: 0 0 12px;
    max-width: none;
    flex-wrap: wrap;
    padding: 10px 8px;
}
.portal-user-capsule-side .capsule-stat b { font-size: 16px; }
.portal-asset-links {
    margin: 12px 0 0;
    font-size: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.portal-asset-links a {
    color: var(--primary);
    text-decoration: none;
}
.portal-asset-links a:hover { text-decoration: underline; }
.portal-user-capsule {
    margin: 16px 0 24px;
    max-width: 640px;
}
.portal-hub-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.portal-hub-card {
    display: block;
    padding: 18px 18px 16px;
    background: var(--bg-panel);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}
.portal-hub-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.portal-hub-card h3, .portal-hub-card h4 {
    margin: 10px 0 8px;
    font-size: 17px;
}
.portal-hub-card p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
}
.portal-hub-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
}
.portal-hub-card--learn {
    border-color: rgba(59, 130, 246, 0.35);
    background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(255,255,255,0.96));
}
.portal-hub-card--work {
    border-color: rgba(13, 148, 136, 0.35);
    background: linear-gradient(135deg, rgba(13,148,136,0.08), rgba(255,255,255,0.95));
}
.portal-hub-card--activity {
    border-color: rgba(234, 88, 12, 0.3);
    background: linear-gradient(135deg, rgba(234,88,12,0.06), rgba(255,255,255,0.96));
}
.portal-themes-section {
    margin-top: 28px;
    padding-top: 8px;
}
.portal-themes-hint {
    margin: 0 0 16px;
}
.portal-themes-section .theme-grid {
    margin-bottom: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.portal-themes-section .theme-card {
    padding: 14px 12px;
}
.portal-themes-section .theme-card h3 {
    font-size: 14px;
    margin-bottom: 6px;
}
.portal-themes-section .theme-card p {
    font-size: 12px;
    margin-bottom: 8px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.portal-themes-section .theme-card .meta {
    font-size: 11px;
}

.activity-center-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}
.activity-search-input,
.activity-search-select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
}
.activity-search-input { flex: 1; min-width: 180px; }
.activity-search-select { min-width: 140px; }
.activity-center-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.activity-center-card {
    padding: 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.activity-center-card h4 { margin: 8px 0; font-size: 16px; }
.activity-center-card h4 a { color: var(--text); text-decoration: none; }
.activity-center-card h4 a:hover { color: var(--primary); }
.activity-center-desc {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.activity-center-meta,
.activity-center-team {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 8px;
}
.activity-center-team { color: var(--primary-dark); }
.activity-center-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.activity-progress-bar {
    height: 8px;
    background: rgba(13, 148, 136, 0.12);
    border-radius: 6px;
    overflow: hidden;
}
.activity-progress-bar > div {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    border-radius: 6px;
    transition: width 0.3s ease;
}
.activity-center-progress { margin: 8px 0; }

@media (max-width: 1100px) {
    .portal-themes-section .theme-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .portal-hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .portal-page--with-rail {
        display: block;
    }
    .portal-left-rail {
        position: static;
        max-height: none;
        padding: 12px 16px 0;
    }
    .portal-main-center {
        padding: 0 16px 32px;
    }
    .portal-themes-section .theme-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .portal-themes-section .theme-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .portal-hub-grid {
        grid-template-columns: 1fr;
    }
}
.media-video {
    width: 100%;
    max-height: 520px;
    background: #000;
    object-fit: contain;
    display: block;
}
.media-error {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(225, 29, 72, 0.08);
    border: 1px solid rgba(225, 29, 72, 0.25);
    color: #be123c;
    font-size: 13px;
    line-height: 1.6;
}
.media-error a { color: var(--primary); }

.edit-section {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px dashed var(--border);
}
.edit-section:last-of-type { border-bottom: none; }
.edit-section-title {
    margin: 0 0 12px;
    font-size: 15px;
    color: var(--primary);
    font-weight: 600;
}
.edit-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.edit-section-head .edit-section-title { margin-bottom: 0; }
.btn-text-danger {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 13px;
    padding: 0;
}
.btn-text-danger:hover { text-decoration: underline; }
.media-edit-box {
    background: rgba(204, 251, 241, 0.3);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 14px;
}
.media-edit-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.edit-submit-row {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    align-items: center;
}

.empty-tip { text-align: center; color: var(--muted); padding: 40px; }
.empty-tip a { color: var(--primary); }

/* ─── 运营中心页面 ─── */
.ops-channel-grid, .ops-center-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.ops-card {
    display: block;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 18px 20px;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.ops-card:hover {
    border-color: rgba(13, 148, 136, 0.35);
    box-shadow: var(--shadow-hover);
}
.ops-card h4 { margin: 0 0 8px; font-size: 16px; color: var(--primary-dark); }
.ops-card p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.ops-card-lg { min-height: 120px; position: relative; }
.ops-card-tag {
    position: absolute;
    top: 12px; right: 12px;
    font-size: 11px;
    color: var(--accent);
    background: rgba(204, 251, 241, 0.6);
    padding: 2px 8px;
    border-radius: 4px;
}
.ops-type-list { margin: 0 0 20px; padding-left: 20px; color: var(--muted); line-height: 1.8; }
.ops-perm-list { list-style: none; padding: 0; margin: 0 0 16px; }
.ops-perm-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 13px;
}
.ops-perm-list code {
    background: rgba(204, 251, 241, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}
.service-pack-card {
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
    background: var(--card);
}
.service-pack-card .price { color: var(--gold); font-weight: 700; }
.perm-expand-row { cursor: pointer; }
.perm-expand-row:hover { background: rgba(204, 251, 241, 0.25); }
.perm-expand-panel {
    background: var(--bg-soft);
    padding: 12px 16px 16px 40px;
    border-bottom: 1px solid var(--border);
}
.registry-table th, .registry-table td { font-size: 13px; vertical-align: top; }
.registry-table small { color: var(--muted); }
.service-status-active { color: var(--primary-dark); }
.service-status-planned { color: var(--muted); }

/* ─── 响应式 ─── */
@media (max-width: 900px) {
    .scroll-screen-bar {
        height: 40px;
        max-height: 40px;
    }
    .scroll-screen-ticker,
    .scroll-marquee,
    .scroll-marquee-track {
        height: 40px;
        line-height: 40px;
    }
    .scroll-marquee-chunk {
        font-size: 14px;
        line-height: 40px;
    }
    .scroll-screen-label {
        padding: 0 10px;
        font-size: 11px;
    }
    .world-layout,
    .world-layout--learn {
        grid-template-columns: 1fr;
    }
    .world-right-rail {
        display: none;
    }
    .world-left {
        max-height: none;
        border-right: none;
        border-bottom: 1px solid var(--card-border);
    }
    .world-main {
        max-height: none;
        padding: 20px 16px;
    }
    .world-panel { max-width: none; }
    .world-showcase {
        padding: 0 16px 20px;
    }
    .holo-stage-compact {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }
    .holo-stage-compact .holo-info {
        padding-right: 0;
    }
    .holo-stage-compact .holo-orbit-1,
    .holo-stage-compact .holo-core {
        display: none;
    }
    .portal-intro-text h1 { font-size: 32px; letter-spacing: 6px; }
    .forum-topbar { padding: 10px 12px; flex-direction: column; align-items: stretch; gap: 10px; min-height: auto; }
    .forum-topbar .topbar-left { width: 100%; justify-content: space-between; }
    .forum-topbar.nav-collapsed .nav-links { display: none !important; }
    .forum-topbar.nav-expanded .nav-links {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px;
        width: 100%;
        overflow: visible !important;
        padding-bottom: 4px;
    }
    .forum-topbar a,
    .forum-topbar .nav-user { margin-left: 0 !important; flex: 0 0 auto; white-space: nowrap; font-size: 12px; }
    .forum-topbar .nav-user {
        width: 100%;
        justify-content: center;
        border-top: 1px solid var(--card-border);
        padding-top: 8px;
    }
}

/* 文章打赏 */
.tip-panel {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.08), rgba(13, 148, 136, 0.06));
    border: 1px solid rgba(217, 119, 6, 0.25);
    border-radius: 12px;
}
.tip-title {
    margin: 0 0 8px;
    font-size: 16px;
    color: var(--gold);
}
.tip-amount-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}
.tip-preset.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
}
.tip-panel--compact {
    margin-top: 12px;
    padding: 14px 16px;
}
.tip-inline-label {
    font-size: 14px;
    color: var(--text-muted);
}
.post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.post-actions .btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.post-actions .btn-share {
    background: #07c160;
    border-color: #07c160;
    color: #fff;
}
.post-actions .btn-share:hover { background: #06ad56; }
.comment-compose-inline {
    margin-top: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #d1e7dd;
    border-radius: 10px;
}
.comment-compose-inline textarea {
    width: 100%;
    min-height: 72px;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    resize: vertical;
    font-size: 14px;
    line-height: 1.5;
}
.comment-compose-actions {
    margin: 10px 0 0;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.share-panel {
    margin-top: 12px;
    padding: 14px 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
}
.share-preview {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.share-preview-img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 8px;
    background: #e2e8f0;
    flex-shrink: 0;
}
.share-preview-text b { display: block; font-size: 15px; margin-bottom: 6px; }
.share-preview-text p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.share-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.action-msg {
    margin: 8px 0 0;
    font-size: 13px;
}
.action-msg--ok { color: var(--primary); }
.action-msg--err { color: #ff4757; }
.tip-custom-input {
    width: 140px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
}

/* 点赞 / 打赏特效层 */
.post-fx-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10000;
    overflow: hidden;
}
.post-fx-heart {
    position: fixed;
    color: #ff4757;
    font-weight: 700;
    line-height: 1;
    transform: translate(-50%, -50%);
    text-shadow: 0 0 8px rgba(255, 71, 87, 0.65);
    animation: postFxHeartFloat 1.2s ease-out forwards;
    will-change: transform, opacity;
}
@keyframes postFxHeartFloat {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.2);
    }
    18% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.25);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--drift)), calc(-50% + var(--rise))) scale(0.7);
    }
}
.post-fx-coin {
    position: fixed;
    color: #d97706;
    font-weight: 700;
    line-height: 1;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 2px 4px rgba(217, 119, 6, 0.45));
    animation: postFxMoneyBurst 1.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    will-change: transform, opacity;
}
.post-fx-bill {
    position: fixed;
    color: #16a34a;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    transform: translate(-50%, -50%);
    animation: postFxBillFall 1.6s ease-in forwards;
    will-change: transform, opacity;
}
@keyframes postFxMoneyBurst {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.15) rotate(0deg);
    }
    12% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.55) rotate(var(--spin));
    }
}
@keyframes postFxBillFall {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.6);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--sway)), calc(-50% + 110px)) scale(0.8) rotate(25deg);
    }
}
