* {
  box-sizing: border-box;
}

:root {
  --ink: #101820;
  --ink-soft: #172430;
  --gold: #d6ae55;
  --gold-soft: #f3dfad;
  --paper: #f7efe0;
  --paper-muted: #d8d1c5;
  --red: #7d1f1f;
  --text: #f7efe0;
  --muted: #c8bdad;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--ink);
  color: var(--text);
}

button {
  font: inherit;
}

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.hero-panel,
.question-panel,
.profile-panel,
.progress-panel {
  border: 1px solid rgba(214, 174, 85, 0.55);
  background: rgba(255, 255, 255, 0.04);
}

.hero-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 180px;
  padding: 28px;
}

.eyebrow,
.section-label,
.difficulty-label,
.unlock-label {
  margin: 0;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
}

h1 {
  margin: 8px 0 10px;
  max-width: 760px;
  font-size: 4rem;
  line-height: 1.02;
  letter-spacing: 0;
}

.intro {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  line-height: 1.7;
}

.seo-summary {
  margin: 0 0 6px;
  max-width: 620px;
  color: var(--gold-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

.level-badge {
  flex: 0 0 auto;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 10px 14px;
  min-width: 112px;
  text-align: center;
  font-weight: 700;
}

.challenge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 18px;
  margin-top: 18px;
}

.question-panel,
.profile-panel,
.progress-panel {
  padding: 20px;
}

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

#questionText {
  min-height: 78px;
  margin: 0 0 18px;
  font-size: 1.55rem;
  line-height: 1.35;
  letter-spacing: 0;
}

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

.answer-button {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(247, 239, 224, 0.38);
  background: rgba(16, 24, 32, 0.72);
  color: var(--text);
  padding: 12px 14px;
  text-align: left;
  line-height: 1.35;
  cursor: pointer;
}

.answer-button:hover,
.answer-button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--gold);
}

.answer-button:disabled {
  cursor: default;
  opacity: 0.7;
}

.feedback {
  min-height: 28px;
  margin: 14px 0 0;
  color: var(--gold-soft);
  line-height: 1.5;
}

.profile-panel {
  background: var(--paper);
  color: var(--ink);
}

.profile-panel .section-label,
.profile-panel .unlock-label {
  color: var(--ink-soft);
}

.profile-grid {
  display: grid;
  gap: 10px;
}

.profile-card {
  min-height: 82px;
  border-left: 4px solid var(--gold);
  background: #fffaf0;
  padding: 12px;
}

.profile-card.locked {
  border-left-color: var(--paper-muted);
  background: var(--paper-muted);
  color: #5b554d;
}

.profile-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  letter-spacing: 0;
}

.profile-card p {
  margin: 0;
  line-height: 1.55;
}

.progress-panel {
  margin-top: 18px;
}

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

.progress-marker {
  height: 14px;
  background: #32404b;
  border: 1px solid rgba(247, 239, 224, 0.18);
}

.progress-marker.current {
  background: var(--red);
  border-color: var(--gold);
}

.progress-marker.unlocked {
  background: var(--gold);
}

.completion-message {
  margin: 14px 0 0;
  color: var(--gold-soft);
  font-weight: 700;
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 24px, 680px);
    padding: 18px 0;
  }

  .hero-panel {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding: 20px;
  }

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

  #questionText {
    min-height: 0;
    font-size: 1.3rem;
  }

  h1 {
    font-size: 2.4rem;
  }
}
