/* =========================================================
   ENERGY STELLAR · 星能光伏  静态站样式
   ========================================================= */
:root {
  --navy: #14477c;
  --navy-deep: #0d3159;
  --navy-soft: #1d5a99;
  --orange: #e8862f;
  --orange-dark: #cf6f1c;
  --ink: #16202e;
  --body: #48566a;
  --line: #dfe7f0;
  --bg: #f4f7fb;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 12px 34px rgba(20, 71, 124, 0.1);
  --shadow-sm: 0 4px 16px rgba(20, 71, 124, 0.08);
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
    "Helvetica Neue", Arial, sans-serif;
  color: var(--body);
  background: var(--white);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  color: var(--ink);
  margin: 0 0 .6em;
  line-height: 1.3;
  font-weight: 700;
}

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; }
.brand .cn {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.brand .cn b {
  color: var(--navy);
  font-size: 17px;
  letter-spacing: .5px;
}
.brand .cn small {
  color: var(--body);
  font-size: 11.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.menu { display: flex; align-items: center; gap: 4px; }
.menu a {
  padding: 9px 15px;
  border-radius: 8px;
  font-size: 15.5px;
  color: var(--ink);
  font-weight: 500;
  transition: .18s;
}
.menu a:hover { color: var(--navy); background: var(--bg); }
.menu a.active { color: var(--navy); font-weight: 700; }
.menu .btn-quote {
  background: var(--orange);
  color: #fff;
  margin-left: 8px;
}
.menu .btn-quote:hover { background: var(--orange-dark); color: #fff; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 11px;
  font-size: 18px;
  color: var(--navy);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(13, 49, 89, 0.92) 0%, rgba(20, 71, 124, 0.78) 45%, rgba(20, 71, 124, 0.35) 100%),
    radial-gradient(circle at 82% 18%, rgba(232, 134, 47, 0.55), transparent 46%),
    linear-gradient(180deg, #10365f, #1d5a99);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -80px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 134, 47, 0.35), transparent 65%);
}
.hero .wrap {
  position: relative;
  z-index: 1;
  padding: 96px 24px 104px;
  max-width: 780px;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ffd7ac;
  border-left: 3px solid var(--orange);
  padding-left: 12px;
  margin-bottom: 20px;
}
.hero h1 {
  color: #fff;
  font-size: 44px;
  margin-bottom: 18px;
}
.hero h1 em {
  font-style: normal;
  color: var(--orange);
}
.hero p {
  font-size: 17px;
  color: #dbe7f5;
  max-width: 620px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 15.5px;
  transition: .2s;
  border: 2px solid transparent;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }

/* ---------- 通用区块 ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head .tag {
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 13px;
  text-transform: uppercase;
}
.section-head h2 { font-size: 33px; margin: 10px 0 12px; }
.section-head p { margin: 0; }

/* ---------- 关于我们（首页） ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-copy h2 { font-size: 32px; }
.about-copy .lead {
  font-size: 17px;
  color: var(--ink);
  font-weight: 500;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 26px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.stat b {
  display: block;
  font-size: 26px;
  color: var(--navy);
  line-height: 1.2;
}
.stat span { font-size: 13.5px; }

.about-visual {
  border-radius: var(--radius);
  background: linear-gradient(150deg, #14477c, #1d5a99 60%, #2a7bc0);
  padding: 34px;
  color: #fff;
  box-shadow: var(--shadow);
}
.about-visual h3 { color: #fff; font-size: 20px; }
.about-visual ul { list-style: none; margin: 0; padding: 0; }
.about-visual li {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.22);
  font-size: 15px;
  color: #e3edf9;
}
.about-visual li:last-child { border-bottom: 0; }
.about-visual li::before {
  content: "◆";
  color: var(--orange);
  font-size: 11px;
  line-height: 1.9;
}

/* ---------- 优势网格 ---------- */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.adv {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: .22s;
}
.adv:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.adv .ico {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--navy), var(--navy-soft));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.adv h3 { font-size: 18px; margin-bottom: 8px; }
.adv p { margin: 0; font-size: 14.5px; }

/* ---------- 产品分类卡片 ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.cat {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .24s;
}
.cat:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cat-media {
  height: 210px;
  background: linear-gradient(180deg, #eef4fa, #ffffff);
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
}
.cat-media img { max-height: 175px; width: auto; }
.cat-body { padding: 24px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.cat-body h3 { font-size: 19px; margin-bottom: 8px; }
.cat-body p { font-size: 14.5px; margin-bottom: 16px; }
.cat-body .more {
  margin-top: auto;
  color: var(--navy);
  font-weight: 600;
  font-size: 14.5px;
}
.cat-body .more::after { content: " →"; color: var(--orange); }

/* ---------- 产品列表（产品页） ---------- */
.prod-block { margin-bottom: 66px; }
.prod-block:last-child { margin-bottom: 0; }
.prod-block-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 28px;
}
.prod-block-head h2 { margin: 0; font-size: 25px; }
.prod-block-head span { color: var(--orange); font-weight: 700; font-size: 13px; letter-spacing: 2px; }
.prod-block-head .en { color: var(--body); font-size: 14px; margin-left: auto; }

