:root {
  --bg-top: #0f172a;
  --bg-bottom: #1e293b;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-sub: #475569;
  --text-muted: #94a3b8;
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-soft: #e0f2fe;
  --wechat: #07c160;
  --wechat-dark: #06ad56;
  --ok: #16a34a;
  --ok-soft: #dcfce7;
  --no: #dc2626;
  --no-soft: #fee2e2;
  --warn-soft: #fef3c7;
  --warn-text: #92400e;
  --border: #e2e8f0;
  --radius: 18px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(165deg, var(--bg-top) 0%, var(--bg-bottom) 48%, #f1f5f9 48%, #f1f5f9 100%);
  color: var(--text-main);
  line-height: 1.55;
}

.container {
  max-width: 520px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  min-height: 100vh;
}

.hero-header {
  text-align: center;
  color: #f8fafc;
  padding: 12px 4px 20px;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.hero-header h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-header p {
  margin: 0;
  font-size: 13px;
  color: #cbd5e1;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.hidden {
  display: none !important;
}

.intro-text {
  font-size: 14px;
  color: var(--text-sub);
  margin: 0 0 18px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.user-pill img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
}

.user-pill .avatar-fallback {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.user-pill .meta-title {
  font-weight: 600;
  font-size: 15px;
}

.user-pill .meta-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.field-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.text-input {
  width: 100%;
  padding: 13px 14px;
  font-size: 15px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 16px;
}

.text-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.2s ease, opacity 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

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

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-wechat {
  background: var(--wechat);
  color: #ffffff;
}

.btn-wechat:hover {
  background: var(--wechat-dark);
}

.btn-ghost {
  background: #f1f5f9;
  color: var(--text-sub);
}

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

/* 答题进度与选项 */
.progress-wrap {
  margin-bottom: 18px;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.progress-bar {
  height: 7px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #0284c7);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.question-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text-main);
}

.question-hint {
  font-size: 12px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 6px 10px;
  border-radius: 8px;
  margin: 0 0 14px;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.option-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 13px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.08s;
  width: 100%;
  font-size: 14px;
  color: var(--text-main);
}

.option-item:active {
  transform: scale(0.99);
}

.option-item.selected {
  border-color: var(--primary);
  background: #f0f9ff;
}

.option-key {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--text-sub);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.option-item.selected .option-key {
  background: var(--primary);
  color: #ffffff;
}

.nav-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.nav-row .btn-prev {
  flex: 0 0 34%;
}

.nav-row .btn-next {
  flex: 1;
}

/* 结果页 */
.result-banner {
  text-align: center;
  padding: 18px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  color: #ffffff;
  margin-bottom: 18px;
}

.level-circle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #ffffff;
  color: #0f172a;
  margin-bottom: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.level-circle .lbl {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.05em;
}

.level-circle .num {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.05;
}

.result-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 700;
}

.result-exp {
  margin: 0;
  font-size: 13px;
  color: #cbd5e1;
}

.result-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text-sub);
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.tour-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.tour-box {
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  text-align: center;
}

.tour-box.ok {
  background: var(--ok-soft);
  border-color: #86efac;
}

.tour-box.no {
  background: var(--no-soft);
  border-color: #fca5a5;
}

.tour-box .tour-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.tour-box .tour-status {
  font-size: 13px;
  font-weight: 700;
}

.tour-box.ok .tour-status {
  color: var(--ok);
}

.tour-box.no .tour-status {
  color: var(--no);
}

.section-block {
  margin-bottom: 14px;
}

.section-block h3 {
  font-size: 14px;
  margin: 0 0 6px;
  color: var(--text-main);
}

.section-block p {
  font-size: 14px;
  color: var(--text-sub);
  margin: 0;
}

.cap-box {
  background: var(--warn-soft);
  color: var(--warn-text);
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.footer-tip {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
}

.error-msg {
  color: var(--no);
  font-size: 13px;
  margin: -8px 0 12px;
}
