/* ===== 重置 & 基础变量 ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 主色调 - 清新蓝绿渐变 */
  --primary: #4F6EF7;
  --primary-light: #6C8AFF;
  --primary-dark: #3B5BDB;
  --primary-bg: #EEF2FF;
  --primary-bg-hover: #E0E7FF;

  /* 辅助色 */
  --accent: #00C9A7;
  --accent-light: #5EEAD4;
  --accent-bg: #F0FDFA;

  --warning: #F59E0B;
  --warning-bg: #FFFBEB;
  --danger: #EF4444;
  --success: #10B981;
  --info: #3B82F6;

  /* 中性色 */
  --bg: #F8FAFC;
  --bg-secondary: #F1F5F9;
  --surface: #FFFFFF;
  --surface-hover: #F8FAFC;
  --border: #E2E8F0;
  --border-light: #F1F5F9;

  --text-primary: #1E293B;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --text-inverse: #FFFFFF;

  /* 尺寸 */
  --sidebar-w: 300px;
  --header-h: 60px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

  /* 过渡 */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg);
  overflow: hidden;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

textarea {
  font-family: inherit;
}

/* ===== App 布局 ===== */
#app {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* ===== 侧边栏 ===== */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  z-index: 10;
}

.sidebar.collapsed {
  margin-left: calc(-1 * var(--sidebar-w));
}

.sidebar-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--border-light);
}

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

.logo-icon {
  font-size: 24px;
}

.logo-icon-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

.logo-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: var(--transition);
}

.sidebar-toggle:hover {
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

/* 进度区 */
.progress-section {
  padding: 20px;
  border-bottom: 1px solid var(--border-light);
}

.progress-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.progress-title span:first-child {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.progress-percent {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

.progress-bar {
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  transition: var(--transition);
}

.step-item.active {
  background: var(--primary-bg);
}

.step-item.done {
  color: var(--text-muted);
}

.step-item.done .step-name {
  text-decoration: line-through;
  text-decoration-color: var(--text-muted);
}

.step-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid var(--border);
  color: var(--text-muted);
  background: var(--surface);
  transition: var(--transition);
}

.step-item.active .step-dot {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}

.step-item.done .step-dot {
  border-color: var(--success);
  background: var(--success);
  color: white;
}

.step-name {
  font-weight: 500;
  color: var(--text-secondary);
}

.step-item.active .step-name {
  color: var(--primary);
  font-weight: 600;
}

/* 档案摘要 */
.profile-summary {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.profile-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

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

.profile-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-secondary);
}

.profile-tag .tag-label {
  color: var(--text-muted);
  font-weight: 500;
}

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

/* 侧边栏底部 */
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-light);
}

.btn-restart {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  transition: var(--transition);
}

.btn-restart:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

/* ===== 主聊天区 ===== */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.chat-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.menu-toggle:hover {
  background: var(--bg-secondary);
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-dot.online {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.header-actions {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: var(--transition);
}

.btn-icon:hover {
  background: var(--bg-secondary);
  color: var(--primary);
}

/* 消息列表 */
.chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* 消息气泡 */
.message {
  display: flex;
  gap: 12px;
  max-width: 760px;
  animation: msgIn 0.3s ease;
}

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

.message-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  overflow: hidden;
}

.message.bot .message-avatar {
  background: #fff;
  border: 1px solid var(--border-light);
}

.bot-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.message.user .message-avatar {
  background: linear-gradient(135deg, #F59E0B, #EF4444);
}

.message.user {
  flex-direction: row-reverse;
  align-self: flex-end;
}

.message-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: calc(100% - 50px);
}

.message.user .message-content {
  align-items: flex-end;
}

.message-bubble {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14.5px;
  line-height: 1.65;
  word-break: break-word;
}

.message.bot .message-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top-left-radius: 4px;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.message.user .message-bubble {
  background: var(--primary);
  border-top-right-radius: 4px;
  color: white;
}

.message-time {
  font-size: 11px;
  color: var(--text-muted);
  padding: 0 4px;
}

/* 打字动画 */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 14px 16px;
  align-items: center;
}

.typing-indicator span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing 1.4s infinite;
}

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

@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-4px); }
}

/* 选项按钮区 */
.chat-options {
  padding: 0 20px 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 760px;
}

.chat-options:empty {
  display: none;
}

.option-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 500;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
}

.option-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.option-btn:active {
  transform: translateY(0);
}

/* 输入区 */
.chat-input-area {
  padding: 12px 20px 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 760px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 8px 8px 8px 16px;
  border: 2px solid transparent;
  transition: var(--transition);
}

.input-wrapper:focus-within {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(79, 110, 247, 0.1);
}

.chat-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-primary);
  resize: none;
  outline: none;
  max-height: 120px;
}

.chat-input::placeholder {
  color: var(--text-muted);
}

.chat-input:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: white;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-send:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.btn-send:disabled {
  background: var(--border);
  cursor: not-allowed;
}

.input-hint {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ===== 报告弹窗 ===== */
.report-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
}

.report-modal.active {
  display: block;
}

.report-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.report-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 820px;
  max-height: 90vh;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  animation: reportIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes reportIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.95); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.report-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.report-actions {
  display: flex;
  gap: 4px;
}

.report-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.report-body::-webkit-scrollbar {
  width: 6px;
}

.report-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

/* 报告内容样式 */
.report-section {
  margin-bottom: 28px;
}

.report-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-bg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.report-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.report-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.match-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

