/*
Theme Name: 中碳瑞鼎官网 ZTRD Official
Description: 北京中碳瑞鼎科技有限公司（能碳鼎智慧综合管理平台）品牌官网主题：8 个页面 1:1 还原设计稿，启用后自动建页并配置静态首页与固定链接，无插件依赖、无构建依赖。
Author: 中碳瑞鼎
Version: 1.1.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: ztrd
*/

/* ==========================================================================
   北京中碳瑞鼎科技有限公司 · 能碳鼎智慧综合管理平台 —— 全站样式
   结构：1 Tokens → 2 基础 → 3 通用组件 → 4 页面区块 → 5 动效与降级
   ========================================================================== */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* 色板（需求文档 §2） */
  --c-primary-deep: #0B2A4A;   /* 深邃主蓝 */
  --c-primary: #1E6FE0;        /* 科技亮蓝 */
  --c-primary-dark: #1558B8;
  --c-accent: #12B886;         /* 能源青绿（点缀） */
  --c-bg-tint: #EAF2FB;        /* 浅天蓝底 */
  --c-text: #1F2933;           /* 正文深灰 */
  --c-text-2: #52606D;
  --c-text-3: #7B8794;
  --c-white: #FFFFFF;
  --c-line: #D9E2EC;
  --c-bg-soft: #F5F8FC;
  --c-danger: #E5484D;

  --grad-cold: linear-gradient(135deg, #0B2A4A 0%, #12406E 55%, #1E6FE0 135%);

  /* 字号阶梯 */
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 15px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 20px;
  --fs-2xl: 24px;
  --fs-3xl: 30px;
  --fs-display: clamp(32px, 4.6vw, 48px);
  --fs-h2: clamp(24px, 3vw, 32px);

  /* 间距体系（4px 基数） */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --section-pad: clamp(60px, 9vw, 108px);

  /* 圆角 */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-full: 999px;

  /* 阴影（细边框浅阴影） */
  --sh-sm: 0 1px 2px rgba(11, 42, 74, .05), 0 2px 8px rgba(11, 42, 74, .05);
  --sh-md: 0 6px 18px rgba(11, 42, 74, .10), 0 2px 6px rgba(11, 42, 74, .06);
  --sh-lg: 0 18px 44px rgba(11, 42, 74, .18);

  /* 布局与字体 */
  --container: 1200px;
  --header-h: 72px;
  --font-sans: "Source Han Sans SC", "思源黑体", "PingFang SC", "Microsoft YaHei", "微软雅黑", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-num: "Bahnschrift", "DIN Alternate", "Avenir Next", "Segoe UI", Arial, sans-serif;
}

/* ---------- 2. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-white);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-weight: 700; color: var(--c-primary-deep); line-height: 1.35; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-primary-deep);
  color: #fff;
  padding: 10px 18px;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- 3. 通用组件 ---------- */

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.4;
  transition: background var(--tr, .25s ease), color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn-primary { background: var(--c-primary); color: var(--c-white); }
