/* ============================================================
   16PF 卡特尔人格测试 — 亮色主题
   ============================================================ */

:root {
  --primary: #4A90D9;
  --primary-light: #74B9FF;
  --primary-dark: #2F6DB5;
  --bg: #F5F7FB;
  --card: #FFFFFF;
  --text: #2D3436;
  --text-light: #636E72;
  --border: #E8E8F0;
  --success: #00B894;
  --shadow: 0 4px 24px rgba(74,144,217,0.10);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --radius: 16px;
  --radius-sm: 10px;
}

* { margin:0; padding:0; box-sizing:border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  min-height: 100vh; -webkit-font-smoothing: antialiased;
}
.container { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.page-hidden { display: none !important; }

/* ======== 首页 ======== */
#page-home { min-height: 100vh; display: flex; flex-direction: column; }
.hero {
  text-align: center; padding: 48px 20px 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff; border-radius: 0 0 32px 32px;
  position: relative;
}
.hero h1 { font-size: 28px; font-weight: 700; margin-bottom: 4px; }
.hero p { font-size: 14px; opacity: 0.9; max-width: 400px; margin: 0 auto; }
.hero-sub { font-size: 13px; opacity: 0.8; margin-top: 8px; }
.back-home { position:absolute; top:16px; left:16px; color:rgba(255,255,255,.85); text-decoration:none; font-size:14px; font-weight:500; z-index:10; padding:4px 12px; border-radius:20px; background:rgba(255,255,255,.15); backdrop-filter:blur(4px); transition:all .2s; }
.back-home:hover { background:rgba(255,255,255,.25); }
.intro-section { padding: 24px 16px; }
.intro-card {
  background: var(--card); border-radius: var(--radius);
  padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.intro-card h3 { font-size: 16px; color: var(--primary); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.intro-card h3 .icon { font-size: 20px; }
.intro-card p, .intro-card li { font-size: 13px; color: var(--text-light); line-height: 1.8; }
.intro-card ul { padding-left: 16px; }
.intro-card li { margin-bottom: 4px; }

.btn-start {
  display: block; width: calc(100% - 32px); max-width: 400px;
  margin: 8px auto 40px; padding: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; border: none; border-radius: 50px;
  font-size: 18px; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 20px rgba(74,144,217,0.35);
  transition: transform 0.2s; letter-spacing: 2px;
}
.btn-start:active { transform: scale(0.97); }

/* ======== 查看历史报告 ======== */
.report-banner {
  margin: 0 16px 12px; max-width: 400px; margin-left: auto; margin-right: auto;
  background: linear-gradient(135deg, #EDFFED, #E5FFE8);
  border: 1px solid #00B89466; border-radius: var(--radius);
  padding: 16px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  animation: fadeSlideIn .4s ease;
}
.report-banner-info { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }

/* ======== 恢复进度提示 ======== */
.resume-banner {
  margin: 0 16px 12px; max-width: 400px; margin-left: auto; margin-right: auto;
  background: linear-gradient(135deg, #E8F0FF, #DBE9FF);
  border: 1px solid var(--primary-light); border-radius: var(--radius);
  padding: 16px; animation: fadeSlideIn .4s ease;
}
@keyframes fadeSlideIn { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:none} }
.resume-info { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.resume-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.resume-text { font-size: 13px; color: var(--text-light); line-height: 1.6; }
.resume-text strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 2px; }
.resume-btns { display: flex; gap: 10px; }
.btn-resume {
  flex: 1; padding: 10px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: transform .2s;
}
.btn-resume:active { transform: scale(.97); }
.btn-resume-discard {
  flex: 1; padding: 10px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--card); color: var(--text-light); font-size: 14px; cursor: pointer;
}

/* ======== 答题页 ======== */
#page-test { min-height: 100vh; padding-bottom: 100px; }
.test-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--card); padding: 12px 16px 8px; box-shadow: var(--shadow-sm);
}

/* Module progress bar with pie chart */
.module-progress-bar {
  display: flex; align-items: center; gap: 14px; margin-bottom: 6px;
}
.module-pie-wrap {
  position: relative; width: 52px; height: 52px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.module-pie-wrap canvas { position: absolute; top: 0; left: 0; }
.module-pie-label {
  position: relative; z-index: 1;
  font-size: 11px; font-weight: 700; color: var(--primary);
  text-align: center; line-height: 1;
}
.module-progress-info { flex: 1; min-width: 0; }
.module-progress-title {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px; flex-wrap: wrap;
}
.module-current-name {
  display: inline-block; padding: 2px 10px; border-radius: 4px;
  background: rgba(74,144,217,.08); color: var(--primary);
  font-weight: 600; font-size: 12px;
  transition: all .3s; white-space: nowrap;
  max-width: 160px; overflow: hidden; text-overflow: ellipsis;
}
.module-current-name:empty { display: none; }
.module-q-num {
  font-size: 13px; color: var(--text-light); white-space: nowrap;
}
.module-q-num strong { color: var(--primary); font-size: 15px; }
.module-progress-sub {
  font-size: 12px; color: var(--text-light); margin-bottom: 4px;
  display: none; /* hide answered count, keep clean */
}
.module-progress-sub strong { color: var(--primary); font-size: 13px; }

.progress-bar { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 3px; transition: width 0.4s ease;
}

/* Encourage text - warm companion style */
.encourage-text {
  font-size: 13px; color: var(--text-light); text-align: center;
  padding: 6px 16px 4px; min-height: 22px; transition: all 0.4s ease;
  line-height: 1.5; border-radius: 20px;
  background: linear-gradient(135deg, rgba(74,144,217,0.04), rgba(116,185,255,0.06));
  margin: 4px 0 0; position: relative;
}
.encourage-text .encourage-icon {
  margin-right: 2px; font-size: 14px;
}

.question-area { padding: 24px 0; }
.question-card {
  background: var(--card); border-radius: var(--radius);
  padding: 24px 20px; box-shadow: var(--shadow-sm);
  animation: fadeUp 0.15s ease;
}
@keyframes fadeUp { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:none} }
.q-badge {
  display: inline-block; padding: 4px 14px; border-radius: 50px;
  font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}
.q-module-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 14px; border-radius: 50px; margin-bottom: 14px;
  font-size: 12px; font-weight: 600; letter-spacing: .3px;
  background: linear-gradient(135deg, rgba(74,144,217,.08), rgba(116,185,255,.08));
  color: var(--primary); border: 1px solid rgba(74,144,217,.15);
}
.q-module-tag .q-module-icon { font-size: 14px; }
.q-module-tag .q-module-sep { opacity: .4; margin: 0 2px; }
.q-text { font-size: 17px; line-height: 1.7; margin-bottom: 20px; font-weight: 500; }

