/* ===========================================================
   Ecoline Solar — site stylesheet
   Brand green #6FB11B (from the Ecoline wordmark)
   Chart marks: #4E8C14 (highlight) / #5E6B75 (reference)
   =========================================================== */

:root {
  --ink:        #12181C;
  --ink-2:      #37444C;
  --muted:      #6B7780;
  --line:       #E4E8E3;
  --line-soft:  #EFF2ED;
  --surface:    #FFFFFF;
  --surface-2:  #F5F8F2;
  --surface-3:  #EDF2E7;
  --dark:       #141A16;
  --dark-2:     #1E2720;

  --brand:      #6FB11B;
  --brand-dark: #4E8C14;
  --brand-deep: #2F5A0C;
  --sun:        #E8871A;
  --cool:       #2C7FB8;

  --ref:        #5E6B75;

  --radius:   10px;
  --radius-l: 16px;
  --shadow:   0 1px 2px rgba(18,24,28,.05), 0 8px 24px rgba(18,24,28,.06);
  --shadow-l: 0 2px 6px rgba(18,24,28,.06), 0 18px 48px rgba(18,24,28,.10);
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.lang-zh {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.3rem); letter-spacing: -.022em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); letter-spacing: -.018em; }
h3 { font-size: 1.22rem; letter-spacing: -.01em; }
h4 { font-size: 1.02rem; }
p  { margin: 0 0 1.05em; }
ul, ol { margin: 0 0 1.05em; padding-left: 1.25em; }
li { margin: .3em 0; }
strong { color: var(--ink); font-weight: 700; }

/* ---------- language switching ----------
   Markup rule: language classes live on plain elements (p, h2, li, td, span)
   or on inline spans nested inside a styled wrapper — never on a component
   element that carries its own display rule (.stat, .bar-fill, .badge …).
   The :root prefix lifts specificity above component descendant selectors. */
