/* ===== 全局样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --primary-active: #1d4ed8;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --border-radius: 16px;
    --border-radius-sm: 12px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.1);
    --font-main: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--text-primary);
    line-height: 1.6;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    overflow: hidden;
}

/* ===== 新增布局样式 ===== */
.game-wrapper {
    display: flex;
    width: 1440px;
    height: 900px;
    gap: 16px;
    background: transparent;
}

.flowchart-container {
    width: 240px;
    flex-shrink: 0;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
    height: 100%;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

.flowchart-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.flowchart-node {
    padding: 12px 14px;
    margin-bottom: 8px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
    position: relative;
    padding-left: 32px;
    background: #fafbfc;
}

.flowchart-node::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #cbd5e1;
    transition: all 0.25s ease;
}

.flowchart-node:hover {
    background: #ffffff;
    border-color: var(--primary-color);
    transform: translateX(2px);
}

.flowchart-node.visited {
    color: var(--text-secondary);
    background: #ffffff;
}

.flowchart-node.visited::before {
    background-color: var(--primary-color);
}

.flowchart-node.active {
    font-weight: 600;
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: 0 0 0 2px #dbeafe;
}

.flowchart-node.active::before {
    background-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.flowchart-node.future {
    background-color: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    cursor: default;
    opacity: 0.5;
}

.flowchart-node.future::before {
    background-color: #cbd5e1;
}

.flowchart-node.future:hover {
    background: transparent;
    border-color: transparent;
    transform: none;
}

/* 连接线 */
.flowchart-node:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 15px;
    top: 100%;
    height: 8px;
    width: 2px;
    background-color: var(--border-color);
}

.flowchart-node.visited:not(:last-child)::after {
    background-color: var(--primary-color);
}


/* ===== 容器 ===== */
.container {
    flex: 1;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

/* ===== Header ===== */
#header {
    padding: 16px 28px 12px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.game-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.5px;
}

.progress-bar {
    height: 3px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Main Content ===== */
#app {
    padding: 24px 28px;
    flex: 1;
    overflow-y: auto;
}

.loading {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 20px;
    font-size: 14px;
}

.scene {
    animation: fadeIn 0.3s ease;
}

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

.scene-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

.scene-image {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease;
    border: 1px solid var(--border-color);
}

.scene-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 20px;
    white-space: pre-wrap;
}

.choices {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ===== 按钮样式 ===== */
.btn {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 400;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-align: left;
    width: 100%;
    background: #ffffff;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.btn:hover::before {
    transform: scaleY(1);
}

.btn-primary {
    background: #ffffff;
    color: var(--text-primary);
}

.btn-primary:hover {
    border-color: var(--primary-color);
    background: #fafbfc;
}

.btn-primary:active {
    background: #f1f5f9;
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: var(--text-secondary);
}

.btn-secondary:active {
    background: var(--border-color);
}

/* ===== Footer ===== */
#footer {
    padding: 16px 28px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    flex-shrink: 0;
}

/* ===== 结束场景 ===== */
.ending {
    text-align: center;
}

.ending .scene-title {
    margin-bottom: 20px;
}

.ending .scene-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== 响应式设计已移除 - 固定尺寸布局 ===== */

    

    /* ===== 头部操作区 ===== */

.header-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 4px;
        }

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.lang-select {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #ffffff;
    font-size: 12px;
    color: var(--text-primary);
}

/* ===== 开场任务 ===== */
.intro-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
}

.intro-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-color);
}

.intro-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.intro-text {
    margin: 0 0 16px 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.intro-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.intro-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    margin-bottom: 12px;
}

.intro-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* ===== 统计面板 ===== */
.stats-panel {
    margin: 12px 0 8px 0;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: #f8fafc;
    display: none;
}

.stats-panel.is-visible {
    display: block;
}

