:root {
  --bg: #071018;
  --bg-2: #0a1520;
  --surface: rgba(13, 27, 40, 0.86);
  --surface-2: rgba(17, 35, 50, 0.92);
  --surface-3: rgba(23, 46, 65, 0.94);
  --text: #e8f2fb;
  --muted: #91a4b8;
  --line: rgba(116, 148, 170, 0.28);
  --line-soft: rgba(116, 148, 170, 0.16);
  --blue: #58a6ff;
  --cyan: #39d5ff;
  --green: #3ee6a7;
  --amber: #f6c76b;
  --red: #ff6b7a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --panel-glow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(120, 190, 255, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(135deg, #071018 0%, #0a1520 46%, #0d1b28 100%);
  background-size: 32px 32px, 32px 32px, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(57, 213, 255, 0.12), transparent 32%),
    linear-gradient(295deg, rgba(62, 230, 167, 0.09), transparent 34%);
  opacity: 0.72;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 74px;
  padding: 0 42px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(7, 16, 24, 0.84);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(92, 199, 255, 0.45);
  border-radius: 8px;
  color: #dff8ff;
  font-weight: 900;
  background: linear-gradient(145deg, #0b1e2d, #123a55 52%, #1a6aa0);
  box-shadow: 0 0 22px rgba(57, 213, 255, 0.22);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  letter-spacing: 0.2px;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #a9b8c8;
  font-size: 14px;
  white-space: nowrap;
}

.nav a {
  text-decoration: none;
  transition: color 0.18s ease;
}

.nav a:hover {
  color: var(--cyan);
}

.nav a,
.top-action,
.button {
  text-decoration: none;
}

.top-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(18, 37, 53, 0.82);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--panel-glow);
}

.top-action,
.button.primary {
  color: #031018;
  border-color: rgba(67, 226, 255, 0.72);
  background: linear-gradient(135deg, #39d5ff, #3ee6a7);
  box-shadow: 0 12px 32px rgba(57, 213, 255, 0.18);
}

.button.secondary {
  color: var(--text);
  background: rgba(20, 42, 60, 0.76);
}

main {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 34px 28px 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 28px;
  align-items: stretch;
  min-height: calc(100vh - 122px);
}

.hero-copy,
.hero-panel,
.section {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow), var(--panel-glow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 64px);
  background:
    linear-gradient(135deg, rgba(15, 38, 55, 0.94), rgba(10, 21, 32, 0.86)),
    linear-gradient(90deg, rgba(57, 213, 255, 0.08), rgba(62, 230, 167, 0.04));
}

.status-line,
.update-note,
.small-note {
  color: var(--muted);
  font-size: 13px;
}

.status-line {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 10px;
  border: 1px solid rgba(62, 230, 167, 0.22);
  border-radius: 8px;
  color: #9fffe0;
  background: rgba(62, 230, 167, 0.08);
}

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: 28px;
  letter-spacing: 0;
}

.hero-copy > p:not(.status-line) {
  max-width: 720px;
  color: #b0c0d1;
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  background:
    linear-gradient(165deg, rgba(8, 23, 35, 0.96), rgba(15, 47, 62, 0.9)),
    linear-gradient(45deg, rgba(57, 213, 255, 0.08), transparent);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-head span,
.hero-metrics span {
  color: var(--muted);
}

.panel-head strong {
  color: var(--cyan);
  font-size: 28px;
}

.cost-bars {
  display: grid;
  gap: 18px;
  margin: 34px 0;
}

.bar-row {
  display: grid;
  grid-template-columns: 150px 1fr 58px;
  gap: 12px;
  align-items: center;
  color: #d8e8f5;
  font-size: 13px;
}

.bar-row div {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(137, 164, 184, 0.16);
}

.bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #39d5ff, #3ee6a7);
}

.bar-row b {
  color: var(--green);
  text-align: right;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hero-metrics div {
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  margin-top: 8px;
  color: #e9f8ff;
  font-size: 18px;
}

.hero-metrics.light div {
  color: var(--text);
  border-color: var(--line-soft);
  background: rgba(14, 29, 42, 0.76);
}

.hero-metrics.light span {
  color: var(--muted);
}

.hero-metrics.light strong {
  color: var(--text);
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: center;
}

.admin-hero h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(32px, 4vw, 54px);
}

