:root {
  color-scheme: dark;
  --bg: #060914;
  --panel: rgba(14, 22, 38, 0.86);
  --panel-strong: rgba(20, 31, 56, 0.96);
  --line: rgba(129, 160, 216, 0.2);
  --text: #edf5ff;
  --muted: #9dacbf;
  --blue: #20a6ff;
  --cyan: #36e3ff;
  --purple: #8b5cf6;
  --pink: #d946ef;
  --danger: #ff5f86;
  --warning: #ffc857;
  --success: #56f0a7;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(32, 166, 255, 0.22), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(139, 92, 246, 0.26), transparent 25rem),
    linear-gradient(135deg, #050711 0%, #08111f 42%, #100827 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  letter-spacing: 0;
}

button,
input,
a {
  font: inherit;
}

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

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

.hero {
  min-height: 100vh;
  padding: 28px 0 64px;
}

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

.brand,
.nav-cta,
.ghost-button {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  color: inherit;
  cursor: pointer;
}

.brand,
.nav-cta,
.ghost-button {
  background: rgba(9, 16, 31, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  gap: 10px;
  border-radius: 999px;
  padding: 8px 15px 8px 8px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
}

.nav-cta,
.ghost-button {
  min-height: 42px;
  justify-content: center;
  border-radius: 8px;
  padding: 0 16px;
  color: #cfe7ff;
  font-weight: 700;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 8, 22, 0.74);
  backdrop-filter: blur(8px);
}

.modal-overlay.is-hidden {
  display: none;
}

.wechat-modal {
  position: relative;
  width: min(450px, 100%);
  border-radius: 22px;
  background: #ffffff;
  color: #111827;
  padding: 32px 32px 30px;
  text-align: center;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.45);
}

.wechat-modal h2 {
  margin: 0;
  color: #111827;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
}

.wechat-modal p {
  margin: 14px 0 22px;
  color: #526071;
  font-size: 17px;
  line-height: 1.5;
}

.modal-close {
  position: absolute;
  top: 13px;
  right: 13px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f2f4f8;
  color: #4b5563;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.qr-frame {
  width: min(326px, 100%);
  margin: 0 auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.qr-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.wechat-badge {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #020617;
  padding: 0 18px;
  font-size: 20px;
  font-weight: 900;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.72fr);
  gap: 36px;
  align-items: center;
  min-height: calc(100vh - 110px);
}

.hero-copy h1,
.section-heading h2,
.conversion h2 {
  margin: 0;
  color: #ffffff;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 820px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.06;
  font-weight: 900;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-subtitle {
  max-width: 620px;
  margin: 22px 0 0;
  color: #c5d7ef;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.6;
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.signal-strip span,
.conversion-points span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 28, 52, 0.72);
  padding: 10px 14px;
  color: #d8e8ff;
  font-weight: 700;
}

.diagnosis-form,
.card,
.score-card,
.conversion {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 28, 50, 0.92), rgba(9, 15, 29, 0.86));
  box-shadow: var(--shadow);
}

.diagnosis-form {
  padding: 26px;
}

.form-heading,
.card-title-row,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 8px rgba(86, 240, 167, 0.12);
}

label {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  color: #d8e8ff;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(151, 178, 224, 0.26);
  border-radius: 8px;
  outline: none;
  background: rgba(5, 11, 23, 0.82);
  color: var(--text);
  padding: 0 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(54, 227, 255, 0.12);
}

.primary-button {
  display: inline-flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--purple) 62%, var(--pink));
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 20px 52px rgba(32, 166, 255, 0.28);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.diagnosis-form .primary-button {
  margin-top: 22px;
}

.demo-report-link {
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  border: 1px solid rgba(54, 227, 255, 0.22);
  border-radius: 8px;
  background: rgba(54, 227, 255, 0.07);
  color: #d8f6ff;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.demo-report-link::after {
  content: "演示";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  margin-left: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(32, 166, 255, 0.32), rgba(139, 92, 246, 0.32));
  color: #ffffff;
  padding: 0 9px;
  font-size: 12px;
}

.primary-button:hover,
.demo-report-link:hover,
.ghost-button:hover,
.nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.demo-report-link:hover {
  border-color: rgba(54, 227, 255, 0.42);
  background: rgba(54, 227, 255, 0.12);
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.results {
  display: grid;
  gap: 20px;
  padding: 26px 0 64px;
}

.is-hidden {
  display: none;
}

.section-heading {
  align-items: end;
  margin-top: 6px;
}

.section-heading h2,
.conversion h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.dashboard-grid,
.analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 20px;
}

.score-card,
.card,
.conversion {
  padding: 24px;
}

.score-card {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(32, 166, 255, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(16, 28, 50, 0.95), rgba(9, 15, 29, 0.88));
}

