:root {
    --primary: #0f62fe;
    --primary-contrast: #ffffff;
    --primary-hover-contrast: #ffffff;
    --primary-dark: #0353e9;
    --primary-light: #edf5ff;
    --bg-dark: #f4f4f4;
    --bg-card: #ffffff;
    --bg-input: #f4f4f4;
    --text-primary: #161616;
    --text-secondary: #525252;
    --border: #e0e0e0;
    --accent-green: #24a148;
    --accent-red: #da1e28;
    --accent-yellow: #f1c21b;
    --shadow: none;
    --radius: 0;
    --skin-header-bg: #ffffff;
    --skin-header-border: #e0e0e0;
    --skin-logo-gradient: linear-gradient(90deg, #0f62fe, #4589ff, #0f62fe);
    --skin-card-hover: rgba(15, 98, 254, 0.08);
    --skin-user-bubble-bg: #0f62fe;
    --skin-user-bubble-text: #ffffff;
    --skin-ai-bubble-bg: #ffffff;
    --skin-emphasis: #0f62fe;
    --skin-focus-ring: rgba(15, 98, 254, 0.25);
    --skin-radius-soft: 0;
}

body[data-ui-skin="ibm"] {
    --primary: #0f62fe;
    --primary-contrast: #ffffff;
    --primary-hover-contrast: #ffffff;
    --primary-dark: #0353e9;
    --primary-light: #edf5ff;
    --bg-dark: #f4f4f4;
    --bg-card: #ffffff;
    --bg-input: #f4f4f4;
    --text-primary: #161616;
    --text-secondary: #525252;
    --border: #e0e0e0;
    --accent-green: #24a148;
    --accent-red: #da1e28;
    --accent-yellow: #f1c21b;
    --shadow: none;
    --radius: 0;
    --skin-header-bg: #ffffff;
    --skin-header-border: #e0e0e0;
    --skin-logo-gradient: linear-gradient(90deg, #0f62fe, #4589ff, #0f62fe);
    --skin-card-hover: rgba(15, 98, 254, 0.08);
    --skin-user-bubble-bg: #0f62fe;
    --skin-user-bubble-text: #ffffff;
    --skin-ai-bubble-bg: #ffffff;
    --skin-emphasis: #0f62fe;
    --skin-focus-ring: rgba(15, 98, 254, 0.25);
    --skin-radius-soft: 0;
}

body[data-ui-skin="voltagent"] {
    --primary: #00d992;
    --primary-contrast: #06110c;
    --primary-hover-contrast: #06110c;
    --primary-dark: #00b87b;
    --primary-light: rgba(0, 217, 146, 0.14);
    --bg-dark: #101010;
    --bg-card: #1a1a1a;
    --bg-input: #111111;
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --border: #3d3a39;
    --accent-green: #00d992;
    --accent-red: #ff5f57;
    --accent-yellow: #fbbf24;
    --shadow: none;
    --radius: 2px;
    --skin-header-bg: #101010;
    --skin-header-border: #3d3a39;
    --skin-logo-gradient: linear-gradient(90deg, #00d992, #65f4bd, #00d992);
    --skin-card-hover: rgba(0, 217, 146, 0.12);
    --skin-user-bubble-bg: #00d992;
    --skin-user-bubble-text: #06110c;
    --skin-ai-bubble-bg: #1a1a1a;
    --skin-emphasis: #00d992;
    --skin-focus-ring: rgba(0, 217, 146, 0.24);
    --skin-radius-soft: 4px;
}

body[data-ui-skin="intercom"] {
    --primary: #ff5600;
    --primary-contrast: #1f2328;
    --primary-hover-contrast: #ffffff;
    --primary-dark: #cc3f00;
    --primary-light: #fff1e8;
    --bg-dark: #fffaf2;
    --bg-card: #ffffff;
    --bg-input: #fff7ed;
    --text-primary: #1f2328;
    --text-secondary: #697386;
    --border: #eadfce;
    --accent-green: #12b76a;
    --accent-red: #d92d20;
    --accent-yellow: #f79009;
    --shadow: 0 10px 28px rgba(31, 35, 40, 0.08);
    --radius: 12px;
    --skin-header-bg: #ffffff;
    --skin-header-border: #eadfce;
    --skin-logo-gradient: linear-gradient(90deg, #ff5600, #ff9f6e, #ff5600);
    --skin-card-hover: rgba(255, 86, 0, 0.09);
    --skin-user-bubble-bg: #ff5600;
    --skin-user-bubble-text: #1f2328;
    --skin-ai-bubble-bg: #ffffff;
    --skin-emphasis: #9a3412;
    --skin-focus-ring: rgba(255, 86, 0, 0.22);
    --skin-radius-soft: 14px;
}

body[data-ui-skin="stripe"] {
    --primary: #533afd;
    --primary-contrast: #ffffff;
    --primary-hover-contrast: #ffffff;
    --primary-dark: #4328e8;
    --primary-light: #f1efff;
    --bg-dark: #f7f8ff;
    --bg-card: rgba(255, 255, 255, 0.88);
    --bg-input: rgba(255, 255, 255, 0.78);
    --text-primary: #172033;
    --text-secondary: #5b6171;
    --border: rgba(83, 58, 253, 0.18);
    --accent-green: #00b894;
    --accent-red: #e5484d;
    --accent-yellow: #f5a524;
    --shadow: 0 18px 46px rgba(83, 58, 253, 0.13);
    --radius: 14px;
    --skin-header-bg: rgba(255, 255, 255, 0.9);
    --skin-header-border: rgba(83, 58, 253, 0.16);
    --skin-logo-gradient: linear-gradient(90deg, #533afd, #9f7aea, #533afd);
    --skin-card-hover: rgba(83, 58, 253, 0.1);
    --skin-user-bubble-bg: #533afd;
    --skin-user-bubble-text: #ffffff;
    --skin-ai-bubble-bg: rgba(255, 255, 255, 0.88);
    --skin-emphasis: #533afd;
    --skin-focus-ring: rgba(83, 58, 253, 0.22);
    --skin-radius-soft: 18px;
}

* { 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;
    font-size: 15px;
    background: var(--bg-dark);
    color: var(--text-primary);
    height: 100dvh;
    overflow: hidden;
}

.app { display: flex; flex-direction: column; height: 100dvh; }

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: var(--skin-header-bg);
    border-bottom: 1px solid var(--skin-header-border);
    box-shadow: var(--shadow);
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
    font-size: 28px;
    font-weight: 700;
    background: var(--skin-logo-gradient);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: wave-gradient 3s linear infinite;
}
.logo-text {
    font-size: 20px;
    font-weight: 600;
    background: var(--skin-logo-gradient);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: wave-gradient 3s linear infinite;
}
.logo-sub { font-size: 13px; color: var(--text-secondary); margin-left: 8px; }

.status-indicator { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-secondary); }
.status-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent-red);
    transition: background 0.3s;
}
/* 默认深色模式：青蓝色主题灯 */
.status-dot.connected {
    background: var(--primary) !important;
    box-shadow: 0 0 8px var(--skin-focus-ring) !important;
}

/* 浅色模式：浅紫色主题灯 */
.panel,
.mode-card,
.resume-card,
.data-panel,
.report-card,
.session-item,
.settings-content {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Main Layout */
.main-content { display: flex; flex: 1; overflow: hidden; }

/* Sidebar */
.sidebar {
    width: 280px;
    padding: 16px;
    border-right: 1px solid var(--border);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}
.panel h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* 目标岗位分类级联选择器 */
.hidden-cascade {
    display: none !important;
}
.job-select-wrapper select {
    margin-bottom: 8px; /* 给下方可能出现的 input 留间距 */
}

/* 分段控制器基础样式 */
.segment-ctrl {
    display: flex;
    gap: 8px;
    width: 100%;
}
.seg-btn {
    flex: 1;
    padding: 8px 4px;
    font-size: 13px;
    font-weight: 500;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}
/* Segment controls use skin variables for readable inactive and hover states. */
.seg-btn:hover {
    background: var(--skin-card-hover);
    border-color: var(--primary);
    color: var(--text-primary);
}
.tab-btn.active,
.mode-tab.active,
.seg-btn.active {
    background: var(--primary);
    color: var(--primary-contrast);
    border-color: var(--primary);
}

select, textarea, input[type="text"] {
    width: 100%;
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.5;
    font-family: inherit;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
select:focus, textarea:focus, input[type="text"]:focus { border-color: var(--primary); }

.btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary { background: var(--primary); color: var(--primary-contrast); }
.btn-primary:hover { background: var(--primary-dark); color: var(--primary-hover-contrast); transform: translateY(-1px); }
.btn-primary:disabled { background: #333; color: #666; cursor: not-allowed; transform: none; }
.btn-danger { background: transparent; color: var(--accent-red); border: 1px solid var(--accent-red); }
.btn-danger:hover { background: rgba(234,67,53,0.1); }
.btn-danger:disabled { opacity: 0.3; cursor: not-allowed; }

.session-list { max-height: 200px; overflow-y: auto; }
.empty-hint { color: var(--text-secondary); font-size: 12px; text-align: center; padding: 12px; }

.session-item {
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    margin-bottom: 4px;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.session-item:hover { background: rgba(26,115,232,0.1); border-color: var(--border); }
.session-item.active { background: rgba(26,115,232,0.15); border-color: var(--primary); }

/* Chat Area */
.chat-area { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    scroll-behavior: smooth;
}
#tabInterview #chatMessages { display: none; }
#tabInterview.interview-active #chatMessages { display: block; }

.welcome-message {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 5vh;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
    animation: fadeIn 0.6s ease;
}
#tabInterview.interview-active .welcome-message { display: none; }
.welcome-icon { font-size: 96px; margin: 0 0 8px 0; }
.welcome-icon,
.welcome-message h2 {
    background: var(--skin-logo-gradient);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: wave-gradient 3s linear infinite;
}
.welcome-message h2 { font-size: 28px; margin-bottom: 10px; font-weight: 700; }
.welcome-message p { color: var(--text-secondary); font-size: 15px; }

@keyframes wave-gradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
.tech-badge {
    display: inline-block;
    margin-top: 16px;
    padding: 4px 12px;
    background: rgba(26,115,232,0.15);
    border: 1px solid rgba(26,115,232,0.3);
    border-radius: 20px;
    font-size: 11px;
    color: var(--primary);
}

.message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    animation: slideIn 0.3s ease;
}
.message.ai { flex-direction: row; }
.message.user { flex-direction: row-reverse; }

.message-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.message.ai .message-avatar { background: linear-gradient(135deg, var(--primary), #4fc3f7); }
.message.user .message-avatar { background: linear-gradient(135deg, #6c757d, #495057); }

.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}
.message.ai .message-bubble { background: var(--skin-ai-bubble-bg); border: 1px solid var(--border); }
.message.user .message-bubble { background: var(--skin-user-bubble-bg); color: var(--skin-user-bubble-text); }

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 16px;
    background: var(--primary);
    animation: blink 0.8s infinite;
    vertical-align: text-bottom;
    margin-left: 2px;
}

/* Chat Input */
.chat-input-area {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}
.input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 12px;
    transition: border-color 0.2s;
}
.input-wrapper:focus-within { border-color: var(--primary); }

.input-wrapper textarea {
    flex: 1;
    border: none;
    background: transparent;
    padding: 4px 0;
    min-height: 24px;
    max-height: 120px;
    resize: none;
    line-height: 1.5;
    font-family: inherit;
    font-size: 14px;
}

.btn-send {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: var(--primary-contrast);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}
.btn-send:hover { background: var(--primary-dark); color: var(--primary-hover-contrast); transform: scale(1.05); }
.btn-send:disabled { background: #333; color: #555; cursor: not-allowed; transform: none; }

.btn-mic {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    border: 1px solid var(--border);
}
.btn-mic:hover { border-color: var(--primary); color: var(--text-primary); }
.btn-mic:disabled { opacity: 0.3; cursor: not-allowed; }
.btn-mic.recording {
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
    animation: pulse-mic 1.2s ease-in-out infinite;
}
@keyframes pulse-mic {
    0%, 100% { box-shadow: 0 0 0 0 rgba(234,67,53,0.5); }
    50% { box-shadow: 0 0 0 8px rgba(234,67,53,0); }
}

/* Data Panel */
.data-panel {
    width: 260px;
    padding: 16px;
    border-left: 1px solid var(--border);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-grid { display: flex; flex-direction: column; gap: 10px; }
.stat-item { display: flex; justify-content: space-between; align-items: center; }
.stat-label { font-size: 12px; color: var(--text-secondary); }
.stat-value { font-size: 13px; font-weight: 600; color: var(--text-primary); }

/* 当前考察维度模块 */
.assessment-dimension {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-input);
    border-radius: 8px;
    margin-bottom: 8px;
}
.dimension-icon { font-size: 20px; }
.dimension-name {
    font-size: 14px;
    font-weight: 600;
    color: #00f2fe;
}
.dimension-desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

/* 面试进度模块 */
.interview-progress-bar {
    margin-top: 8px;
}
.progress-track {
    width: 100%;
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}
.progress-fill-interview {
    height: 100%;
    background: linear-gradient(90deg, #a855f7, #00f2fe);
    border-radius: 3px;
    transition: width 0.5s ease;
}
.progress-steps {
    display: flex;
    justify-content: space-between;
}
.step-label {
    font-size: 10px;
    color: var(--text-secondary);
}

.action-buttons { margin-top: auto; }

/* Score Bar */
.score-bar-container { margin-top: 8px; }
.score-bar-item { margin-bottom: 10px; }
.score-bar-label { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
.score-bar-track { height: 6px; background: var(--bg-input); border-radius: 3px; overflow: hidden; }
.score-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--primary), #4fc3f7);
    transition: width 0.8s ease;
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2a4a7f; }

/* Tab Bar */
.tab-bar { display: flex; gap: 4px; }
.tab-btn {
    padding: 6px 20px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.tab-btn:hover { border-color: var(--primary); color: var(--text-primary); }

/* Upload Zone */
.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
}
.upload-zone:hover { border-color: var(--primary); background: rgba(26,115,232,0.05); }
.upload-icon { font-size: 32px; color: var(--primary); margin-bottom: 8px; }
.upload-hint { font-size: 13px; color: var(--text-primary); margin-bottom: 4px; }
.upload-formats { font-size: 11px; color: var(--text-secondary); }
.upload-filename { font-size: 12px; color: var(--accent-green); margin-bottom: 8px; min-height: 18px; }

/* Export Button */
.btn-export {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--accent-green);
    border-radius: 6px;
    background: transparent;
    color: var(--accent-green);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-export:hover { background: rgba(52,168,83,0.1); }
.btn-export:disabled { opacity: 0.3; cursor: not-allowed; }

/* Cross-tab link hint */
.link-hint {
    background: rgba(52,168,83,0.08);
    border: 1px solid rgba(52,168,83,0.3);
    border-radius: var(--radius);
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--accent-green);
    text-align: center;
}
.btn-link {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 8px 12px;
    border: 1px solid var(--accent-green);
    border-radius: 6px;
    background: transparent;
    color: var(--accent-green);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-link:hover { background: rgba(52,168,83,0.15); }
.btn-link:disabled { opacity: 0.5; cursor: not-allowed; }

/* Extract Panel */
.extract-panel { }
.extract-loading { font-size: 13px; color: var(--primary); }
.extract-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
}
.extract-label { flex: 0 0 70px; font-size: 12px; color: var(--text-secondary); line-height: 1.4; }
.extract-value { flex: 1; font-size: 13px; font-weight: 600; color: var(--text-primary); text-align: left; word-wrap: break-word; line-height: 1.4; }
.extract-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.extract-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(26,115,232,0.15);
    border: 1px solid rgba(26,115,232,0.3);
    border-radius: 12px;
    font-size: 12px;
    color: var(--primary);
}

/* Markdown in bubbles */
.message-bubble h1, .message-bubble h2, .message-bubble h3,
.message-bubble h4, .message-bubble h5, .message-bubble h6 {
    margin: 8px 0 4px; font-weight: 600; line-height: 1.4;
}
.message-bubble h1 { font-size: 18px; }
.message-bubble h2 { font-size: 16px; }
.message-bubble h3 { font-size: 15px; }
.message-bubble p { margin: 0 0 8px 0; }
.message-bubble ul, .message-bubble ol { padding-left: 20px; margin: 0 0 8px 0; }
.message-bubble li { margin-bottom: 4px; }
.message-bubble code {
    background: rgba(255,255,255,0.08); padding: 1px 5px;
    border-radius: 3px; font-size: 13px; font-family: 'Consolas', monospace;
}
.message-bubble pre {
    background: rgba(0,0,0,0.3); padding: 10px; border-radius: 6px;
    overflow-x: auto; margin: 6px 0;
}
.message-bubble pre code { background: none; padding: 0; }
.message-bubble blockquote {
    border-left: 3px solid var(--primary); padding-left: 10px;
    margin: 6px 0; color: var(--text-secondary);
}
.message.ai .message-bubble strong { color: var(--skin-emphasis); }
.message.user .message-bubble strong { color: var(--skin-user-bubble-text); }
.message-bubble hr { border: none; border-top: 1px solid var(--border); margin: 8px 0; }
.message-bubble table { border-collapse: collapse; margin: 6px 0; font-size: 13px; }
.message-bubble th, .message-bubble td { border: 1px solid var(--border); padding: 4px 8px; }
.message-bubble th { background: rgba(26,115,232,0.1); }

/* Interviewer Avatar */
.avatar-panel { text-align: center; }
.avatar-container { display: flex; justify-content: center; }
.interviewer-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 0 20px rgba(26,115,232,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.interviewer-avatar.speaking {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(26,115,232,0.6), 0 0 60px rgba(26,115,232,0.2);
    animation: breathe 1.5s ease-in-out infinite;
}
@keyframes breathe {
    0%, 100% { transform: scale(1.02); box-shadow: 0 0 30px rgba(26,115,232,0.6); }
    50% { transform: scale(1.04); box-shadow: 0 0 40px rgba(26,115,232,0.8), 0 0 80px rgba(26,115,232,0.3); }
}
.avatar-name {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Report Overlay */
.report-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}
.report-card {
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}
.report-header h2 { font-size: 18px; color: var(--primary); }
.report-actions { display: flex; gap: 8px; }
.report-actions .btn { width: auto; padding: 8px 16px; font-size: 13px; }
.report-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}
.report-chart {
    flex: 0 0 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border);
    padding: 16px;
}
.report-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    line-height: 1.7;
    font-size: 14px;
    color: var(--text-primary); /* 确保默认文字是浅色 */
}
.report-body h1, .report-body h2, .report-body h3 {
    margin: 16px 0 8px; font-weight: 600; color: #a855f7; /* 紫色标题 */
}
.report-body h1 { font-size: 20px; }
.report-body h2 { font-size: 17px; }
.report-body h3 { font-size: 15px; }
.report-body p { margin: 0 0 10px 0; }
.report-body ul, .report-body ol { padding-left: 20px; margin: 0 0 10px 0; }
.report-body li { margin: 4px 0; }
.report-body strong { color: #a855f7; /* 紫色强调 */ }
.report-body hr { border: none; border-top: 1px solid var(--border); margin: 12px 0; }

/* Print styles */
@media print {
    body { background: #fff; color: #000; }
    .header, .sidebar, .data-panel, .chat-input-area, .report-actions { display: none !important; }
    .report-overlay { position: static; background: none; }
    .report-card { max-width: 100%; max-height: none; border: none; background: #fff; }
    .report-header { border-bottom: 2px solid #000; }
    .report-header h2 { color: #000; }
    .report-body { color: #000; }
    .report-body strong { color: #000; }
    .report-body h1, .report-body h2, .report-body h3 { color: #333; }
}

/* Header Right (mode tabs + status) */
.header-right { display: flex; align-items: center; gap: 16px; }
.mode-tabs { display: flex; gap: 4px; }
.mode-tab {
    padding: 4px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.mode-tab:hover { border-color: var(--primary); color: var(--text-primary); }

/* User Camera in Avatar Panel */
.avatar-panel #userCamera,
.avatar-panel #cameraPlaceholder { display: none; }
.avatar-panel #userCamera {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary);
}
.avatar-panel #cameraPlaceholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--border);
    background: var(--bg-input);
    color: var(--text-secondary);
    font-size: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Video mode: swap avatar for camera in right panel */
#tabInterview.mode-video .avatar-panel .interviewer-avatar { display: none; }

/* Video Main View (interviewer full-screen image) */
#videoMainView {
    display: none;
    flex: 1;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #080e1a;
}
#videoMainView #mainInterviewerAvatar {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: cover;
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#videoMainView #mainInterviewerAvatar.speaking {
    transform: scale(1.01);
    box-shadow: inset 0 0 80px rgba(26,115,232,0.15);
    animation: breathe 1.5s ease-in-out infinite;
}

/* Video mode: show video view, hide chat bubbles (only when interview active) */
#tabInterview.interview-active.mode-video #videoMainView { display: flex; }
#tabInterview.interview-active.mode-video #chatMessages { display: none; }

/* Camera Toggle Button (only in video mode) */
#toggleCameraBtn {
    display: none;
    width: 100%;
    margin-top: 8px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
#toggleCameraBtn:hover { border-color: var(--primary); color: var(--text-primary); }
#tabInterview.mode-video #toggleCameraBtn { display: block; }

/* Subtitle Bar */
.subtitle-bar {
    display: none;
    padding: 10px 20px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    border-radius: 8px;
    margin: 0 24px 8px;
    max-height: 80px;
    overflow-y: auto;
    word-break: break-word;
}
#tabInterview.mode-video .subtitle-bar.active { display: block; }

/* Guide Link */
.guide-link { margin-top: 12px; }
.guide-link a {
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
    border-bottom: 1px dashed var(--text-secondary);
    transition: color 0.2s;
}
.guide-link a:hover { color: var(--primary); border-bottom-color: var(--primary); }

/* Mode Cards */
.mode-cards-container {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}
.mode-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 200px;
    padding: 28px 20px;
    background: var(--bg-card);
    background:
        linear-gradient(145deg,
            color-mix(in srgb, var(--primary) 22%, var(--bg-card)) 0%,
            color-mix(in srgb, var(--primary) 11%, var(--bg-card)) 55%,
            color-mix(in srgb, var(--primary) 5%, var(--bg-card)) 100%);
    border: 1px solid color-mix(in srgb, var(--primary) 38%, var(--border));
    border-radius: var(--radius);
    box-shadow:
        0 16px 42px color-mix(in srgb, var(--primary) 16%, transparent),
        inset 0 1px 0 color-mix(in srgb, #ffffff 56%, transparent);
    cursor: pointer;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    text-align: center;
}

.mode-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--skin-logo-gradient);
    z-index: -1;
}

.mode-card::after {
    content: "";
    position: absolute;
    inset: 4px 0 0;
    background:
        radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--primary) 24%, transparent), transparent 44%),
        linear-gradient(180deg, color-mix(in srgb, #ffffff 36%, transparent), transparent 46%);
    opacity: .82;
    z-index: -1;
}

.mode-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--primary) 68%, var(--border));
    box-shadow:
        0 22px 54px color-mix(in srgb, var(--primary) 24%, transparent),
        inset 0 1px 0 color-mix(in srgb, #ffffff 62%, transparent);
}

.mode-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--primary) 18%, var(--bg-card));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 30%, transparent);
    font-size: 28px;
}

