:root {
  --bg-main: #f5efe4;
  --bg-ink: #181512;
  --card: rgba(255, 250, 241, 0.74);
  --card-strong: rgba(255, 250, 241, 0.9);
  --line: rgba(32, 24, 17, 0.14);
  --line-strong: rgba(32, 24, 17, 0.28);
  --text: #201811;
  --muted: #6c6258;
  --accent: #b74b2a;
  --accent-2: #2f6b66;
  --gold: #ad7a2d;
  --danger: #ac2e1d;
  --ok: #1f7a55;
  --nav-height: 64px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scrollbar-gutter: stable;
}

body {
  color: var(--text);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(183, 75, 42, 0.14), transparent 60%),
    radial-gradient(1000px 500px at 95% 5%, rgba(47, 107, 102, 0.12), transparent 55%),
    linear-gradient(180deg, #f9f4ea 0%, #efe4d2 100%);
  padding-top: var(--nav-height);
}

.texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    repeating-linear-gradient(45deg, rgba(20, 12, 8, 0.03) 0 1px, transparent 1px 7px),
    radial-gradient(rgba(20, 12, 8, 0.06) 0.5px, transparent 0.5px);
  background-size: 12px 12px, 4px 4px;
  z-index: 1;
}

/* Global Navigation - 重新设计 */
.global-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(255, 250, 241, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(32, 24, 17, 0.08);
  box-shadow: 0 1px 3px rgba(32, 24, 17, 0.04);
}

.global-nav-inner {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: "Bodoni Moda", "Songti SC", serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: opacity 200ms ease;
}

.nav-brand:hover {
  opacity: 0.6;
}

.nav-logo {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: linear-gradient(135deg, #c8532d, #8f2f16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(143, 47, 22, 0.2);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.nav-link {
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 200ms ease;
  position: relative;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(32, 24, 17, 0.04);
}

.nav-link.active {
  color: var(--text);
  font-weight: 600;
  background: rgba(32, 24, 17, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(32, 24, 17, 0.08);
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

.nav-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--ok));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.nav-mobile-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.shell {
  position: relative;
  max-width: 1160px;
  margin: 24px auto;
  padding: 0 16px 48px;
}

.hero-panel,
.card,
.sub-hero {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  backdrop-filter: blur(6px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 20px 35px rgba(45, 31, 16, 0.08);
}

.hero-panel {
  padding: 26px;
  margin-bottom: 16px;
  background:
    linear-gradient(125deg, rgba(183, 75, 42, 0.12), rgba(255, 250, 241, 0.84) 45%, rgba(47, 107, 102, 0.09)),
    var(--card);
  animation: revealUp 520ms ease both;
}

/* Hero V2 - 新版首页 Hero */
.hero-v2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 40px;
  min-height: 420px;
}

.hero-content h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.1;
  margin: 12px 0 16px;
  letter-spacing: -0.02em;
}

.lead-short {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 32px;
  font-weight: 500;
}

.hero-visual {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.stat-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 238, 224, 0.9));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(32, 24, 17, 0.08);
  transition: transform 320ms ease, box-shadow 320ms ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(32, 24, 17, 0.12);
}

.stat-card-accent {
  background: linear-gradient(135deg, rgba(183, 75, 42, 0.12), rgba(173, 122, 45, 0.08));
  border-color: rgba(183, 75, 42, 0.2);
}

.stat-number {
  font-family: "Bodoni Moda", "Songti SC", serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.btn-large {
  padding: 14px 28px;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
}

/* Hero Compact - AI 培训页简化版 */
.hero-compact {
  padding: 24px 28px;
  min-height: auto;
}

.hero-compact h1 {
  margin: 8px 0 0;
  font-size: clamp(36px, 5vw, 48px);
}

/* Stats Overview - 数据看板 */
.stats-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

.stat-card-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(247, 240, 228, 0.85));
  transition: all 240ms ease;
}

.stat-card-inline:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(32, 24, 17, 0.08);
}

