/* ===== local fonts ===== */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/inter-800.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jetbrainsmono-500.woff2") format("woff2"); }

/* ===== 充电桩风 · reset / vars ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f1f5f9;
  --bg-2: #e2e8f0;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --green: #10b981;
  --green-dark: #047857;
  --green-soft: #d1fae5;
  --blue: #2563eb;
  --blue-soft: #dbeafe;
  --orange: #f59e0b;
  --orange-soft: #fef3c7;

  --shadow: 0 2px 6px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 4px 12px rgba(15, 23, 42, 0.08), 0 24px 48px rgba(15, 23, 42, 0.1);

  --sans: "Inter", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; color: inherit; }
ul, ol { list-style: none; }
em { font-style: normal; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ===== topbar 状态条 ===== */
.topbar {
  background: var(--text);
  color: #e2e8f0;
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 24px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.topbar b { color: #fff; font-weight: 600; }
.topbar .ok { color: var(--green); }
.topbar .sep { color: #475569; }
.online { display: inline-flex; align-items: center; gap: 6px; color: var(--green); }
.online-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }

/* ===== header ===== */
.header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  border-radius: 10px;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
.brand-name {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-sub {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  margin-top: 1px;
}
.nav {
  display: flex; gap: 8px;
}
.nav a {
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text-2);
  border-radius: 8px;
  font-weight: 500;
  transition: all .15s;
}
.nav a:hover { background: var(--bg-2); color: var(--text); }

/* ===== HERO ===== */
.hero { padding: 60px 0 80px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: start;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
}
.tag-green { background: var(--green-soft); color: var(--green-dark); }
.tag-blue { background: var(--blue-soft); color: var(--blue); }
.tag-orange { background: var(--orange-soft); color: #b45309; }

.hero-text h1 {
  font-size: clamp(34px, 4.5vw, 50px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero-text h1 em {
  color: var(--green);
  position: relative;
}
.hero-text h1 em::after {
  content: "";
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  height: 8px;
  background: var(--green-soft);
  z-index: -1;
  border-radius: 4px;
}
.lead {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 26px;
  line-height: 1.75;
}
.lead b { color: var(--green); font-weight: 700; }

.benefits {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 0;
}
.benefits li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14.5px;
  color: var(--text);
}
.check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-soft); color: var(--green-dark);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

/* ===== 充电桩卡片 ===== */
.station-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.station-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.station-id {
  display: flex; align-items: center; gap: 8px;
}
.station-id .pile-id {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  background: var(--bg);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.station-id b {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.station-status {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
}
.station-status.idle .status-dot { background: var(--text-3); }
.station-status.charging .status-dot { background: var(--orange); animation: pulse 1s infinite; }
.station-status.done .status-dot { background: var(--green); box-shadow: 0 0 8px var(--green); }
.status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--text-3);
}

/* 电池可视化 */
.battery {
  display: flex; align-items: center;
  margin-bottom: 28px;
  padding: 18px;
  background: linear-gradient(135deg, var(--bg), #fff);
  border: 1px solid var(--border);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.battery-shell {
  flex: 1;
  height: 56px;
  background: var(--bg);
  border: 2.5px solid var(--text);
  border-radius: 10px;
  padding: 4px;
  position: relative;
}
.battery-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-dark));
  border-radius: 5px;
  transition: width 0.35s ease;
  position: relative;
  overflow: hidden;
}
.battery-fill::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.15) 0 10px,
    transparent 10px 20px
  );
  animation: flow 1.2s linear infinite;
}
@keyframes flow {
  to { background-position: 28px 0; }
}
.battery-pct {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-shadow: 0 0 8px #fff, 0 0 8px #fff;
  mix-blend-mode: difference;
  color: #fff;
}
.battery-cap {
  width: 8px; height: 30px;
  background: var(--text);
  border-radius: 0 4px 4px 0;
  margin-left: 1px;
}

/* 读数 */
.readouts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 24px;
  padding: 16px 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}
.readout {
  text-align: center;
  border-right: 1px solid var(--border);
  padding: 4px 8px;
}
.readout:last-child { border-right: none; }
.r-key {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.r-val {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: block;
}
.r-val small { font-size: 13px; color: var(--text-3); margin-left: 1px; font-weight: 500; }
.r-amount { color: var(--green-dark); }

/* 档位 */
.pill-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 10px;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 9px 16px;
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  transition: all .15s;
}
.pill:hover { border-color: var(--green); color: var(--green-dark); background: var(--green-soft); }
.pill.active {
  background: var(--green);
  border-color: var(--green-dark);
  color: #fff;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}
.pill.custom { color: var(--blue); border-color: var(--blue-soft); }
.pill.custom.active { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3); }

/* 扫码区 */
.charge-zone {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--border);
}
.qr-block {
  display: flex; gap: 18px;
  margin-bottom: 18px;
}
.qr-block img {
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.qr-side { flex: 1; min-width: 0; }
.qr-tip {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 10px;
}
.addr-box {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px 6px 10px;
  flex-wrap: nowrap;
}
.addr-box code {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-2);
  flex: 1;
  word-break: break-all;
  min-width: 0;
}
#copyBtn {
  background: var(--text);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: background .15s;
}
#copyBtn:hover { background: var(--green-dark); }

