* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== Theme tokens (high readability on iPhone WeChat) ===== */
:root {
  --bg-a: #e8f0ff;
  --bg-b: #f5f6ff;
  --bg-c: #ffffff;
  --text: #0b1220;
  --muted: #475569;
  --muted-2: #64748b;
  --card-bg: rgba(255, 255, 255, 0.92);
  --card-border: rgba(203, 213, 225, 0.9);
  --card-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
  --chip-bg: rgba(255, 255, 255, 0.85);
  --chip-border: rgba(148, 163, 184, 0.6);
  --chip-text: var(--text);
  --dark-chip-bg: rgba(15, 23, 42, 0.9);
  --dark-chip-text: #f9fafb;
  --accent: #dc2626; /* 红色重点 */
  --accent-2: #f97316;
  --header-bg: rgba(255, 255, 255, 0.78);
  --header-border: rgba(203, 213, 225, 0.75);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-a: #0b1220;
    --bg-b: #020617;
    --bg-c: #020617;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --muted-2: #a1a1aa;
    --card-bg: rgba(15, 23, 42, 0.92);
    --card-border: rgba(148, 163, 184, 0.28);
    --card-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    --chip-bg: rgba(15, 23, 42, 0.85);
    --chip-border: rgba(148, 163, 184, 0.4);
    --chip-text: #e5e7eb;
    --header-bg: rgba(2, 6, 23, 0.72);
    --header-border: rgba(148, 163, 184, 0.18);
  }
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, var(--bg-a), var(--bg-b) 45%),
    radial-gradient(circle at bottom right, var(--bg-c), var(--bg-b) 55%);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  color-scheme: light dark;
}

/* subtle texture + depth (no images, WeChat safe) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 10%, rgba(124, 58, 237, 0.10), transparent 42%),
    radial-gradient(circle at 80% 15%, rgba(249, 115, 22, 0.10), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(220, 38, 38, 0.08), transparent 45%);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.02)),
    repeating-linear-gradient(
      90deg,
      rgba(148, 163, 184, 0.06) 0,
      rgba(148, 163, 184, 0.06) 1px,
      transparent 1px,
      transparent 22px
    );
  opacity: 0.35;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

strong {
  color: var(--accent); /* 重点文字用红色高亮 */
  font-weight: 700;
}

::selection {
  background: rgba(220, 38, 38, 0.22);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-badge {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 30%,
    #f97316 0,
    #fb923c 25%,
    #6366f1 70%
  );
  display: inline-block;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.35),
    0 8px 18px rgba(15, 23, 42, 0.9);
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.nav-links a {
  color: var(--text);
  opacity: 0.85;
  position: relative;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--text);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent-2), #8b5cf6);
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: center;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
}

.main {
  padding-bottom: 60px;
}

.hero {
  padding: 40px 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 24px;
  }
}

.hero-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  color: var(--text);
}

.hero-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 999px;
  margin-top: 10px;
  background: linear-gradient(to right, var(--accent), #8b5cf6);
  opacity: 0.85;
}

.hero-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
  max-width: 460px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--chip-border);
  background: var(--chip-bg);
  color: var(--chip-text);
}

.tag:nth-child(3n + 1) {
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.12);
}

.tag:nth-child(3n + 2) {
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.12);
}

.tag:nth-child(3n + 3) {
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.12);
}

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

.btn {
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background 0.12s ease, opacity 0.12s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(to right, #f97316, #ec4899, #8b5cf6);
  color: white;
  box-shadow: 0 10px 25px rgba(248, 113, 113, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(248, 113, 113, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border: 1px solid var(--chip-border);
}

.btn-ghost:hover {
  background: rgba(30, 64, 175, 0.6);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted-2);
}

.hero-meta span strong {
  color: var(--accent);
}

.hero-card {
  border-radius: 24px;
  padding: 20px 18px;
  background:
    radial-gradient(circle at top left, rgba(248, 113, 113, 0.18), transparent 55%),
    radial-gradient(circle at bottom, rgba(59, 130, 246, 0.18), transparent 55%),
    var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 40%);
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  .hero-card::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 45%);
  }
}

