:root {
  --primary: #8B1A1A;
  --primary-dark: #5f1010;
  --gold: #D4AF37;
  --bg: #f4f4f6;
  --card-bg: #ffffff;
  --text-main: #222222;
  --text-sub: #666666;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.06);
  --gap: 8px;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: radial-gradient(circle at top, #faf5f5 0, #f4f4f6 45%, #ececf0 100%);
  color: var(--text-main);
  display: flex;
  min-height: 100vh;
  justify-content: center;
  align-items: stretch;
}

.app-shell {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .app-shell {
    padding: 40px 24px 48px;
    grid-template-columns: 5fr 4fr;
    align-items: center;
  }
}

.brand-block {
  padding: 20px 16px;
}

@media (min-width: 768px) {
  .brand-block {
    padding: 24px;
  }
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 40px;
  background: conic-gradient(from 210deg, #8B1A1A, #D4AF37, #8B1A1A);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
}

.logo-icon::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: radial-gradient(circle at 30% 0, rgba(255, 255, 255, 0.55), transparent 55%);
}

.logo-text-main {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary);
  text-transform: uppercase;
}

.logo-text-sub {
  font-size: 12px;
  color: var(--text-sub);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 26px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--primary-dark);
}

.hero-title span {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(139, 26, 26, 0.06);
  font-size: 16px;
  font-weight: 600;
  margin-left: 6px;
  color: var(--primary);
}

.hero-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-sub);
  max-width: 460px;
  margin-bottom: 18px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid rgba(139, 26, 26, 0.18);
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
}

.timeline {
  border-left: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 12px;
  padding-left: 14px;
  display: grid;
  gap: 8px;
  font-size: 12px;
  color: var(--text-sub);
}

.timeline-item {
  position: relative;
  padding-left: 4px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  background: #fff;
}

.timeline-item strong {
  color: var(--primary-dark);
}

.auth-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 20px 18px 22px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .auth-card {
    padding: 24px 24px 26px;
  }
}

.auth-card::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.6), transparent 60%);
  opacity: 0.25;
  pointer-events: none;
}

.auth-header {
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.auth-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-chip {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(139, 26, 26, 0.08);
  color: var(--primary);
}

.auth-meta {
  font-size: 11px;
  color: var(--text-sub);
}

.participants-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(139, 26, 26, 0.16);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
  margin-left: 18px; /* 往视觉中心挪一点 */
  backdrop-filter: blur(6px);
}

.participants-emoji {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.55), rgba(139, 26, 26, 0.08));
  border: 1px solid rgba(212, 175, 55, 0.35);
  font-size: 14px;
}

.participants-text {
  color: var(--primary-dark);
}

form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 4px;
}

.field-label {
  font-size: 12px;
  color: var(--text-sub);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.field-label span.req {
  color: var(--primary);
  margin-left: 4px;
}

.input,
.select {
  width: 100%;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.input:focus,
.select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(139, 26, 26, 0.12);
  background: #ffffff;
}

.input::placeholder {
  color: #b0b0b4;
}

.helper-text {
  font-size: 11px;
  color: var(--text-sub);
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #8B1A1A, #b32020);
  color: #fff;
  box-shadow: 0 10px 22px rgba(139, 26, 26, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(139, 26, 26, 0.4);
  background: linear-gradient(135deg, #7a1616, #aa1e1e);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(139, 26, 26, 0.3);
}

.btn-ghost {
  background: rgba(139, 26, 26, 0.03);
  color: var(--primary-dark);
  border: 1px solid rgba(139, 26, 26, 0.18);
}

.btn-ghost:hover {
  background: rgba(139, 26, 26, 0.07);
}

.btn-icon {
  font-size: 14px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.pill {
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.03);
  font-size: 11px;
  color: var(--text-sub);
}

.pill strong {
  color: var(--primary-dark);
  font-weight: 600;
}

.privacy-note {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-sub);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.privacy-dot {
  width: 6px;
  height: 6px;
  border-radius: 6px;
  background: var(--gold);
  margin-top: 4px;
  flex-shrink: 0;
}

.footer {
  margin-top: 10px;
  font-size: 11px;
  color: #999;
  text-align: center;
}

/* 問卷頁通用 */
.page {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 22px 16px 40px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.topbar .title {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 16px;
  letter-spacing: 0.02em;
}

.topbar .sub {
  font-size: 11px;
  color: var(--text-sub);
}

.card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 16px;
  overflow: hidden;
}

.progress {
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}

.progress-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  color: var(--text-sub);
  font-size: 11px;
}

.bar {
  height: 10px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.bar > i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #8B1A1A, #D4AF37);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.section-title {
  font-size: 13px;
  color: var(--primary-dark);
  font-weight: 700;
  margin: 10px 0 8px;
}

.q-grid {
  display: grid;
  gap: 12px;
}

.q-item {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-md);
  padding: 12px;
  background: rgba(255, 255, 255, 0.75);
}

.q-item.q-missing {
  border-color: #c62828;
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.14) inset;
}

