/* MBTI 性格测试 - 样式文件 */

/* CSS 变量 - 蓝绿灰色调 */
:root {
  /* 蓝色系 - 更浅的蓝色 */
  --primary: #5A82B8;
  --primary-dark: #4A6FA5;
  --primary-light: #6B92C8;
  --primary-hover: #5A82B8;
  
  /* 蓝绿渐变 - 更浅的渐变 */
  --gradient-start: #6B92C8;
  --gradient-mid: #6B9EAA;
  --gradient-end: #8ABCB8;
  
  /* 绿色系 - 更浅的绿色 */
  --success: #8ABCB8;
  --success-light: #A8D4D4;
  
  /* 灰色系 - 高级灰 */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  
  /* 功能色 */
  --accent: #6B9E9E;
  --warning: #B8860B;
  --danger: #6B7280;
  
  /* 背景色 */
  --bg: #FFFFFF;
  --bg-secondary: #F3F4F6;
  --bg-tertiary: #E5E7EB;
  
  /* 文字色 */
  --text: #1F2937;
  --text-secondary: #4B5563;
  --text-light: #9CA3AF;
  --text-muted: #D1D5DB;
  
  /* 边框 */
  --border: #E5E7EB;
  --border-dark: #D1D5DB;
  
  /* 阴影 */
  --shadow: 0 2px 8px rgba(30, 58, 95, 0.08);
  --shadow-lg: 0 8px 24px rgba(30, 58, 95, 0.12);
  --shadow-xl: 0 16px 48px rgba(30, 58, 95, 0.16);
  
  /* 圆角 */
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* 过渡 */
  --transition: all 0.25s ease;
}

/* 重置样式 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-secondary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 工具类 */
.hidden {
  display: none !important;
}

/* 容器 */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 首页样式 */
.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #E8EEF4 0%, #D4E4E8 50%, #C8E0D8 100%);
}

.home-content {
  text-align: center;
  background: var(--bg);
  padding: 48px 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 480px;
  width: 100%;
}

.logo {
  font-size: 56px;
  margin-bottom: 20px;
  filter: grayscale(20%);
}

.title {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.subtitle {
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: 36px;
  font-weight: 400;
}

.version-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.version-card {
  padding: 22px 24px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  background: var(--bg);
}

.version-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.version-card.standard {
  background: linear-gradient(135deg, var(--primary) 0%, var(--gradient-mid) 100%);
  border: none;
}

.version-card.standard:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

.version-card.standard .version-title,
.version-card.standard .version-desc {
  color: white;
}

.version-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--gray-800);
}

.version-title.white {
  color: white;
}

.version-desc {
  font-size: 13px;
  color: var(--gray-500);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--gradient-mid) 100%);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--gray-300);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.btn-text {
  background: transparent;
  color: var(--gray-600);
  padding: 10px 16px;
}

.btn-text:hover {
  background: var(--gray-100);
  color: var(--text);
}

.btn-history {
  margin-top: 16px;
}

/* 测试页面样式 */
.test-page {
  min-height: 100vh;
  background: var(--gray-100);
  padding: 24px 20px 80px;
}

.test-container {
  max-width: 640px;
  margin: 0 auto;
}

.progress-container {
  background: var(--bg);
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 8px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 102;
}

.progress-bar {
  height: 6px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--success) 100%);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.progress-text {
  font-size: 13px;
  color: var(--gray-500);
  text-align: center;
  font-weight: 500;
}

.test-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 8px;
  position: sticky;
  top: 52px;
  background: var(--gray-100);
  padding: 8px 0;
  z-index: 101;
}

.test-toolbar .btn-text {
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid var(--gray-300);
  background: var(--bg);
  border-radius: var(--radius);
}

.test-toolbar .btn-text:hover {
  background: var(--gray-50);
}

.test-toolbar .btn-text.auto-active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--gradient-mid) 100%);
  color: white;
  border-color: var(--primary);
}

/* 复选框样式 */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-600);
  cursor: pointer;
  padding: 6px 10px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--bg);
  transition: var(--transition);
  user-select: none;
}

.checkbox-label:hover {
  background: var(--gray-50);
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary);
}

.checkbox-label:has(input:checked) {
  background: linear-gradient(135deg, var(--primary) 0%, var(--gradient-mid) 100%);
  color: white;
  border-color: var(--primary);
}