.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.prod {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
  transition: .2s;
}
.prod:hover { box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.prod .pic {
  height: 165px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.prod .pic img { max-height: 155px; width: auto; }
.prod h4 { font-size: 15px; margin: 0 0 6px; }
.prod .brand { font-size: 12.5px; color: var(--orange); font-weight: 600; letter-spacing: .5px; }

/* ---------- 内页头 ---------- */
.page-head {
  background:
    linear-gradient(115deg, rgba(13, 49, 89, 0.94), rgba(29, 90, 153, 0.82)),
    radial-gradient(circle at 80% 0%, rgba(232, 134, 47, 0.4), transparent 55%);
  color: #fff;
  padding: 74px 0;
}
.page-head h1 { color: #fff; font-size: 36px; margin-bottom: 10px; }
.page-head p { color: #d5e3f4; margin: 0; max-width: 640px; }
.crumb { font-size: 13.5px; color: #b9cfe8; margin-bottom: 16px; }
.crumb a:hover { color: var(--orange); }

/* ---------- 服务流程 ---------- */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.flow-item {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 26px 22px;
}
.flow-item .num {
  font-size: 34px;
  font-weight: 800;
  color: var(--line);
  line-height: 1;
  margin-bottom: 12px;
}
.flow-item h3 { font-size: 17px; margin-bottom: 6px; }
.flow-item p { margin: 0; font-size: 14px; }

/* ---------- 联系信息 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (min-width: 981px) {
  .contact-grid.two { grid-template-columns: repeat(2, 1fr); }
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.contact-card .ico {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #f1f5fa;
  color: #8b9bb1;
  display: grid; place-items: center;
  font-size: 17px; margin-bottom: 12px;
}
.contact-card h3 { font-size: 15.5px; margin-bottom: 6px; color: #3a4759; }
.contact-card p { margin: 0; font-size: 14px; color: #7c8ba1; word-break: break-all; }
.contact-card a { color: #5c6b80; }
.contact-card a:hover { color: var(--navy); }

.scope-list {
  columns: 2;
  column-gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.scope-list li {
  padding: 9px 0 9px 22px;
  position: relative;
  font-size: 15px;
  break-inside: avoid;
  border-bottom: 1px dashed var(--line);
}
.scope-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy-soft));
  color: #fff;
  border-radius: var(--radius);
  padding: 52px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta h2 { color: #fff; margin: 0 0 8px; font-size: 26px; }
.cta p { margin: 0; color: #d3e2f4; }

/* ---------- 页脚 ---------- */
.footer {
  background: #0e2340;
  color: #9fb4cd;
  padding: 62px 0 0;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 46px;
  padding-bottom: 44px;
}
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer a:hover { color: var(--orange); }
.footer .fcontact-list { font-size: 13.5px; }
.footer .fcontact-list li { margin-bottom: 8px; color: #8095b0; }
.footer .fcontact-list a { color: #9db1c8; }
.footer .fcontact-list a:hover { color: #d3e0f0; }
.footer .flogo {
  background: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  display: inline-block;
  margin-bottom: 18px;
}
.footer .flogo img { height: 36px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer .fcontact p { margin: 0 0 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
  font-size: 13px;
  color: #7d95b3;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-bottom a { color: #9db1c8; text-decoration: none; }
.footer-bottom a:hover { color: var(--orange); text-decoration: underline; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 34px; }
}

@media (max-width: 700px) {
  .nav-toggle { display: inline-block; }
  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px;
    gap: 4px;
    display: none;
  }
  .menu.open { display: flex; }
  .menu .btn-quote { margin-left: 0; text-align: center; }
  .menu a { padding: 12px 10px; }
  .nav { position: relative; }
  .adv-grid, .cat-grid, .prod-grid, .flow { grid-template-columns: 1fr; }
  .scope-list { columns: 1; }
  .section { padding: 60px 0; }
  .hero .wrap { padding: 68px 24px 76px; }
  .hero h1 { font-size: 29px; }
  .section-head h2 { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta { padding: 38px 26px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}
