@charset "utf-8";
/* ==========================================================================
   华世中科能源科技 官网样式表
   --------------------------------------------------------------------------
   给非技术同事的提示：
   1) 想改主题颜色，只改下面 :root 里的 --变量 即可，全站会一起变。
   2) 想改字号/间距，改 --section-pad 等变量即可。
   3) 文件从上到下依次是：变量 → 基础 → 头部 → 页面区块 → 组件 → 页脚 → 手机端
   ========================================================================== */

/* ---------- 1. 设计变量（改这里就能改全站风格） ---------- */
:root {
  /* 品牌色：取自 Logo 的深绿与黄绿渐变 */
  --green: #1e9e63;          /* 主色：品牌绿 */
  --green-dark: #147a4a;     /* 深绿：按钮按下、深色标题 */
  --green-deep: #0a3f28;     /* 最深绿：深色区块背景 */
  --lime: #c3d247;           /* 黄绿：强调、点缀 */
  --lime-soft: #e6f0b8;      /* 浅黄绿：标签底色 */
  --grad: linear-gradient(120deg, #1e9e63 0%, #58bb52 45%, #c3d247 100%);

  /* 中性色 */
  --ink: #10281d;            /* 标题、正文深色 */
  --body: #4c6357;           /* 正文 */
  --muted: #7d9187;          /* 辅助说明 */
  --bg: #ffffff;
  --soft: #f4f9f5;           /* 浅底区块 */
  --line: #e3ebe4;           /* 分割线、边框 */

  /* 尺寸 */
  --max: 1200px;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(16, 60, 40, .07);
  --shadow-lg: 0 18px 50px rgba(16, 60, 40, .12);
  --section-pad: 92px;
}

/* ---------- 2. 基础重置 ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
               "Hiragino Sans GB", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-pad) 0; }
.section--soft { background: var(--soft); }
.center { text-align: center; }

/* 区块标题小组件 */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-dark); font-weight: 700;
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; border-radius: 3px; background: var(--grad);
}
.title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.subtitle { color: var(--muted); max-width: 760px; margin: 0 auto 48px; }

/* ---------- 3. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: .25s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(30, 158, 99, .28); }
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(30, 158, 99, .36); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--green); color: var(--green-dark); transform: translateY(-2px); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- 4. 顶部导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: .25s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgba(16, 60, 40, .05); }
.header__inner { display: flex; align-items: center; gap: 24px; height: 84px; }
.logo { flex: none; display: flex; align-items: center; }
.logo img { height: 56px; width: auto; }

.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  padding: 9px 14px; border-radius: 10px; font-size: 15px;
  color: var(--body); font-weight: 500; transition: .2s ease;
}
.nav a:hover { background: var(--soft); color: var(--green-dark); }
.nav a.is-active { color: var(--green-dark); background: var(--lime-soft); font-weight: 700; }

.header__actions { display: flex; align-items: center; gap: 12px; }
.lang {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; color: var(--body); background: #fff;
}
.lang:hover { border-color: var(--green); color: var(--green-dark); }

/* 汉堡按钮（仅手机端显示） */
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. 首屏 Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 92px 0 84px;
  background:
    radial-gradient(900px 520px at 82% -8%, rgba(195, 210, 71, .28), transparent 62%),
    radial-gradient(760px 460px at 8% 12%, rgba(30, 158, 99, .16), transparent 60%),
    linear-gradient(180deg, #f7fbf8 0%, #ffffff 68%);
}
/* 背景细网格，营造科技感 */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(30, 158, 99, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 158, 99, .07) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(680px 420px at 50% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(680px 420px at 50% 30%, #000 30%, transparent 78%);
}
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); letter-spacing: -.5px; }
.hero h1 .grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font-size: 18px; color: var(--body); max-width: 560px; }
.hero__en { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

/* 首屏数据条 */
.stats { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--ink); line-height: 1.2; }
.stat b i { font-style: normal; font-size: .55em; color: var(--green); margin-left: 4px; }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- 6. 卡片 / 网格 ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: .3s ease; position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cfe4d6; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--body); margin-bottom: 0; }
.card__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--lime-soft); color: var(--green-dark); font-size: 22px; margin-bottom: 18px;
}
.card__tag {
  display: inline-block; font-size: 12px; padding: 4px 12px; border-radius: 999px;
  background: var(--lime-soft); color: var(--green-dark); font-weight: 700; margin-bottom: 12px;
}