.mode-card-title {
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 15px;
    font-weight: 900;
}

.mode-card-desc {
    color: var(--text-secondary);
    font-size: 12px;
}

body[data-ui-skin="ibm"] .mode-card {
    background: linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);
    border-color: #78a9ff;
    box-shadow: 0 18px 44px rgba(15, 98, 254, .11);
}

body[data-ui-skin="ibm"] .mode-card-icon {
    background: #d0e2ff;
    box-shadow: inset 0 0 0 1px rgba(15, 98, 254, .22);
}

body[data-ui-skin="voltagent"] .mode-card {
    background:
        linear-gradient(180deg, rgba(0, 217, 146, .13), rgba(0, 217, 146, .035)),
        #101010;
    border-color: rgba(0, 217, 146, .42);
    box-shadow: inset 0 1px 0 rgba(101, 244, 189, .1);
}

body[data-ui-skin="voltagent"] .mode-card-icon {
    background: rgba(0, 217, 146, .12);
    box-shadow: inset 0 0 0 1px rgba(0, 217, 146, .36);
}

body[data-ui-skin="intercom"] .mode-card {
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
    border-color: #ffb088;
    box-shadow: 0 18px 44px rgba(255, 86, 0, .12);
}

body[data-ui-skin="intercom"] .mode-card-title {
    color: var(--primary-dark);
}

