/* ============================================================
   GoEnergy 门户网站 - 全局样式
   ============================================================ */

/* ============ 品牌色板（取自 GoEnergy Logo） ============ */
:root {
  --ink: #0A3D2C;              /* 深墨绿，主文字 */
  --ink-soft: #2F5A47;
  --ink-mute: #6B8578;
  --brand: #0F5E42;            /* 森林绿，主色 */
  --brand-deep: #0A4530;
  --brand-light: #1A7A58;
  --energy: #9DCB2B;           /* 亮黄绿，强调色（太阳能板色） */
  --energy-deep: #7FB01E;
  --bg: #F7F9F4;               /* 带绿调的米白 */
  --bg-card: #FFFFFF;
  --line: #E2E8DD;
  --line-strong: #C2D0BC;
  --grad-brand: linear-gradient(135deg, #9DCB2B 0%, #0F5E42 100%);
}

/* ============ 基础重置 ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: hidden; }

body {
  font-family: 'Noto Sans', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-light); text-decoration: none; word-break: break-word; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; height: auto; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

/* ============ 顶部能量条 ============ */
.energy-bar {
  height: 4px;
  background: var(--grad-brand);
}

/* ============ 导航 ============ */
header.site-header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}
.brand img.logo {
  height: 44px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 9px 16px;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 999px;
  transition: all 0.15s ease;
}
.nav-links a:hover {
  color: var(--brand-deep);
  text-decoration: none;
  background: rgba(15,94,66,0.06);
}
.nav-links a.active {
  color: #fff;
  background: var(--brand);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 语言切换器 */
.lang-switch {
  display: flex;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.lang-switch button {
  border: none;
  background: transparent;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-mute);
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.03em;
  transition: all 0.15s ease;
}
.lang-switch button + button { border-left: 1.5px solid var(--line); }
.lang-switch button.active {
  background: var(--brand);
  color: var(--energy);
}
.lang-switch button:hover:not(.active) {
  background: var(--bg);
  color: var(--ink);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

/* ============ Hero 区 ============ */
.hero {
  padding: 88px 0 80px;
  background:
    radial-gradient(ellipse 70% 60% at 85% -10%, rgba(157,203,43,0.22), transparent 60%),
    radial-gradient(ellipse 55% 50% at 5% 110%, rgba(15,94,66,0.15), transparent 60%),
    var(--bg);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-deep);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 3px;
  background: var(--energy);
  border-radius: 2px;
}

h1 {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  color: var(--ink);
}
h1 .accent {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero p.lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 34px;
}

/* 按钮体系 */
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15,94,66,0.25);
}
.btn-primary:hover {
  background: var(--brand-deep);
  box-shadow: 0 6px 20px rgba(15,94,66,0.35);
}
.btn-energy {
  background: var(--energy);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(157,203,43,0.35);
}
.btn-energy:hover {
  background: var(--energy-deep);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* Hero 右侧 APP 图标展示 */
.hero-app {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.app-icon-wrap {
  position: relative;
  width: 240px;
  height: 240px;
}
.app-icon {
  width: 100%;
  height: 100%;
  border-radius: 52px;
  box-shadow:
    0 24px 60px rgba(15,94,66,0.35),
    0 0 0 8px rgba(255,255,255,0.9),
    0 0 0 9px var(--line);
  object-fit: cover;
}
.app-badge {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(15,94,66,0.18);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-deep);
  white-space: nowrap;
}
.app-badge .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--energy);
  margin-right: 7px;
  vertical-align: middle;
}

/* ============ 特性卡片 ============ */
.features {
  padding: 80px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--ink);
}
.section-sub {
  color: var(--ink-mute);
  max-width: 620px;
  margin-bottom: 44px;
  font-size: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  transition: all 0.2s ease;
}
.feature:hover {
  border-color: var(--energy);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15,94,66,0.1);
}
.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--grad-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}
.feature p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ============ 统计条 ============ */
.stats {
  padding: 56px 0;
  background: var(--brand-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(157,203,43,0.2), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(157,203,43,0.1), transparent 50%);
  pointer-events: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
  position: relative;
}
.stat-num {
  font-size: 44px;
  font-weight: 800;
  color: var(--energy);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  font-size: 14px;
  opacity: 0.85;
  font-weight: 500;
}