:root .zh { display: none; }
:root body.lang-zh .en { display: none; }
:root body.lang-zh .zh { display: revert; }
:root svg .zh { display: none; }
:root body.lang-zh svg .zh { display: inline; }
:root body.lang-zh svg .en { display: none; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.band { background: var(--surface-2); }
.band-3 { background: var(--surface-3); }
.band-dark { background: var(--dark); color: #C9D3CB; }
.band-dark h2, .band-dark h3, .band-dark h4 { color: #fff; }
.band-dark strong { color: #fff; }
.band-dark a { color: #A9DB6B; }

.eyebrow {
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand-dark); margin-bottom: .8em;
}
.band-dark .eyebrow { color: #A9DB6B; }
.lede { font-size: 1.16rem; color: var(--ink-2); max-width: 66ch; }
.section-head { max-width: 74ch; margin-bottom: 40px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

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

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 52px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius-l); box-shadow: var(--shadow-l); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.93);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 74px; }
.brand-logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a {
  color: var(--ink-2); font-size: .95rem; font-weight: 600; text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a.active { color: var(--brand-deep); border-bottom-color: var(--brand); }

.lang-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; background: #fff;
}
.lang-toggle button {
  font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer;
  border: 0; background: transparent; color: var(--muted); padding: 5px 12px;
}
.lang-toggle button[aria-pressed="true"] { background: var(--brand-dark); color: #fff; }

.nav-toggle {
  display: none; margin-left: auto; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; width: 42px; height: 38px; cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto;
  position: relative; content: "";
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-weight: 700; font-size: .96rem; line-height: 1.2;
  padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .12s ease, background .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand-dark); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(10,18,12,.90) 0%, rgba(10,18,12,.72) 45%, rgba(10,18,12,.35) 100%);
}
.hero-inner { padding: 104px 0 96px; max-width: 44rem; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero p { color: #DCE6DC; font-size: 1.16rem; }
.hero .eyebrow { color: #A9DB6B; }
.hero-sub { border-left: 3px solid var(--brand); padding-left: 16px; }

.page-hero { background: var(--surface-2); border-bottom: 1px solid var(--line); padding: 62px 0 56px; }
.page-hero h1 { margin-bottom: .3em; }
.page-hero .lede { font-size: 1.14rem; }

/* ---------- stat band ---------- */
.stat-band { border-bottom: 1px solid var(--line); background: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.stat { padding: 30px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 2.15rem; line-height: 1.1; color: var(--ink); letter-spacing: -.02em; }
.stat b .unit { font-size: 1.05rem; font-weight: 700; color: var(--muted); }
.stat .stat-label { display: block; font-size: .9rem; color: var(--muted); margin-top: 6px; }
.stat .foot { display: block; font-size: .76rem; color: #97A0A7; margin-top: 4px; }

/* ---------- cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 28px 26px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card-media { padding: 0; overflow: hidden; }
.card-media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-media .card-body { padding: 24px 26px 28px; }
.card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--surface-3);
  color: var(--brand-deep); font-weight: 700; font-size: .95rem; margin-bottom: 14px;
}
.card-icon { width: 34px; height: 34px; margin-bottom: 14px; color: var(--brand-dark); }

/* ---------- feature list ---------- */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 28px; margin: .55em 0; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px;
  border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(111,177,27,.18);
}

/* ---------- chart ---------- */
.figure {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 28px 28px 22px; box-shadow: var(--shadow);
}
.figure-title { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.figure-sub { font-size: .88rem; color: var(--muted); margin-bottom: 22px; }
.figure-note { font-size: .8rem; color: var(--muted); margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }

.bars { display: grid; gap: 18px; }
.bar-row { display: grid; grid-template-columns: 190px 1fr; gap: 16px; align-items: center; }
.bar-label { font-size: .92rem; color: var(--ink-2); font-weight: 600; }
.bar-track { position: relative; height: 34px; }
.bar-fill {
  height: 34px; border-radius: 0 4px 4px 0; position: relative;
  display: flex; align-items: center; justify-content: flex-end; padding-right: 12px;
  color: #fff; font-weight: 700; font-size: .92rem; transition: filter .15s ease;
}
.bar-fill.ref  { background: var(--ref); }
.bar-fill.mark { background: var(--brand-dark); }
.bar-row:hover .bar-fill { filter: brightness(1.08); }
.bar-tip {
  position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 5;
  background: var(--ink); color: #fff; font-size: .78rem; line-height: 1.45;
  padding: 8px 11px; border-radius: 8px; white-space: nowrap;
  opacity: 0; visibility: hidden; transition: opacity .14s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.bar-row:hover .bar-tip, .bar-row:focus-within .bar-tip { opacity: 1; visibility: visible; }
.bar-delta {
  margin-top: 6px; font-size: .88rem; color: var(--brand-deep); font-weight: 700;
}

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; }
table.data { border-collapse: collapse; width: 100%; font-size: .93rem; background: #fff; }
table.data th {
  text-align: left; font-weight: 700; color: #fff; background: var(--brand-deep);
  padding: 11px 14px; border: 1px solid #26480A;
}
table.data td { padding: 11px 14px; border: 1px solid var(--line); vertical-align: top; }
table.data tbody tr:nth-child(even) { background: var(--surface-2); }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 32px 28px; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; border: 3px solid var(--brand);
}
.timeline .yr { font-size: .82rem; font-weight: 700; letter-spacing: .08em; color: var(--brand-dark); text-transform: uppercase; }
.timeline h3 { margin: 4px 0 6px; font-size: 1.08rem; }
.timeline p { margin: 0; font-size: .96rem; }

/* ---------- badges / credentials ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 9px 18px; font-size: .9rem; font-weight: 600; color: var(--ink-2);
}
.badge b { color: var(--brand-deep); }

/* ---------- quote ---------- */
.quote {
  border-left: 3px solid var(--brand); padding: 6px 0 6px 22px;
  font-size: 1.1rem; color: var(--ink); font-style: normal;
}
.quote cite { display: block; font-size: .87rem; color: var(--muted); font-style: normal; margin-top: 10px; }

/* ---------- CTA ---------- */
.cta { background: var(--dark); color: #C9D3CB; }
.cta h2 { color: #fff; }
.cta-inner { display: grid; grid-template-columns: 1.2fr auto; gap: 40px; align-items: center; padding: 66px 0; }

/* ---------- form ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .87rem; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .96rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid rgba(111,177,27,.35); border-color: var(--brand); outline-offset: 1px;
}
.field textarea { min-height: 132px; resize: vertical; }
.form-note { font-size: .84rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: #9FAEA3; padding: 62px 0 30px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-wordmark { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; color: #fff; line-height: 1; }
.footer-wordmark .eco { color: var(--brand); }
.footer-tag { font-size: .84rem; color: #8FA093; margin-top: 8px; letter-spacing: .02em; }
.site-footer h4 { color: #fff; font-size: .86rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .45em 0; }
.site-footer a { color: #9FAEA3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.10);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .82rem; color: #7E8D83;
}

/* ---------- diagram ---------- */
.diagram { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 26px; box-shadow: var(--shadow); }
.diagram svg { width: 100%; height: auto; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 18px; font-size: .86rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(2) { border-right: 0; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: 0; }
  .cta-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 18px;
    box-shadow: var(--shadow-l);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav a.active { border-bottom-color: var(--line-soft); }
  .header-inner { position: relative; }
  .lang-toggle { margin-left: auto; }
  .nav-toggle { margin-left: 10px; }
  .hero-inner { padding: 76px 0 68px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 1fr; gap: 6px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .nav, .cta, .site-footer { display: none; }
  .hero::after { display: none; }
  body { color: #000; }
}