body[data-ui-skin="intercom"] .mode-card-icon {
    background: #fff1e8;
    box-shadow: inset 0 0 0 1px rgba(255, 86, 0, .24);
}

body[data-ui-skin="stripe"] .mode-card {
    background: linear-gradient(180deg, #ffffff 0%, #f1efff 100%);
    border-color: rgba(83, 58, 253, .34);
    box-shadow: 0 22px 54px rgba(83, 58, 253, .14);
}

body[data-ui-skin="stripe"] .mode-card-icon {
    background: #ece8ff;
    box-shadow: inset 0 0 0 1px rgba(83, 58, 253, .25);
}

/* Guide Modal */
.guide-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}
.guide-card {
    width: 480px;
    max-width: 90%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.guide-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.guide-header h2 { font-size: 16px; color: var(--primary); }
.guide-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}
.guide-close:hover { color: var(--text-primary); }
.guide-body {
    padding: 20px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-primary);
}
.guide-body p { margin-bottom: 8px; }
.guide-body strong { color: var(--primary); }

/* ================= UI Skin Switcher ================= */
.ui-skin-switcher {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    margin-left: 10px;
    z-index: 1400;
}

.ui-skin-toggle {
    width: 100%;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--primary);
    box-shadow: none;
    padding: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.ui-skin-toggle:hover {
    transform: translateY(-1px);
}

