/* CSS Variables */
:root {
  --g: #03FFA5;
  --gm: #1a7a52;
  --gd: #060e09;
  --w: #ffffff;
  --bg2: #080f0b;
  --bg3: #0b1510;
  --td: rgba(255, 255, 255, 0.742);
  --br: rgba(3, 255, 165, 0.12);
  --max: 1140px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto Mono', monospace;
  background: var(--gd);
  color: var(--td);
  overflow-x: hidden;
  cursor: none;
}

::selection {
  background: var(--g);
  color: #000;
}

::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-thumb {
  background: var(--gm);
  border-radius: 2px;
}

/* CURSOR */
#cur {
  position: fixed;
  width: 6px;
  height: 6px;
  background: var(--g);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

#cur-r {
  position: fixed;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(3, 255, 165, 0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 60px;
  background: rgba(6, 14, 9, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--br);
}

.logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--g);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--td);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover,
.nav-links a.on {
  color: var(--g);
  border-bottom-color: var(--g);
}

/* HERO */
#hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  padding: 0 0 72px 0 !important;
}

#sphere-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
}

#sphere-wrap:active {
  cursor: grabbing;
}

.globe-tag {
  position: absolute;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transform-origin: center;
  transition: color .15s, text-shadow .15s;
  letter-spacing: .02em;
  font-family: 'Roboto Mono', monospace;
}

.globe-tag:hover {
  color: #fff !important;
}

#bubble-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}

.globe-bub {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  animation: globeBubbleRise var(--dur, 2s) ease-out forwards;
}

@keyframes globeBubbleRise {
  0% {
    transform: translate(0, 0) scale(.2);
    opacity: .9;
  }
  60% {
    opacity: .6;
  }
  100% {
    transform: translate(var(--tx, 0px), var(--ty, -160px)) scale(1.2);
    opacity: 0;
  }
}

.globe-tt {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  background: rgba(8, 6, 26, .92);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 170px;
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 36px rgba(0, 0, 0, .7);
  opacity: 0;
  transition: opacity .15s ease;
  font-size: 12px;
  color: var(--td);
}

.globe-tt.on {
  opacity: 1;
}

.gtt-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.gtt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.gtt-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 4px;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center !important;
  padding: 0 60px;
}

.hero-inner h1 {
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--w);
  letter-spacing: -0.02em;
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}

.hero-inner h1 em {
  color: var(--g);
  font-style: normal;
  display: block;
  text-align: center !important;
}

h2.section-title {
  font-size: clamp(22px, 3vw, 38px);
  margin-top: 64px;
  font-weight: 700;
  line-height: 1.08;
  color: var(--w);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  text-align: left;
}

h2.section-title:first-of-type {
  margin-top: 0;
}

h2.section-title em {
  color: var(--g);
  font-style: normal;
}

.stat-l em {
  color: var(--g);
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-shadow: 0 0 10px rgba(3, 255, 165, 0.3);
}

.hero-sub {
  font-size: 15px;
  color: var(--td);
  margin-top: 14px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  text-align: center !important;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  right: 60px;
  font-size: 12px;
  color: var(--td);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}

.scroll-hint::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--td);
}

/* SECTION */
section {
  padding: 120px 0 90px;
  border-bottom: 1px solid var(--br);
  position: relative;
}

.inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 60px;
}

.sec-tag {
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--g);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sec-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--g);
}

h2 {
  font-size: clamp(34px, 4.8vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--w);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  text-align: left;
}

h2 em {
  color: var(--g);
  font-style: normal;
}

.body {
  font-size: 18px;
  color: var(--td);
  line-height: 2;
  margin-bottom: 22px;
}

.body strong {
  color: var(--g);
  font-weight: 500;
}

/* FORMULA */
.fbox {
  background: var(--bg3);
  border: 1px solid var(--br);
  border-left: 3px solid var(--g);
  border-radius: 0 2px 2px 0;
  padding: 22px 28px;
  margin: 24px 0;
}

.fbox-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--td);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.fbox-eq {
  font-size: 26px;
  font-weight: 700;
  color: var(--g);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.fbox-note {
  font-size: 13px;
  color: var(--td);
  line-height: 1.8;
}

/* STAT */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 36px 0;
  border: 1px solid var(--br);
  border-radius: 2px;
  overflow: hidden;
}

.stat {
  background: var(--bg2);
  padding: 24px 20px;
}

.stat-n {
  font-size: 44px;
  font-weight: 700;
  color: var(--g);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-u {
  font-size: 16px;
  color: var(--td);
  margin-top: 3px;
}

.stat-l {
  font-size: 13px;
  color: var(--td);
  margin-top: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* CHART */
.chart-box {
  background: var(--bg2);
  border: 1px solid var(--br);
  border-radius: 2px;
  padding: 24px;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}

.chart-label {
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--td);
  text-transform: uppercase;
  margin-bottom: 16px;
  text-align: center;
}

/* PIE */
.pie-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}

#pie-2024,
#pie-2025 {
  min-height: 420px;
  position: relative;
}

#pie-2024 .vega-embed,
#pie-2025 .vega-embed {
  height: 380px !important;
}

.vega-embed summary {
  display: none !important;
}