.question-card {
  background: var(--bg);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.question-number {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 8px;
  font-weight: 500;
}

/* 维度标签 */
.dimension-label {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, rgba(74, 111, 165, 0.12) 0%, rgba(107, 158, 158, 0.12) 100%);
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

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

.question-header .question-number {
  margin-bottom: 0;
}

.question-text {
  font-size: 17px;
  font-weight: 500;
  color: var(--gray-800);
  margin-bottom: 28px;
  line-height: 1.7;
}

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

/* 五级量表选项 */
.scale-option {
  padding: 14px 18px;
}

.scale-option .option-label {
  width: 24px;
  height: 24px;
  font-size: 12px;
}

.scale-option .option-text {
  font-size: 14px;
}

/* 五级量表样式 */
.likert-question {
  margin-top: 8px;
}

.likert-options {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.likert-option-a,
.likert-option-b {
  flex: 1;
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.5;
}

.likert-option-a {
  text-align: left;
  border-left: 3px solid var(--primary);
  padding-left: 12px;
}

.likert-option-b {
  text-align: right;
  border-right: 3px solid var(--success);
  padding-right: 12px;
}

.likert-scale {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.likert-btn {
  width: 48px;
  height: 40px;
  border: 2px solid var(--gray-200);
  background: var(--bg);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.likert-btn:hover {
  border-color: var(--primary-light);
  background: var(--gray-50);
  transform: translateY(-2px);
}

.likert-btn.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, var(--gradient-mid) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(74, 111, 165, 0.4);
  transform: scale(1.05);
}

.likert-btn.selected::after {
  content: '✓';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 18px;
  height: 18px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.likert-btn.disabled,
.likert-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.likert-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 12px;
  color: var(--gray-400);
}

/* 瀑布模式简化量表 */
.likert-options-compact {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gray-500);
  margin-bottom: 12px;
  padding: 0 8px;
}

.compact-option {
  max-width: 45%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.likert-scale-compact {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.likert-btn-sm {
  width: 36px;
  height: 28px;
  border: 1px solid var(--gray-200);
  background: var(--bg);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: var(--transition);
}

.likert-btn-sm:hover {
  border-color: var(--primary-light);
  transform: translateY(-1px);
}

.likert-btn-sm.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(74, 111, 165, 0.3);
}

.option-btn {
  display: flex;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg);
  text-align: left;
}

.option-btn:hover {
  border-color: var(--primary-light);
  background: var(--gray-50);
}

.option-btn.selected {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.12) 0%, rgba(107, 158, 158, 0.12) 100%);
}

.option-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--gray-100);
  color: var(--gray-600);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
  margin-right: 14px;
  flex-shrink: 0;
}

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

.option-text {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.6;
  flex: 1;
}

.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  gap: 12px;
}

.nav-btn {
  padding: 10px 20px;
  font-size: 13px;
}

.nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 瀑布模式 */
.waterfall-view {
  padding-bottom: 100px;
  padding-top: 8px;
}

.waterfall-view .question-card {
  margin-bottom: 20px;
  padding-top: 8px;
}

.waterfall-view .navigation {
  display: none;
}

.answered-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  background: var(--success);
  color: white;
  font-size: 12px;
  border-radius: var(--radius-full);
}

.waterfall-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  margin-bottom: 100px;
}

/* 瀑布模式固定底部操作栏 */
.fixed-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  padding: 16px 20px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 200;
  display: flex;
  justify-content: center;
}

/* 结果页面样式 */
.result-page {
  min-height: 100vh;
  background: var(--gray-100);
  padding: 32px 20px;
}

.result-container {
  max-width: 700px;
  margin: 0 auto;
}

.result-header {
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--gradient-mid) 50%, var(--success) 100%);
  color: white;
  padding: 48px 32px;
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
}

.result-mbti {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 6px;
  margin-bottom: 8px;
}

.result-name {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.result-description {
  font-size: 15px;
  opacity: 0.9;
  line-height: 1.6;
}

.result-section {
  background: var(--bg);
  padding: 24px;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.section-title::before {
  content: '';
  width: 3px;
  height: 18px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--success) 100%);
  border-radius: 2px;
  margin-right: 12px;
}

/* 维度分析 */
.dimensions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

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

.dim-card {
  background: var(--gray-50);
  padding: 16px;
  border-radius: var(--radius);
}

.dim-name {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.dim-tendency {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 10px;
}

.dim-bar {
  height: 5px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 8px;
}

.dim-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--success) 100%);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.dim-score {
  font-size: 12px;
  color: var(--gray-400);
  text-align: right;
}

/* 标签 */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.08) 0%, rgba(107, 158, 158, 0.08) 100%);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
}

.tag-secondary {
  background: var(--gray-100);
  color: var(--gray-600);
}

/* 职业列表 */
.career-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.career-list li {
  padding: 8px 14px;
  background: var(--gray-50);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--gray-700);
}

/* 结果操作按钮 */
.result-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
  padding: 16px;
  background: linear-gradient(to top, var(--bg-primary) 90%, transparent);
  position: sticky;
  bottom: 0;
  z-index: 10;
  overflow-x: auto;
}