.btn-primary:hover { background: var(--c-primary-dark); transform: translateY(-2px); box-shadow: var(--sh-md); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: var(--c-white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.btn-outline { border-color: var(--c-primary); color: var(--c-primary); }
.btn-outline:hover { background: var(--c-primary); color: var(--c-white); transform: translateY(-2px); }
.btn-lg { padding: 14px 34px; font-size: var(--fs-lg); }
.btn-sm { padding: 8px 20px; font-size: var(--fs-sm); }

/* 占位符标记【待补充：…】 */
.ph {
  font-style: normal;
  font-size: .92em;
  padding: 1px 8px 2px;
  background: #EEF2F7;
  color: var(--c-text-3);
  border-bottom: 1px dashed #B6C2CF;
  border-radius: 4px;
  white-space: nowrap;
}

/* 图片占位槽：冷蓝渐变 + 细网格/数据流纹理 */
.img-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--r-md);
  color: rgba(255, 255, 255, .82);
  font-size: var(--fs-sm);
  letter-spacing: 1px;
  text-align: center;
  padding: var(--sp-4);
  background-image:
    radial-gradient(ellipse at 82% 0%, rgba(30, 111, 224, .38), transparent 55%),
    repeating-linear-gradient(60deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 34px),
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(135deg, #0D3054 0%, #16497F 60%, #1E6FE0 140%);
  background-size: auto, auto, 28px 28px, 28px 28px, auto;
}
.ratio-2-1 { aspect-ratio: 2 / 1; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.img-slot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.img-slot.img-fill { padding: 0; }
.img-slot img.obj-top { object-position: 50% 15%; }

/* 合规口径提示 */
.note-scope {
  margin-top: var(--sp-6);
  max-width: 760px;
  padding: var(--sp-3) var(--sp-4);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--r-sm);
  background: rgba(18, 184, 134, .07);
  color: var(--c-text-2);
  font-size: var(--fs-sm);
}
.note-scope strong { color: var(--c-text); font-weight: 600; }
.note-scope--nowrap { max-width: none; white-space: nowrap; font-size: var(--fs-xs); }
@media (max-width: 1024px) { .note-scope--nowrap { max-width: 760px; white-space: normal; } }

/* 文字链接 */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-primary);
  font-weight: 600;
  font-size: var(--fs-base);
}
.text-link span[aria-hidden] { transition: transform .25s ease; }
.text-link:hover span[aria-hidden] { transform: translateX(4px); }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* 区块骨架 */
.section { padding-block: var(--section-pad); }
.section-tint { background: var(--c-bg-tint); }
.section-deep {
  background: var(--c-primary-deep);
  color: rgba(255, 255, 255, .85);
  position: relative;
  overflow: hidden;
}
.section-deep::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 85% 10%, rgba(30, 111, 224, .22), transparent 55%);
  pointer-events: none;
}
.section-deep > .container { position: relative; }

.section-head { max-width: 760px; margin-bottom: var(--sp-7); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-primary);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 3px;
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--c-accent);
}
.section-head.is-center .eyebrow { justify-content: center; }
.section-head h2 { font-size: var(--fs-h2); }
.section-lead { margin-top: var(--sp-3); color: var(--c-text-2); font-size: var(--fs-md); }
.section-deep .section-head h2 { color: var(--c-white); }
.section-deep .section-lead { color: rgba(255, 255, 255, .72); }

/* 内页页头（后续内页复用） */
.page-hero {
  background: var(--c-bg-tint);
  padding: calc(var(--header-h) + var(--sp-8)) 0 var(--sp-7);
  border-bottom: 1px solid var(--c-line);
}
.page-hero h1 { font-size: var(--fs-h2); }
.crumbs { margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--c-text-3); }
.crumbs a:hover { color: var(--c-primary); }

/* 内页顶部照片 banner：图随页而异（banner-{slug}.jpg），深色渐变压暗保证白字可读 */
.page-hero--photo {
  position: relative;
  background-color: var(--c-primary-deep);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 0;
}
.page-hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 42, 74, .84) 0%, rgba(11, 42, 74, .58) 52%, rgba(11, 42, 74, .34) 100%);
}
.page-hero--photo .container { position: relative; }
.page-hero--photo h1 { color: var(--c-white); }
.page-hero--photo .crumbs { color: rgba(255, 255, 255, .72); }
.page-hero--photo .crumbs a { color: rgba(255, 255, 255, .85); }
.page-hero--photo .crumbs a:hover { color: var(--c-white); }
.page-hero--photo .page-hero-lead { color: rgba(255, 255, 255, .88); }
.page-hero--about     { background-image: url("assets/img/banner-about.jpg"); }
.page-hero--business  { background-image: url("assets/img/banner-business.jpg"); }
.page-hero--solutions { background-image: url("assets/img/banner-solutions.jpg"); }
.page-hero--cases     { background-image: url("assets/img/banner-cases.jpg"); }
.page-hero--news      { background-image: url("assets/img/banner-news.jpg"); }
.page-hero--careers   { background-image: url("assets/img/banner-careers.jpg"); }
.page-hero--contact   { background-image: url("assets/img/banner-contact.jpg"); }