.q-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.q-title {
  font-weight: 700;
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.5;
}

.q-meta {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 4px;
}

.star-btn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid rgba(139, 26, 26, 0.18);
  background: rgba(139, 26, 26, 0.03);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  flex-shrink: 0;
}

.star-btn:active { transform: scale(0.98); }
.star-btn.on {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.8);
}

.star {
  font-size: 16px;
  color: rgba(139, 26, 26, 0.65);
}
.star-btn.on .star {
  color: var(--gold);
}

.opt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip {
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-main);
  user-select: none;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.12s ease;
}

.chip:hover { transform: translateY(-1px); }
.chip:active { transform: translateY(0) scale(0.98); }
.chip.active {
  background: rgba(139, 26, 26, 0.09);
  border-color: rgba(139, 26, 26, 0.35);
}

/* 让“label.chip + hidden input”自动呈现选中态（无需每页写 JS） */
.chip:has(input:checked) {
  background: rgba(139, 26, 26, 0.09);
  border-color: rgba(139, 26, 26, 0.35);
}

.range-wrap {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--text-sub);
  font-size: 11px;
}

.range {
  width: 100%;
}

.range-value {
  font-size: 12px;
  color: var(--primary-dark);
  font-weight: 700;
}

.range-choice-grid {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.range-choice-grid .chip {
  justify-content: center;
  text-align: center;
  min-height: 36px;
}

.range-choice-grid .chip.active {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.85);
  font-weight: 800;
}

.range-choice-grid .chip:has(input:checked) {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.85);
  font-weight: 800;
}

.dot-scale {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 0;
}

.dot {
  appearance: none;
  -webkit-appearance: none;
  border: 3px solid rgba(139, 26, 26, 0.45);
  background: rgba(255,255,255,0.9);
  border-radius: 999px;
  width: 22px;
  height: 22px;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  padding: 0;
}

.dot:hover { transform: translateY(-1px); }
.dot:active { transform: translateY(0) scale(0.98); }

.dot.on {
  border-color: rgba(139, 26, 26, 0.85);
  background: radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.65), rgba(139, 26, 26, 0.10));
  box-shadow: 0 10px 22px rgba(139, 26, 26, 0.14);
}

.weekly-topic-scale-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 8px;
}

.weekly-topic-scale-row span:last-child {
  text-align: right;
}

.weekly-topic-scale-hints {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 12px;
  align-items: start;
}

.weekly-topic-scale-hint-left {
  text-align: left;
  white-space: normal;
  line-height: 1.45;
}

.weekly-topic-scale-hint-right {
  text-align: right;
  white-space: normal;
  line-height: 1.45;
}

@media (min-width: 520px) {
  .dot { width: 26px; height: 26px; border-width: 3px; }
}

.footer-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 520px) {
  .footer-actions {
    grid-template-columns: 1fr 1fr;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(20,20,20,0.9);
  color: #fff;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* 探索页 / 个人中心 / 匹配报告 */
.kicker {
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 6px;
}

.candidate-hero {
  display: grid;
  gap: 2px;
}

.candidate-label {
  font-size: 11px;
  color: var(--text-sub);
  letter-spacing: 0.04em;
}

.candidate-name {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 900;
  color: var(--primary-dark);
  letter-spacing: 0.02em;
  word-break: break-word;
}

.candidate-sub {
  font-size: 13px;
  color: var(--text-main);
  opacity: 0.88;
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.user-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (min-width: 560px) {
  .user-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.user-card {
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.78);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.03);
  display: grid;
  gap: 10px;
}

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

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(139,26,26,0.16), rgba(212,175,55,0.18));
  border: 1px solid rgba(139,26,26,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--primary-dark);
}

.user-meta {
  display: grid;
  gap: 2px;
}

.user-name {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-main);
}

.user-sub {
  font-size: 11px;
  color: var(--text-sub);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 11px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.6);
  color: var(--text-sub);
}

