/* 西游天团直播墙（只读版）— 样式表 (WKAI 纯黑金暗黑品牌） */

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
    --bg-dark: #000000;
    --bg-page: #0a0a0a;
    --bg-topbar: rgba(18, 18, 18, 0.85);
    --bg-card: #161617;
    --bg-card-hover: #202024;
    --bg-bubble-other: #18181a;
    --bg-bubble-me: #221d14;
    --border-color: rgba(230, 198, 135, 0.16);
    --border-gold: rgba(230, 198, 135, 0.35);
    --border-light: rgba(255, 255, 255, 0.08);
    --text-main: #F5F5F7;
    --text-muted: #86868B;
    --text-dim: #6E6E73;
    --primary-gold: #E6C687;
    --gold-gradient: linear-gradient(135deg, #F5E5C9 0%, #E6C687 50%, #C59B3F 100%);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-top: env(safe-area-inset-top, 0px);
}

@supports (padding: constant(safe-area-inset-bottom)) {
    :root {
        --safe-bottom: constant(safe-area-inset-bottom);
        --safe-top: constant(safe-area-inset-top);
    }
}

html, body {
    height: 100%;
    width: 100%;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.45;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: -webkit-fill-available;
    height: 100dvh;
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-page);
    position: relative;
    overflow: hidden;
}

/* ─── 顶部栏 ─── */
.topbar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: calc(var(--safe-top) + 8px);
    padding-left: 14px;
    padding-right: 14px;
    padding-bottom: 8px;
    height: calc(var(--safe-top) + 48px);
    background: var(--bg-topbar);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.topbar-left { flex: 0 0 auto; }
.topbar-right {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}
.topbar-center { flex: 1; text-align: center; }