.option-btn {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 16px; margin-bottom: 10px;
  background: var(--bg); border: 2px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  font-size: 15px; color: var(--text); transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.option-btn:active { transform: scale(0.98); }
.option-btn.selected {
  border-color: var(--primary); background: #E8F0FF;
}
.option-circle {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--border); display: flex;
  align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: var(--text-light);
  flex-shrink: 0; transition: all 0.2s;
}
.option-btn.selected .option-circle {
  border-color: var(--primary); background: var(--primary); color: #fff;
}

.test-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--card); padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  display: flex; gap: 12px; z-index: 100;
}
.test-nav button {
  flex: 1; padding: 12px; border-radius: 12px; font-size: 15px;
  font-weight: 600; cursor: pointer; border: none; transition: all 0.2s;
}
.btn-prev { background: var(--border); color: var(--text-light); }
.btn-next {
  background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff;
  box-shadow: 0 4px 12px rgba(74,144,217,0.3);
}
.btn-prev:disabled, .btn-next:disabled { opacity: 0.5; pointer-events: none; }

/* ======== 答题卡浮标 ======== */
.answer-sheet-fab {
  position: fixed; right: 16px; bottom: 90px;
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(74,144,217,.4); cursor: pointer; z-index: 9000;
  -webkit-tap-highlight-color: transparent; transition: transform .2s;
}
.answer-sheet-fab:active { transform: scale(.9); }
.fab-icon { font-size: 20px; }
.fab-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; border-radius: 10px;
  background: #E74C3C; color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.fab-badge.all-done { background: var(--success); }