.stat-card-primary {
  grid-column: span 1;
  background: linear-gradient(135deg, rgba(183, 75, 42, 0.08), rgba(173, 122, 45, 0.05));
  border-color: rgba(183, 75, 42, 0.2);
}

.stat-icon {
  font-size: 32px;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.stat-value {
  font-family: "Bodoni Moda", "Songti SC", serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.stat-label-inline {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.stat-desc {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  margin-top: 4px;
}

/* Suggestion Cards - 智能建议卡片 */
.suggestion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 4px;
}

.suggestion-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(247, 240, 228, 0.88));
  transition: all 240ms ease;
}

.suggestion-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(32, 24, 17, 0.08);
  border-color: rgba(183, 75, 42, 0.2);
}

.suggestion-icon {
  font-size: 24px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.06));
}

.suggestion-content {
  flex: 1;
}

.suggestion-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  font-weight: 600;
}

.suggestion-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Bodoni Moda", "Songti SC", serif;
  letter-spacing: 0.01em;
}

h1 {
  margin: 8px 0 10px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 0.98;
}

.lead {
  margin: 0;
  max-width: 820px;
  line-height: 1.75;
  color: var(--muted);
}

.home-shell {
  max-width: 1180px;
}

.hero-home {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 14px;
}

.hero-copy h1 {
  max-width: 760px;
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  border: 1px solid rgba(130, 53, 28, 0.28);
  background: linear-gradient(130deg, #c8532d, #8f2f16);
  color: #fff6ee;
  box-shadow: 0 8px 18px rgba(143, 47, 22, 0.25);
}

.btn-secondary {
  border: 1px solid rgba(32, 24, 17, 0.24);
  background: rgba(255, 252, 246, 0.88);
  color: var(--text);
  box-shadow: none;
}

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

.hero-mission {
  border: 1px solid rgba(32, 24, 17, 0.14);
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(155deg, rgba(255, 254, 251, 0.9), rgba(243, 232, 214, 0.78));
}

.mission-title {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.hero-mission h2 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.2;
}

.hero-mission p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.68;
}

.mission-meta {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.mission-meta span {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  padding: 9px 10px;
  font-size: 13px;
  color: var(--muted);
}

.mission-meta strong {
  color: var(--text);
}

.card {
  margin-bottom: 14px;
  padding: 28px 24px;
  animation: revealUp 460ms ease both;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 700;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.section-head-center {
  text-align: center;
  margin-bottom: 32px;
}

.section-head-center h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 42px);
}

/* Feature Cards V2 - 新版功能卡片 */
.feature-grid-v2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
}

.feature-card-v2 {
  position: relative;
  padding: 32px 28px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(247, 240, 228, 0.85));
  transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.feature-card-v2::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(183, 75, 42, 0.05), transparent 60%);
  opacity: 0;
  transition: opacity 280ms ease;
}

.feature-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(32, 24, 17, 0.12);
  border-color: rgba(183, 75, 42, 0.3);
}

.feature-card-v2:hover::before {
  opacity: 1;
}

.feature-card-primary {
  background: linear-gradient(135deg, rgba(183, 75, 42, 0.08), rgba(173, 122, 45, 0.05));
  border-color: rgba(183, 75, 42, 0.2);
}

.feature-card-primary .feature-icon {
  color: var(--accent);
}

.feature-card-secondary .feature-icon {
  color: var(--accent-2);
}

.feature-icon {
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.feature-card-v2 h3 {
  margin: 0 0 8px;
  font-size: 22px;
  position: relative;
  z-index: 1;
}

.feature-card-v2 p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  flex: 1;
}

.feature-badge {
  display: inline-flex;
  margin-top: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
  align-self: flex-start;
}

.feature-badge-muted {
  display: inline-flex;
  margin-top: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(108, 98, 88, 0.12);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  position: relative;
  z-index: 1;
  align-self: flex-start;
}

.launch-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.launch-grid label {
  display: block;
}

.launch-grid span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.shell select,
.shell textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px;
  font-size: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.65);
}

.shell textarea {
  min-height: 132px;
  line-height: 1.7;
}

