/* ====== 基础变量与重置 ====== */
:root {
    --primary: #1a365d;
    --primary-light: #2d5a9e;
    --primary-dark: #0f2440;
    --accent: #c9a962;
    --accent-light: #dfc88a;
    --bg: #f5f7fa;
    --bg-card: #ffffff;
    --text: #1a202c;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --success: #22c55e;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ====== 顶部导航 ====== */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0 32px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
}

.header-logo .icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.header-nav {
    display: flex;
    gap: 4px;
}

.header-nav button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.header-nav button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.header-nav button.active {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* ====== 首页 ====== */
/* ====== 主布局（页面 + 引用面板 flex 挤压）====== */
.main-layout {
    display: flex;
    height: calc(100vh - 64px);
    overflow: hidden;
}

.pages-container {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.page { display: none; height: 100%; }
.page.active { display: flex; }

.home-page {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 40px;
}

.home-hero h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 12px;
}

.home-hero p {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 500px;
}

.home-cards {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.home-card {
    width: 340px;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-color: var(--accent);
}

.home-card .card-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
}

.home-card:first-child .card-icon {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
}

.home-card:last-child .card-icon {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.home-card h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.home-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ====== 侧边栏（基金信息输入） ====== */
.sidebar {
    width: 320px;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.sidebar h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
    display: block;
}

.sidebar textarea, .sidebar select, .sidebar input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
    background: var(--bg);
}

.sidebar textarea:focus, .sidebar select:focus, .sidebar input:focus {
    outline: none;
    border-color: var(--primary-light);
}

.sidebar textarea {
    min-height: 80px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-hint {
    font-size: 12px;
    color: var(--text-secondary);
    background: #f0f4ff;
    border-radius: 8px;
    padding: 10px 12px;
    line-height: 1.6;
}

/* ====== 训练场 ====== */
.training-page {
    flex-direction: row;
}

.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    max-width: 80%;
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.message.user {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.message.assistant {
    align-self: flex-start;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    max-width: 100%;
    padding: 8px 0;
}

.message.assistant .msg-label {
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.chat-input-area {
    border-top: 1px solid var(--border);
    padding: 16px 32px;
    display: flex;
    gap: 12px;
    background: var(--bg-card);
}

.chat-input-area textarea {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    min-height: 48px;
    max-height: 120px;
    transition: border-color 0.2s;
}

.chat-input-area textarea:focus {
    outline: none;
    border-color: var(--primary-light);
}

.chat-input-area button {
    align-self: flex-end;
}

/* ====== 按钮 ====== */
.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover { background: var(--primary-light); }
.btn-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.btn-accent {
    background: var(--accent);
    color: var(--primary-dark);
    font-weight: 600;
}

.btn-accent:hover { background: var(--accent-light); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--bg);
}

/* ====== 演练场 ====== */
.practice-page {
    flex-direction: row;
}

.practice-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.practice-content {
    flex: 1;
    padding: 32px 40px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* 演练设置 */
.practice-setup {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    gap: 24px;
    text-align: center;
}

.practice-setup h2 {
    font-size: 24px;
    color: var(--primary);
}

.practice-setup p {
    color: var(--text-secondary);
    max-width: 400px;
}

.setup-form {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.setup-form label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.setup-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    cursor: pointer;
}

.setup-form select:focus {
    outline: none;
    border-color: var(--primary-light);
}

/* 演练进行中 */
.practice-round {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.round-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.round-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    background: var(--border);
    color: var(--text-secondary);
    transition: all 0.3s;
}

.round-dot.active {
    background: var(--primary);
    color: white;
}

.round-dot.done {
    background: var(--success);
    color: white;
}

.round-connector {
    width: 40px;
    height: 2px;
    background: var(--border);
}

.round-connector.done {
    background: var(--success);
}

.question-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.question-card .q-label {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.question-card .q-text {
    font-size: 15px;
    line-height: 1.7;
}

.answer-area textarea {
    width: 100%;
    min-height: 140px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    line-height: 1.7;
}

.answer-area textarea:focus {
    outline: none;
    border-color: var(--primary-light);
}

.answer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 评估结果 */
.evaluation-result {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.eval-header {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    color: white;
}

.eval-header h2 { font-size: 20px; margin-bottom: 4px; }

.eval-score {
    font-size: 56px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}

.eval-score span {
    font-size: 20px;
    color: rgba(255,255,255,0.6);
}

.eval-body {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
}

.eval-body h2, .eval-body h3 {
    color: var(--primary);
    margin-top: 16px;
    margin-bottom: 8px;
}

.eval-body h2:first-child { margin-top: 0; }

/* ====== Timeline（移植自 CiteAnything，蓝色系）====== */
.timeline {
    position: relative;
    padding-left: 28px;
    margin: 8px 0;
}

.tl-icon { width: 14px; height: 14px; }

.tl-icon-wrap {
    position: absolute;
    left: -21px;
    top: 3px;
    z-index: 10;
    background: white;
    padding: 3px;
}

.tl-node {
    position: relative;
    padding-bottom: 8px;
}

/* 连接线 */
.tl-node.has-line-below::after {
    content: '';
    position: absolute;
    left: -14px;
    top: 22px;
    bottom: 0;
    width: 1px;
    background: #e2e8f0;
}

/* 折叠节点 */
.tl-collapsible {}

.tl-toggle {
    background: none;
    border: none;
    padding: 2px 0;
    font-size: 12px;
    font-family: monospace;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.tl-toggle:hover { opacity: 1; }

.tl-label-primary { color: var(--primary-light); }
.tl-label-error { color: #f87171; }

.tl-detail {
    display: none;
    padding-top: 4px;
}

.tl-collapsible.open .tl-detail {
    display: block;
}

.tl-detail pre {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 11px;
    color: var(--text-secondary);
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 192px;
    overflow-y: auto;
    line-height: 1.5;
}

/* text / answer 节点 */
.tl-node.tl-text {
    margin-left: -28px;
    padding-bottom: 4px;
}

.tl-node.tl-answer {
    padding-bottom: 4px;
}

.tl-content {
    font-size: 14px;
    line-height: 1.7;
}

/* ====== Session 显示 ====== */
.session-display {
    font-size: 11px;
    color: var(--text-secondary);
    padding: 2px 0 6px;
}

.session-display code {
    background: #f0f4ff;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 10px;
    cursor: pointer;
    user-select: all;
}

/* ====== Markdown 渲染 ====== */
.msg-content h1, .msg-content h2, .msg-content h3,
.eval-body h1, .eval-body h2, .eval-body h3 {
    color: var(--primary);
    margin-top: 16px;
    margin-bottom: 8px;
}

.msg-content h1, .eval-body h1 { font-size: 18px; }
.msg-content h2, .eval-body h2 { font-size: 16px; }
.msg-content h3, .eval-body h3 { font-size: 14px; }
.msg-content h1:first-child, .eval-body h1:first-child,
.msg-content h2:first-child, .eval-body h2:first-child { margin-top: 0; }

.msg-content p, .eval-body p { margin: 6px 0; }

.msg-content ul, .msg-content ol,
.eval-body ul, .eval-body ol {
    padding-left: 20px;
    margin: 6px 0;
}

.msg-content li, .eval-body li { margin: 3px 0; }

.msg-content blockquote, .eval-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 6px 12px;
    margin: 8px 0;
    background: #fffbeb;
    border-radius: 0 6px 6px 0;
    color: var(--text);
}

.msg-content code, .eval-body code {
    background: #f1f5f9;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 12px;
}

.msg-content pre, .eval-body pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 12px 16px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 12px;
    margin: 8px 0;
}

.msg-content pre code, .eval-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.msg-content table, .eval-body table {
    border-collapse: collapse;
    width: 100%;
    margin: 8px 0;
    font-size: 13px;
}

.msg-content th, .msg-content td,
.eval-body th, .eval-body td {
    border: 1px solid var(--border);
    padding: 6px 10px;
    text-align: left;
}

.msg-content th, .eval-body th {
    background: var(--primary);
    color: white;
    font-weight: 500;
}

.msg-content strong, .eval-body strong { color: var(--primary); }

/* ====== 示例提示词 ====== */
.example-prompts {
    padding: 8px 32px 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.example-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.example-btn {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-card);
    font-size: 12px;
    color: var(--primary-light);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    line-height: 1.4;
}

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

.btn-small {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 8px;
}

/* ====== Loading ====== */
.loading-dots {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    padding: 8px 0;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* ====== 侧边栏分隔 ====== */
.sidebar-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

/* ====== 知识库文档列表 ====== */
.kb-upload-area {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.kb-doc-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kb-empty {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    padding: 8px;
}

.kb-doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: var(--bg);
    border-radius: 8px;
    font-size: 12px;
    gap: 8px;
}

.kb-doc-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.kb-doc-name {
    font-weight: 500;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kb-doc-status {
    font-size: 11px;
    color: var(--text-secondary);
}

.kb-doc-status.ready { color: var(--success); }
.kb-doc-status.failed { color: #ef4444; }
.kb-doc-status.processing { color: var(--accent); }

.kb-doc-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.kb-doc-btn {
    font-size: 11px;
    padding: 2px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: white;
    color: var(--primary-light);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.kb-doc-btn:hover { background: var(--bg); }

.kb-doc-del {
    color: #ef4444;
    border-color: #fecaca;
}

.kb-doc-del:hover { background: #fef2f2; }

/* ====== 引用徽章 ====== */
.citation-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: var(--primary-light);
    color: white;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    vertical-align: super;
    margin: 0 2px;
    transition: background 0.2s;
    line-height: 1;
}

.citation-badge:hover {
    background: var(--primary);
}

/* ====== 引用 hover 弹窗 ====== */
.cite-popup {
    position: fixed;
    z-index: 9999;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 14px;
    pointer-events: auto;
}

.cite-pop-claim {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.4;
}

.cite-pop-quote {
    font-size: 11px;
    color: #94a3b8;
    border-left: 2px solid var(--primary-light);
    padding-left: 8px;
    margin-bottom: 6px;
    line-height: 1.5;
    font-family: monospace;
}

.cite-pop-source {
    font-size: 11px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.cite-pop-action {
    font-size: 11px;
    color: var(--primary-light);
    font-weight: 500;
    cursor: pointer;
    font-family: monospace;
}

.cite-pop-action:hover { text-decoration: underline; }

/* ====== 引用侧面板（挤压布局）====== */
.citation-panel {
    width: min(50vw, 640px);
    min-width: 360px;
    background: white;
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    height: calc(100vh - 64px);
}

.cp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.cp-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cp-title {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cp-icon-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.cp-icon-btn:hover { color: var(--primary); background: #f8fafc; }

.cp-body {
    flex: 1;
    overflow-y: auto;
}

.cp-details {
    padding: 24px;
}

.cp-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-light);
    margin-bottom: 6px;
    margin-top: 20px;
}

.cp-label:first-child { margin-top: 0; }

.cp-claim {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid #eef2ff;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cp-quote {
    background: linear-gradient(135deg, #eef2ff, #e0f2fe);
    border-left: 4px solid var(--primary-light);
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
}

.cp-source {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eef2ff;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-light);
}

.cp-replay-wrap {
    margin-top: 24px;
    text-align: center;
}

.cp-replay-btn {
    width: 100%;
    padding: 12px;
    border-radius: 24px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.cp-replay-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.cp-replay-hint {
    margin-top: 8px;
    font-size: 12px;
    color: #94a3b8;
}

.cp-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ====== 演练场示例 ====== */
.practice-example {
    width: 100%;
    max-width: 580px;
    margin-top: 32px;
    text-align: left;
}

.practice-example h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-align: center;
}

.example-flow {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.example-round {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
}

.example-round-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.example-round-num {
    font-size: 11px;
    font-weight: 700;
    color: white;
    background: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
}

.example-round-tag {
    font-size: 11px;
    color: var(--text-secondary);
}

.example-q {
    font-size: 13px;
    color: var(--text);
    line-height: 1.6;
    padding: 8px 12px;
    background: #fffbeb;
    border-left: 3px solid var(--accent);
    border-radius: 0 6px 6px 0;
    margin-bottom: 8px;
}

.example-a-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.example-a {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
    padding: 6px 12px;
    background: var(--bg);
    border-radius: 6px;
    border-left: 3px solid var(--primary-light);
}

.example-eval {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 10px;
    padding: 16px;
    color: white;
    text-align: center;
}

.example-eval-header {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 6px;
}

.example-eval-score {
    font-size: 22px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 6px;
}

.example-eval-detail {
    font-size: 11px;
    opacity: 0.7;
    margin-bottom: 8px;
}

.example-eval-feedback {
    font-size: 12px;
    line-height: 1.6;
    opacity: 0.85;
    text-align: left;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 8px 12px;
}

/* ====== 滚动条 ====== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ====== 响应式 ====== */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .home-cards { flex-direction: column; align-items: center; }
    .home-card { width: 100%; max-width: 340px; }
    .chat-messages { padding: 16px; }
    .chat-input-area { padding: 12px 16px; }
    .practice-content { padding: 20px; }
    .message { max-width: 90%; }
}