/* 深色卡片 */
.card--dark {
  background: linear-gradient(150deg, #0d4a30, #0a3f28);
  border-color: transparent; color: rgba(255, 255, 255, .82);
}
.card--dark h3, .card--dark h4 { color: #fff; }
.card--dark p { color: rgba(255, 255, 255, .76); }
.card--dark .card__icon { background: rgba(255, 255, 255, .12); color: var(--lime); }

/* ---------- 7. 标签 ---------- */
.tag {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 13px;
  background: #fff; border: 1px solid var(--line); color: var(--body); margin: 0 8px 8px 0;
}
.tag--lime { background: var(--lime-soft); border-color: transparent; color: var(--green-dark); font-weight: 600; }

/* ---------- 8. 五年计划图表（纯 CSS 柱状图） ---------- */
.chart { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; align-items: end; }
.chart__col { text-align: center; }
.chart__bar {
  height: 260px; display: flex; flex-direction: column-reverse;
  border-radius: 12px; overflow: hidden; background: #f1f5f2;
  box-shadow: inset 0 0 0 1px var(--line);
}
.chart__seg { width: 100%; }
.seg--trad { background: #8fa39a; }
.seg--new { background: var(--grad); }
.seg--trans { background: #dfe8e1; }
.chart__val { font-weight: 700; color: var(--ink); margin-top: 12px; font-size: 15px; }
.chart__val em { font-style: normal; color: var(--muted); font-size: 12px; display: block; font-weight: 500; }
.chart__year { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.legend { display: flex; gap: 22px; justify-content: center; margin-top: 32px; flex-wrap: wrap; font-size: 14px; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 8px; vertical-align: -2px; }

/* ---------- 9. 时间线 / 步骤 ---------- */
.timeline { border-left: 2px solid var(--line); padding-left: 28px; margin-left: 8px; }
.timeline__item { position: relative; padding-bottom: 34px; }
.timeline__item::before {
  content: ""; position: absolute; left: -37px; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; border: 3px solid var(--green);
}
.timeline__item h4 { margin-bottom: 6px; }
.timeline__item p { margin-bottom: 0; font-size: 15px; }

/* ---------- 10. 政策引用卡 ---------- */
.policy {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: 12px; padding: 22px 24px;
}
.policy__doc { font-size: 13px; color: var(--green-dark); font-weight: 700; margin-bottom: 8px; }
.policy p { margin: 0; font-size: 15px; }

/* ---------- 11. 联系区块 ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; }
.info-item { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px dashed var(--line); }
.info-item:last-child { border-bottom: 0; }
.info-item__ico {
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--soft); color: var(--green-dark); font-size: 18px;
}
.info-item h4 { margin: 0 0 2px; font-size: 15px; }
.info-item p { margin: 0; font-size: 15px; color: var(--body); }
.info-item a { word-break: break-all; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; font: inherit; font-size: 15px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; background: #fbfdfb; transition: .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(30, 158, 99, .12);
}
.field textarea { min-height: 130px; resize: vertical; }
.form__note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.form__msg { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 14px; }
.form__msg.is-ok { display: block; background: #eaf7ef; color: var(--green-dark); border: 1px solid #cfe9d9; }
.form__msg.is-err { display: block; background: #fdeeee; color: #a33; border: 1px solid #f6d6d6; }

/* ---------- 12. CTA 条 ---------- */
.cta {
  background: linear-gradient(120deg, #0d4a30 0%, #147a4a 55%, #4aa03a 100%);
  color: #fff; border-radius: 26px; padding: 56px 48px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta h2 { color: #fff; margin-bottom: 6px; }
.cta p { color: rgba(255, 255, 255, .82); margin: 0; }
.cta .btn--primary { background: #fff; color: var(--green-dark); box-shadow: none; }
.cta .btn--primary:hover { color: var(--green-dark); }

/* ---------- 13. 页脚 ---------- */
.footer { background: #0a2e1e; color: rgba(255, 255, 255, .7); padding: 68px 0 28px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer a { color: rgba(255, 255, 255, .72); }
.footer a:hover { color: var(--lime); }
.footer ul { list-style: none; padding: 0; }
.footer li { margin-bottom: 10px; font-size: 14px; }
.footer__logo { height: 62px; width: auto; margin-bottom: 20px; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 48px; padding-top: 24px;
  font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer__bottom a { color: inherit; text-decoration: none; }
.footer__bottom a:hover { color: var(--lime); text-decoration: underline; }

/* ---------- 14. 滚动入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 15. 首屏右侧示意图动画 ---------- */
.orbit { animation: spin 26s linear infinite; transform-origin: 200px 200px; }
@keyframes spin { to { transform: rotate(360deg); } }
.flow { stroke-dasharray: 6 10; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -32; } }
@media (prefers-reduced-motion: reduce) { .orbit, .flow { animation: none; } }

/* ---------- 15.5 图片展示 ---------- */
.photo { display: block; width: 100%; height: auto; }
.photo--16x9 { aspect-ratio: 16 / 9; object-fit: cover; }
.photo--4x3 { aspect-ratio: 4 / 3; object-fit: cover; }
.photo-wrap {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff;
}
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: 13px; color: var(--muted); text-align: center; padding: 10px 4px 2px; }
@media (max-width: 768px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- 16. 手机端适配 ---------- */
@media (max-width: 992px) {
  :root { --section-pad: 68px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 64px 0 56px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .chart { gap: 12px; }
  .chart__bar { height: 200px; }
}
/* 平板过渡区间（769–1040px）：改用汉堡菜单，避免导航与放大的 Logo 挤压溢出 */
@media (min-width: 769px) and (max-width: 1040px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 84px; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; background: #fff; padding: 10px 16px 18px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 8px; border-radius: 8px; border-bottom: 1px solid #f1f5f2; }
  .header__inner { justify-content: space-between; }
}

@media (max-width: 768px) {
  /* 手机端导航：点击汉堡展开 */
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; background: #fff; padding: 10px 16px 18px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 8px; border-radius: 8px; border-bottom: 1px solid #f1f5f2; }
  .header__inner { height: 76px; justify-content: space-between; }
  .header__actions { margin-left: auto; }
  .lang { padding: 7px 11px; font-size: 13px; }
  .logo img { height: 44px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .stats { gap: 26px; }
  .cta { padding: 36px 26px; border-radius: 20px; }
  .form { padding: 24px; }
  .chart { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .chart__val { font-size: 13px; }
  .chart__year { font-size: 12px; }
}
