/* ==========================================================================
   Energo — TRON 能量租赁
   ========================================================================== */

:root {
  --bg: #050b0a;
  --bg-2: #081310;
  --elev: #0b1714;
  --elev-2: #0f201b;
  --fg: #e9f7f1;
  --fg-soft: #9fb8b0;
  --fg-faint: #6a847c;
  --line: #14332b;
  --line-strong: #1f4d41;

  --c1: #34d399;
  --c2: #22d3ee;
  --c3: #a3e635;
  --grad: linear-gradient(120deg, #34d399, #22d3ee 60%, #a3e635);
  --danger: #f87171;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 12px 44px rgba(0, 0, 0, 0.5);
  --glow: 0 0 0 1px rgba(52, 211, 153, 0.16), 0 24px 64px rgba(34, 211, 238, 0.16);
  --maxw: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

html[data-theme="light"] {
  --bg: #f4faf7;
  --bg-2: #eef7f2;
  --elev: #ffffff;
  --elev-2: #f0f8f4;
  --fg: #08201a;
  --fg-soft: #3c5b52;
  --fg-faint: #6f8a80;
  --line: #dcefe7;
  --line-strong: #c4e2d6;
  --shadow: 0 12px 44px rgba(10, 40, 30, 0.12);
  --glow: 0 0 0 1px rgba(52, 211, 153, 0.18), 0 24px 54px rgba(34, 211, 238, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-width: 320px; overflow-x: hidden;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
  background: var(--bg); color: var(--fg); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0 0 0.4em; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0 0 1em; color: var(--fg-soft); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

/* deco */
.bg-deco { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-grid {
  position: absolute; inset: -2px;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.45;
}
html[data-theme="light"] .bg-grid { opacity: 0.5; }
.bg-glow { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.4; }
.bg-glow--a { width: 520px; height: 520px; top: -160px; left: 6%; background: #22d3ee; }
.bg-glow--b { width: 460px; height: 460px; top: -120px; right: 8%; background: #34d399; opacity: 0.32; }
main, .site-header, .site-footer { position: relative; z-index: 1; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform 0.15s var(--ease), box-shadow 0.2s, background 0.2s; }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 14px 28px; font-size: 16px; }
.btn--primary { background: var(--grad); color: #05100c; box-shadow: 0 8px 28px rgba(52, 211, 153, 0.4); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(52, 211, 153, 0.55); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--fg); }
.btn--ghost:hover { background: var(--elev-2); border-color: var(--c1); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; cursor: pointer; background: transparent; border: 1px solid var(--line); color: var(--fg-soft); transition: color 0.15s, background 0.15s, border-color 0.15s; }
.icon-btn:hover { color: var(--fg); background: var(--elev-2); border-color: var(--line-strong); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top); background: color-mix(in srgb, var(--bg) 76%, transparent); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.site-header.is-stuck { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.brand__mark { display: inline-flex; }
.brand__name { font-size: 18px; letter-spacing: -0.02em; }
.brand__name em { font-style: normal; font-weight: 600; font-size: 13px; color: var(--fg-faint); }
.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a { padding: 8px 14px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--fg-soft); transition: color 0.15s, background 0.15s; }
.nav a:hover { color: var(--fg); background: var(--elev-2); }
.header-actions { display: flex; align-items: center; gap: 8px; }

/* 语言下拉 */
.lang { position: relative; }
.lang__btn { width: auto; padding: 0 12px; gap: 6px; }
.lang__current { font-size: 14px; font-weight: 700; }
.lang__caret { opacity: 0.7; }
.lang-menu[hidden] { display: none; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  min-width: 280px; max-width: min(92vw, 360px); max-height: min(70vh, 420px); overflow-y: auto;
  margin: 0; padding: 6px; list-style: none;
  background: var(--elev); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.lang-menu li { margin: 0; padding: 0; list-style: none; }
.lang-item {
  display: block; width: 100%; text-align: start; white-space: nowrap;
  border: 0; background: transparent; color: var(--fg-soft);
  padding: 9px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.lang-item:hover { color: var(--fg); background: var(--elev-2); }
.lang-menu li.is-active .lang-item { color: var(--c1); background: var(--elev-2); font-weight: 800; }

/* RTL 微调 */
html[dir="rtl"] .hero__facts li,
html[dir="rtl"] .plan ul,
html[dir="rtl"] .why ul { text-align: right; }
html[dir="rtl"] .chip--a { right: auto; left: -10px; }
html[dir="rtl"] .chip--b { left: auto; right: -14px; }
.navToggle { display: none; }
.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 8px 20px 18px; border-top: 1px solid var(--line); background: var(--elev); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 12px 8px; font-weight: 600; border-radius: 10px; }
.mobile-nav a:hover { background: var(--elev-2); }
.mobile-nav .btn { margin-top: 6px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 48px; align-items: center; padding-block: clamp(44px, 6vw, 88px) clamp(36px, 5vw, 68px); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--c1); background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.3); margin-bottom: 20px; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--c1); box-shadow: 0 0 0 0 rgba(52,211,153,0.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.6); } 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.hero h1 { font-size: clamp(34px, 5.2vw, 58px); letter-spacing: -0.03em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(16px, 1.5vw, 18px); max-width: 34ch; margin-top: 16px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__facts { display: flex; gap: 30px; margin: 34px 0 0; padding: 0; list-style: none; }
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong { font-size: 24px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__facts span { font-size: 13px; color: var(--fg-faint); }

.hero__showcase { position: relative; }
.console { background: linear-gradient(160deg, var(--elev-2), var(--elev)); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 18px; box-shadow: var(--glow); }
.console__head { display: flex; align-items: center; gap: 7px; margin-bottom: 14px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--r { background: #ff5f57; } .dot--y { background: #febc2e; } .dot--g { background: #28c840; }
.console__title { margin-left: 8px; font-size: 13px; color: var(--fg-faint); font-weight: 600; }
.console__nodes { position: relative; height: 220px; border-radius: 14px; background: radial-gradient(circle at 50% 50%, rgba(34,211,238,0.08), transparent 70%); overflow: hidden; }
.node { position: absolute; left: var(--x); top: var(--y); width: 12px; height: 12px; border-radius: 50%; background: var(--c2); transform: translate(-50%,-50%); box-shadow: 0 0 14px var(--c2); opacity: 0.85; animation: floaty 3.6s var(--ease) infinite; }
.node:nth-child(odd) { animation-delay: -1.2s; background: var(--c1); box-shadow: 0 0 14px var(--c1); }
.node--core { width: 54px; height: 54px; left: 50%; top: 50%; display: grid; place-items: center; font-size: 26px; background: var(--grad); box-shadow: 0 0 34px rgba(52,211,153,0.7); z-index: 2; }
@keyframes floaty { 0%,100% { transform: translate(-50%,-50%); } 50% { transform: translate(-50%,-70%); } }
.console__gauge { margin-top: 16px; }
.console__gauge-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--fg-soft); margin-bottom: 8px; }
.console__gauge-head b { color: var(--c1); }
.console__bar { height: 9px; border-radius: 99px; background: var(--elev); overflow: hidden; }
.console__bar span { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
.chip { position: absolute; padding: 9px 14px; border-radius: 12px; font-size: 13px; font-weight: 700; background: var(--elev); border: 1px solid var(--line-strong); box-shadow: var(--shadow); animation: floaty2 4s var(--ease) infinite; }
.chip--a { top: -14px; right: -10px; color: var(--c1); }
.chip--b { bottom: -16px; left: -14px; color: var(--c2); animation-delay: -2s; }
@keyframes floaty2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* strip */
.strip { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--elev) 60%, transparent); }
.strip__inner { display: flex; flex-wrap: wrap; gap: 12px 34px; justify-content: center; padding-block: 18px; }
.strip__inner span { font-size: 14px; font-weight: 600; color: var(--fg-soft); }

/* section */
.section { padding-block: clamp(48px, 6vw, 84px); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.section__head--center { justify-content: center; text-align: center; }
.section h2 { font-size: clamp(26px, 3.4vw, 40px); }
.section__head p { margin: 0; }

/* calculator */
.calc { background: linear-gradient(160deg, var(--elev-2), var(--elev)); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 40px); }
.calc__control label { font-weight: 700; color: var(--fg); }
.calc__range-row { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.step-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--elev); color: var(--fg); font-size: 20px; cursor: pointer; flex: none; }
.step-btn:hover { border-color: var(--c1); }
#txRange { flex: 1; accent-color: var(--c1); height: 6px; }
#txOut { font-size: 22px; font-weight: 800; min-width: 52px; text-align: right; color: var(--c1); }
.calc__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0; }
.calc__card { border-radius: 16px; padding: 20px; border: 1px solid var(--line); }
.calc__card--bad { background: rgba(248, 113, 113, 0.06); border-color: rgba(248, 113, 113, 0.25); }
.calc__card--good { background: rgba(52, 211, 153, 0.08); border-color: rgba(52, 211, 153, 0.3); }
.calc__card-title { font-size: 14px; font-weight: 700; color: var(--fg-soft); }
.calc__big { font-size: 30px; font-weight: 800; margin: 4px 0; }
.calc__big span { font-size: 15px; color: var(--fg-faint); font-weight: 600; }
.calc__card--bad .calc__big { color: var(--danger); }
.calc__card--good .calc__big { color: var(--c1); }
.calc__note { font-size: 13px; color: var(--fg-faint); }
.calc__save { display: flex; align-items: baseline; gap: 10px; justify-content: center; flex-wrap: wrap; font-size: 16px; color: var(--fg-soft); padding: 18px; border-radius: 14px; background: var(--elev); border: 1px dashed var(--line-strong); }
.calc__save strong { font-size: 26px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc__disclaimer { text-align: center; font-size: 13px; color: var(--fg-faint); margin: 18px 0 0; }

/* why */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why { position: relative; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); background: var(--elev); }
.why h3 { font-size: 20px; }
.why ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.why li { font-size: 15px; color: var(--fg-soft); }
.why--bad { border-color: rgba(248,113,113,0.25); }
.why--good { border-color: rgba(52,211,153,0.35); box-shadow: var(--glow); }
.why--good h3 { color: var(--c1); }
.why__tag { position: absolute; top: 18px; right: 18px; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; background: var(--grad); color: #05100c; }

/* how */
.how { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: start; }
.how__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
.how__step { position: relative; background: var(--elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 22px 70px; }
.how__num { position: absolute; left: 20px; top: 22px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: var(--grad); color: #05100c; }
.how__step h3 { font-size: 18px; }
.how__step p { margin: 0; font-size: 14px; }

.order { background: linear-gradient(160deg, var(--elev-2), var(--elev)); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 24px; box-shadow: var(--glow); }
.order__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.order__head h3 { margin: 0; font-size: 18px; }
.order__demo { font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: rgba(34,211,238,0.15); color: var(--c2); border: 1px solid rgba(34,211,238,0.3); }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 700; color: var(--fg-soft); margin-bottom: 6px; }
.field input, .field select { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--elev); color: var(--fg); }
.field input:focus, .field select:focus { outline: none; border-color: var(--c1); box-shadow: 0 0 0 3px rgba(52,211,153,0.15); }
.order__sum { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 12px; background: var(--elev); border: 1px solid var(--line); margin: 6px 0 16px; font-weight: 700; }
.order__sum strong { font-size: 20px; color: var(--c1); }
.order__btn { width: 100%; }
.order__note { font-size: 12px; color: var(--fg-faint); margin: 12px 0 0; }

/* price */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin-inline: auto; }
.plan { position: relative; background: var(--elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; text-align: center; }
.plan--best { border-color: var(--line-strong); box-shadow: var(--glow); }
.plan__tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 800; padding: 4px 14px; border-radius: 999px; background: var(--grad); color: #05100c; }
.plan h3 { font-size: 18px; color: var(--fg-soft); }
.plan__price { font-size: 16px; margin: 8px 0 2px; }
.plan__price b { font-size: 44px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan__price em { font-style: normal; color: var(--fg-faint); font-size: 14px; }
.plan__desc { color: var(--c1); font-weight: 700; }
.plan ul { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 10px; text-align: left; }
.plan li { font-size: 14px; color: var(--fg-soft); }
.plan .btn { width: 100%; }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: var(--elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature__icon { font-size: 28px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--elev-2); margin-bottom: 14px; }
.feature h3 { font-size: 17px; }
.feature p { margin: 0; font-size: 14px; }

/* faq */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq__item { background: var(--elev); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq__item summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "＋"; color: var(--c1); font-weight: 800; }
.faq__item[open] summary::after { content: "－"; }
.faq__item p { margin: 0 0 16px; font-size: 14px; }

/* cta */
.cta-box { text-align: center; padding: clamp(36px, 5vw, 64px) 24px; border-radius: var(--radius); background: radial-gradient(ellipse at top, rgba(52,211,153,0.2), transparent 70%), var(--elev); border: 1px solid var(--line-strong); margin-bottom: clamp(48px, 6vw, 80px); }
.cta-box h2 { font-size: clamp(24px, 3.2vw, 36px); }
.cta-box .btn { margin-top: 8px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px 28px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__brand p { margin: 6px 0 0; font-size: 14px; }
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-start; }
.footer__nav a { font-size: 14px; color: var(--fg-soft); font-weight: 600; }
.footer__nav a:hover { color: var(--fg); }
.footer__legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg-faint); line-height: 1.5; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px); z-index: 200; max-width: min(92vw, 480px); padding: 12px 22px; border-radius: 14px; font-weight: 600; font-size: 14px; background: var(--elev); color: var(--fg); border: 1px solid var(--line-strong); box-shadow: var(--shadow); opacity: 0; transition: opacity 0.25s, transform 0.25s; pointer-events: none; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { border-color: rgba(248,113,113,0.5); color: #fecaca; }

/* responsive */
@media (max-width: 1024px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero__showcase { max-width: 460px; margin-inline: auto; }
  .how { grid-template-columns: 1fr; }
  .why-grid, .price-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .navToggle { display: inline-flex; }
  .mobile-nav { display: flex; }
  .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 32px, var(--maxw)); }
  .calc__cards { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero__facts { gap: 20px; }
  .calc__range-row { gap: 10px; }
  .how__step { padding-left: 22px; padding-top: 64px; }
  .how__num { left: 22px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto; } }