.match-score.high { background: #DCFCE7; color: #166534; }
.match-score.mid { background: #FEF3C7; color: #92400E; }
.match-score.low { background: #FEE2E2; color: #991B1B; }

.match-bar {
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}

.match-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease;
}

.match-bar-fill.high { background: linear-gradient(90deg, #10B981, #34D399); }
.match-bar-fill.mid { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.match-bar-fill.low { background: linear-gradient(90deg, #EF4444, #F87171); }

.riasec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.riasec-item {
  text-align: center;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border-light);
}

.riasec-item.top {
  background: var(--primary-bg);
  border-color: var(--primary);
}

.riasec-letter {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

.riasec-name {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.riasec-bar {
  height: 4px;
  background: var(--bg-secondary);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}

.riasec-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
}

.action-list {
  list-style: none;
  padding: 0;
}

.action-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.action-item:last-child { border-bottom: none; }

.action-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.action-content {
  flex: 1;
}

.action-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.action-detail {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

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

.gap-table th {
  text-align: left;
  padding: 8px 10px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
}

.gap-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-light);
}

/* ===== 报告 logo 横幅（每页/每章节） ===== */
.report-page-logo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 8px 4px 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.report-page-logo img {
  height: 28px;
  width: auto;
  display: block;
}
.report-page-logo span {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* ===== 行动规划完成页职业切换列表 ===== */
.career-switch-wrap {
  width: 100%;
  margin-top: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #F0F4FF, #E0F7FA);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}
.career-switch-title {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 13px;
  margin-bottom: 8px;
}
.career-switch-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.career-switch-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  transition: all 0.2s ease;
  text-align: left;
}
.career-switch-item:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(79, 110, 247, 0.15);
}
.career-switch-item .cs-icon { font-size: 16px; }
.career-switch-item .cs-name { font-weight: 600; color: var(--text-primary); flex: 1; }
.career-switch-item .cs-score {
  background: #FEF3C7;
  color: #92400E;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}

/* ===== 报告内嵌"其他匹配岗位"块（打印友好） ===== */
.report-career-switch {
  margin: 16px 0;
  padding: 14px 16px;
  background: linear-gradient(135deg, #F0F4FF, #E0F7FA);
  border-radius: 10px;
  border-left: 4px solid var(--primary);
  page-break-inside: avoid;
}
.report-career-switch .rcs-title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 13px;
}
.report-career-switch .rcs-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.report-career-switch .rcs-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: #fff;
  border-radius: 8px;
  font-size: 12.5px;
  border: 1px solid var(--border-light);
}
.report-career-switch .rcs-item .rcs-icon { font-size: 16px; }
.report-career-switch .rcs-item .rcs-name { font-weight: 600; color: var(--text-primary); flex: 1; }
.report-career-switch .rcs-item .rcs-score {
  background: #FEF3C7; color: #92400E;
  padding: 2px 6px; border-radius: 8px;
  font-size: 11px; font-weight: 700;
}
.report-career-switch .rcs-item .rcs-cat {
  font-size: 11px; color: var(--text-muted);
}

/* ===== 打印样式（PDF 每页带 logo） ===== */
@media print {
  body { background: #fff; padding: 0; }
  .report-modal, .report-overlay, .sidebar, .chat-header, .chat-input-area, .chat-options {
    display: none !important;
  }
  .report-container {
    position: static;
    transform: none;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    border-radius: 0;
    max-height: none;
    display: block !important;
  }
  .report-body {
    padding: 12mm;
    overflow: visible;
  }
  .report-section {
    page-break-inside: avoid;
  }
  .report-page-logo { display: flex !important; }
}

.gap-level {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.gap-level.critical { background: #FEE2E2; color: #991B1B; }
.gap-level.important { background: #FEF3C7; color: #92400E; }
.gap-level.minor { background: #DCFCE7; color: #166534; }

/* 雷达图容器 */
.radar-chart-container {
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

/* ===== 开场动画 ===== */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #4F6EF7 0%, #00C9A7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.splash-content {
  text-align: center;
  color: white;
}

.splash-logo {
  font-size: 64px;
  animation: bounce 1s ease infinite;
}

.splash-logo-img {
  width: 110px;
  height: 110px;
  border-radius: 24px;
  object-fit: cover;
  display: inline-block;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  animation: bounce 1s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.splash-title {
  font-size: 28px;
  font-weight: 800;
  margin-top: 16px;
  letter-spacing: -0.5px;
}

.splash-subtitle {
  font-size: 14px;
  opacity: 0.85;
  margin-top: 6px;
}

.splash-loader {
  width: 180px;
  height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  margin: 28px auto 0;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  width: 40%;
  background: white;
  border-radius: 2px;
  animation: load 1.2s ease-in-out infinite;
}

@keyframes load {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  :root {
    --sidebar-w: 260px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    box-shadow: var(--shadow-lg);
  }

  .sidebar.collapsed {
    margin-left: calc(-1 * var(--sidebar-w));
  }

  .sidebar-toggle {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .chat-messages {
    padding: 16px 12px;
  }

  .chat-input-area {
    padding: 10px 12px 12px;
  }

  .chat-options {
    padding: 0 12px 6px;
  }

  .message {
    max-width: 100%;
  }

  .riasec-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .report-container {
    width: 95%;
    max-height: 95vh;
  }

  .report-body {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .riasec-grid {
    grid-template-columns: 1fr;
  }

  .splash-title {
    font-size: 22px;
  }
}

/* ===== 链接错误/过期页面 ===== */
.link-error-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
  z-index: 9999;
}

.link-error-card {
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.link-error-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 20px;
}

.link-error-card h2 {
  font-size: 22px;
  color: #1E293B;
  margin-bottom: 12px;
}

.link-error-card p {
  font-size: 15px;
  color: #64748B;
  line-height: 1.6;
}