.tagPick {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.tagPick.on {
  border-color: rgba(139,26,26,0.32);
  background: rgba(139,26,26,0.12);
  color: var(--primary-dark);
  font-weight: 700;
}

.tag.primary {
  border-color: rgba(139,26,26,0.22);
  background: rgba(139,26,26,0.08);
  color: var(--primary-dark);
  font-weight: 700;
}

.user-actions {
  display: grid;
  gap: 8px;
}

.small-btn {
  padding: 9px 12px;
  font-size: 13px;
}

.badge-grade {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(139,26,26,0.18);
  background: rgba(139,26,26,0.06);
  color: var(--primary-dark);
  font-weight: 800;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.badge-grade i {
  width: 8px;
  height: 8px;
  border-radius: 8px;
  background: var(--gold);
}

.filters {
  display: grid;
  gap: 12px;
}

.filter-block {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  padding: 12px;
  background: rgba(255,255,255,0.72);
}

.filter-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.nav-wrap {
  position: relative;
  display: inline-block;
}

.nav-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #c62828;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-sizing: border-box;
  pointer-events: none;
  display: none;
}

.tab-badge {
  display: none;
  margin-left: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #c62828;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  vertical-align: middle;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 50;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  width: 100%;
  max-width: 520px;
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  padding: 14px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.modal-title {
  font-weight: 900;
  color: var(--primary-dark);
  letter-spacing: 0.02em;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 12px;
  flex-wrap: wrap;
}

.activity-modal-card {
  max-height: min(70vh, 520px);
  overflow: auto;
}

.activity-strong-notice {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid rgba(176, 38, 38, 0.45);
  background: rgba(176, 38, 38, 0.07);
  color: #5c1010;
  font-size: 13px;
  line-height: 1.65;
  font-weight: 700;
}

.activity-host-contact-banner {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 2px solid rgba(31, 74, 138, 0.45);
  background: rgba(31, 74, 138, 0.08);
  color: #0f2a52;
  font-size: 13px;
  line-height: 1.65;
}

.activity-host-contact-banner .banner-title {
  font-weight: 900;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.activity-participant-line {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
  font-size: 13px;
  line-height: 1.5;
}

.timeline-card.activity-clickable {
  cursor: pointer;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.timeline-card.activity-clickable:hover {
  border-color: rgba(139, 26, 26, 0.28);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.timeline-list {
  display: grid;
  gap: 10px;
}

.timeline-card {
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-lg);
  padding: 12px;
  background: rgba(255,255,255,0.78);
  display: grid;
  gap: 8px;
}

.timeline-card .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.timeline-card .row strong {
  color: var(--primary-dark);
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.75);
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.tab-btn.active {
  border-color: rgba(139,26,26,0.35);
  background: rgba(139,26,26,0.08);
  color: var(--primary-dark);
  font-weight: 800;
}

/* 匹配分析页 */
.score-list .timeline-card {
  padding: 12px;
}

.hl-high {
  border-color: rgba(212,175,55,0.55);
  box-shadow: 0 10px 24px rgba(212,175,55,0.12);
}

.hl-low {
  border-color: rgba(139,26,26,0.25);
  box-shadow: 0 10px 24px rgba(139,26,26,0.08);
}

.dim-row {
  display: grid;
  grid-template-columns: 150px 1fr 50px;
  gap: 10px;
  align-items: center;
}

.dim-row .dim-name {
  font-size: 12px;
  color: var(--text-sub);
  font-weight: 700;
}

.dim-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  overflow: hidden;
}

.dim-bar > i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #8B1A1A, #D4AF37);
}

.dim-row .dim-percent {
  text-align: right;
  font-size: 12px;
  font-weight: 900;
  color: var(--primary-dark);
}

@media (max-width: 420px) {
  .dim-row {
    grid-template-columns: 120px 1fr 46px;
  }
}

/* 注册页步骤表单 */
.steps-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.step-pill {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-sub);
  user-select: none;
}

.step-pill.active {
  border-color: rgba(139, 26, 26, 0.35);
  background: rgba(139, 26, 26, 0.08);
  color: var(--primary-dark);
  font-weight: 700;
}

.step-pane {
  display: none;
}

.step-pane.active {
  display: block;
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.6;
  margin-top: 6px;
}

.check-row input {
  margin-top: 3px;
}

.inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar-actions-mobile {
  display: none;
}

.topbar-actions-mobile > summary {
  list-style: none;
}

.topbar-actions-mobile > summary::-webkit-details-marker {
  display: none;
}

.topbar-actions-mobile-panel {
  margin-top: 6px;
  display: grid;
  gap: 6px;
  justify-items: end;
}

@media (max-width: 640px) {
  .topbar-actions-inline {
    display: none !important;
  }
  .topbar-actions-mobile {
    display: block;
  }
}