.admin-list article dd {
  word-break: break-word;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.section {
  margin-top: 28px;
  padding: 26px;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-head.tight {
  margin-bottom: 12px;
}

.section-head p {
  color: var(--muted);
  line-height: 1.7;
}

.filters,
.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(7, 18, 28, 0.82);
  font: inherit;
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(57, 213, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(57, 213, 255, 0.12);
}

input[type="range"] {
  padding: 0;
}

.table-wrap,
.example-table {
  overflow-x: auto;
  margin-top: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(7, 18, 28, 0.72);
}

table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  background: transparent;
}

.example-table table {
  min-width: 780px;
}

th,
td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

th {
  color: #9fb1c4;
  font-size: 12px;
  background: rgba(13, 31, 44, 0.88);
}

td {
  color: #dbe8f3;
}

td strong,
td small {
  display: block;
}

td small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

td a {
  color: var(--cyan);
  font-weight: 800;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(62, 230, 167, 0.2);
  border-radius: 999px;
  color: #9fffe0;
  background: rgba(62, 230, 167, 0.1);
  font-size: 12px;
  font-weight: 900;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 360px;
  gap: 24px;
}

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

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.check input {
  width: 18px;
  min-height: 18px;
}

.check span {
  margin: 0;
}

.result-card {
  padding: 24px;
  border: 1px solid rgba(57, 213, 255, 0.16);
  border-radius: 8px;
  color: var(--text);
  background: linear-gradient(145deg, rgba(13, 57, 76, 0.98), rgba(7, 18, 28, 0.94) 64%);
  box-shadow: var(--shadow), var(--panel-glow);
}

.result-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

#totalCost {
  display: block;
  margin: 12px 0 18px;
  color: var(--green);
  font-size: 42px;
  letter-spacing: 0;
}

.result-lines {
  display: grid;
  gap: 10px;
}

.result-lines p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.result-lines span,
.result-card .small-note {
  color: var(--muted);
}

.result-card .small-note {
  margin-top: 16px;
  line-height: 1.7;
}

.knowledge-grid,
.platform-grid,
.business-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.policy-news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.metric-grid,
.script-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.knowledge-grid article,
.platform-grid article,
.business-cards article,
.timeline article,
.metric-grid article,
.script-grid article,
.quote-panels article,
.router-model-card {
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface-2);
  box-shadow: var(--panel-glow);
}

.knowledge-grid article:hover,
.platform-grid article:hover,
.business-cards article:hover,
.metric-grid article:hover,
.script-grid article:hover,
.quote-panels article:hover,
.router-model-card:hover {
  border-color: rgba(57, 213, 255, 0.32);
}

.knowledge-grid h3,
.platform-grid h3,
.business-cards h3,
.timeline h3,
.script-grid h3,
.quote-panels h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.knowledge-grid p,
.platform-grid p,
.business-cards p,
.timeline p,
.platform-grid dd,
.metric-grid p,
.script-grid p,
.quote-panels li {
  color: var(--muted);
  line-height: 1.7;
}

.metric-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.metric-grid strong {
  display: block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 24px;
}

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

.policy-card {
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(13, 30, 45, 0.94), rgba(8, 18, 28, 0.96));
  box-shadow: var(--panel-glow);
}

.policy-card.is-high {
  border-color: rgba(46, 230, 214, 0.32);
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.policy-meta span {
  padding: 6px 9px;
  border: 1px solid rgba(120, 190, 255, 0.14);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  font-weight: 800;
}

.policy-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}

.policy-card p {
  margin: 12px 0;
  color: var(--muted);
  line-height: 1.75;
}

.policy-impact {
  margin: 14px 0;
  padding: 14px;
  border-left: 3px solid var(--cyan);
  border-radius: 10px;
  background: rgba(46, 230, 214, 0.07);
}

.policy-impact strong,
.policy-impact span {
  display: block;
}

.policy-impact strong {
  margin-bottom: 6px;
  color: var(--cyan);
  font-size: 13px;
}