.charge-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
  transition: all .15s;
}
.charge-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16, 185, 129, 0.45); }
.charge-btn:active { transform: translateY(0); }
.charge-btn .cb-icon { font-size: 18px; }
.charge-btn.charging {
  background: linear-gradient(135deg, var(--orange), #d97706);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}

/* ===== H2 通用 ===== */
.h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.h2-sub {
  text-align: center;
  color: var(--text-2);
  margin-bottom: 40px;
  font-size: 15px;
}

/* ===== 套餐 ===== */
.plans { padding: 80px 0; background: var(--bg-card); }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}
.plan {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  transition: all .2s;
  position: relative;
}
.plan-fast { border-color: var(--green-soft); }
.plan-fast:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(16, 185, 129, 0.12); }
.plan-slow { border-color: var(--orange-soft); }
.plan-slow:hover { border-color: var(--orange); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(245, 158, 11, 0.12); }

.plan-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.plan-fast .plan-tag { background: var(--green); color: #fff; }
.plan-slow .plan-tag { background: var(--orange); color: #fff; }

.plan h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 14px;
}
.plan-price {
  font-size: 18px;
  color: var(--text-3);
  margin-bottom: 4px;
}
.plan-price b {
  font-size: 56px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  font-family: var(--mono);
}
.plan-price span { font-size: 16px; color: var(--text-3); }
.plan-energy {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 18px;
}
.plan-feat { display: flex; flex-direction: column; gap: 8px; }
.plan-feat li {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px;
  color: var(--text-2);
}
.plan-feat li span { color: var(--text-3); }

/* ===== 流程 ===== */
.how { padding: 80px 0; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  position: relative;
  transition: all .2s;
}
.step:hover { border-color: var(--green); transform: translateY(-3px); }
.step-icon { font-size: 36px; margin-bottom: 14px; line-height: 1; }
.step-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 10px;
}
.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ===== 指标 ===== */
.metrics {
  padding: 50px 0;
  background: linear-gradient(135deg, var(--text), #1e293b);
  color: #fff;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.metric {
  text-align: center;
  padding: 12px;
  border-right: 1px solid #334155;
}
.metric:last-child { border-right: none; }
.m-icon { font-size: 26px; margin-bottom: 8px; }
.m-num {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.m-num small { font-size: 14px; font-weight: 500; color: #cbd5e1; margin-left: 2px; }
.m-label {
  font-size: 12.5px;
  color: #94a3b8;
}

/* ===== FAQ ===== */
.faq { padding: 80px 0; }
.faq .wrap { max-width: 760px; }
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
  transition: border-color .15s;
}
.faq details:hover, .faq details[open] { border-color: var(--green); }
.faq summary {
  cursor: pointer;
  padding: 18px 50px 18px 22px;
  font-size: 15.5px;
  font-weight: 600;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: var(--green);
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.85;
}
.faq details p a { color: var(--green-dark); border-bottom: 1px solid currentColor; }

/* ===== 客服 ===== */
.service { padding: 70px 0; }
.service-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, var(--green-soft), var(--blue-soft));
  border: 1px solid var(--green-soft);
  border-radius: 24px;
  padding: 50px 40px;
}
.service-icon { font-size: 56px; margin-bottom: 14px; }
.service-card h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.service-card > p {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 24px;
}
.tg-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px;
  background: var(--text);
  color: #fff;
  border-radius: 50px;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2);
  transition: all .15s;
}
.tg-btn:hover { background: var(--green-dark); transform: translateY(-2px); }
.tg-btn span:first-child { font-size: 16px; }
.service-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-2);
}

/* ===== Footer ===== */
.footer {
  background: var(--text);
  color: #94a3b8;
  padding: 30px 0;
  border-top: 1px solid #1e293b;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff;
  font-weight: 700;
}
.footer-brand .brand-mark {
  width: 28px; height: 28px;
  font-size: 14px;
  border-radius: 7px;
  box-shadow: none;
}
.footer-copy {
  font-size: 12.5px;
  text-align: right;
}

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: all .2s;
  z-index: 100;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.3);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric { border-right: none; }
  .metric:nth-child(odd) { border-right: 1px solid #334155; }
  .nav a { padding: 8px 10px; font-size: 13px; }
}
@media (max-width: 600px) {
  .topbar { font-size: 11px; }
  .plan-grid, .steps, .metric-grid { grid-template-columns: 1fr; }
  .metric { border-right: none; }
  .station-card { padding: 22px; }
  .qr-block { flex-direction: column; align-items: center; }
  .qr-side { width: 100%; }
  .readouts { grid-template-columns: 1fr; }
  .readout { border-right: none; border-bottom: 1px solid var(--border); padding: 12px 0; }
  .readout:last-child { border-bottom: none; }
  .hero-text h1 { font-size: 30px; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-copy { text-align: center; }
  .nav { display: none; }
}