.ui-skin-toggle:focus-visible {
    outline: 3px solid var(--skin-focus-ring);
    outline-offset: 4px;
}

.ui-skin-toggle-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 999px;
    border: 0;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent), 0 0 12px color-mix(in srgb, var(--primary) 42%, transparent);
    transition: transform .18s ease, box-shadow .18s ease;
}

.ui-skin-toggle-label {
    display: none;
}

.ui-skin-toggle:hover .ui-skin-toggle-dot {
    transform: scale(1.18);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 16%, transparent), 0 0 16px color-mix(in srgb, var(--primary) 52%, transparent);
}

.ui-skin-menu {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1401;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 0;
    width: 78px;
    height: 32px;
    min-height: 0;
    padding: 0 9px;
    border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
    border-radius: 999px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--primary) 9%, #ffffff), color-mix(in srgb, var(--primary) 4%, var(--bg-card)));
    box-shadow:
        0 10px 24px color-mix(in srgb, var(--primary) 12%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, .72);
    color: var(--text-primary);
    animation: skinTrayIn .16s ease both;
}

.ui-skin-menu[hidden] {
    display: none !important;
}

.ui-skin-menu::before {
    display: none;
}

.ui-skin-menu-title {
    display: none;
}

.ui-skin-options {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 0;
    width: 100%;
}