.shell select:focus,
.shell textarea:focus {
  outline: 1px solid rgba(183, 75, 42, 0.45);
  border-color: rgba(183, 75, 42, 0.45);
}

.shell button {
  border: 1px solid rgba(130, 53, 28, 0.28);
  border-radius: 999px;
  background: linear-gradient(130deg, #c8532d, #8f2f16);
  color: #fff6ee;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 140ms ease, filter 160ms ease, box-shadow 160ms ease;
  box-shadow: 0 8px 18px rgba(143, 47, 22, 0.25);
}

.shell button:hover {
  transform: translateY(-1px);
  filter: saturate(1.07);
}

.shell button:active {
  transform: translateY(0) scale(0.98);
}

.shell button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.shell button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

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

.module-card {
  background: linear-gradient(170deg, rgba(255, 250, 241, 0.92), rgba(247, 238, 224, 0.82));
}

.module-card h3 {
  margin: 0;
  font-size: 25px;
}

.module-card p {
  margin: 10px 0 12px;
  color: var(--muted);
  line-height: 1.72;
}

.text-link {
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 107, 102, 0.42);
  padding-bottom: 2px;
  font-weight: 600;
}

.rule-board ul,
.roadmap ol {
  margin: 10px 0 0;
  padding-left: 20px;
}

.rule-board li,
.roadmap li {
  margin: 8px 0;
  line-height: 1.7;
}

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

.focus-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.86), rgba(246, 237, 223, 0.8));
}

.focus-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.focus-item h3 {
  margin: 8px 0 6px;
  font-size: 24px;
}

.focus-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.recent-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.76);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.recent-head {
  margin: 0;
  font-weight: 600;
}

.recent-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.recent-score {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.recent-score strong {
  font-family: "Bodoni Moda", "Songti SC", serif;
  font-size: 30px;
  line-height: 1;
}

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

.principle-grid article {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.86), rgba(244, 236, 223, 0.78));
}

.principle-grid h3 {
  margin: 0;
}

.principle-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.66;
}

.sub-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding: 18px;
  background: linear-gradient(150deg, rgba(255, 250, 241, 0.92), rgba(240, 228, 209, 0.7));
}

.sub-hero h1 {
  margin: 8px 0 5px;
  font-size: clamp(31px, 5vw, 48px);
}

.sub-hero p {
  margin: 0;
  color: var(--muted);
}

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

.top-nav a {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.58);
}

.metric-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-card {
  position: sticky;
  top: 10px;
  z-index: 40;
  background: var(--card-strong);
  overflow-anchor: none;
}

.metric-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 13px;
}

.metric-strip strong {
  color: var(--text);
  margin-left: 4px;
  display: inline-block;
  min-width: 2ch;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.progress-wrap {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.6);
}

.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.progress-head strong {
  color: var(--text);
  display: inline-block;
  min-width: 58px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.progress-track {
  margin-top: 8px;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(32, 24, 17, 0.1);
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(120deg, var(--accent), var(--gold));
  transition: width 220ms ease;
}

.question-nav {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow-anchor: none;
}

.q-dot {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 0;
  box-shadow: none;
}

.q-dot.done {
  background: var(--accent-2);
  color: #f1fffb;
  border-color: rgba(47, 107, 102, 0.65);
}

.train-page {
  overflow-x: hidden;
}

.train-page .shell {
  isolation: isolate;
  overflow-anchor: none;
}

/* Train page stable rendering mode:
   reduce compositor artifacts from sticky + blur + transform combinations. */
.train-page .texture {
  display: none;
}

.train-page .sub-hero,
.train-page .card {
  backdrop-filter: none;
}

.train-page .status-card {
  position: static;
  top: auto;
}

.train-page .question {
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.train-page .question:hover {
  transform: none;
}

.question {
  position: relative;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-top: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 243, 231, 0.8));
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.question::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(var(--gold), transparent);
  opacity: 0.86;
}

.question:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 10px 20px rgba(40, 28, 13, 0.08);
}

.question-done {
  border-color: rgba(47, 107, 102, 0.45);
  box-shadow: 0 0 0 2px rgba(47, 107, 102, 0.14);
}