.score-ring {
  display: grid;
  width: 176px;
  height: 176px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #0a1020 58%, transparent 59%),
    conic-gradient(var(--cyan) calc(var(--score) * 1%), rgba(122, 145, 183, 0.18) 0);
  box-shadow: inset 0 0 34px rgba(54, 227, 255, 0.12), 0 0 40px rgba(32, 166, 255, 0.14);
}

.score-ring div {
  text-align: center;
}

#scoreValue {
  display: block;
  font-size: 52px;
  font-weight: 900;
}

.score-ring small {
  color: var(--muted);
  font-weight: 800;
}

.score-copy h3,
.card h3 {
  margin: 0;
  color: #fff;
  font-size: 22px;
}

.score-copy p {
  margin: 12px 0 0;
  color: #c4d6eb;
  line-height: 1.6;
}

.compact {
  min-height: 100%;
}

.level-list,
.risk-list,
.issue-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.level-list span,
.risk-list li,
.issue-list li,
.recommendation-item,
.metric-item {
  border: 1px solid rgba(129, 160, 216, 0.16);
  border-radius: 8px;
  background: rgba(5, 12, 26, 0.58);
}

.level-list span,
.risk-list li,
.issue-list li {
  padding: 12px 14px;
  color: #d7e6f8;
}

.issue-list li::before {
  content: "!";
  display: inline-grid;
  width: 20px;
  height: 20px;
  margin-right: 9px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 95, 134, 0.16);
  color: var(--danger);
  font-size: 12px;
  font-weight: 900;
}

.risk-list li::before {
  content: "!";
  display: inline-grid;
  width: 20px;
  height: 20px;
  margin-right: 9px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 200, 87, 0.16);
  color: var(--warning);
  font-size: 12px;
  font-weight: 900;
}

.pill {
  border: 1px solid rgba(54, 227, 255, 0.22);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--cyan);
  background: rgba(54, 227, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.pill.danger {
  border-color: rgba(255, 95, 134, 0.26);
  color: var(--danger);
  background: rgba(255, 95, 134, 0.09);
}

.pill.warning {
  border-color: rgba(255, 200, 87, 0.26);
  color: var(--warning);
  background: rgba(255, 200, 87, 0.09);
}

.pill.success {
  border-color: rgba(86, 240, 167, 0.26);
  color: var(--success);
  background: rgba(86, 240, 167, 0.09);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.metric-item {
  min-height: 132px;
  padding: 16px;
}

.metric-item strong {
  display: block;
  margin-top: 18px;
  font-size: 26px;
}

.metric-item span {
  display: block;
  min-height: 44px;
  color: #d7e6f8;
  font-weight: 700;
  line-height: 1.4;
}

.metric-bar {
  height: 7px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(129, 160, 216, 0.18);
}

.metric-bar i {
  display: block;
  width: var(--width);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--purple));
}

.recommendations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.recommendation-item {
  min-height: 142px;
  padding: 18px;
}

.recommendation-item span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.recommendation-item p {
  margin: 14px 0 0;
  color: #dcecff;
  line-height: 1.6;
  font-weight: 700;
}

.query-box {
  margin-top: 18px;
  border: 1px solid rgba(54, 227, 255, 0.2);
  border-radius: 8px;
  background: rgba(54, 227, 255, 0.06);
  padding: 16px;
}

.query-box span {
  color: var(--muted);
}

.query-box strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 20px;
}

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

.simulation-grid div {
  border-radius: 8px;
  background: rgba(5, 12, 26, 0.58);
  padding: 18px;
}

.simulation-grid span {
  display: block;
  color: var(--muted);
}

.simulation-grid strong {
  display: block;
  margin-top: 10px;
  color: #fff;
  font-size: 24px;
}

.conversion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(32, 166, 255, 0.22), transparent 40%),
    linear-gradient(315deg, rgba(217, 70, 239, 0.18), transparent 46%),
    rgba(10, 16, 31, 0.92);
}

.conversion p {
  color: #d1e4f9;
  line-height: 1.6;
}

.conversion-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(4, 10, 21, 0.52);
  padding: 18px;
}

.contact-lines {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: #d9eaff;
  font-weight: 800;
}

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

  .hero-grid {
    min-height: auto;
    padding-top: 64px;
  }

  .metrics-grid,
  .recommendations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .conversion {
    align-items: stretch;
  }
}

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

  .hero {
    padding-top: 14px;
  }

  .topbar {
    align-items: stretch;
  }

  .nav-cta {
    min-width: 0;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .diagnosis-form,
  .score-card,
  .card,
  .conversion {
    padding: 18px;
  }

  .wechat-modal {
    padding: 28px 18px 24px;
  }

  .wechat-modal h2 {
    font-size: 25px;
  }

  .wechat-modal p {
    font-size: 15px;
  }

  .wechat-badge {
    font-size: 17px;
  }

  .score-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .score-ring {
    width: 156px;
    height: 156px;
  }

  .metrics-grid,
  .recommendations,
  .simulation-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
    align-items: start;
  }

  .card-title-row {
    align-items: start;
  }
}