.ui-skin-option {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.ui-skin-option::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--option-color);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--option-color) 34%, var(--border));
    transition: transform .16s ease, box-shadow .16s ease;
}

.ui-skin-option:hover,
.ui-skin-option:focus-visible,
.ui-skin-option.is-active {
    outline: none;
    transform: translateY(-1px);
}

.ui-skin-option:hover::before,
.ui-skin-option:focus-visible::before,
.ui-skin-option.is-active::before {
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--option-color) 22%, transparent),
        0 0 12px color-mix(in srgb, var(--option-color) 38%, transparent);
}

@keyframes skinTrayIn {
    from {
        opacity: 0;
        transform: scale(.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .ui-skin-switcher {
        margin-left: 8px;
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .ui-skin-toggle {
        height: 30px;
        padding: 0;
        font-size: 12px;
    }

    .ui-skin-menu {
        width: 74px;
        height: 30px;
        padding: 0 8px;
    }

    .ui-skin-menu-title {
        display: none;
    }

    .ui-skin-option {
        width: 16px;
        height: 16px;
    }
}

body[data-ui-skin="ibm"] .header,
body[data-ui-skin="ibm"] .panel,
body[data-ui-skin="ibm"] .chat-input-area,
body[data-ui-skin="ibm"] .input-wrapper,
body[data-ui-skin="ibm"] .mode-card,
body[data-ui-skin="ibm"] .upload-zone {
    border-radius: 0;
}

body[data-ui-skin="voltagent"] .header,
body[data-ui-skin="voltagent"] .panel,
body[data-ui-skin="voltagent"] .chat-input-area,
body[data-ui-skin="voltagent"] .input-wrapper,
body[data-ui-skin="voltagent"] .mode-card,
body[data-ui-skin="voltagent"] .upload-zone {
    box-shadow: none;
}

body[data-ui-skin="voltagent"] .header {
    background-image:
        linear-gradient(90deg, rgba(0, 217, 146, .08) 1px, transparent 1px),
        linear-gradient(rgba(0, 217, 146, .06) 1px, transparent 1px);
    background-size: 28px 28px;
}

body[data-ui-skin="intercom"] .message-bubble,
body[data-ui-skin="intercom"] .panel,
body[data-ui-skin="intercom"] .mode-card,
body[data-ui-skin="intercom"] .upload-zone {
    border-radius: 14px;
}

body[data-ui-skin="stripe"] {
    background:
        radial-gradient(circle at 12% 0%, rgba(83, 58, 253, .12), transparent 30%),
        radial-gradient(circle at 88% 10%, rgba(247, 209, 255, .34), transparent 24%),
        var(--bg-dark);
}

body[data-ui-skin="stripe"] .header {
    backdrop-filter: blur(18px);
}

/* --- Collapse buttons inside sidebars — ghost style --- */
.collapse-btn {
    position: absolute;
    top: 12px;
    width: 24px;
    height: 24px;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: rgba(255,255,255,0.4);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
    margin: 0;
    outline: none;
    line-height: 1;
    transition: color 0.2s;
}
.collapse-btn:hover { color: #fff; }
.collapse-btn-left { right: 12px; }
.collapse-btn-right { left: 12px; }

/* Sidebar / data-panel need position:relative for the absolute button */
.sidebar, .data-panel { position: relative; }

/* --- Edge expand handles — glass morphism, hidden by default --- */
.expand-handle {
    display: none;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 80px;
    z-index: 999;
    -webkit-appearance: none;
    appearance: none;
    border: 1px solid color-mix(in srgb, var(--primary) 44%, var(--border));
    background: color-mix(in srgb, var(--primary) 28%, var(--bg-card));
    backdrop-filter: blur(10px);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    outline: none;
    line-height: 1;
    transition: all 0.3s;
}
.expand-handle:hover { border-color: var(--primary); color: var(--primary); background: rgba(26,115,232,0.15); }
.expand-handle-left {
    left: 0;
    border-left: none;
    border-radius: 0 6px 6px 0;
}
.expand-handle-right {
    right: 0;
    border-right: none;
    border-radius: 6px 0 0 6px;
}

/* --- Backdrop for drawers (hidden by default) --- */
.drawer-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 900;
}

/* ==================================================================== */
/* PC Collapse States (>768px) — CSS transition, no position:fixed      */
/* ==================================================================== */
.left-collapsed .sidebar {
    width: 0;
    min-width: 0;
    padding: 0;
    border-right: none;
    overflow: hidden;
}
.left-collapsed .expand-handle-left { display: flex; }

.right-collapsed .data-panel {
    width: 0;
    min-width: 0;
    padding: 0;
    border-left: none;
    overflow: hidden;
}
.right-collapsed .expand-handle-right { display: flex; }

/* Smooth transition for PC collapse */
.sidebar {
    transition: width 0.3s ease, padding 0.3s ease;
}
.data-panel {
    transition: width 0.3s ease, padding 0.3s ease;
}

/* ==================================================================== */
/* Mobile Adaptation — max-width: 768px                                 */
/* ==================================================================== */
@media (max-width: 768px) {

    /* ---- Header: compact ---- */
    .header { padding: 8px 12px; gap: 8px; }
    .logo-sub { display: none; }
    .logo-icon { font-size: 22px; }
    .logo-text { font-size: 16px; }
    .logo { gap: 6px; }
    .tab-bar { gap: 2px; }
    .tab-btn { padding: 5px 12px; font-size: 12px; }
    .status-indicator #statusText { display: none; }
    .header-right { gap: 8px; }

    /* ---- Override PC collapse: sidebar/data-panel become fixed drawers ---- */
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 280px !important;
        height: 100dvh !important;
        z-index: 950 !important;
        background: var(--bg-dark) !important;
        border-right: 1px solid var(--border) !important;
        padding: 16px !important;
        padding-top: 40px !important;
        overflow-y: auto !important;
        transform: translateX(-100%);
        transition: transform 0.3s ease !important;
    }

    .data-panel {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 280px !important;
        height: 100dvh !important;
        z-index: 950 !important;
        background: var(--bg-dark) !important;
        border-left: 1px solid var(--border) !important;
        padding: 16px !important;
        padding-top: 40px !important;
        overflow-y: auto !important;
        transform: translateX(100%);
        transition: transform 0.3s ease !important;
    }

    /* Mobile open states — slide in */
    body:not(.left-collapsed) .sidebar {
        transform: translateX(0);
    }
    body:not(.right-collapsed) .data-panel {
        transform: translateX(0);
    }

    /* Show backdrop when a drawer is open on mobile */
    body:not(.left-collapsed) .drawer-backdrop,
    body:not(.right-collapsed) .drawer-backdrop { display: block; }

    /* Edge handles: always show on mobile, wider for touch targets */
    .expand-handle-left,
    .expand-handle-right { display: flex; width: 28px; }
    /* Hide when drawer is open */
    body:not(.left-collapsed) .expand-handle-left { display: none; }
    body:not(.right-collapsed) .expand-handle-right { display: none; }

    /* Collapse buttons stay visible inside drawers */
    .collapse-btn { display: flex; }

    /* Chat area: force full width */
    .chat-area {
        width: 100% !important;
        flex: 1 1 100% !important;
        min-width: 0 !important;
    }

    /* Body overflow: already handled globally (body { overflow: hidden })
       Chat content scrolls independently via .chat-messages { overflow-y: auto }
       and .chat-area { flex: 1; display: flex; flex-direction: column }
       No additional overflow rules needed here. */

    /* ---- Chat messages & input ---- */
    .chat-messages { padding: 12px; }
    .chat-input-area { padding: 10px 12px; padding-bottom: env(safe-area-inset-bottom, 10px); }
    .input-wrapper { padding: 6px 10px; }
    .message-bubble { max-width: 85%; font-size: 13px; padding: 10px 12px; }

    /* ---- Welcome page ---- */
    .welcome-message { padding-top: 3vh; padding-left: 12px; padding-right: 12px; }
    .welcome-icon { font-size: 56px; }
    .welcome-message h2 { font-size: 20px; }
    .welcome-message p { font-size: 13px; }
    .mode-cards-container { flex-direction: column; align-items: center; gap: 12px; margin-top: 24px; }
    .mode-card { width: 100%; max-width: 100%; padding: 20px 16px; }
    .mode-card-icon { font-size: 28px; margin-bottom: 8px; }
    .mode-card-title { font-size: 14px; }

    /* ---- Video mode ---- */
    #videoMainView { width: 100%; max-width: 100%; }
    #videoMainView #mainInterviewerAvatar { max-width: 95%; max-height: 65%; border-radius: 12px; object-fit: contain; }
    .subtitle-bar { margin: 0 5% 6px; font-size: 13px; padding: 8px 14px; width: 90%; box-sizing: border-box; }

    /* ---- Report overlay: stack vertically ---- */
    .report-card { width: 96%; max-width: 96%; max-height: 94dvh; overflow-y: auto; }
    .report-content { flex-direction: column; overflow: visible; }
    .report-chart {
        flex: 0 0 auto;
        width: 280px;
        height: 280px;
        margin: 0 auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 12px;
    }
    .report-body { padding: 16px; }
    .report-header { padding: 12px 16px; }
    .report-header h2 { font-size: 16px; }
    .report-actions .btn { padding: 6px 12px; font-size: 12px; }

    /* ---- Guide modal ---- */
    .guide-card { width: 95%; }
    .guide-body { font-size: 12px; padding: 16px; }

    /* ---- Upload zone ---- */
    .upload-zone { padding: 16px 12px; }

    /* ---- Avatar panel in right drawer ---- */
    .avatar-panel #userCamera,
    .avatar-panel #cameraPlaceholder { width: 100px; height: 100px; }
    .interviewer-avatar { width: 100px; height: 100px; }
}

/* ====================================================================
   精准修复：Markdown间距紧凑化 + 输入框垂直居中 (2026-04-14)
   ==================================================================== */

/* --- Markdown 间距修复 --- */
.message-bubble p,
.message-bubble ul,
.message-bubble ol {
    margin-top: 4px;
    margin-bottom: 8px;
    line-height: 1.6;
}
.message-bubble li {
    margin-bottom: 4px;
    line-height: 1.6;
}
.message-bubble p + p {
    margin-top: 6px;
}

/* ================= 主题切换按钮 ================= */
/* ================= 浅色模式 (Light Mode) ================= */
/* 1. 彻底漂白所有主容器背景 */
/* 2. 翻转上述容器内部的默认文字颜色为深灰 */
/* 面板变为白色玻璃拟态 */
/* 聊天输入框浅色化 */
/* AI 和用户的消息气泡浅色化 */
/* 浅色模式下的高级科技流光 (蓝 -> 紫 -> 蓝) */
/* 3. 保护主按钮（如“开始面试”），确保它们在浅色模式下依然是蓝底白字 */
/* 修复面板标题和重要强调字的颜色 */
/* 浅色模式：当前考察维度模块 */
/* 浅色模式：面试进度条 */
/* 修复 Markdown 内部粗体字和链接颜色 */
/* --- 聊天输入框垂直居中修复 --- */
#messageInput,
#resumeMsgInput {
    box-sizing: border-box !important;
    height: auto !important;
    min-height: 48px !important;
    padding: 12px 16px !important;
    line-height: 24px !important;
    font-size: 14px !important;
    resize: none !important;
}

/* ====================================================================
   浅色模式终极穿透修复：清剿所有深色残留子组件
   ==================================================================== */

/* 彻底清剿所有卡片、内部面板和输入框的深色残留 */
/* 表单元素（输入框、下拉框）漂白 */
/* 上传简历虚线框专属漂白 */
/* 恢复动态流光，采用优雅的紫罗兰/浅紫色系渐变 */
/* 主按钮与 Active Tab 替换为浅紫色 */
/* 顶部的 Powered by 徽章浅紫化 */
/* ====================================================================
   浅色模式像素级细节修补：肃清残留蓝色 + 反白文字修正
   ==================================================================== */

/* AI 面试官头像光晕替换为浅紫光晕 */
/* 面板小标题（面试状态、数字人状态等） */
/* 上传区域的"+"号图标和提示文字 */
/* 欢迎页模式卡片内部文字翻转为深色 */
/* 左侧表单的 Label 文字 */
/* 浅色模式下的发送和麦克风按钮 */
/* 麦克风录音中（Active）的特殊状态 */
/* ====================================================================
   评估报告卡片：浅色模式覆盖样式
   ==================================================================== */
/* ====================================================================
   阶段 4.9：浅色模式辅助色系与细节净化（靛蓝 + 青灰中和紫色）
   ==================================================================== */

/* 任务1：净化简历核心特征标签 - 雾霾灰底 + 靛蓝字 */
/* 任务2：重塑聊天区头像 - 区分人类与 AI 的层级 */
/* 用户头像：低调的浅蓝灰 */
/* AI 消息头像：呼应主题的蓝紫渐变 */
/* 任务3：优化大模型输出的重点文本与高亮块 */
/* Markdown 强调文本：深靛蓝 (高对比度护眼) */
/* Markdown 引用块 (Blockquote) */
/* Markdown 内联代码块 */
/* 浅色模式：分段控制器适配（浅紫） */
/* ====================================================================
   Phase 2：求职信息弹窗样式（兼容深浅色模式）
   ==================================================================== */

/* 遮罩层与毛玻璃 */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center;
    z-index: 2000; opacity: 1; transition: opacity 0.3s ease;
}
.modal-overlay.hidden { opacity: 0; pointer-events: none; }

