:root {
  color-scheme: light;
  --paper: #f6f3eb;
  --surface: #ffffff;
  --ink: #172126;
  --muted: #637078;
  --line: #d9dedb;
  --green: #17684a;
  --blue: #245c84;
  --amber: #c78522;
  --soft-green: #e7efe8;
  --soft-blue: #e6eef4;
  --shadow: 0 22px 70px rgba(23, 33, 38, .09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23, 104, 74, .07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(36, 92, 132, .06) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(23, 33, 38, .08);
  background: rgba(246, 243, 235, .9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  min-width: 0;
  font-size: 20px;
  font-weight: 780;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  padding: 9px 12px;
  border-radius: 8px;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(23, 104, 74, .1);
}

/* Hub 入口：登录后可看电价/协议数据，公开工具箱；用主色描边区分于站内锚点 */
.nav a.nav-hub {
  color: var(--green);
  border: 1px solid rgba(23, 104, 74, .35);
  font-weight: 640;
}

.nav a.nav-hub:hover {
  color: #fff;
  background: var(--green);
}

.language-switch {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(23, 33, 38, .1);
  border-radius: 8px;
  background: rgba(255, 255, 255, .6);
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 30px;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.language-switch a:hover,
.language-switch a.active {
  color: #fff;
  background: var(--green);
}

.hero {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: minmax(260px, .84fr) minmax(0, 1.16fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(46px, 7vw, 92px) clamp(20px, 5vw, 72px);
}

.hero-media {
  min-height: 440px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(23, 104, 74, .18), transparent 42%),
    linear-gradient(240deg, rgba(36, 92, 132, .16), transparent 45%),
    #fbfaf6;
  box-shadow: var(--shadow);
}

/* hero 场景图：日前价格曲线 + 充放电窗口 + 场站单线图（纯 SVG，零 JS） */
.hero-scene {
  width: 100%;
  height: 100%;
  padding: clamp(14px, 2.5vw, 26px);
}

.hero-scene svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 7.4vw, 88px);
  line-height: .98;
  letter-spacing: 0;
}

.lead {
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 780;
}

.button.primary {
  color: #fff;
  background: var(--ink);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, .5);
}

.button:hover,
.mail-link:hover {
  transform: translateY(-1px);
}

.section {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(58px, 8vw, 108px) clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-copy {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

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

.capability-grid article,
.protocol-panel,
.contact,
.not-found {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 16px 48px rgba(23, 33, 38, .06);
}

.capability-grid article {
  min-height: 250px;
  padding: 24px;
}

/* ---- Live platform：Hub 能力展示（首页第一屏之后的"证明"区） ---- */
.platform {
  padding-top: 0;
}

.platform-grid {
  display: grid;
  /* 5 张卡自适应：宽屏 5 列，窄屏自动换行 */
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 14px;
}

/* ---- 数字带：平台真实数据背书 ---- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 72px) clamp(38px, 5vw, 58px);
}

.stats-strip div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .7);
  padding: 16px 18px;
}

.stats-strip strong {
  display: block;
  color: var(--green);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.1;
}

.stats-strip span {
  color: var(--muted);
  font-size: 13.5px;
}

.platform-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 16px 48px rgba(23, 33, 38, .06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.platform-card:hover {
  transform: translateY(-3px);
  border-color: var(--green);
  box-shadow: 0 22px 60px rgba(23, 33, 38, .12);
}

.platform-visual {
  /* 顶部留出角标（.platform-access）的高度，避免遮住图形 */
  padding: 44px 20px 0;
  background: linear-gradient(180deg, rgba(231, 239, 232, .6), transparent 85%);
}

.platform-card:nth-child(even) .platform-visual {
  background: linear-gradient(180deg, rgba(230, 238, 244, .7), transparent 85%);
}

.platform-visual svg {
  display: block;
  width: 100%;
  height: 88px;
}

.platform-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 20px 20px;
}

.platform-body h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 20px;
}

.platform-body .arrow {
  color: var(--green);
  transition: transform .18s ease;
}

.platform-card:hover .arrow {
  transform: translateX(4px);
}