.result-actions .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* 结果图片模板样式 */
.result-img-container {
  width: 400px;
  padding: 40px 32px;
  background: linear-gradient(135deg, #4A6FA5 0%, #5A8F9A 50%, #7AAAAA 100%);
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  text-align: center;
}

.result-img-header {
  font-size: 18px;
  margin-bottom: 24px;
  opacity: 0.9;
}

.result-img-mbti {
  font-size: 72px;
  font-weight: 700;
  letter-spacing: 8px;
  margin-bottom: 8px;
}

.result-img-name {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
}

.result-img-desc {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 28px;
  line-height: 1.5;
}

.result-img-dimensions {
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.img-dim-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.img-dim-item:last-child {
  margin-bottom: 0;
}

.img-dim-label {
  width: 36px;
  font-size: 11px;
  text-align: left;
  opacity: 0.9;
}

.img-dim-bar {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
  margin: 0 12px;
  overflow: hidden;
}

.img-dim-bar-fill {
  display: block;
  height: 100%;
  background: white;
  border-radius: 4px;
  width: 50%;
  transition: width 0.5s ease;
}

.img-dim-value {
  width: 72px;
  font-size: 11px;
  text-align: right;
}

.result-img-footer {
  font-size: 14px;
  opacity: 0.8;
}

/* 历史记录页面样式 */
.history-page {
  min-height: 100vh;
  background: var(--gray-100);
  padding: 24px 20px;
}

.history-container {
  max-width: 600px;
  margin: 0 auto;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 10px;
}

.history-actions {
  display: flex;
  gap: 8px;
}

.history-actions .btn-text {
  font-size: 12px;
  padding: 6px 10px;
}

.history-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--gray-800);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.history-actions {
  display: flex;
  gap: 8px;
}

.btn-view {
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--gradient-mid) 100%);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-view:hover {
  opacity: 0.9;
}

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

.history-mbti {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.history-name {
  font-size: 15px;
  color: var(--gray-700);
  margin-bottom: 4px;
}

.history-date {
  font-size: 12px;
  color: var(--gray-400);
}

.history-version {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 4px;
}

.btn-delete {
  padding: 8px 14px;
  background: transparent;
  color: var(--gray-500);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-delete:hover {
  background: var(--gray-100);
  color: var(--gray-700);
  border-color: var(--gray-400);
}

.empty-state {
  text-align: center;
  padding: 48px;
  color: var(--gray-400);
  font-size: 15px;
}

/* 确认对话框 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(31, 41, 55, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: var(--bg);
  padding: 32px;
  border-radius: var(--radius-xl);
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--gray-800);
}

.modal-text {
  color: var(--gray-500);
  margin-bottom: 24px;
  font-size: 14px;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.modal-buttons-3 {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: center;
}

.modal-buttons-3 .btn {
  flex: 1;
  min-width: 90px;
  max-width: 120px;
  white-space: nowrap;
  font-size: 12px;
  padding: 10px 8px;
}

.btn-danger {
  background: var(--gray-600);
  color: white;
}

.btn-danger:hover {
  background: var(--gray-700);
}

/* 响应式设计 */
@media (max-width: 640px) {
  .home-content {
    padding: 36px 24px;
  }
  
  .title {
    font-size: 24px;
  }
  
  .result-mbti {
    font-size: 48px;
    letter-spacing: 4px;
  }
  
  .result-name {
    font-size: 20px;
  }
  
  .question-card {
    padding: 24px;
  }
  
  .question-text {
    font-size: 16px;
  }
  
  .option-btn {
    padding: 16px;
  }
  
  .option-text {
    font-size: 14px;
  }
  
  .navigation {
    flex-wrap: wrap;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-content,
.question-card,
.result-header,
.result-section,
.history-item {
  animation: fadeIn 0.35s ease;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* 结果图片模板样式 */
.result-img-container {
  width: 360px;
  padding: 20px 16px;
  background: linear-gradient(160deg, #4A6FA5 0%, #5A8F9A 40%, #7AAAAA 100%);
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  text-align: center;
  box-sizing: border-box;
}

.result-img-header {
  font-size: 14px;
  margin-bottom: 12px;
  opacity: 0.9;
}

.result-img-mbti {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 6px;
  margin-bottom: 2px;
}

.result-img-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 4px;
}

.result-img-desc {
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 12px;
  line-height: 1.4;
}

.result-img-dimensions {
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.img-dim-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 11px;
}

.img-dim-item:last-child {
  margin-bottom: 0;
}

.img-dim-label {
  width: 28px;
  text-align: left;
  opacity: 0.9;
}

.img-dim-bar {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
  margin: 0 8px;
  overflow: hidden;
}

.img-dim-bar-fill {
  display: block;
  height: 100%;
  background: white;
  border-radius: 3px;
  width: 50%;
}

.img-dim-value {
  width: 56px;
  text-align: right;
  font-size: 10px;
}

.result-img-section {
  background: rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 10px;
  text-align: left;
}

.img-section-title {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 6px;
  opacity: 0.9;
}

.img-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.img-tag {
  display: inline-block;
  padding: 3px 8px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  font-size: 10px;
}

.img-relationships {
  font-size: 10px;
  line-height: 1.4;
  text-align: left;
  color: rgba(255,255,255,0.9);
}

.result-img-footer {
  font-size: 11px;
  opacity: 0.8;
  margin-top: 6px;
}
