/* ==========================================================================
   富翔建材 · 共享样式表
   主题：绿色环保 · 简洁美观
   说明：本文件为三个页面（首页 / 介绍页 / 关于我们）共用的样式。
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --primary: #1e7d45;        /* 主色：环保绿 */
  --primary-deep: #145c31;   /* 深绿：深色区块 */
  --primary-soft: #e9f5ee;   /* 浅绿：浅色背景 */
  --primary-mist: #f4faf6;   /* 极浅绿：页面底色 */
  --accent: #f2a516;         /* 强调色：琥珀金（克制使用） */
  --ink: #1c2b22;            /* 主文字 */
  --ink-soft: #5b6b62;       /* 次要文字 */
  --line: #e0ebe4;           /* 分割线 */
  --white: #ffffff;
  --shadow-sm: 0 2px 10px rgba(20, 92, 49, 0.06);
  --shadow-md: 0 12px 30px rgba(20, 92, 49, 0.10);
  --shadow-lg: 0 24px 60px rgba(20, 92, 49, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC",
          "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--primary-mist);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- 排版工具 ---------- */
.section { padding: 92px 0; }
.section.tint { background: var(--white); }

.sec-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }

.sec-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.sec-head .eyebrow::before,
.sec-head .eyebrow::after {
  content: "";
  width: 24px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  opacity: .55;
}

.sec-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.sec-head .sub {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s ease, box-shadow .3s ease;
  background: rgba(244, 250, 246, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

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

.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, #2f9d5e 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(30, 125, 69, 0.28);
}
.brand .b-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.2;
}
.brand .b-name small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.main-nav ul { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  position: relative;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 2px;
  transition: color .25s;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2.5px;
  border-radius: 2px;
  background: var(--primary);
  transition: width .25s ease;
}
.main-nav a:hover { color: var(--primary); }
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--primary); font-weight: 600; }