.theme-toggle-btn {
    background: rgba(230, 198, 135, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 3px 8px;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.theme-toggle-btn:hover {
    background: rgba(230, 198, 135, 0.16);
    border-color: var(--border-gold);
}

.chat-title {
    font-size: 16px;
    font-weight: 700;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.chat-subtitle {
    font-size: 11px;
    color: var(--text-muted);
}

.home-btn {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--primary-gold);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: rgba(230, 198, 135, 0.08);
    transition: all 0.2s ease;
}
.home-btn:hover {
    background: rgba(230, 198, 135, 0.16);
    border-color: var(--border-gold);
}

.home-icon {
    font-size: 16px;
    line-height: 1;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 3px 8px;
    border-radius: 12px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
    animation: pulse 2s infinite;
}

/* ─── 成员状态栏 ─── */
.members-bar {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 12px;
    background: rgba(16, 16, 18, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    overflow-x: auto;
    white-space: nowrap;
    z-index: 9;
}

.member-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.member-badge:hover {
    background: rgba(255, 255, 255, 0.05);
}
.member-badge:active {
    transform: scale(0.95);
}

.member-avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    margin-bottom: 3px;
    background: #222;
    display: block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.member-name {
    font-size: 11px;
    color: var(--text-main);
    font-weight: 500;
}

.status-dot {
    position: absolute;
    top: 3px;
    right: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.status-dot.online {
    background: #10b981;
    box-shadow: 0 0 5px #10b981;
    animation: pulse 2s infinite;
}
.status-dot.idle {
    background: #f59e0b;
    box-shadow: 0 0 4px #f59e0b;
}
.status-dot.offline {
    background: #6b7280;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes talkBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-4px) scale(1.05); }
}
.member-badge.talking {
    animation: talkBounce 0.5s ease-out;
}

/* ─── 消息区 ─── */
.messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 14px 12px;
    background: var(--bg-page);
    scroll-behavior: smooth;
}

.loading {
    text-align: center;
    color: var(--text-muted);
    padding: 30px;
    font-size: 13px;
}

.time-divider {
    text-align: center;
    margin: 18px 0 10px;
    color: var(--text-dim);
    font-size: 11px;
    letter-spacing: 0.02em;
}

.msg {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 0 2px;
    animation: fadeInUp 0.25s cubic-bezier(0.1, 0.76, 0.55, 0.94) forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.msg.me { flex-direction: row-reverse; }

.avatar-wrap {
    flex: 0 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40px;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    overflow: hidden;
    display: block;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    cursor: pointer;
    transition: transform 0.1s;
    background: #1a1a1a;
}
.avatar:active { transform: scale(0.92); }

.msg-body {
    max-width: calc(100% - 56px);
    margin: 0 8px;
    min-width: 0;
    padding-top: 0;
}

.bubble {
    display: inline-block;
    background: var(--bg-bubble-other);
    color: var(--text-main);
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    font-size: 15px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: pre-wrap;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    max-width: 100%;
}

.msg.me .bubble {
    background: var(--bg-bubble-me);
    border-color: var(--border-gold);
}

.msg.mode-work:not(.me) .bubble {
    border-left: 3px solid #3b82f6;
}
.msg.me.mode-work .bubble {
    border-right: 3px solid var(--primary-gold);
}

.task-toggle {
    display: inline-block;
    margin-left: 6px;
    margin-top: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid var(--primary-gold);
    background: transparent;
    color: var(--primary-gold);
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    vertical-align: bottom;
}
.msg.done .bubble {
    opacity: 0.5;
    text-decoration: line-through;
    text-decoration-color: rgba(255,255,255,0.4);
}
.msg.done .task-toggle {
    background: var(--primary-gold);
    color: #111;
}

/* Markdown Styling */
.bubble strong { font-weight: 600; color: #fff; }
.bubble code {
    background: rgba(255,255,255,0.1);
    color: var(--primary-gold);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
}
.bubble ul, .bubble ol {
    margin: 6px 0;
    padding-left: 20px;
}
.bubble li { margin: 3px 0; }
.bubble .md-h {
    margin: 10px 0 4px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-gold);
}
.bubble .md-h:first-child { margin-top: 0; }
.bubble h2.md-h { font-size: 1.15em; }
.bubble h3.md-h { font-size: 1.08em; }
.bubble h4.md-h, .bubble h5.md-h, .bubble h6.md-h { font-size: 1em; }
.bubble .md-hr {
    border: 0;
    border-top: 1px solid var(--border-light);
    margin: 10px 0;
}
.bubble a { color: #60a5fa; text-decoration: underline; }

.bubble-toggle {
    color: var(--primary-gold);
    cursor: pointer;
    margin-left: 4px;
    user-select: none;
    font-size: 0.9em;
}
.bubble-toggle:hover { text-decoration: underline; }

/* 气泡尖角 */
.bubble::before {
    content: "";
    position: absolute;
    top: 12px;
    width: 0;
    height: 0;
    border: 5px solid transparent;
}
.msg:not(.me) .bubble::before {
    left: -10px;
    border-right-color: var(--bg-bubble-other);
}
.msg.me .bubble::before {
    right: -10px;
    border-left-color: var(--bg-bubble-me);
}

/* 系统 / 任务消息 */
.msg.system {
    justify-content: center;
}
.msg.system .avatar, .msg.system .msg-name { display: none; }
.msg.system .bubble {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.06);
    color: var(--text-muted);
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: none;
}
.msg.system .bubble::before { display: none; }

/* 角色显示名称色彩 */
.msg.role-claude .msg-name { color: #60a5fa; }
.msg.role-codex .msg-name { color: #fb923c; }
.msg.role-gemini .msg-name { color: #c084fc; }
.msg.role-deepseek .msg-name { color: #38bdf8; }
.msg.role-wukong_local .msg-name { color: #a1a1aa; }

/* ─── 只读底部横幅 ─── */
.readonly-banner {
    flex: 0 0 auto;
    padding: 12px 16px;
    padding-bottom: calc(12px + var(--safe-bottom));
    background: rgba(16, 16, 18, 0.95);
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    text-align: center;
}

.readonly-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-gold);
    letter-spacing: 0.02em;
}

/* ─── 成员 Hub 弹窗 ─── */
.member-hub {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000;
    display: none;
}
.member-hub.is-open { display: block; }

.hub-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hub-panel {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 88vw;
    max-width: 360px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px 20px 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    color: var(--text-main);
}

.hub-close {
    position: absolute;
    right: 12px; top: 12px;
    background: none; border: none;
    color: var(--text-muted);
    font-size: 24px; cursor: pointer;
    line-height: 1; padding: 4px;
}

.hub-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.hub-avatar {
    width: 52px; height: 52px;
    border-radius: 10px;
    object-fit: cover;
    background: #222;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hub-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.hub-role {
    font-size: 12px;
    color: var(--primary-gold);
}

.hub-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 8px;
}
.hub-tab {
    background: none; border: none;
    color: var(--text-muted);
    font-size: 13px; padding: 4px 8px;
    cursor: pointer; font-family: inherit;
    border-radius: 6px;
}
.hub-tab.is-active {
    color: #fff;
    background: rgba(230, 198, 135, 0.15);
    font-weight: 600;
}

.hub-section {
    margin-bottom: 14px;
}
.hub-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.hub-text {
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.4;
}

.hub-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}
.hub-action {
    flex: 1;
    padding: 9px;
    background: rgba(230, 198, 135, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--primary-gold);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.hub-action:hover {
    background: rgba(230, 198, 135, 0.2);
}

/* ─── 观摩口令验证层 ─── */
.auth-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.auth-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 20px;
    padding: 36px 28px 28px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    transform: translateY(12px);
    transition: transform 0.25s ease;
}

.auth-overlay.active .auth-card {
    transform: translateY(0);
}

.auth-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.auth-title {
    font-size: 22px;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.auth-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.auth-input {
    width: 100%;
    padding: 13px 16px;
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    text-align: center;
    outline: none;
    margin-bottom: 14px;
    transition: border-color 0.2s;
}

.auth-input:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 2px rgba(230, 198, 135, 0.2);
}

.auth-btn {
    width: 100%;
    padding: 13px;
    background: var(--gold-gradient);
    border: none;
    border-radius: 10px;
    color: #111;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s, opacity 0.1s;
}

.auth-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.auth-error {
    margin-top: 14px;
    font-size: 13px;
    color: #f87171;
}

/* 响应式调整 */
@media (min-width: 768px) {
    #app {
        border-left: 1px solid var(--border-light);
        border-right: 1px solid var(--border-light);
    }
}

/* ─── 浅色微信 1:1 主题 (theme-light) ─── */
html.theme-light, html.theme-light body {
    background-color: #EDEDED;
    color: #1A1A1A;
}

html.theme-light #app {
    background: #EDEDED;
}

/* 顶部栏 */
html.theme-light .topbar {
    background: rgba(237, 237, 237, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

html.theme-light .chat-title {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #1A1A1A;
    color: #1A1A1A;
}

html.theme-light .chat-subtitle {
    color: #888888;
}

html.theme-light .home-btn {
    color: #1A1A1A;
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.12);
}
html.theme-light .home-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

html.theme-light .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.12);
    color: #1A1A1A;
}
html.theme-light .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

html.theme-light .live-badge {
    color: #07C160;
    background: rgba(7, 193, 96, 0.1);
    border-color: rgba(7, 193, 96, 0.25);
}
html.theme-light .pulse-dot {
    background: #07C160;
    box-shadow: 0 0 6px #07C160;
}

/* 成员状态栏 */
html.theme-light .members-bar {
    background: rgba(247, 247, 247, 0.85);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}
html.theme-light .member-badge:hover {
    background: rgba(0, 0, 0, 0.05);
}
html.theme-light .member-name {
    color: #333333;
}
html.theme-light .member-avatar-img {
    background: #E0E0E0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 消息区 */
html.theme-light .messages {
    background: #EDEDED;
}
html.theme-light .loading {
    color: #888888;
}
html.theme-light .time-divider {
    color: #999999;
}
html.theme-light .avatar {
    background: #E0E0E0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 他人消息：左侧白气泡黑字 */
html.theme-light .msg:not(.me) .bubble {
    background: #FFFFFF;
    color: #1A1A1A;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
html.theme-light .msg:not(.me) .bubble::before {
    border-right-color: #FFFFFF;
    border-left-color: transparent;
}
html.theme-light .msg:not(.me) .bubble code {
    background: rgba(0, 0, 0, 0.06);
    color: #1A1A1A;
}
html.theme-light .msg:not(.me) .bubble strong {
    color: #000000;
}
html.theme-light .msg:not(.me) .bubble a {
    color: #576B95;
}
html.theme-light .msg:not(.me) .bubble .md-h {
    color: #1A1A1A;
}
html.theme-light .msg:not(.me) .bubble .md-hr {
    border-top-color: rgba(0, 0, 0, 0.12);
}
html.theme-light .msg:not(.me) .bubble-toggle {
    color: #576B95;
}

/* 悟空(wukong)消息：右侧绿气泡黑字 */
html.theme-light .msg.me .bubble {
    background: #95EC69;
    color: #000000;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
html.theme-light .msg.me .bubble::before {
    border-left-color: #95EC69;
    border-right-color: transparent;
}
html.theme-light .msg.me .bubble code {
    background: rgba(0, 0, 0, 0.1);
    color: #000000;
}
html.theme-light .msg.me .bubble strong {
    color: #000000;
}
html.theme-light .msg.me .bubble a {
    color: #003d75;
}
html.theme-light .msg.me .bubble .md-h {
    color: #000000;
}
html.theme-light .msg.me .bubble .md-hr {
    border-top-color: rgba(0, 0, 0, 0.18);
}
html.theme-light .msg.me .bubble-toggle {
    color: #003d75;
}

/* 工作模式与任务标记 */
html.theme-light .msg.mode-work:not(.me) .bubble {
    border-left: 3px solid #1976d2;
}
html.theme-light .msg.me.mode-work .bubble {
    border-right: 3px solid #07C160;
}
html.theme-light .task-toggle {
    border-color: #1976d2;
    color: #1976d2;
}
html.theme-light .msg.me .task-toggle {
    border-color: #076633;
    color: #076633;
}
html.theme-light .msg.done .bubble {
    opacity: 0.55;
    text-decoration-color: rgba(0, 0, 0, 0.3);
}
html.theme-light .msg.done .task-toggle {
    background: #1976d2;
    color: #FFFFFF;
}
html.theme-light .msg.me.done .task-toggle {
    background: #076633;
    color: #FFFFFF;
}

/* 系统消息 */
html.theme-light .msg.system .bubble {
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #888888;
}

/* 角色名称色彩 */
html.theme-light .msg.role-claude .msg-name { color: #1E90FF; }
html.theme-light .msg.role-codex .msg-name { color: #D2691E; }
html.theme-light .msg.role-gemini .msg-name { color: #BA55D3; }
html.theme-light .msg.role-deepseek .msg-name { color: #4169E1; }
html.theme-light .msg.role-wukong_local .msg-name { color: #808080; }

/* 底部只读横幅 */
html.theme-light .readonly-banner {
    background: rgba(247, 247, 247, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
html.theme-light .readonly-text {
    color: #576B95;
}

/* 成员 Hub 弹窗 */
html.theme-light .hub-backdrop {
    background: rgba(0, 0, 0, 0.4);
}
html.theme-light .hub-panel {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #1A1A1A;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}
html.theme-light .hub-close {
    color: #888888;
}
html.theme-light .hub-close:hover {
    color: #1A1A1A;
}
html.theme-light .hub-avatar {
    background: #E0E0E0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
html.theme-light .hub-name {
    color: #1A1A1A;
}
html.theme-light .hub-role {
    color: #576B95;
}
html.theme-light .hub-tabs {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}
html.theme-light .hub-tab {
    color: #888888;
}
html.theme-light .hub-tab.is-active {
    color: #07C160;
    background: rgba(7, 193, 96, 0.12);
}
html.theme-light .hub-label {
    color: #888888;
}
html.theme-light .hub-text {
    color: #1A1A1A;
}
html.theme-light .hub-action {
    background: rgba(7, 193, 96, 0.08);
    border-color: rgba(7, 193, 96, 0.25);
    color: #07C160;
}
html.theme-light .hub-action:hover {
    background: rgba(7, 193, 96, 0.16);
}

/* 观摩口令验证层 */
html.theme-light .auth-overlay {
    background: rgba(237, 237, 237, 0.85);
}
html.theme-light .auth-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}
html.theme-light .auth-title {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #1A1A1A;
    color: #1A1A1A;
}
html.theme-light .auth-desc {
    color: #888888;
}
html.theme-light .auth-input {
    background: #F7F7F7;
    border-color: rgba(0, 0, 0, 0.12);
    color: #1A1A1A;
}
html.theme-light .auth-input:focus {
    border-color: #07C160;
    box-shadow: 0 0 0 2px rgba(7, 193, 96, 0.15);
}
html.theme-light .auth-btn {
    background: linear-gradient(135deg, #07C160, #10D66E);
    color: #FFFFFF;
}
html.theme-light .auth-error {
    color: #DC2626;
}

@media (min-width: 768px) {
    html.theme-light #app {
        border-left: 1px solid rgba(0, 0, 0, 0.08);
        border-right: 1px solid rgba(0, 0, 0, 0.08);
    }
}
