:root {
  --bg: #08090d;
  --panel: rgba(18, 21, 28, 0.84);
  --panel-strong: rgba(25, 29, 38, 0.94);
  --line: rgba(255, 255, 255, 0.12);
  --line-bright: rgba(86, 220, 255, 0.36);
  --text: #f5f8fb;
  --muted: #9da8b6;
  --cyan: #56dcff;
  --green: #65f2ad;
  --amber: #ffcf66;
  --coral: #ff786b;
  --violet: #a890ff;
  --ink: #06080c;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Inter", "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  background:
    linear-gradient(135deg, rgba(86, 220, 255, 0.13), transparent 30%),
    radial-gradient(circle at 82% 8%, rgba(255, 207, 102, 0.16), transparent 28%),
    radial-gradient(circle at 8% 86%, rgba(101, 242, 173, 0.11), transparent 28%),
    linear-gradient(180deg, #07080c 0%, #11141b 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

button {
  font: inherit;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0;
}

.hero-panel,
.dimension-card,
.side-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 28px;
  align-items: center;
  min-height: 300px;
  padding: 30px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin: 10px 0 14px;
  font-size: clamp(2.55rem, 5.8vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.subtitle {
  max-width: 620px;
  margin-bottom: 0;
  color: #c7d0dc;
  font-size: 1.04rem;
  line-height: 1.72;
}

.score-console {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-width: 0;
}

.energy-ring {
  display: grid;
  width: 190px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(var(--coral) 0deg, rgba(255, 255, 255, 0.08) 0deg),
    radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 58%);
  transition: background 240ms ease;
}

.ring-core {
  display: grid;
  width: 72%;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(8, 9, 13, 0.9);
}

.score-number {
  font-size: 4rem;
  font-weight: 850;
  line-height: 1;
}

.score-label {
  color: var(--muted);
  font-size: 0.86rem;
}

.status-panel {
  min-width: 0;
}

.state-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid rgba(86, 220, 255, 0.4);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(86, 220, 255, 0.09);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-panel h2,
.panel-header h2 {
  margin: 12px 0 8px;
  font-size: 1.34rem;
  line-height: 1.28;
}

.status-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.68;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

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

.dimension-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  background: var(--panel-strong);
}

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

.dimension-head h3 {
  margin: 0;
  font-size: 1.08rem;
}

.score-chip {
  display: inline-flex;
  min-width: 52px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--green);
  background: rgba(101, 242, 173, 0.08);
  font-size: 0.86rem;
  font-weight: 850;
  white-space: nowrap;
}

.dimension-question {
  margin-bottom: 0;
  color: #d9e2ec;
  font-size: 0.96rem;
  line-height: 1.58;
}

.options {
  display: grid;
  gap: 9px;
}

.option-btn {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  line-height: 1.42;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.option-score {
  display: inline-flex;
  width: 42px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--ink);
  background: linear-gradient(90deg, var(--cyan), var(--green));
  font-size: 0.78rem;
  font-weight: 850;
}

.option-label {
  min-width: 0;
}

.option-btn:hover,
.option-btn:focus-visible {
  border-color: var(--line-bright);
  background: rgba(86, 220, 255, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.option-btn.active {
  border-color: rgba(101, 242, 173, 0.78);
  background: rgba(101, 242, 173, 0.14);
}

.side-panel {
  position: sticky;
  top: 18px;
  padding: 18px;
}

.completion {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.ghost-btn {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.ghost-btn:hover,
.ghost-btn:focus-visible {
  border-color: var(--line-bright);
  outline: none;
}

.bars {
  display: grid;
  gap: 13px;
}

.bar-row {
  display: grid;
  gap: 7px;
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.bar-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.bar-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--amber), var(--green), var(--cyan));
  transition: width 220ms ease;
}

@media (max-width: 980px) {
  .hero-panel,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .dimension-list {
    grid-template-columns: 1fr;
  }

  .score-console {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 520px) {
  .app-shell {
    width: min(100% - 20px, 1180px);
    padding: 14px 0;
  }

  .hero-panel,
  .dimension-card,
  .side-panel {
    padding: 15px;
  }

  .energy-ring {
    width: min(190px, 72vw);
  }

  .score-number {
    font-size: 3.4rem;
  }

  .dimension-head,
  .completion {
    align-items: flex-start;
    flex-direction: column;
  }

  .option-btn {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .option-score {
    width: 38px;
  }
}