/* ===== 后台 ===== */
body.admin-page {
    background: radial-gradient(circle at top, #eef2ff 0%, #f8fafc 45%, #ffffff 100%);
    height: 100vh;
    overflow: auto;
    display: block;
    justify-content: flex-start;
    align-items: stretch;
}

.admin-wrapper {
    max-width: none;
    margin: 0;
    padding: 0 24px 36px;
    font-family: var(--font-main);
    display: block;
    height: 100%;
    width: 100%;
}

.admin-main {
    min-height: calc(100vh - 80px);
    height: auto;
    width: 100%;
}

.admin-header {
    margin-top: 0;
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-header-tabs {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.admin-tabs-bar {
    flex: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
    background: #eef2ff;
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
    height: 55.5px;
    box-sizing: border-box;
    order: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.admin-tabs {
    display: flex;
    gap: 8px;
}

.admin-tab {
    text-align: left;
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid transparent;
    background: transparent;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-tab:hover {
    border-color: #cbd5f5;
    background: #eef2ff;
}

.admin-tab.is-active {
    border-color: #93c5fd;
    background: #ffffff;
    color: #1d4ed8;
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.18);
}

.admin-section {
    display: none;
    text-align: left;
    width: 100%;
}

.admin-section.is-active {
    display: block;
}

.admin-tips {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 8px 0 0;
    box-shadow: none;
    max-width: none;
}

.admin-section-note {
    max-width: none;
    margin: 8px 0 16px;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.admin-section-note-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.admin-section-note p {
    font-size: 12px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 10px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding-top: 8px;
    max-width: none;
}

.admin-stats-group {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 12px 14px;
}

.admin-stats-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.admin-stats-row {
    font-size: 12px;
    color: #475569;
    margin-bottom: 6px;
}

.admin-chart {
    margin-top: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 14px;
}

.admin-chart-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.admin-chart-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-chart-bar {
    display: grid;
    grid-template-columns: 60px 1fr 60px;
    align-items: center;
    gap: 10px;
}

.admin-chart-label {
    font-size: 12px;
    color: #1e293b;
}

.admin-chart-track {
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.admin-chart-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #60a5fa, #2563eb);
    border-radius: 999px;
}

.admin-chart-value {
    font-size: 12px;
    color: #475569;
    text-align: right;
}

.admin-editor {
    display: grid;
    gap: 18px;
    padding-top: 8px;
    max-width: none;
    width: 100%;
    margin: 0;
    justify-items: start;
}

.admin-editor [data-lang].is-hidden {
    display: none !important;
}

.admin-editor-card {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    width: 100%;
}

.admin-editor-card:last-child {
    border-bottom: none;
}

.admin-editor-title {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.admin-editor-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
    align-items: start;
    margin-bottom: 10px;
    width: 100%;
}

.admin-editor-row-multi {
    align-items: start;
}

.admin-editor-row-double .admin-editor-inline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-editor-inline {
    display: flex;
    gap: 10px;
}

.admin-editor-input,
.admin-editor-select,
.admin-editor-textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    font-size: 12px;
    background: #ffffff;
    color: #0f172a;
    box-sizing: border-box;
}

.admin-editor-textarea {
    resize: vertical;
}

.admin-editor-choices {
    display: grid;
    gap: 12px;
}

.admin-editor-choice-row {
    display: grid;
    gap: 6px;
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    border-radius: 0;
    background: #ffffff;
}

.admin-editor-choice-label {
    font-size: 12px;
    color: #475569;
}

.admin-editor-choice-target {
    font-size: 12px;
    color: #1e293b;
    font-weight: 600;
}

.admin-editor-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    align-items: center;
}

.admin-flow {
    max-width: none;
    margin: 0;
    padding-top: 8px;
    width: 100%;
    justify-items: start;
}

.admin-flow-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.admin-flowchart {
    position: relative;
    width: 100%;
    min-height: 520px;
    border: 1px solid #e2e8f0;
    background-image:
        linear-gradient(0deg, rgba(148, 163, 184, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.2) 1px, transparent 1px);
    background-size: 24px 24px;
    overflow: auto;
}

.admin-flowchart svg {
    display: block;
}

.admin-flow-rect {
    fill: #ffffff;
    stroke: #0f172a;
    stroke-width: 1;
}

.admin-flow-rect.is-ending {
    fill: #f8fafc;
    stroke: #1d4ed8;
}

.admin-flow-text {
    font-size: 12px;
    fill: #0f172a;
    font-weight: 600;
}

.admin-flow-link {
    stroke: #0f172a;
    stroke-width: 1;
    fill: none;
}

.admin-editor-feedback {
    font-size: 12px;
    color: #0f766e;
    min-height: 16px;
}

.admin-editor-roles {
    display: grid;
    gap: 8px;
    margin-bottom: 10px;
}

.admin-editor-role-row {
    display: grid;
    grid-template-columns: 120px 1fr 1fr auto;
    gap: 8px;
    align-items: center;
}

.admin-editor-role-row.is-ai-role {
    grid-template-columns: 180px 1fr;
}

.admin-editor-role-row.is-ai-role .admin-editor-input {
    width: 100%;
}

.admin-editor-role-name {
    font-size: 12px;
    color: #0f172a;
    font-weight: 600;
}

.admin-editor-role-remove {
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 0;
}

.admin-sidebar-section {
    margin-bottom: 14px;
}

.admin-sidebar-heading {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.admin-sidebar-section p {
    font-size: 12px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

.admin-main {
    min-width: 0;
    padding-left: 0;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    min-height: 56px;
}

.admin-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.2px;
}

.admin-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.admin-actions .btn {
    font-size: 11px;
    padding: 6px 10px;
}

.admin-table-toolbar {
    display: none;
}

.admin-content {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    height: auto;
    box-shadow: none;
    font-size: 12px;
}

.admin-header-left {
    order: 1;
}


.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.admin-table th,
.admin-table td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: middle;
}

.admin-table th:first-child,
.admin-table td:first-child {
    min-width: 140px;
    white-space: nowrap;
}

.admin-table th {
    background: #f1f5f9;
    font-weight: 700;
    color: #0f172a;
    position: sticky;
    top: 0;
    z-index: 2;
}

.admin-table thead tr,
.admin-table tbody tr {
    border-bottom: 1px solid #e2e8f0;
}

.admin-table tr:nth-child(even) td {
    background: #fbfdff;
}

.admin-table tr:hover td {
    background: #f8fafc;
}

.admin-page::-webkit-scrollbar {
    width: 10px;
}

.admin-page::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.6);
    border-radius: 999px;
}

.admin-page::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.6);
}

