:root {
  --bg: #0b0e11;
  --panel: #15191f;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f7fa;
  --muted: #a1a8b3;
  --gold: #f0b90b;
  --gold-2: #fcd535;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 18%, rgba(240, 185, 11, 0.12), transparent 28%),
    linear-gradient(180deg, #0b0e11 0%, #101419 100%);
}

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

.clean-home {
  width: min(1120px, calc(100vw - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto minmax(360px, auto) auto;
}

.clean-topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.clean-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.clean-brand span {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0b0e11;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  font-size: 13px;
  font-weight: 800;
}

.clean-brand strong {
  font-size: 16px;
}

.health-entry {
  max-width: min(420px, 52vw);
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(252, 213, 53, 0.7);
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #0b0e11;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(240, 185, 11, 0.16), 0 14px 34px rgba(240, 185, 11, 0.18);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.health-entry:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(240, 185, 11, 0.24), 0 18px 42px rgba(240, 185, 11, 0.26);
}

.clean-hero {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 34px;
  padding: 56px 0 54px;
  text-align: center;
}

.clean-hero h1 {
  margin: 0;
  font-size: clamp(46px, 8vw, 96px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.clean-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.clean-button {
  min-width: 170px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid rgba(240, 185, 11, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.clean-button.primary,
.clean-button:hover {
  color: #0b0e11;
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
}

.clean-button:hover {
  transform: translateY(-1px);
}

.balance-card {
  width: min(620px, 100%);
  display: grid;
  padding: 22px;
  border: 1px solid rgba(240, 185, 11, 0.18);
  background: rgba(21, 25, 31, 0.72);
}

.balance-main {
  display: grid;
  gap: 8px;
  text-align: center;
}

.balance-main span {
  color: var(--muted);
  font-size: 13px;
}

.balance-main strong {
  color: var(--gold-2);
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1;
}

.balance-main strong.is-error {
  color: #f6465d;
}

.opportunity-section {
  padding: 0 0 72px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-title span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.section-title h2 {
  margin: 4px 0 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.15;
}

.opportunity-card {
  min-height: 210px;
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: center;
  padding: 22px;
  border: 1px solid rgba(240, 185, 11, 0.2);
  background: rgba(21, 25, 31, 0.78);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.opportunity-card:hover {
  transform: translateY(-1px);
  border-color: rgba(240, 185, 11, 0.42);
  background: rgba(24, 29, 36, 0.9);
}

.screener-card {
  grid-template-columns: minmax(300px, 0.7fr) minmax(300px, 1fr);
}

.preview-chart {
  height: 150px;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  align-items: end;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    #0d1116;
  background-size: 100% 36px;
}

.candle {
  position: relative;
  width: 100%;
  max-width: 18px;
  height: 70px;
  justify-self: center;
  background: #0ecb81;
}

.candle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -18px;
  bottom: -16px;
  width: 2px;
  transform: translateX(-50%);
  background: currentColor;
}

.candle.green {
  color: #0ecb81;
  background: #0ecb81;
}

.candle.red {
  color: #f6465d;
  background: #f6465d;
}

.candle.tall {
  height: 112px;
}

.candle.short {
  height: 46px;
}

.screener-preview {
  min-height: 166px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  background: #0d1116;
}

.screener-preview-head,
.screener-status-row,
.opportunity-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.screener-preview-head {
  justify-content: space-between;
}

.screener-preview-head span,
.screener-symbol span,
.opportunity-metrics span {
  color: var(--muted);
  font-size: 13px;
}

.screener-preview-head strong {
  color: var(--gold-2);
  font-size: 13px;
}

.screener-symbol {
  display: grid;
  gap: 8px;
}

.screener-symbol strong {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.status-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(246, 70, 93, 0.28);
  color: #ffdce1;
  background: rgba(246, 70, 93, 0.12);
  font-size: 13px;
  font-weight: 800;
}

.status-pill.pass {
  border-color: transparent;
  color: #05130c;
  background: #0ecb81;
}

.opportunity-copy {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.opportunity-copy strong {
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1;
}

.opportunity-copy span {
  max-width: 420px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.opportunity-metrics {
  margin-top: 4px;
}

.opportunity-metrics span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  font-variant-numeric: tabular-nums;
}

.opportunity-metrics span:nth-child(2) {
  color: #0ecb81;
}

.opportunity-metrics span.down {
  color: #f6465d;
}

@media (max-width: 560px) {
  .clean-home {
    width: min(100vw, calc(100vw - 20px));
  }

  .clean-topbar {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0 0;
  }

  .clean-brand {
    justify-content: center;
  }

  .health-entry {
    max-width: none;
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    font-size: 14px;
  }

  .clean-hero {
    gap: 28px;
    padding: 44px 0 42px;
  }

  .clean-actions {
    width: 100%;
    flex-direction: column;
  }

  .clean-button {
    width: 100%;
  }

  .balance-card {
    padding: 16px;
  }

  .opportunity-section {
    padding-bottom: 44px;
  }

  .section-title {
    display: block;
  }

  .opportunity-card,
  .screener-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
  }

  .preview-chart {
    height: 132px;
    gap: 7px;
  }
}