/* ---------- 4. 页面区块 ---------- */

/* 4.1 Header（3.2-1，模板 part：header） */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled { box-shadow: 0 2px 14px rgba(11, 42, 74, .08); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: var(--fs-lg); color: var(--c-primary-deep); letter-spacing: 1px; }
.brand-text small { font-size: var(--fs-xs); color: var(--c-text-3); letter-spacing: .5px; }

.site-nav { display: flex; align-items: center; gap: var(--sp-3); }
.nav-menu { display: flex; align-items: center; }
.nav-link {
  position: relative;
  display: block;
  padding: 8px 13px;
  font-size: var(--fs-base);
  color: var(--c-text);
  transition: color .2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 2px;
  background: var(--c-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-link:hover, .nav-link.is-current { color: var(--c-primary); }
.nav-link:hover::after, .nav-link.is-current::after { transform: scaleX(1); }
.nav-cta { margin-left: var(--sp-2); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--c-primary-deep);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .hamburger { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--sh-md);
    padding: var(--sp-3) var(--sp-5) var(--sp-5);
  }
  .site-nav.is-open { display: flex; }
  .nav-menu { flex-direction: column; align-items: stretch; }
  .nav-link { padding: 12px 4px; border-bottom: 1px solid var(--c-bg-soft); }
  .nav-link::after { display: none; }
  .nav-cta { margin: var(--sp-4) 0 0; justify-content: center; }
}

/* 4.2 Hero 首屏（3.2-2，front-page.php 专用） */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(86vh, 720px);
  padding: 100px 0 170px;
  background: var(--grad-cold);
  color: var(--c-white);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-flow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 80%, transparent 100%);
}
.hero-flow::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(59, 150, 246, .14), transparent);
  animation: hero-flow 9s linear infinite;
}
@keyframes hero-flow {
  from { transform: translateX(-40vw); }
  to { transform: translateX(180vw); }
}
.hero-skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
}
.hero-inner { position: relative; max-width: 860px; }
.hero-eyebrow {
  font-size: var(--fs-md);
  letter-spacing: 4px;
  color: rgba(255, 255, 255, .78);
  margin-bottom: var(--sp-4);
}
.hero-title {
  font-size: var(--fs-display);
  color: var(--c-white);
  letter-spacing: 1px;
  margin-bottom: var(--sp-5);
}
.hero-slogan {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-xl);
  color: rgba(255, 255, 255, .95);
  margin-bottom: var(--sp-5);
}
.hero-chip {
  display: inline-block;
  padding: 4px 16px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .08);
  font-size: var(--fs-md);
}
.hero-uvp {
  max-width: 680px;
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, .75);
  margin-bottom: var(--sp-7);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

@media (max-width: 640px) {
  .hero { padding: 72px 0 130px; min-height: 0; }
  .hero-slogan { font-size: var(--fs-lg); }
}

/* 4.2.1 Hero 亮色变体：banner 实景图背景，文字居左 */
.hero--light {
  min-height: min(76vh, 640px);
  padding: 96px 0;
  background: var(--c-bg-tint);
  color: var(--c-primary-deep);
}
.hero--light .hero-bg {
  background: url("assets/img/hero-banner.png") right center / cover no-repeat;
}
.hero--light .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 26%),
    linear-gradient(90deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .84) 34%, rgba(255, 255, 255, .42) 64%, rgba(255, 255, 255, .02) 100%);
}
.hero--light .hero-inner { max-width: var(--container); }
.hero--light .hero-inner > * { max-width: 640px; }
.hero--light .hero-eyebrow { color: var(--c-primary); letter-spacing: 3px; }
.hero--light .hero-title { color: var(--c-primary-deep); }
.hero--light .hero-slogan { color: var(--c-primary-deep); font-weight: 600; }
.hero--light .hero-chip {
  border-color: rgba(30, 111, 224, .35);
  background: rgba(30, 111, 224, .08);
  color: var(--c-primary-dark);
  font-weight: 600;
}
.hero--light .hero-uvp { color: var(--c-text-2); }