/* ============ 内容页（关于/联系/政策） ============ */
.page {
  padding: 72px 0 100px;
  min-height: 60vh;
}
.page h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 14px;
}
.page .updated {
  color: var(--ink-mute);
  font-size: 13.5px;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.page h2 {
  font-size: 21px;
  font-weight: 700;
  margin: 38px 0 14px;
  color: var(--brand-deep);
}
.page p {
  color: var(--ink-soft);
  margin-bottom: 14px;
  max-width: 780px;
}
.page ul {
  margin: 0 0 16px 24px;
  color: var(--ink-soft);
}
.page li { margin-bottom: 7px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 36px;
}
.contact-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-card);
}
.contact-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--brand-deep);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.contact-card p {
  font-size: 15px;
  margin-bottom: 6px;
}

/* ============ 页脚 ============ */
footer.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img.logo {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}
.footer-brand p {
  font-size: 14px;
  max-width: 340px;
  line-height: 1.7;
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--energy);
  margin-bottom: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}
.footer-col a:hover { color: var(--energy); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   响应式：三端适配
   ============================================================ */

/* 平板横屏 ≤1024px */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 40px; }
}

/* 平板竖屏 ≤900px：hero 变单列 */
@media (max-width: 900px) {
  .hero { padding: 64px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-app { order: -1; }
  .app-icon-wrap { width: 190px; height: 190px; }
  .app-icon { border-radius: 44px; }
  h1 { font-size: clamp(30px, 6vw, 42px); }
}

/* 小平板/大手机 ≤768px：导航折叠、单列布局 */
@media (max-width: 768px) {
  .nav { height: 64px; }
  .brand img.logo { height: 34px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 12px 20px 16px;
    border-bottom: 1px solid var(--line);
    gap: 2px;
    box-shadow: 0 12px 24px rgba(10,61,44,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 13px 14px;
    border-radius: 8px;
    font-size: 15px;
  }
  .nav-links a.active { border-radius: 8px; }
  .menu-toggle { display: flex; }
  .lang-switch button { padding: 7px 10px; font-size: 12px; }

  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .stat-num { font-size: 32px; }
  .page { padding: 48px 0 72px; }
  .page h1 { font-size: clamp(26px, 5vw, 34px); }
  .page h2 { font-size: 19px; }
  .features { padding: 56px 0; }
  .section-title { font-size: 24px; }
  .stats { padding: 40px 0; }
}

/* 手机 ≤640px：单列卡片、按钮全宽 */
@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature { padding: 24px 22px; }

  .hero { padding: 48px 0; }
  .hero p.lead { font-size: 16px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { justify-content: center; width: 100%; }
  .app-icon-wrap { width: 160px; height: 160px; }
  .app-icon { border-radius: 36px; }
  .app-badge { font-size: 12px; padding: 8px 16px; bottom: -14px; }
}

/* 小手机 ≤420px */
@media (max-width: 420px) {
  .container { padding: 0 16px; }
  .nav-right { gap: 8px; }
  .lang-switch button { padding: 6px 8px; font-size: 11.5px; }
  .brand img.logo { height: 30px; }
  .hero { padding: 36px 0; }
  .eyebrow { font-size: 11.5px; margin-bottom: 14px; }
  h1 { font-size: 28px; margin-bottom: 16px; }
  .hero p.lead { font-size: 15px; margin-bottom: 24px; }
  .btn { padding: 12px 20px; font-size: 14.5px; }
  .app-icon-wrap { width: 130px; height: 130px; }
  .app-icon { border-radius: 30px; }
  .stats { padding: 32px 0; }
  .stat-num { font-size: 26px; }
  .stat-label { font-size: 12.5px; }
  .contact-card { padding: 22px; }
  .footer-brand img.logo { height: 32px; }
}