/* 弹窗主壳 */
.resume-modal {
    width: 90%; max-width: 800px; max-height: 85vh;
    background: #1e293b; border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px; display: flex; flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(0); transition: transform 0.3s ease;
}
.modal-overlay.hidden .resume-modal { transform: translateY(20px); }

/* 内部布局 */
.modal-header, .modal-footer { padding: 16px 24px; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; }
.modal-footer { border-bottom: none; border-top: 1px solid rgba(255,255,255,0.05); }

.close-btn {
    width: 32px; height: 32px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
.close-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
}
.modal-header h2 {
    font-size: 20px;
    margin: 0;
    color: var(--text-primary);
}

/* 滚动区与双列表单 */
.modal-body { padding: 24px; overflow-y: auto; }
.two-col-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* 强制所有输入框统一宽度并优化内边距 */
.two-col-form input,
.two-col-form textarea,
.two-col-form select {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 12px !important;
    border-radius: 6px !important;
    border: 1px solid #cbd5e1 !important;
    background: #f8fafc !important;
    font-family: inherit;
    font-size: 14px !important;
}/* 让核心长文本字段独占一行 */
.full-width-group {
    grid-column: 1 / -1 !important;
}
.two-col-form textarea {
    resize: vertical;
    min-height: 60px;
}

.form-group.required label::after { content: " *"; color: #ef4444; }

/* 按钮与进度条 */
.import-section { margin-bottom: 20px; }
.import-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.2s;
}
.import-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.progress-bar {
    width: 100%;
    height: 24px;
    background: var(--bg-input);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}
.progress-bar.hidden { display: none; }
.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease-out;
    position: absolute;
    left: 0;
    top: 0;
}
.progress-text {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
}

.modal-hint {
    color: var(--text-secondary);
    font-size: 13px;
}
.primary-btn {
    padding: 10px 24px;
    background: var(--primary);
    color: var(--primary-contrast);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.primary-btn:hover:not(.disabled) {
    background: var(--primary-dark);
    color: var(--primary-hover-contrast);
    transform: translateY(-1px);
}
.primary-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 浅色模式覆盖 */
/* ====================================================================
   Phase 3：打字机填表动画 - 高亮字段与错误边框
   ==================================================================== */

/* AI 提取中高亮字段 */
.highlight-field {
    border-color: #3b82f6 !important;
    background-color: rgba(59, 130, 246, 0.1) !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3) !important;
    transition: all 0.2s ease;
}/* 必填项为空错误边框 */
.error-border {
    border-color: #ef4444 !important;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.3) !important;
}
