/* 青城清气 — 全局样式：草原青城气象感，专业监测台 */
:root {
  --bg-deep: #0c1a1f;
  --bg: #102429;
  --bg-elev: #163037;
  --bg-soft: #1c3a42;
  --line: rgba(180, 210, 200, 0.14);
  --text: #e7f2ee;
  --text-muted: #9bb5ad;
  --brand: #5ec4a8;
  --brand-deep: #2a8f78;
  --accent: #d4a017;
  --warn: #e0a045;
  --danger: #d4654a;
  --ok: #5cb88a;
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-body: "IBM Plex Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius: 10px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(94, 196, 168, 0.16), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(212, 160, 23, 0.08), transparent 50%),
    linear-gradient(180deg, #0a1519 0%, var(--bg) 40%, #0e1f24 100%);
  background-attachment: fixed;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Data provenance banner — always visible */
.data-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  padding: 0.55rem 1.25rem;
  font-size: 0.8rem;
  background: #1a1208;
  border-bottom: 1px solid rgba(224, 160, 69, 0.35);
  color: #f0d9a8;
}

.data-banner__tag {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: var(--accent);
  color: #1a1208;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.data-banner__sep {
  opacity: 0.5;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 26, 31, 0.72);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 40;
}

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

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #9fe8d2, transparent 45%),
    linear-gradient(145deg, var(--brand), #1d5c52);
  box-shadow: 0 0 0 2px rgba(94, 196, 168, 0.25);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__text strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand__text small {
  color: var(--text-muted);
  font-size: 0.72rem;
  max-width: 220px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  flex: 1;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
  border-bottom-color: var(--brand);
  text-decoration: none;
}

.phase-chip {
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  white-space: nowrap;
}

.page {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.page-intro {
  margin-bottom: 1.5rem;
}

.page-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  margin: 0 0 0.4rem;
  letter-spacing: 0.04em;
}

.page-intro p {
  margin: 0;
  color: var(--text-muted);
  max-width: 60ch;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.panel-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hint,
.muted {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  font-weight: 560;
  font-size: 0.92rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #062018;
}

.btn--ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: rgba(224, 160, 69, 0.2);
  color: var(--warn);
}

.chart-card,
.info-card,
.placeholder-panel {
  background: rgba(22, 48, 55, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.chart-box {
  width: 100%;
  min-height: 240px;
}

.placeholder-panel ul {
  color: var(--text-muted);
}

.simple-grid {
  display: grid;
  gap: 1rem;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--text-muted);
  font-weight: 500;
}

.research-flow {
  display: grid;
  gap: 0.65rem;
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.research-flow strong {
  color: var(--brand);
}

.rq-block {
  margin-top: 2rem;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 1.5rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0.25rem 0;
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
  }
  .brand {
    min-width: 0;
  }
}