.policy-impact span {
  color: var(--text);
  line-height: 1.65;
}

.policy-card a {
  color: var(--cyan);
  font-weight: 900;
}

.data-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(57, 213, 255, 0.22);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(57, 213, 255, 0.08);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.gongdadi-section {
  background:
    linear-gradient(180deg, rgba(13, 31, 44, 0.94), rgba(9, 20, 30, 0.94)),
    var(--surface);
}

.gongdadi-brief,
.gongdadi-plan {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.gongdadi-brief article,
.gongdadi-plan article {
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface-2);
  box-shadow: var(--panel-glow);
}

.gongdadi-brief span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.gongdadi-brief strong {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 22px;
}

.gongdadi-brief p,
.gongdadi-plan li {
  color: var(--muted);
  line-height: 1.75;
}

.gongdadi-metrics {
  margin-bottom: 16px;
}

.gongdadi-plan ul {
  margin: 0;
  padding-left: 18px;
}

.gongdadi-plan li + li {
  margin-top: 9px;
}

.quote-panels ul {
  margin: 0;
  padding-left: 18px;
}

.quote-panels li + li {
  margin-top: 8px;
}

.router-filters {
  display: grid;
  grid-template-columns: 180px 220px minmax(240px, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.compare-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px 190px;
  gap: 14px;
  margin-bottom: 14px;
}

.router-summary {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.compare-summary {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.router-model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.router-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.router-region {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
}

.router-model-card h3 {
  margin-bottom: 6px;
  font-size: 18px;
  word-break: break-word;
}

.router-model-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.router-model-card dl {
  margin-top: 16px;
}

.router-model-card dt {
  margin-top: 12px;
  color: #dbe8f3;
  font-size: 13px;
}

.router-model-card dd {
  color: var(--muted);
  line-height: 1.65;
}

.router-source {
  display: inline-flex;
  margin-top: 16px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

.compare-table-wrap table {
  min-width: 1180px;
}

.lanqi-live-panel {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.lanqi-live-panel h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.lanqi-live-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.lanqi-live-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.lanqi-live-grid article {
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface-2);
  box-shadow: var(--panel-glow);
}

.lanqi-live-grid span,
.lanqi-live-grid p {
  color: var(--muted);
  font-size: 12px;
}

.lanqi-live-grid strong {
  display: block;
  margin: 8px 0;
  color: var(--text);
  line-height: 1.35;
  word-break: break-word;
}

.platform-grid article > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.platform-grid a {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
}

dl {
  margin: 14px 0 0;
}

dt {
  margin-top: 12px;
  color: var(--text);
  font-weight: 900;
}

dd {
  margin: 6px 0 0;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.timeline span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
}

.business-cards strong {
  color: var(--green);
}

.footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto 28px;
  padding: 0 28px;
  color: var(--muted);
  font-size: 13px;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--cyan);
  font-weight: 800;
}

@media (max-width: 980px) {
  .topbar {
    flex-wrap: wrap;
    padding: 16px 22px;
  }

  .brand {
    min-width: 0;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .admin-hero,
  .split,
  .timeline,
  .knowledge-grid,
  .platform-grid,
  .policy-news-grid,
  .metric-grid,
  .script-grid,
  .quote-panels,
  .router-model-grid,
  .admin-list,
  .business-cards,
  .gongdadi-brief,
  .gongdadi-plan {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

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

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

  .compare-toolbar,
  .lanqi-live-panel,
  .lanqi-live-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  main {
    padding: 20px 14px 44px;
  }

  .topbar {
    align-items: flex-start;
  }

  .top-action {
    display: none;
  }

  .hero-copy,
  .hero-panel,
  .section {
    padding: 20px;
  }

  .admin-hero {
    gap: 16px;
  }

  .admin-hero h1 {
    max-width: none;
    font-size: 32px;
    line-height: 1.15;
  }

  .filters,
  .calc-grid,
  .hero-metrics,
  .router-filters,
  .compare-toolbar {
    grid-template-columns: 1fr;
  }

  .section-head,
  .switch-row,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .bar-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #totalCost {
    font-size: 34px;
  }
}