.admin-choices {
    white-space: normal;
}

.admin-choice-row {
    margin-bottom: 8px;
}

.admin-ai-log {
    margin-top: 6px;
    padding-left: 12px;
    color: #1d4ed8;
    font-size: 12px;
    line-height: 1.6;
}

.admin-hint-log {
    margin-top: 6px;
    padding-left: 12px;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.6;
}

td.admin-name-cell {
    vertical-align: middle;
}

.admin-name-cell-content {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
}

.admin-tag {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid transparent;
}

.admin-tag-ai {
    color: #b91c1c;
    background: #fee2e2;
    border-color: #fecaca;
}

.admin-tag-normal {
    color: #b91c1c;
    background: #ffe4e6;
    border-color: #fecdd3;
}

.admin-heatmap-cell {
    position: relative;
}

.admin-heatmap-btn {
    font-size: 12px;
    padding: 6px 10px;
}

.admin-delete-btn {
    font-size: 16px;
    line-height: 1;
    padding: 4px 8px;
    border-color: #fecdd3;
    color: #be123c;
    background: #fff1f2;
}

.admin-delete-btn:hover {
    background: #ffe4e6;
    border-color: #fda4af;
    color: #9f1239;
}

.admin-heatmap-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    margin-top: 0;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.18);
    z-index: 9999;
    display: none;
}

.admin-heatmap-tooltip.is-visible {
    display: block;
}

.admin-heatmap-tooltip canvas {
    display: block;
    border-radius: 10px;
    background: #f1f5f9;
}

.stats-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.stats-value {
    color: var(--text-primary);
    font-weight: 600;
}