/* ======== 答题卡面板 ======== */
.answer-sheet-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.45); z-index: 300;
  display: flex; align-items: flex-end; justify-content: center;
}
.answer-sheet-panel {
  width: 100%; max-width: 520px; max-height: 70vh;
  background: var(--card); border-radius: 20px 20px 0 0;
  padding: 20px 16px; padding-bottom: max(20px, env(safe-area-inset-bottom));
  overflow-y: auto; animation: slideUp .25s ease;
}
@keyframes slideUp { from{transform:translateY(100%)} to{transform:none} }
.answer-sheet-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.answer-sheet-title { font-size: 16px; font-weight: 700; }
.answer-sheet-stats { font-size: 12px; color: var(--text-light); }
.answer-sheet-close { background: none; border: none; font-size: 22px; color: var(--text-light); cursor: pointer; }
.answer-sheet-legend { display: flex; gap: 16px; margin-bottom: 12px; font-size: 12px; color: var(--text-light); }
.legend-item { display: flex; align-items: center; gap: 4px; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; }
.legend-done { background: var(--primary); }
.legend-undone { background: var(--border); }
.answer-sheet-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; margin-bottom: 16px; }
.sheet-page-label {
  grid-column: 1 / -1;
  font-size: 11px; font-weight: 600; color: var(--text-light);
  padding: 8px 6px 4px; margin-top: 6px;
  border-bottom: 1px solid var(--border);
  letter-spacing: .3px;
  display: flex; align-items: center; gap: 4px;
  transition: all .2s;
}
.sheet-page-label.current {
  color: var(--primary); font-weight: 700;
  background: linear-gradient(90deg, rgba(74,144,217,.06), transparent);
  border-bottom-color: var(--primary);
  border-radius: 6px 6px 0 0;
}
.sheet-page-label.current::before {
  content: '▸'; font-size: 10px; color: var(--primary);
}
.sheet-cell {
  width: 100%; aspect-ratio: 1; border-radius: 4px; border: none;
  font-size: 10px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s; -webkit-tap-highlight-color: transparent;
}
.sheet-cell:active { transform: scale(.88); }
.sheet-cell.cell-done { background: var(--primary); color: #fff; }
.sheet-cell.cell-undone { background: var(--border); color: var(--text-light); }
.sheet-cell.cell-current { box-shadow: 0 0 0 2px var(--primary); }
.answer-sheet-jump-btn {
  width: 100%; padding: 12px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
}
.answer-sheet-jump-btn:disabled { opacity: .5; pointer-events: none; }

/* ======== 确认提交弹窗 ======== */
.confirm-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.5); z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.confirm-modal {
  background: var(--card); border-radius: var(--radius); padding: 24px;
  max-width: 360px; width: 100%; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2); animation: modalIn .25s ease;
}
@keyframes modalIn { from{opacity:0;transform:translateY(20px)scale(.95)} to{opacity:1;transform:none} }
.confirm-modal h3 { font-size: 18px; margin-bottom: 12px; }
.confirm-modal p { font-size: 14px; color: var(--text-light); margin-bottom: 20px; line-height: 1.6; }
.confirm-btns { display: flex; gap: 10px; }
.btn-confirm-cancel {
  flex: 1; padding: 12px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--card); color: var(--text-light);
  font-size: 14px; cursor: pointer;
}
.btn-confirm-ok {
  flex: 1; padding: 12px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
}