.question-invalid {
  border-color: rgba(172, 46, 29, 0.55);
  box-shadow: 0 0 0 2px rgba(172, 46, 29, 0.14);
}

.question h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.58;
}

.meta {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.shell .option {
  display: block;
  margin: 8px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.78);
  transition: border-color 150ms ease, background 150ms ease;
}

.shell .option:hover {
  border-color: rgba(183, 75, 42, 0.4);
  background: rgba(255, 244, 237, 0.8);
}

.shell .option input {
  margin-right: 8px;
}

.action-row {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.form-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(172, 46, 29, 0.34);
  background: rgba(172, 46, 29, 0.07);
  color: var(--danger);
  font-size: 13px;
}

.score-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin: 12px 0;
}

.score-grid div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(160deg, rgba(255, 252, 246, 0.92), rgba(249, 237, 219, 0.78));
}

.score-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.score-grid strong {
  font-family: "Bodoni Moda", "Songti SC", serif;
  font-size: 30px;
}

.next-step-card {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.88), rgba(241, 230, 212, 0.8));
}

.next-step-card h3 {
  margin: 8px 0 6px;
  font-size: 24px;
}

.next-step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.66;
}

#review-list {
  margin: 0;
  padding-left: 20px;
}

#review-list li {
  margin: 9px 0;
  line-height: 1.66;
}

.warn-item {
  color: var(--danger);
  font-weight: 700;
}

.save-ok {
  color: var(--ok);
}

.save-fail {
  color: var(--danger);
}

.muted-line {
  color: var(--muted);
  margin: 0 0 10px;
}

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

.insight-grid-secondary {
  grid-template-columns: 1fr 1fr;
}

.insight-stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.86), rgba(245, 236, 222, 0.82));
}

.insight-stat span {
  color: var(--muted);
  font-size: 12px;
}

.insight-stat strong {
  display: block;
  margin-top: 6px;
  font-family: "Bodoni Moda", "Songti SC", serif;
  font-size: 31px;
  line-height: 1;
}

.insight-stat strong.up {
  color: var(--ok);
}

.insight-stat strong.down {
  color: var(--danger);
}

.trend-bars {
  margin-top: 12px;
  min-height: 146px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.trend-col {
  display: grid;
  gap: 7px;
  justify-items: center;
  align-items: end;
}

.trend-bar {
  width: 100%;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, rgba(47, 107, 102, 0.88), rgba(31, 122, 85, 0.58));
  min-height: 8px;
}

.trend-col span {
  font-size: 12px;
  color: var(--muted);
}

.weakness-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.weakness-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.78);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.weakness-item p {
  margin: 0;
  font-weight: 600;
}

.weakness-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.weakness-score {
  display: grid;
  justify-items: end;
}

.weakness-score strong {
  font-family: "Bodoni Moda", "Songti SC", serif;
  font-size: 25px;
  line-height: 1;
}

.weakness-score small {
  color: var(--muted);
  margin-top: 4px;
}

.table-wrap {
  overflow-x: auto;
}

.shell table {
  width: 100%;
  border-collapse: collapse;
  min-width: 840px;
}

.shell th,
.shell td {
  border-bottom: 1px solid rgba(32, 24, 17, 0.12);
  text-align: left;
  padding: 10px 8px;
  font-size: 13px;
}

.shell th {
  color: var(--muted);
  font-weight: 600;
}

.shell tbody tr:hover {
  background: rgba(255, 255, 255, 0.56);
}