.hero-card > * {
  position: relative;
}

.hero-card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.hero-card-sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  margin-bottom: 14px;
}

.hero-score {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
}

.hero-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.hero-bar-inner {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(to right, #22c55e, #f97316, #ef4444);
  transition: width 0.25s ease;
}

.hero-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted-2);
  gap: 10px;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 10px;
}

@media (max-width: 900px) {
  .members-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .members-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  background: radial-gradient(circle at 30% 20%, #f97316, #a855f7);
  color: #f9fafb;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.9);
}

.member-name {
  color: var(--text);
}

.task {
  margin: 6px 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.hero-badge {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.17);
  color: #4ade80;
  font-size: 10px;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

section {
  padding: 28px 0;
}

.timeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.stage-item {
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  padding: 12px 12px 10px;
  position: relative;
  overflow: hidden;
}

.stage-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(to bottom, rgba(124, 58, 237, 0.75), rgba(220, 38, 38, 0.55));
  opacity: 0.22;
}

.stage-item.is-active {
  border-color: rgba(220, 38, 38, 0.55);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.stage-item.is-active::after {
  opacity: 0.95;
}

.stage-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.stage-title {
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
}

.stage-tag {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--dark-chip-bg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: var(--dark-chip-text);
  white-space: nowrap;
}

.stage-points {
  margin-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.stage-points li {
  margin: 6px 0;
}

.sec-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.sec-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 16px 16px 18px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 42%);
  pointer-events: none;
}

@media (prefers-color-scheme: dark) {
  .card::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 45%);
  }
}

.card > * {
  position: relative;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.date-kpi {
  border-radius: 16px;
  padding: 12px 12px 10px;
  background:
    radial-gradient(circle at 20% 20%, rgba(248, 113, 113, 0.18), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(59, 130, 246, 0.18), transparent 55%),
    rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(248, 113, 113, 0.55);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.75);
}

.date-kpi-label {
  font-size: 12px;
  color: #e5e7eb;
}

.date-kpi-value {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-top: 2px;
  color: #fecaca; /* 明亮红色，让数字更醒目 */
}

.date-kpi-sub {
  margin-top: 6px;
  font-size: 12px;
  color: #e5e7eb;
}

.date-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.date-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--card-border);
}

.date-row-label {
  font-size: 12px;
  color: var(--muted-2);
}

.date-row-value {
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

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

.pill {
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #f9fafb;
  font-weight: 600;
}

.selftest-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .selftest-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.field {
  margin-bottom: 10px;
}

.field-label {
  font-size: 13px;
  margin-bottom: 2px;
  display: flex;
  justify-content: space-between;
}

.field-label .sub {
  font-size: 11px;
  color: #9ca3af;
}

input[type="range"] {
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  border: 1px solid rgba(148, 163, 184, 0.35);
  outline: none;
}

.input:focus {
  border-color: rgba(248, 113, 113, 0.75);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

textarea.input {
  resize: vertical;
}

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

.level-badge {
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(30, 64, 175, 0.6);
  color: #e5e7eb;
  border: 1px solid rgba(147, 197, 253, 0.7);
}

.result-box {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(55, 65, 81, 0.9);
  margin-top: 10px;
  color: #e5e7eb;
}

.result-box p + p {
  margin-top: 6px;
}

.plan-list {
  list-style: none;
  margin-top: 8px;
  font-size: 13px;
}

.plan-list li {
  padding: 4px 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.plan-tag {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #9ca3af;
}

.course-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(55, 65, 81, 0.9);
}

.course-row:last-child {
  border-bottom: none;
}

.badge {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #f9fafb;
}

footer {
  border-top: 1px solid rgba(75, 85, 99, 0.8);
  padding: 14px 16px 26px;
  font-size: 11px;
  color: #6b7280;
  text-align: center;
}