@media (max-width: 640px) {
  .hero--light { padding: 64px 0; min-height: 0; }
  .hero--light .hero-bg { background-position: 72% center; }
  .hero--light .hero-bg::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .84) 55%, rgba(255, 255, 255, .6) 100%);
  }
}

/* 4.3 数据背书墙（3.2-3） */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.stat {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: var(--sp-6) var(--sp-5);
  text-align: center;
}
.stat-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--c-bg-tint);
  color: var(--c-primary);
  margin-bottom: var(--sp-4);
}
.stat-value {
  display: block;
  font-family: var(--font-num);
  font-size: 40px;
  font-weight: 700;
  color: var(--c-primary-deep);
  line-height: 1.2;
}
.stat-unit { font-size: var(--fs-md); color: var(--c-text-2); margin-left: 4px; font-family: var(--font-sans); }
.stat-label { margin-top: var(--sp-2); color: var(--c-text-2); font-size: var(--fs-md); }

@media (max-width: 860px) { .stats-grid { grid-template-columns: 1fr; } }

/* 4.4 核心业务入口（3.2-4） */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.biz-card {
  position: relative;
  display: block;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.biz-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-md);
  border-color: rgba(30, 111, 224, .45);
}
.biz-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--c-bg-tint);
  color: var(--c-primary);
  transition: background .3s ease, color .3s ease;
}
.biz-card:hover .biz-icon { background: var(--c-primary); color: var(--c-white); }
.biz-card h3 { margin: var(--sp-4) 0 var(--sp-2); font-size: var(--fs-lg); }
.biz-card p { font-size: var(--fs-base); color: var(--c-text-2); }
.biz-card::after {
  content: "→";
  position: absolute;
  right: 20px;
  bottom: 16px;
  color: var(--c-primary);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .3s ease, transform .3s ease;
}
.biz-card:hover::after { opacity: 1; transform: translateX(0); }

@media (max-width: 960px) { .biz-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .biz-grid { grid-template-columns: 1fr; } }