/* ======== 报告页 ======== */
#page-report { min-height: 100vh; padding-bottom: 40px; }
.report-hero {
  text-align: center; padding: 52px 20px 36px;
  background: linear-gradient(135deg, #3A7BD5 0%, #4A90D9 30%, #74B9FF 60%, #A8D8FF 100%);
  color: #fff; border-radius: 0 0 36px 36px;
  position: relative; overflow: hidden;
}
.report-hero::before { content:''; position:absolute; top:-80px; right:-60px; width:240px; height:240px; background:rgba(255,255,255,.08); border-radius:50%; animation:heroFloat 6s ease-in-out infinite; }
.report-hero::after { content:''; position:absolute; bottom:-50px; left:-40px; width:180px; height:180px; background:rgba(255,255,255,.05); border-radius:50%; animation:heroFloat 8s ease-in-out infinite reverse; }
@keyframes heroFloat { 0%,100%{transform:translate(0,0)} 50%{transform:translate(10px,-15px)} }
.report-hero h2 { font-size: 26px; margin-bottom: 8px; position:relative; z-index:1; font-weight:800; letter-spacing:1px; }
.report-hero p { font-size: 13px; opacity: 0.85; position:relative; z-index:1; }
.report-section {
  margin: 16px auto; max-width: 720px; background: var(--card); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.report-section::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:linear-gradient(90deg, var(--primary), var(--primary-light), #A8D8FF); opacity:0; transition:opacity .3s; }
.report-section:hover { box-shadow: 0 4px 20px rgba(74,144,217,.1); transform: translateY(-1px); }
.report-section:hover::before { opacity: 1; }
.report-section h3 {
  font-size: 17px; margin-bottom: 16px; display: flex;
  align-items: center; gap: 8px; color: var(--text); font-weight: 700;
}
.report-section h3 .icon { font-size: 20px; }

/* Factor bar */
.factor-bar-item { margin-bottom: 14px; }
.factor-bar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.factor-bar-name { font-size: 13px; font-weight: 600; color: var(--text); }
.factor-bar-score { font-size: 13px; font-weight: 700; color: var(--primary); }
.factor-bar-track { height: 8px; background: #F0F0F5; border-radius: 4px; overflow: hidden; }
.factor-bar-fill { height: 100%; border-radius: 4px; transition: width 1s ease; }
.factor-bar-labels { display: flex; justify-content: space-between; margin-top: 2px; font-size: 11px; color: var(--text-light); }

/* Secondary factor card */
.secondary-card {
  background: var(--bg); border-radius: var(--radius-sm);
  padding: 16px; margin-bottom: 12px;
}
.secondary-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.secondary-card-name { font-size: 14px; font-weight: 700; }
.secondary-card-score { font-size: 14px; font-weight: 700; color: var(--primary); }
.secondary-card-bar { height: 6px; background: #E0E0E0; border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.secondary-card-fill { height: 100%; border-radius: 3px; transition: width 1s ease; }
.secondary-card-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-light); margin-bottom: 8px; }
.secondary-card-desc { font-size: 13px; color: var(--text-light); line-height: 1.7; }

/* Applied factor */
.applied-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.applied-item:last-child { border: none; }
.applied-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.applied-info { flex: 1; min-width: 0; }
.applied-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.applied-score { font-size: 12px; color: var(--text-light); }
.applied-label { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 50px; }

/* Detail block */
.detail-block { margin-bottom: 16px; }
.detail-label { font-size: 12px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.detail-content { font-size: 14px; color: var(--text-light); line-height: 1.8; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.detail-tag { padding: 4px 12px; background: #E8F0FF; color: var(--primary); border-radius: 50px; font-size: 12px; font-weight: 500; }

/* Factor detail card */
.factor-detail-card {
  background: var(--bg); border-radius: var(--radius-sm);
  padding: 16px; margin-bottom: 12px; border-left: 4px solid var(--primary);
}
.factor-detail-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.factor-detail-name { font-size: 15px; font-weight: 700; }
.factor-detail-std { font-size: 14px; font-weight: 700; }
.factor-detail-level { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 50px; margin-bottom: 8px; display: inline-block; }
.factor-detail-desc { font-size: 13px; color: var(--text-light); line-height: 1.7; }

/* Overview stats */
.overview-stats { display: flex; gap: 12px; margin-bottom: 16px; }
.overview-stat-item { flex: 1; text-align: center; background: var(--bg); border-radius: var(--radius-sm); padding: 14px 8px; }
.overview-stat-num { font-size: 28px; font-weight: 800; line-height: 1.2; }
.overview-stat-label { font-size: 12px; color: var(--text-light); margin-top: 4px; }

/* Score guide */
.score-guide { background: var(--bg); border-radius: var(--radius-sm); padding: 14px; margin-top: 12px; }
.score-guide-title { font-size: 12px; font-weight: 700; color: var(--text-light); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }
.score-guide-item { font-size: 12px; color: var(--text-light); line-height: 1.8; display: flex; align-items: center; gap: 8px; }
.score-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Dimension card */
.dimension-card { background: var(--bg); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 12px; }
.dimension-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dimension-icon { font-size: 24px; flex-shrink: 0; }
.dimension-title-area { flex: 1; min-width: 0; }
.dimension-name { font-size: 15px; font-weight: 700; color: var(--text); }
.dimension-sub { font-size: 11px; color: var(--text-light); margin-top: 2px; }
.dimension-score { font-size: 22px; font-weight: 800; color: var(--primary); flex-shrink: 0; }
.dimension-bar { height: 8px; background: #E8E8F0; border-radius: 4px; overflow: hidden; margin-bottom: 10px; }
.dimension-fill { height: 100%; border-radius: 4px; transition: width 0.8s ease; }
.dimension-text { font-size: 13px; color: var(--text-light); line-height: 1.8; }

/* Interpersonal block */
.interp-block { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.interp-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.interp-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.interp-content { font-size: 13px; color: var(--text-light); line-height: 1.8; }
.interp-content li { margin-bottom: 6px; line-height: 1.7; }

/* Career grid */
.career-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.career-item { background: var(--bg); border-radius: var(--radius-sm); padding: 14px 10px; text-align: center; }
.career-icon { font-size: 28px; margin-bottom: 6px; }
.career-name { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.career-reason { font-size: 11px; color: var(--text-light); line-height: 1.5; }

/* Applied mini bar */
.applied-mini-bar { height: 4px; background: #E8E8F0; border-radius: 2px; overflow: hidden; margin-top: 4px; }
.applied-mini-fill { height: 100%; border-radius: 2px; transition: width 0.8s ease; }

.btn-restart {
  display: block; width: calc(100% - 32px); max-width: 400px;
  margin: 32px auto; padding: 16px; background: var(--card);
  color: var(--primary); border: 2px solid var(--primary);
  border-radius: 50px; font-size: 16px; font-weight: 600; cursor: pointer;
  position: relative; overflow: hidden; transition: all .3s;
}
.btn-restart::before { content:''; position:absolute; top:0; left:-100%; width:100%; height:100%; background:linear-gradient(90deg,transparent,rgba(74,144,217,.06),transparent); transition:left .5s; }
.btn-restart:hover::before { left:100%; }
.btn-restart:hover { border-color:var(--primary-dark); box-shadow:0 4px 16px rgba(74,144,217,.15); }
.btn-restart:active { background: #E8F0FF; transform: scale(0.97); }

/* Canvas card */
#persona-card-wrapper { display: flex; justify-content: center; overflow: hidden; border-radius: var(--radius-sm); margin-bottom: 16px; }
#persona-card-canvas { width: 100%; max-width: 420px; height: auto; border-radius: var(--radius-sm); box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.btn-save-card {
  display: block; width: 100%; padding: 14px;
  background: linear-gradient(135deg, #FFB347, #FF6B6B);
  color: #fff; border: none; border-radius: 50px;
  font-size: 16px; font-weight: 600; cursor: pointer;
}

/* ======== 信息徽章栏 ======== */
.report-info-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin-top: 14px;
  padding: 10px 18px;
  background: linear-gradient(135deg, rgba(74,144,217,.08), rgba(116,185,255,.08));
  border-radius: 12px;
  border: 1px solid rgba(74,144,217,.12);
}
.report-info-badges::-webkit-scrollbar { display: none; }
.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(74,144,217,.85);
  white-space: nowrap;
}
.info-badge-icon { font-size: 12px; opacity: .85; }
.info-badge-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(74,144,217,.3); flex-shrink: 0;
  font-size: 0; color: transparent; overflow: hidden;
}

/* ======== 模块覆盖卡片 ======== */
.report-module-card {
  margin-top: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(74,144,217,.05), rgba(0,184,148,.05));
  border-radius: 14px;
  border: 1px solid rgba(74,144,217,.1);
  display: flex;
  align-items: center;
  gap: 16px;
}
.module-card-left { flex-shrink: 0; }
.module-card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: linear-gradient(135deg, rgba(74,144,217,.12), rgba(0,184,148,.08));
  border-radius: 50%;
}
.module-card-right { flex: 1; min-width: 0; }
.module-card-title {
  font-size: 13px; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}
.module-card-title strong { color: var(--primary); font-size: 16px; }
.module-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.module-tag {
  display: inline-flex; align-items: center;
  font-size: 11px; color: var(--text-light);
  background: rgba(74,144,217,.06);
  padding: 3px 10px; border-radius: 50px;
  white-space: nowrap;
}

/* ======== 完成时间 ======== */
.report-complete-time {
  margin-top: 12px; margin-bottom: 4px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(74,144,217,.04);
  border: 1px solid rgba(74,144,217,.08);
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: #999; line-height: 1.5;
}
.report-complete-time:empty { display: none; }
.report-complete-time .time-icon { font-size: 13px; flex-shrink: 0; opacity: .7; }

/* ======== 响应式 ======== */
@media (max-width: 374px) {
  .hero h1 { font-size: 24px; }
  .q-text { font-size: 15px; }
  .career-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-stats { flex-wrap: wrap; }
  .overview-stat-item { min-width: calc(33% - 8px); }
}
@media (min-width: 768px) {
  .container { padding: 0 24px; }
  .hero { padding: 60px 40px 44px; border-radius: 0 0 48px 48px; }
  .hero h1 { font-size: 36px; }
  .report-hero { padding: 64px 40px 44px; border-radius: 0 0 48px 48px; }
  .report-hero h2 { font-size: 32px; }
  .report-section { padding: 28px; margin: 20px auto; border-radius: 20px; }
}
