:root {
  color-scheme: light;
  --accent: #2468d8;
  --accent-2: #00a889;
  --accent-3: #f7b731;
  --ink: #172033;
  --muted: #657086;
  --line: #dce3ee;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --dark: #111827;
  --shadow: 0 18px 48px rgba(17, 24, 39, 0.12);
}

body.theme-mixue {
  --accent: #db1f2d;
  --accent-2: #f7b731;
  --accent-3: #00a889;
}

body.theme-youzan {
  --accent: #145ee8;
  --accent-2: #00a889;
  --accent-3: #8b5cf6;
}

body.theme-market {
  --accent: #2468d8;
  --accent-2: #00a889;
  --accent-3: #f7b731;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(220, 227, 238, 0.88);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.nav,
.container {
  max-width: 1180px;
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 168px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 28%, transparent);
}

.nav-links {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 6px;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: #eef2f8;
  color: var(--ink);
}

.nav-cta,
.btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 0;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.container {
  padding: 0 20px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 22px;
  align-items: stretch;
  padding: 28px 0 22px;
}

.hero-main,
.terminal,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-main {
  padding: 28px;
  overflow: hidden;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 9%, white);
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 14%, transparent);
}

h1 {
  max-width: 720px;
  margin-bottom: 14px;
  color: #101725;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.hero-actions,
.source-note,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-actions {
  gap: 10px;
  align-items: center;
  margin: 0 0 22px;
}

.domain-ad {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--accent-3) 46%, white);
  border-radius: 8px;
  background: linear-gradient(90deg, #fff9e8, #eef7ff);
  box-shadow: var(--shadow);
}

.domain-ad b {
  display: block;
  margin-bottom: 4px;
  color: #1f2937;
  font-size: 17px;
}

.domain-ad span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.domain-ad code {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

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

.source-note span,
.tag {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
}

.terminal {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #121722;
  color: #fff;
}

.terminal-code {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.terminal-code strong {
  font-size: 24px;
  letter-spacing: 0;
}

.terminal-code span,
.terminal-time {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.quote-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
  padding: 18px;
}

.quote-price {
  min-height: 154px;
  padding: 16px;
  border-radius: 8px;
  background: #f8fafc;
}

.price-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.price-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.price-value b {
  font-size: 42px;
  line-height: 1;
}

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

.change {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-2) 14%, white);
  color: #067964;
  font-size: 13px;
  font-weight: 850;
}

.change.warn {
  background: color-mix(in srgb, var(--accent) 13%, white);
  color: var(--accent);
}

.quote-list {
  display: grid;
  gap: 8px;
}

.quote-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
}

.quote-item b {
  color: var(--ink);
}

.chart-wrap {
  padding: 0 18px 18px;
}

.mini-chart,
.market-map {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.mini-chart {
  height: 118px;
}

.market-map {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px;
}

.map-cell {
  min-height: 58px;
  padding: 9px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 10%, white);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

.map-cell b {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
}

.section {
  padding: 18px 0;
}

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

.section-head h2 {
  margin-bottom: 4px;
  font-size: 24px;
  letter-spacing: 0;
}

.section-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 12px;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.panel {
  padding: 18px;
}

.metric {
  min-height: 132px;
  border-top: 4px solid var(--accent);
}

.metric:nth-child(2) {
  border-top-color: var(--accent-2);
}

.metric:nth-child(3) {
  border-top-color: var(--accent-3);
}

.metric:nth-child(4) {
  border-top-color: var(--dark);
}

.metric-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric-value {
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
}

.metric-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.info-card {
  min-height: 178px;
}

.info-card h3,
.radar-card h3,
.access-card h3 {
  margin-bottom: 9px;
  font-size: 17px;
  letter-spacing: 0;
}

.info-card p,
.radar-card p,
.access-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.tag-row {
  margin-top: 14px;
}

.tag {
  color: #4b5565;
  font-size: 12px;
  font-weight: 750;
}

.timeline {
  display: grid;
  gap: 8px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: start;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.timeline-date {
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.52;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.compare-table th,
.compare-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
  line-height: 1.45;
}

.compare-table th {
  background: #121722;
  color: #fff;
  font-size: 12px;
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table strong {
  color: #0f172a;
}

.radar-card,
.access-card {
  display: flex;
  flex-direction: column;
  min-height: 172px;
}

.radar-source {
  margin-top: auto;
  padding-top: 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.access-card {
  position: relative;
  overflow: hidden;
  min-height: 206px;
}

.access-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

.access-card .btn {
  width: 100%;
  margin-top: 15px;
}

.source-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.source-panel a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  background: #eef2f8;
  color: #394258;
  font-size: 12px;
  font-weight: 750;
}

.site-footer {
  margin-top: 20px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1000;
  display: none;
  max-width: calc(100vw - 32px);
  transform: translateX(-50%);
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111827;
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 13px;
}

.toast.is-visible {
  display: block;
}

@media (max-width: 920px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-cta {
    display: none;
  }

  .hero,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero-main {
    padding: 24px 18px;
  }

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

  .domain-ad {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 12px;
  }

  .nav {
    padding: 12px;
  }

  .hero {
    padding-top: 18px;
  }

  h1 {
    font-size: 36px;
  }

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

  .btn {
    width: 100%;
  }

  .price-value b {
    font-size: 34px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

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

  .compare-table {
    min-width: 720px;
  }

  .market-map {
    grid-template-columns: 1fr 1fr;
  }
}