/* 4.5 产品与平台入口（3.2-5） */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.product-media { display: block; }
.product-media .img-slot { border-radius: 0; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: var(--sp-5); }
.product-body h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-3); }
.product-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: var(--sp-2);
  color: var(--c-text-2);
  font-size: var(--fs-base);
}
.product-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: var(--r-full);
  background: var(--c-accent);
}
.product-tag {
  align-self: flex-start;
  margin-top: var(--sp-3);
  padding: 3px 12px;
  border-radius: var(--r-full);
  background: var(--c-bg-tint);
  color: var(--c-primary);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.product-body .text-link { margin-top: auto; padding-top: var(--sp-4); }

@media (max-width: 960px) { .product-grid { grid-template-columns: 1fr; } }

/* 4.6 架构示意区（3.2-6） */
.arch-wrap {
  max-width: 880px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.arch-layer {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: var(--sp-5) var(--sp-6);
}
.arch-tag {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  color: var(--c-white);
  font-size: var(--fs-2xl);
  font-weight: 700;
}
.arch-tag--cloud { background: #1E6FE0; }
.arch-tag--net { background: #1A5CBE; }
.arch-tag--edge { background: #14478F; }
.arch-tag--device { background: #0B2A4A; }
.arch-name { flex-shrink: 0; width: 172px; font-size: var(--fs-lg); }
.arch-desc { color: var(--c-text-2); font-size: var(--fs-base); }

@media (max-width: 680px) {
  .arch-layer { flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
  .arch-name { width: auto; }
}

/* 4.7 效益测算摘要（3.2-7） */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.benefit-card {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: var(--sp-6) var(--sp-5);
  text-align: center;
}
.benefit-label { color: var(--c-text-2); font-size: var(--fs-md); margin-bottom: var(--sp-3); }
.benefit-value {
  font-family: var(--font-num);
  font-size: 42px;
  font-weight: 700;
  color: var(--c-primary-deep);
  line-height: 1.2;
}
.benefit-value .unit { font-size: var(--fs-lg); color: var(--c-text-2); font-family: var(--font-sans); }
.benefit-more { margin-top: var(--sp-6); text-align: center; }
.benefit-hint { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--c-text-3); }
.benefit-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .benefit-grid--4 { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 860px) { .benefit-grid { grid-template-columns: 1fr; } }

/* 4.8 关于我们简介（3.2-8） */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: var(--sp-8);
  align-items: center;
}
.about-tagline {
  position: relative;
  font-size: var(--fs-2xl);
  padding-left: 18px;
  margin-bottom: var(--sp-5);
}
.about-tagline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--c-primary), var(--c-accent));
}
.about-copy p { color: var(--c-text-2); margin-bottom: var(--sp-4); }
.about-actions { margin-top: var(--sp-6); }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
}

/* 4.9 联系/转化区（3.2-9） */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: var(--sp-8);
  align-items: start;
}
.contact-info h2 { color: var(--c-white); font-size: var(--fs-h2); margin-bottom: var(--sp-4); }
.contact-info > p { color: rgba(255, 255, 255, .72); margin-bottom: var(--sp-6); }
.contact-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.contact-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .1);
  color: var(--c-white);
}
.contact-label { display: block; font-size: var(--fs-sm); color: rgba(255, 255, 255, .6); }
.contact-value { font-size: var(--fs-lg); color: var(--c-white); font-weight: 600; }
.qr-row { display: flex; align-items: center; gap: var(--sp-4); }
.qr-row .img-slot { width: 218px; flex-shrink: 0; background: var(--c-white); padding: 0; }
.qr-row .img-slot img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 480px) { .qr-row { flex-direction: column; align-items: flex-start; } }

/* 高德地图嵌入 */
.contact-map__frame { display: block; width: 100%; height: clamp(210px, 26vw, 280px); border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-bg-soft); }
.contact-map__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-4); }
@media (max-width: 860px) { .contact-map__frame { height: clamp(190px, 58vw, 260px); } }

.form-card {
  background: var(--c-white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: var(--sp-6);
}
.form-field { margin-bottom: var(--sp-5); }
.form-field label {
  display: block;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--c-primary-deep);
  margin-bottom: var(--sp-2);
}
.req { color: var(--c-danger); margin-left: 2px; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: var(--fs-md);
  color: var(--c-text);
  background: var(--c-white);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field textarea { min-height: 96px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(30, 111, 224, .15);
}
.field-error { display: none; margin-top: 6px; font-size: var(--fs-sm); color: var(--c-danger); }
.form-field.is-invalid input,
.form-field.is-invalid textarea { border-color: var(--c-danger); }
.form-field.is-invalid .field-error { display: block; }
.form-card .btn { width: 100%; }
.form-privacy { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--c-text-3); text-align: center; }

.form-success { display: none; text-align: center; padding: var(--sp-6) 0; }
.form-success.show { display: block; }
.form-success .success-icon { color: var(--c-accent); margin: 0 auto var(--sp-4); }
.form-success h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.form-success p { color: var(--c-text-2); font-size: var(--fs-base); }
.form-success .demo-note { margin-top: var(--sp-4); font-size: var(--fs-xs); color: var(--c-text-3); }

@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: var(--sp-6); } }