/* TOOLTIP */
.gtip {
  position: fixed;
  background: var(--bg2);
  border: 1px solid var(--g);
  color: var(--td);
  padding: 8px 12px;
  font-family: 'Roboto Mono', monospace;
  font-size: 11px;
  line-height: 1.7;
  pointer-events: none;
  z-index: 9000;
  opacity: 0;
  transition: opacity 0.1s;
  border-radius: 2px;
  white-space: nowrap;
}

/* TYPE LEGEND */
.trow {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}

.tp {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--td);
  letter-spacing: 0.06em;
}

.td {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* SCANLINES */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.02) 2px,
      rgba(0, 0, 0, 0.02) 4px);
  pointer-events: none;
  z-index: 9990;
}

/* FADE IN */
.fi {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fi.vis {
  opacity: 1;
  transform: none;
}

/* FOOTER */
footer {
  padding: 28px 60px;
  border-top: 1px solid var(--br);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer span {
  font-size: 11px;
  color: var(--td);
  letter-spacing: 0.12em;
}

footer em {
  color: var(--g);
  font-style: normal;
}

/* EXPLORE SECTION */
#explore {
  padding-bottom: 0;
}

#exp-total-chart {
  background: var(--bg3);
  border: 1px solid var(--br);
  border-radius: 2px;
  padding: 16px 24px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#exp-total-chart .chart-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#exp-total-chart .chart-label {
  color: var(--td);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

#exp-total-chart .chart-value {
  color: var(--g);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(3, 255, 165, 0.3);
}

#exp-total-chart .chart-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

#exp-total-chart .bubble-count {
  font-size: 12px;
  letter-spacing: 0.05em;
}

#exp-total-chart .progress-wrap {
  width: 140px;
  height: 6px;
  background: rgba(3, 255, 165, 0.1);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(3, 255, 165, 0.15);
}

#exp-total-chart .progress-bar {
  width: 0%;
  height: 100%;
  background: var(--g);
  transition: width 0.4s ease;
  box-shadow: 0 0 10px currentColor;
}

#exp-total-chart .max-label {
  font-size: 9px;
  letter-spacing: 0.08em;
  opacity: 0.6;
}

#exp-wrap {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 520px;
  border: 1px solid var(--br);
  border-radius: 2px;
  overflow: hidden;
  background: var(--gd);
  display: flex;
  flex-direction: column;
}

#exp-cv-wrap {
  width: 100%;
  height: 45vh;
  min-height: 300px;
  position: relative;
}

#exp-cv {
  width: 100%;
  height: 100%;
  display: block;
  background: transparent;
}

.exp-controls-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px 20px;
  background: var(--gd);
  border-top: 1px solid var(--br);
  gap: 16px;
}

.exp-controls-fixed {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
}

.exp-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--br);
  background: var(--bg2);
  color: var(--td);
  font-size: 18px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.exp-arrow:hover {
  border-color: var(--g);
  color: var(--g);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(3, 255, 165, 0.2);
}

.exp-model-card-fixed {
  width: 280px;
  padding: 24px 28px;
  background: var(--bg2);
  border: 2px solid var(--br);
  border-radius: 4px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.exp-card-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.exp-card-dev {
  font-size: 12px;
  color: var(--td);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.exp-card-co2 {
  font-size: 13px;
  color: var(--g);
  font-weight: 500;
}

.exp-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.exp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
}

.exp-dot:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.2);
}

.exp-dot.active {
  transform: scale(1.4);
}

.exp-query-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.exp-query-row .qbtn {
  min-width: 64px;
  padding: 10px 16px;
  border: 1px solid var(--br);
  background: var(--bg3);
  color: var(--td);
  font-size: 13px;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.exp-query-row .qbtn:hover {
  background: rgba(3, 255, 165, 0.08);
  border-color: rgba(3, 255, 165, 0.4);
  color: var(--g);
  transform: translateY(-2px);
}

.exp-reset-btn {
  padding: 10px 20px;
  border: 1px solid var(--br);
  background: var(--bg3);
  color: rgba(255, 100, 100, 0.8);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.exp-reset-btn:hover {
  border-color: rgba(255, 100, 100, 0.6);
  background: rgba(255, 100, 100, 0.08);
  color: rgba(255, 100, 100, 1);
  transform: translateY(-2px);
}

.exp-hint {
  font-size: 11px;
  color: var(--td);
  letter-spacing: 0.12em;
  text-align: center;
  opacity: 0.7;
}

/* VEGA CHARTS - 全局字体统一 */
.vega-embed {
  font-family: 'Roboto Mono', monospace !important;
}

.vega-embed svg text {
  font-family: 'Roboto Mono', monospace !important;
}

/* RESPONSIVE */
@media (max-width: 700px) {
  .inner {
    padding: 0 24px;
  }

  nav {
    padding: 14px 24px;
  }

  .nav-links {
    gap: 18px;
  }

  .pie-row {
    grid-template-columns: 1fr;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    gap: 8px;
    padding: 20px 24px;
  }

  .exp-model-card-fixed {
    width: 200px;
    padding: 18px 20px;
  }

  .exp-card-name {
    font-size: 14px;
  }

  .exp-arrow {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .exp-controls-fixed {
    gap: 16px;
  }

  #exp-total-chart {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  #exp-total-chart .chart-right {
    align-items: center;
  }

  #exp-cv-wrap {
    height: 35vh;
  }

  
}