.stats-subtitle {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.stats-list {
    margin: 6px 0 0 16px;
    padding: 0;
    font-size: 12px;
    color: var(--text-secondary);
}

        /* 派蒙助手 */
        #assistant {
            position: fixed;
            right: 20px;
            bottom: 20px;
            display: flex;
            flex-direction: row-reverse;
            align-items: center;
            gap: 14px;
            z-index: 300;
        }

        .assistant-avatar {
            width: 90px;
            height: 90px;
            border-radius: 50%;
            overflow: hidden;
            box-shadow: var(--shadow-hover);
            border: 3px solid #dbeafe;
            background: #fff;
            transform: scaleX(-1);
            animation: vinyl-spin 9s linear infinite;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .assistant-avatar:hover {
            transform: scaleX(-1) scale(1.05);
            border-color: var(--primary-color);
        }

        .assistant-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .assistant-bubble {
            max-width: 320px;
            background: #ffffff;
            border-radius: 16px;
            box-shadow: var(--shadow-hover);
            border: 1px solid var(--border-color);
            padding: 16px 18px;
            position: relative;
            animation: fadeIn 0.25s ease;
        }

        .assistant-bubble::after {
            content: '';
            position: absolute;
            right: -8px;
            bottom: 22px;
            width: 16px;
            height: 16px;
            background: white;
            border-left: 1px solid var(--border-color);
            border-bottom: 1px solid var(--border-color);
            transform: rotate(45deg);
            z-index: -1;
        }

        .assistant-pop {
            animation: pop 0.3s ease;
        }

        .assistant-text {
            font-weight: 600;
            margin: 0;
            font-size: 14px;
            color: var(--text-primary);
        }

        .assistant-controls {
            display: flex;
            gap: 8px;
            margin-top: 10px;
            flex-wrap: wrap;
        }

        .assistant-btn {
            font-size: 12px;
            padding: 6px 10px;
        }

        .assistant-followup-list {
            margin-top: 10px;
            display: none;
            flex-direction: column;
            gap: 6px;
        }

        .assistant-followup-list.open {
            display: flex;
        }

        .assistant-followup-item {
            text-align: left;
            font-size: 12px;
            padding: 8px 10px;
            white-space: normal;
        }

        .assistant-panel {
            margin-top: 10px;
            padding: 10px;
            border-radius: 12px;
            border: 1px solid var(--border-color);
            background: #fafbfc;
            display: none;
            flex-direction: column;
            gap: 8px;
        }

        .assistant-panel.open {
            display: flex;
        }

        .assistant-label {
            font-size: 12px;
            color: var(--text-secondary);
        }

        .assistant-role {
            width: 100%;
            padding: 6px 8px;
            border-radius: 8px;
            border: 1px solid var(--border-color);
            font-size: 12px;
            background: #ffffff;
        }

        .assistant-input {
            width: 100%;
            border-radius: 8px;
            border: 1px solid var(--border-color);
            padding: 8px 10px;
            font-size: 12px;
            resize: vertical;
            min-height: 48px;
        }

        .assistant-send {
            align-self: flex-start;
            font-size: 12px;
            padding: 6px 12px;
        }

.assistant-stream {
    margin-top: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
}

.assistant-stream-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.assistant-stream-title {
    font-size: 12px;
    color: var(--text-secondary);
}

.assistant-stream-status {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.assistant-status-tag {
    font-size: 11px;
    color: #1d4ed8;
    background: #e0e7ff;
    border: 1px solid #c7d2fe;
    padding: 2px 6px;
    border-radius: 999px;
    white-space: nowrap;
}

        .assistant-stream-body {
            font-size: 13px;
            color: var(--text-primary);
            line-height: 1.5;
            white-space: pre-wrap;
        }

        @keyframes pop {
            0% { transform: scale(0.96); opacity: 0.6; }
            100% { transform: scale(1); opacity: 1; }
        }

        @keyframes vinyl-spin {
            from { transform: scaleX(-1) rotate(0deg); }
            to { transform: scaleX(-1) rotate(-360deg); }
        }

        /* 新闻看板 */
        .news-board {
            width: 240px;
            flex-shrink: 0;
            background: var(--card-bg);
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            padding: 20px;
            height: 100%;
            overflow-y: auto;
            border: 1px solid var(--border-color);
        }

        .news-board-header {
            margin-bottom: 16px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }

        .news-board-header-left {
            flex: 1;
        }

        .news-board-title {
            font-size: 17px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 4px;
            letter-spacing: -0.3px;
        }

        .news-board-sub {
            font-size: 12px;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .game-time {
            font-size: 24px;
            font-weight: 700;
            color: var(--primary-color);
            font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
            letter-spacing: 1px;
            padding: 4px 8px;
            background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
            border-radius: 8px;
            border: 1px solid var(--primary-color);
            min-width: 72px;
            text-align: center;
        }

        .news-board-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .news-item {
            padding: 12px;
            border: 1px solid var(--border-color);
            border-radius: 10px;
            background: #fafbfc;
            transition: all 0.2s ease;
        }

        .news-item:hover {
            background: #ffffff;
            box-shadow: var(--shadow-sm);
        }

        .news-time {
            font-size: 11px;
            color: var(--text-secondary);
            margin-bottom: 6px;
            letter-spacing: 0.3px;
            font-weight: 600;
        }

        .news-text {
            font-size: 13px;
            color: var(--text-primary);
            line-height: 1.5;
        }

        /* 新闻项动画 */
        .news-item-enter {
            opacity: 0;
            transform: translateY(-20px);
        }

        .news-item-active {
            animation: newsSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }

        .news-item-exit {
            animation: newsSlideOut 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
        }

        @keyframes newsSlideIn {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

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