.grade-chip {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.grade-a {
  background: rgba(31, 122, 85, 0.14);
  color: #0f5f3f;
}

.grade-b {
  background: rgba(173, 122, 45, 0.15);
  color: #704c14;
}

.grade-c {
  background: rgba(183, 75, 42, 0.14);
  color: #8d371c;
}

.grade-d {
  background: rgba(172, 46, 29, 0.12);
  color: #8f291b;
}

/* Tab Navigation - 彻底修正颜色逻辑 */
.tab-nav {
  display: inline-flex;
  padding: 4px;
  background: rgba(245, 239, 228, 0.4);
  border: 1px solid rgba(32, 24, 17, 0.08);
  border-radius: 12px;
  margin-bottom: 32px;
  gap: 4px;
}

.tab-btn {
  padding: 8px 20px;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  color: rgba(108, 98, 88, 0.8);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 200ms ease;
  border-radius: 9px;
  position: relative;
}

.tab-btn:hover:not(.active) {
  color: var(--accent);
  background: rgba(183, 75, 42, 0.12);
}

.tab-btn.active {
  color: #fff;
  font-weight: 600;
  background: linear-gradient(135deg, #c8532d, #b74b2a);
  box-shadow: 0 2px 8px rgba(183, 75, 42, 0.3);
}

.tab-content {
  display: none;
  animation: tabFadeIn 300ms ease both;
}

.tab-content.active {
  display: block;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Value Section - 产品优势简化版 */
.value-section {
  margin-bottom: 14px;
  padding: 48px 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(47, 107, 102, 0.06), rgba(255, 250, 241, 0.8));
  backdrop-filter: blur(6px);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.value-item {
  text-align: center;
}

.value-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(183, 75, 42, 0.15));
}

.value-item h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
}

.value-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* CTA Section - 简化版 CTA */
.cta-section {
  text-align: center;
  padding: 56px 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(183, 75, 42, 0.08), rgba(173, 122, 45, 0.06));
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 32px rgba(32, 24, 17, 0.08);
  margin-bottom: 14px;
}

.cta-section h2 {
  margin: 0 0 24px;
  font-size: clamp(32px, 5vw, 42px);
}

.shell .hidden {
  display: none;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .global-nav-inner {
    padding: 0 20px;
    gap: 24px;
  }

  .nav-menu {
    gap: 4px;
  }

  .nav-link {
    padding: 6px 12px;
    font-size: 13px;
  }

  .nav-user {
    display: none;
  }

  .tab-nav {
    width: 100%;
    justify-content: stretch;
  }

  .tab-btn {
    flex: 1;
    text-align: center;
  }

  .hero-home {
    grid-template-columns: 1fr;
  }

  .hero-v2 {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 36px 28px;
    min-height: auto;
  }

  .hero-visual {
    grid-template-columns: 1fr 1fr;
  }

  .feature-grid-v2 {
    grid-template-columns: 1fr;
  }

  .value-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .stats-overview {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

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

  .launch-grid {
    grid-template-columns: 1fr 1fr;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid,
  .principle-grid,
  .insight-grid,
  .insight-grid-secondary {
    grid-template-columns: 1fr;
  }

  .sub-hero {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-height: 56px;
  }

  .global-nav-inner {
    padding: 0 16px;
    gap: 16px;
  }

  .nav-brand {
    font-size: 17px;
  }

  .nav-logo {
    width: 26px;
    height: 26px;
    font-size: 14px;
  }

  .nav-menu {
    gap: 2px;
  }

  .nav-link {
    padding: 5px 10px;
    font-size: 13px;
  }

  .hero-v2 {
    padding: 28px 20px;
    gap: 24px;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .lead-short {
    font-size: 16px;
  }

  .hero-visual {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 20px 18px;
  }

  .stat-number {
    font-size: 38px;
  }

  .feature-grid-v2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-card-v2 {
    padding: 24px 20px;
  }

  .value-section {
    padding: 32px 20px;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .stats-overview {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat-card-inline {
    padding: 16px;
  }

  .stat-icon {
    font-size: 28px;
  }

  .stat-value {
    font-size: 24px;
  }

  .suggestion-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .suggestion-card {
    padding: 16px;
  }

  .cta-section {
    padding: 40px 20px;
  }

  .tab-nav {
    padding: 3px;
    margin-bottom: 20px;
    border-radius: 10px;
    gap: 3px;
  }

  .tab-btn {
    padding: 7px 14px;
    font-size: 13px;
  }

  .launch-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .card,
  .sub-hero {
    border-radius: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .recent-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .recent-score {
    justify-items: start;
  }

  .action-row {
    justify-content: stretch;
  }

  button {
    width: 100%;
  }
}