/* 4.10 Footer（3.2-10，模板 part：footer） */
.site-footer { background: #08213C; color: rgba(255, 255, 255, .72); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.3fr;
  gap: var(--sp-7);
  padding-block: var(--sp-8) var(--sp-7);
}
.footer-brand { display: flex; flex-direction: column; gap: var(--sp-4); }
.footer-brand .brand-text strong { color: var(--c-white); }
.footer-brand .brand-text small { color: rgba(255, 255, 255, .55); }
.footer-brand .brand-mark { background: var(--c-white); border-radius: var(--r-md); padding: 5px 7px; box-sizing: content-box; }
.footer-brand p { font-size: var(--fs-base); max-width: 340px; }
.site-footer h4 {
  color: var(--c-white);
  font-size: var(--fs-base);
  letter-spacing: 2px;
  margin-bottom: var(--sp-4);
}
.footer-nav ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2) var(--sp-5); }
.footer-nav a, .footer-contact a {
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, .72);
  transition: color .2s ease;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--c-white); text-decoration: underline; text-underline-offset: 4px; }
.footer-contact li { margin-bottom: var(--sp-3); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: var(--sp-4);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, .55);
}
.site-footer .ph {
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .6);
  border-bottom-color: rgba(255, 255, 255, .38);
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .footer-bottom { flex-direction: column; }
}

/* ---------- 5. 动效与降级 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

html.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .hero-flow::after { animation: none; }
  .btn, .biz-card, .product-card, .biz-icon { transition: none; }
}

/* ---------- 6. 内页组件 ---------- */

/* 页头引导语 */
.page-hero-lead { margin-top: var(--sp-2); color: var(--c-text-2); max-width: 640px; }

/* 信息提示条 */
.info-note {
  padding: var(--sp-3) var(--sp-4);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--r-sm);
  background: var(--c-bg-soft);
  color: var(--c-text-2);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-6);
}

/* 分类标签（占位展示） */
.filter-tabs { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.filter-tab {
  padding: 8px 20px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-full);
  background: var(--c-white);
  color: var(--c-text-2);
  font-size: var(--fs-base);
}
.filter-tab.is-active { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-white); }

/* 时间线 / 步骤（发展路线 & EPC 五步） */
.timeline { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--sp-4); }
.timeline::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--c-line);
}
.timeline-item { position: relative; text-align: center; }
.timeline-dot {
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  margin: 0 auto var(--sp-4);
  display: grid;
  place-items: center;
  border-radius: var(--r-full);
  background: var(--c-white);
  border: 2px solid var(--c-primary);
  color: var(--c-primary);
  font-family: var(--font-num);
  font-size: var(--fs-md);
  font-weight: 700;
}
.timeline-item h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-1); }
.timeline-item p { font-size: var(--fs-sm); color: var(--c-text-2); }

@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr; gap: var(--sp-5); }
  .timeline::before { top: 12px; bottom: 12px; left: 24px; right: auto; width: 2px; height: auto; }
  .timeline-item { display: grid; grid-template-columns: 50px 1fr; column-gap: var(--sp-4); text-align: left; }
  .timeline-dot { margin: 0; }
}

/* 产品图文行 */
.product-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
.product-row + .product-row { margin-top: var(--sp-8); }
.product-row--flip .product-row-media { order: 2; }
.product-row-body h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-4); }
.product-row-body > p { color: var(--c-text-2); margin-bottom: var(--sp-4); }
.sell-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-5); }
.sell-chip {
  padding: 4px 14px;
  border-radius: var(--r-full);
  background: var(--c-bg-tint);
  color: var(--c-primary-dark);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.product-row-body .btn { margin-top: var(--sp-2); }
@media (max-width: 860px) {
  .product-row { grid-template-columns: 1fr; gap: var(--sp-5); }
  .product-row--flip .product-row-media { order: 0; }
}

/* 四列卡片栅格（综合能碳服务） */
.biz-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .biz-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .biz-grid--4 { grid-template-columns: 1fr; } }

/* 非链接卡片 */
.biz-card--static { cursor: default; }
.biz-card--static::after { display: none; }