.platform-body p {
  flex: 1;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.platform-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.platform-facts span {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--soft-blue);
  color: #193f5d;
  font-size: 12px;
  font-weight: 700;
}

.platform-access {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.platform-access.account {
  background: #f4ead7;
  color: #7a4e13;
}

.platform-access.open {
  background: var(--soft-green);
  color: var(--green);
}

.platform-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

.platform-note a {
  color: var(--green);
  font-weight: 700;
}

.scenarios {
  padding-top: 28px;
}

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

.scenario-grid article {
  min-height: 280px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(231, 239, 232, .72), rgba(255, 255, 255, .92) 42%),
    #fff;
  box-shadow: 0 16px 48px rgba(23, 33, 38, .06);
}

.scenario-grid article:nth-child(even) {
  background:
    linear-gradient(180deg, rgba(230, 238, 244, .82), rgba(255, 255, 255, .92) 42%),
    #fff;
}

.scenario-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 18px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(23, 104, 74, .1);
  color: var(--green);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.scenario-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

h3 {
  margin: 0 0 18px;
  font-size: 22px;
}

.capability-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(320px, 1.14fr);
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
}

.protocol-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px;
}

.protocol-panel span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(23, 33, 38, .1);
  border-radius: 8px;
  background: var(--soft-blue);
  color: #193f5d;
  font-weight: 760;
}

.protocol-panel span:nth-child(3n + 1) {
  background: var(--soft-green);
  color: #18523c;
}

.protocol-panel span:nth-child(4n) {
  background: #f4ead7;
  color: #7a4e13;
}

.process {
  padding-top: 36px;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 24px;
  border-top: 4px solid var(--green);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(23, 33, 38, .06);
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 22px;
  color: var(--amber);
  font-size: 28px;
  font-weight: 820;
}

.steps strong,
.steps span {
  display: block;
}

.steps strong {
  font-size: 20px;
  margin-bottom: 10px;
}

.steps span {
  color: var(--muted);
  line-height: 1.65;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  max-width: 1080px;
  margin: clamp(36px, 6vw, 80px) auto;
  padding: clamp(28px, 5vw, 48px);
}

.contact h2 {
  max-width: 740px;
}

.mail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(23, 33, 38, .1);
  color: var(--muted);
  font-size: 14px;
}

.not-found-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.not-found {
  width: min(760px, 100%);
  padding: clamp(30px, 7vw, 60px);
}

.not-found img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 26px;
}

.not-found h1 {
  font-size: clamp(40px, 8vw, 72px);
}

.not-found p:not(.eyebrow) {
  max-width: 560px;
  margin: 22px 0 34px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

@media (max-width: 940px) {
  .site-header {
    align-items: flex-start;
    gap: 14px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .language-switch {
    margin-left: auto;
  }

  .hero,
  .split-section,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 340px;
    order: -1;
  }

  .capability-grid,
  .scenario-grid,
  .steps,
  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact {
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, .62);
    border: 1px solid rgba(23, 33, 38, .08);
  }

  .language-switch {
    width: 100%;
    justify-content: stretch;
    margin-left: 0;
  }

  .language-switch a {
    flex: 1;
  }

  .hero {
    min-height: auto;
    padding: 30px 16px 44px;
    gap: 28px;
  }

  .hero-media {
    min-height: 250px;
  }

  .stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: clamp(34px, 10.5vw, 48px);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(28px, 8vw, 40px);
  }

  h3 {
    font-size: 20px;
  }

  .lead,
  .section-copy {
    font-size: 16px;
    line-height: 1.66;
  }

  .section {
    padding: 44px 16px;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .capability-grid,
  .scenario-grid,
  .steps,
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .capability-grid article,
  .scenario-grid article {
    min-height: auto;
    padding: 20px;
  }

  .protocol-panel {
    padding: 18px;
    gap: 8px;
  }

  .protocol-panel span {
    min-height: 38px;
    padding: 0 11px;
    font-size: 14px;
  }

  .steps li {
    padding: 20px;
  }

  .contact {
    margin: 24px 16px 44px;
    padding: 24px;
  }

  .site-footer {
    flex-direction: column;
    padding: 22px 16px;
  }

  .mail-link {
    width: 100%;
    white-space: normal;
  }
}