/* 移动端菜单 */
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero（首页） ---------- */
.hero {
  position: relative;
  padding: 150px 0 90px;
  background:
    radial-gradient(900px 500px at 85% 15%, rgba(47, 157, 94, 0.12), transparent 60%),
    radial-gradient(700px 420px at 5% 85%, rgba(30, 125, 69, 0.10), transparent 55%),
    linear-gradient(180deg, #eef7f1 0%, var(--primary-mist) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 360px; height: 360px;
  border: 46px solid rgba(30, 125, 69, 0.07);
  border-radius: 50%;
}
.hero::after {
  content: "";
  position: absolute;
  left: -90px; bottom: -140px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(242, 165, 22, 0.06);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 1px;
  margin: 18px 0 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--primary);
  position: relative;
}
.hero .lead {
  font-size: 16.5px;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.hero-tags span {
  font-size: 13px;
  color: var(--primary-deep);
  background: var(--primary-soft);
  border: 1px solid #cfe7d9;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 500;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(30, 125, 69, 0.28); }
.btn-primary:hover { background: var(--primary-deep); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--primary-deep); border: 1.5px solid #bfe0cd; }
.btn-ghost:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-2px); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

.hero-media { position: relative; }
.hero-media .frame {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
}
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

.float-badge {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
}
.float-badge small { display: block; font-size: 11px; color: var(--ink-soft); font-weight: 400; }
.float-badge .badge-ico {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.float-badge.tl { top: 18px; left: -18px; }
.float-badge.br { bottom: 26px; right: -12px; }

/* ---------- 数据统计 ---------- */
.stats {
  background: var(--primary-deep);
  color: #fff;
  padding: 54px 0;
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(500px 260px at 15% 0%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(600px 300px at 90% 100%, rgba(47,157,94,.35), transparent 60%);
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-num i { font-style: normal; color: var(--accent); }
.stat-label { margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.82); letter-spacing: 1px; }

/* ---------- 核心优势卡片 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.card-feature {
  background: #fff;
  border-radius: var(--radius);
  padding: 34px 26px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s;
}
.card-feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-feature .ico {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary-soft), #d5ecdf);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-feature h3 { font-size: 18px; margin-bottom: 10px; }
.card-feature p { font-size: 14px; color: var(--ink-soft); }

/* ---------- 产品网格 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card-product {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
}
.card-product:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-product .thumb { overflow: hidden; position: relative; }
.card-product .thumb img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s ease; }
.card-product:hover .thumb img { transform: scale(1.06); }
.card-product .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-product h3 { font-size: 18px; margin-bottom: 8px; }
.card-product h3 .num {
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 6px;
  padding: 2px 8px;
  margin-right: 8px;
  vertical-align: 2px;
}
.card-product p { font-size: 13.5px; color: var(--ink-soft); flex: 1; }
.card-product .more {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .25s;
}
.card-product .more:hover { gap: 12px; }

/* ---------- 环保承诺横幅 ---------- */
.band {
  position: relative;
  background:
    linear-gradient(120deg, var(--primary-deep) 0%, var(--primary) 70%, #2f9d5e 100%);
  color: #fff;
  padding: 84px 0;
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 40px solid rgba(255,255,255,.06);
}
.band-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.band h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin-bottom: 14px; line-height: 1.35; }
.band p { color: rgba(255,255,255,.85); font-size: 15px; max-width: 560px; }
.band .band-note {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  padding: 22px 26px;
  backdrop-filter: blur(4px);
}
.band .band-note .num { font-size: 40px; font-weight: 800; color: var(--accent); line-height: 1; }
.band .band-note small { font-size: 13.5px; color: rgba(255,255,255,.9); }

/* ---------- 页内横幅（介绍页/关于页顶部） ---------- */
.page-banner {
  position: relative;
  padding: 150px 0 70px;
  background:
    radial-gradient(700px 400px at 80% 0%, rgba(47,157,94,.14), transparent 60%),
    linear-gradient(180deg, #e8f4ed 0%, var(--primary-mist) 100%);
  text-align: center;
  overflow: hidden;
}
.page-banner h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.page-banner .crumb {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-soft);
  letter-spacing: 1px;
}
.page-banner .crumb a { color: var(--primary); font-weight: 600; }
.page-banner .crumb i { font-style: normal; margin: 0 8px; color: #a9bdb2; }

/* ---------- 图文区块（介绍/关于） ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split .media { position: relative; }
.split .media .frame {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.split .media .frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split .media::before {
  content: "";
  position: absolute;
  left: -18px; top: -18px;
  width: 120px; height: 120px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(30,125,69,.12), rgba(47,157,94,.05));
  z-index: -1;
}
.split h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin-bottom: 18px; line-height: 1.35; }
.split h2 .mark { color: var(--primary); }
.split p { color: var(--ink-soft); font-size: 15px; margin-bottom: 16px; }
.split .ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.split .ticks li {
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 500;
}
.split .ticks svg { color: var(--primary); flex-shrink: 0; }

/* ---------- 产品详情（介绍页交替行） ---------- */
.cat-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}
.cat-row:last-child { margin-bottom: 0; }
.cat-row .img { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); }
.cat-row .img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.cat-row.rev .img { order: 2; }
.cat-row h3 { font-size: 24px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 12px; }
.cat-row h3 .tag {
  font-size: 12.5px;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  padding: 3px 12px;
  font-weight: 600;
  letter-spacing: 1px;
}
.cat-row p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 12px; }
.cat-row ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.cat-row ul li {
  font-size: 13.5px;
  display: flex; align-items: center; gap: 8px;
}
.cat-row ul li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* ---------- 流程步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 24px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step .s-num {
  width: 54px; height: 54px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #2f9d5e);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(30,125,69,.28);
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- 企业文化卡片 ---------- */
.vision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card-vision {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.card-vision:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card-vision .ico {
  width: 62px; height: 62px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.card-vision h3 { font-size: 18px; margin-bottom: 10px; }
.card-vision p { font-size: 14px; color: var(--ink-soft); }

/* ---------- 发展历程时间线 ---------- */
.timeline { position: relative; max-width: 860px; margin: 0 auto; padding-left: 40px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 12px; top: 6px; bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--primary), rgba(30,125,69,.15));
}
.tl-item { position: relative; padding: 0 0 40px 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -34px; top: 8px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--primary);
  box-shadow: 0 0 0 5px var(--primary-soft);
}
.tl-item .year {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 3px 14px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.tl-item h3 { font-size: 18px; margin-bottom: 6px; }
.tl-item p { font-size: 14px; color: var(--ink-soft); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #0f2b1b;
  color: rgba(255,255,255,.78);
  padding-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-grid h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 18px;
  font-weight: 600;
  letter-spacing: 1px;
}
.footer-brand .logo {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2f9d5e, var(--primary));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  margin-bottom: 16px;
}
.footer-brand p { font-size: 13.5px; line-height: 1.9; margin-top: 14px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.78); transition: color .25s, padding-left .25s; }
.footer-links a:hover { color: #7ed69f; padding-left: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 12.5px;
  color: rgba(255,255,255,.5);
}
.icp-link {
  color: rgba(255,255,255,.55);
  transition: color .25s;
}
.icp-link:hover { color: #7ed69f; text-decoration: underline; }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: 26px; bottom: 30px;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .3s, transform .3s, visibility .3s, background .25s;
  z-index: 90;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--primary-deep); }

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

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .feature-grid, .steps, .vision-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-media { max-width: 640px; }
  .band-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cat-row { grid-template-columns: 1fr; gap: 28px; }
  .cat-row.rev .img { order: 0; }
  .split { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .section { padding: 68px 0; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: #fff;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .main-nav.open { max-height: 320px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 0 16px; }
  .main-nav li { width: 100%; }
  .main-nav a { display: block; padding: 14px 22px; font-size: 16px; border-bottom: 1px solid #f1f7f3; }
  .main-nav a::after { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .product-grid { grid-template-columns: 1fr; }
  .feature-grid, .steps, .vision-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .split .ticks { grid-template-columns: 1fr; }
  .cat-row ul { grid-template-columns: 1fr; }
  .float-badge { display: none; }
}