/* 案例卡片 */
.case-card {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.case-card .img-slot { border-radius: 0; aspect-ratio: 16 / 10; }
.case-body { padding: var(--sp-5); }
.case-meta { font-size: var(--fs-sm); color: var(--c-primary); margin-bottom: var(--sp-1); }
.case-body h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.case-body p { color: var(--c-text-2); font-size: var(--fs-base); }

/* 资讯列表 */
.news-list { border-top: 1px solid var(--c-line); }
.news-item {
  display: flex;
  gap: var(--sp-6);
  align-items: baseline;
  padding: var(--sp-5) var(--sp-2);
  border-bottom: 1px solid var(--c-line);
}
.news-date { flex-shrink: 0; width: 110px; font-family: var(--font-num); color: var(--c-text-3); }
.news-date .ph { white-space: normal; }
.news-body h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-1); }
.news-body p { color: var(--c-text-2); }
@media (max-width: 640px) {
  .news-item { flex-direction: column; gap: var(--sp-2); }
  .news-date { width: auto; }
}

/* 岗位列表 */
.job-list { border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; }
.job-item { border-bottom: 1px solid var(--c-line); }
.job-item:last-child { border-bottom: 0; }
.job-item .job-row { border-bottom: 0; }
.job-row {
  display: grid;
  grid-template-columns: 1.1fr .7fr 1.6fr;
  gap: var(--sp-4);
  align-items: center;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--c-line);
}
.job-row:last-child { border-bottom: 0; }
.job-row--head { background: var(--c-bg-tint); color: var(--c-primary-deep); font-weight: 600; }
.job-title { font-weight: 600; color: var(--c-primary-deep); }
.job-loc, .job-req { color: var(--c-text-2); }
.job-detail { border-top: 1px dashed var(--c-line); }
.job-detail summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--c-primary);
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.job-detail summary::-webkit-details-marker { display: none; }
.job-detail summary::before { content: "▸"; transition: transform .2s ease; }
.job-detail[open] summary::before { transform: rotate(90deg); }
.job-detail-body { padding: 0 var(--sp-5) var(--sp-5); }
.job-detail-body h4 { margin: 0 0 var(--sp-2); font-size: var(--fs-md); color: var(--c-primary-deep); }
.job-detail-body ul { margin: 0 0 var(--sp-4); padding-left: 1.3em; color: var(--c-text-2); font-size: var(--fs-sm); }
.job-detail-body li { margin-bottom: 6px; line-height: 1.8; }
.job-detail-body ul:last-child { margin-bottom: 0; }
@media (max-width: 680px) {
  .job-row { grid-template-columns: 1fr; gap: var(--sp-1); }
  .job-row--head { display: none; }
}

/* 底部转化条 */
.cta-strip {
  background: var(--c-bg-tint);
  border-radius: var(--r-lg);
  padding: var(--sp-8) var(--sp-5);
  text-align: center;
}
.cta-strip h2 { font-size: var(--fs-h2); margin-bottom: var(--sp-3); }
.cta-strip p { color: var(--c-text-2); max-width: 600px; margin: 0 auto var(--sp-6); }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--sp-4); }
.cta-strip--quote h2 { font-size: clamp(20px, 2.6vw, 28px); }

/* 联系我们页 */
.contact-page-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--sp-8); align-items: start; }
.contact-side .contact-icon { background: var(--c-bg-tint); color: var(--c-primary); }
.contact-side .contact-label { color: var(--c-text-3); }
.contact-side .contact-value { color: var(--c-text); }
.contact-map { margin-top: var(--sp-6); }
@media (max-width: 860px) { .contact-page-grid { grid-template-columns: 1fr; } }

/* 使命愿景文字 */
.mission-text {
  text-align: center;
  max-width: none;
  margin: 0 auto;
  color: rgba(255, 255, 255, .78);
  font-size: var(--fs-lg);
  white-space: nowrap;
}
@media (max-width: 1024px) {
  .mission-text { max-width: 640px; white-space: normal; }
}

/* 通用内容回退（index.php / page.php 兜底模板） */
.prose { max-width: 760px; }
.prose p { color: var(--c-text-2); line-height: 1.9; margin: 0 0 var(--sp-4); }
.prose h2 { margin: var(--sp-7) 0 var(--sp-4); }
