/**
 * 恒达包装 — 食品级吸塑包装企业站
 * 浅绿 + 纯白 + 浅灰 / 亮色主题 / 大圆角 / 洁净感
 * 原生 CSS，无框架依赖
 * ============================================================
 */



/* ============================================================
   CSS 变量体系 — 食品包装 · 洁净风
   ============================================================ */
:root {
  /* 基底色 */
  --bg-white: #FFFFFF;
  --bg-light: #F5F7F5;
  --bg-green-light: #F0F8F2;
  --bg-green-pale: #E8F5E9;

  /* 主色系 — 食品级浅绿 */
  --green: #7BBF7A;
  --green-dark: #5DA05C;
  --green-light: #A8D5A2;
  --green-pale: #C8E6C9;
  --green-gradient: linear-gradient(135deg, #7BBF7A 0%, #5DA05C 50%, #4A9B49 100%);
  --green-gradient-light: linear-gradient(135deg, #A8D5A2 0%, #7BBF7A 100%);

  /* 点缀色 */
  --accent-beige: #F5E6D3;
  --accent-warm: #FDF8F3;
  --accent-blue: #4A90D9;

  /* 文字色阶 */
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #888888;
  --text-white: #FFFFFF;

  /* 边框 */
  --border-light: #E8ECE8;
  --border-normal: #DDE1DD;
  --border-green: rgba(123, 191, 122, 0.3);

  /* 阴影 — 极轻阴影，洁净感 */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.10);
  --shadow-green: 0 4px 16px rgba(123, 191, 122, 0.2);

  /* 圆角 — 大圆角柔和风格 */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 50%;

  /* 间距 */
  --section-py: 80px;
  --section-py-sm: 50px;
  --container-max: 1200px;
  --header-h: 70px;

  /* 过渡 */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* 字体 — Noto Sans SC (Google Fonts) 洁净现代 */
  --font-heading: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ============================================================
   全局重置
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg-white);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(123, 191, 122, 0.25); color: var(--text-primary); }

a { color: inherit; text-decoration: none; transition: color var(--duration-fast) var(--ease-out); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; }
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: 1; }

/* ============================================================
   排版
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.35;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.5rem;
  padding: 4px 12px;
  background: var(--bg-green-light);
  border-radius: 100px;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ============================================================
   布局容器
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-py) 0; }
.section--sm { padding: var(--section-py-sm) 0; }
.section--green { background: var(--bg-green-light); }
.section--light { background: var(--bg-light); }
.section--white { background: var(--bg-white); }

/* ============================================================
   Header — 白色实底 + 深色文字 (避坑 13.11)
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

.header.scrolled { box-shadow: var(--shadow-sm); }

.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: auto;
}

.header__logo-icon {
  width: 42px; height: 42px;
  background: var(--green-gradient);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff; font-weight: 700;
}

.header__logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.header__logo-name { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.header__logo-sub { font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--green-dark); }

/* 主导航 */
.header__nav { display: flex; align-items: center; gap: 2px; }
.header__nav-link {
  padding: 8px 14px; font-size: 0.9rem; color: var(--text-secondary);
  border-radius: var(--radius-sm); transition: all var(--duration-fast) var(--ease-out); white-space: nowrap;
}
.header__nav-link:hover, .header__nav-link.active { color: var(--green-dark); background: var(--bg-green-light); }

/* 导航下拉 (z-index 避坑 13.3) */
.header__nav-item { position: relative; }
.header__nav-item:hover .header__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.header__dropdown {
  position: absolute; top: 100%; left: 0; min-width: 170px; padding: 8px 0;
  background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all var(--duration-normal) var(--ease-out);
  z-index: 60;
}
.header__dropdown a {
  display: block; padding: 10px 20px; font-size: 0.88rem; color: var(--text-secondary);
  transition: all var(--duration-fast);
}
.header__dropdown a:hover { color: var(--green-dark); background: var(--bg-green-light); }

/* Header CTA */
.header__cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; background: var(--green); color: #fff;
  font-size: 0.85rem; font-weight: 600; border-radius: 100px;
  transition: all var(--duration-normal) var(--ease-out); margin-left: 16px;
}
.header__cta:hover { background: var(--green-dark); color: #fff; box-shadow: var(--shadow-green); transform: translateY(-1px); }

/* ============================================================
   汉堡菜单 (独立 — 避坑 13.4)
   ============================================================ */
.hamburger {
  display: none; width: 40px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; z-index: 110; margin-left: 8px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 1px; transition: all var(--duration-normal) var(--ease-out); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* 移动端侧滑菜单 */
.mobile-nav {
  position: fixed; top: 0; left: 0; bottom: 0; width: 80%; max-width: 360px;
  background: #fff; z-index: 120; transform: translateX(-100%);
  transition: transform var(--duration-normal) var(--ease-out); overflow-y: auto; box-shadow: var(--shadow-lg);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav__inner { padding: 24px; padding-top: 80px; }
.mobile-nav__link { display: block; padding: 14px 16px; font-size: 1rem; color: var(--text-secondary); border-radius: var(--radius-sm); }
.mobile-nav__link:hover { color: var(--green-dark); background: var(--bg-green-light); }
.mobile-nav__sub { padding-left: 16px; display: none; }
.mobile-nav__sub.open { display: block; }
.mobile-nav__sub a { display: block; padding: 10px 16px; font-size: 0.9rem; color: var(--text-muted); }
.mobile-nav__overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 115;
  opacity: 0; pointer-events: none; transition: opacity var(--duration-normal) var(--ease-out);
}
.mobile-nav__overlay.show { opacity: 1; pointer-events: auto; }

/* ============================================================
   按钮系统
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; font-size: 0.92rem; font-weight: 600;
  border-radius: 100px; border: none; cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out); white-space: nowrap;
}

.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); color: #fff; box-shadow: var(--shadow-green); transform: translateY(-2px); }

.btn--outline { background: transparent; color: var(--green); border: 1.5px solid var(--green); }
.btn--outline:hover { background: var(--green); color: #fff; transform: translateY(-2px); }

.btn--white { background: #fff; color: var(--green-dark); }
.btn--white:hover { background: var(--bg-green-light); color: var(--green-dark); box-shadow: var(--shadow-sm); transform: translateY(-2px); }

.btn--lg { padding: 15px 36px; font-size: 1rem; }

/* ============================================================
   卡片系统 — 纯白 + 轻微阴影
   ============================================================ */
.card {
  background: #fff; border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}
.card:hover { border-color: var(--border-green); box-shadow: var(--shadow-md); transform: translateY(-3px); }

.card__image { position: relative; overflow: hidden; aspect-ratio: 4/3; background: var(--bg-light); }
.card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--ease-out); }
.card:hover .card__image img { transform: scale(1.05); }

.card__body { padding: 20px; }
.card__tag { display: inline-block; padding: 3px 10px; font-size: 0.72rem; font-weight: 600; color: var(--green-dark); background: var(--bg-green-light); border-radius: 4px; margin-bottom: 8px; }
.card__title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card__desc { font-size: 0.9rem; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-light); font-size: 0.82rem; color: var(--text-muted); }

/* 产品卡片 food-grade 标记 */
.card__food-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: var(--green); color: #fff; font-size: 0.7rem; font-weight: 600;
  padding: 4px 10px; border-radius: 100px;
}

/* ============================================================
   Hero Banner — 淡入淡出 Swiper
   ============================================================ */
.hero {
  position: relative; height: 85vh; min-height: 520px; max-height: 700px;
  overflow: hidden; background: var(--bg-light);
}

.hero .swiper { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
}

.hero__overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.92) 100%);
}

/* 浅绿渐变遮罩变体 */
.hero__overlay--green {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(135deg, rgba(123,191,122,0.15) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.95) 100%);
}

.hero__content {
  position: relative; z-index: 3; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  max-width: var(--container-max); margin: 0 auto; padding: 0 24px;
  padding-top: var(--header-h);
}

.hero__title {
  font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700; color: var(--text-primary); line-height: 1.2;
  margin-bottom: 0.75rem; max-width: 650px;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-secondary);
  margin-bottom: 2rem; max-width: 500px;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Swiper 分页器 */
.hero__pagination { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.hero__pagination .swiper-pagination-bullet { width: 32px; height: 3px; border-radius: 2px; background: rgba(0,0,0,0.2); opacity: 1; }
.hero__pagination .swiper-pagination-bullet-active { width: 48px; background: var(--green); }

/* 滚动指示器 */
.hero__scroll { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-muted); font-size: 0.7rem; letter-spacing: 0.15em; animation: scrollFloat 2s ease-in-out infinite; }
.hero__scroll-line { width: 1px; height: 28px; background: linear-gradient(180deg, var(--green), transparent); }

@keyframes scrollFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   认证标识墙
   ============================================================ */
.cert-wall {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px; text-align: center; max-width: 900px; margin: 0 auto;
}
.cert-item { padding: 24px 16px; }
.cert-item__icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: var(--radius-full); background: var(--bg-green-light); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--green-dark); font-weight: 700; }
.cert-item__name { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }

/* ============================================================
   产品分类大卡片
   ============================================================ */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 3/4; cursor: pointer; background: var(--bg-light);
  transition: all var(--duration-normal) var(--ease-out);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.category-card__img { width: 100%; height: 100%; object-fit: cover; }
.category-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.55) 100%);
}
.category-card__info { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 20px; color: #fff; }
.category-card__name { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.category-card__desc { font-size: 0.85rem; opacity: 0.85; }

/* ============================================================
   流程步骤 (定制流程)
   ============================================================ */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step { text-align: center; padding: 32px 20px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); transition: all var(--duration-normal) var(--ease-out); }
.process-step:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.process-step__num {
  width: 52px; height: 52px; margin: 0 auto 16px;
  border-radius: var(--radius-full); background: var(--green-gradient);
  color: #fff; font-size: 1.25rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.process-step__title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.process-step__desc { font-size: 0.88rem; color: var(--text-secondary); }

/* 步骤箭头 */
.process-step__arrow { position: absolute; right: -20px; top: 50%; transform: translateY(-50%); color: var(--green-light); font-size: 1.5rem; }

/* ============================================================
   产能数字统计
   ============================================================ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-item { text-align: center; padding: 32px 16px; }
.stat-item__number {
  font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700; color: var(--green-dark); line-height: 1; margin-bottom: 8px;
}
.stat-item__label { font-size: 0.9rem; color: var(--text-secondary); }

/* ============================================================
   CTA 横幅
   ============================================================ */
.cta-banner {
  text-align: center; padding: 70px 24px;
  background: var(--green-gradient); border-radius: var(--radius-xl);
  color: #fff; position: relative; overflow: hidden;
}
.cta-banner__title { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.cta-banner__desc { font-size: 1.05rem; color: rgba(255,255,255,0.9); margin-bottom: 1.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-banner .btn--white { margin: 0 6px; }

/* ============================================================
   新闻网格 (左大右小)
   ============================================================ */
.news-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.news-main { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10; background: var(--bg-light); }
.news-main img { width: 100%; height: 100%; object-fit: cover; }
.news-main__info { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; }
.news-main__title { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.news-main__date { font-size: 0.82rem; opacity: 0.8; }
.news-side { display: flex; flex-direction: column; gap: 12px; }
.news-side__item { display: flex; gap: 14px; padding: 14px; background: #fff; border-radius: var(--radius-md); border: 1px solid var(--border-light); transition: all var(--duration-fast); }
.news-side__item:hover { border-color: var(--border-green); box-shadow: var(--shadow-xs); }
.news-side__thumb { width: 100px; height: 70px; border-radius: var(--radius-xs); overflow: hidden; flex-shrink: 0; background: var(--bg-light); }
.news-side__thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-side__info { flex: 1; min-width: 0; }
.news-side__title { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-side__date { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   案例网格
   ============================================================ */
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.case-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 3/4; background: var(--bg-light);
}
.case-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--ease-out); }
.case-card:hover .case-card__img { transform: scale(1.05); }
.case-card__info {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
}
.case-card__name { font-weight: 600; font-size: 1rem; margin-bottom: 2px; }
.case-card__tag { font-size: 0.78rem; opacity: 0.85; }

/* ============================================================
   Footer — 浅绿/白色混合
   ============================================================ */
.footer { background: #1a2a1a; color: rgba(255,255,255,0.7); }
.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
  padding: 56px 0 36px; max-width: var(--container-max); margin: 0 auto; padding-left: 24px; padding-right: 24px;
}
.footer__brand { font-size: 0.88rem; line-height: 1.7; margin-bottom: 12px; color: rgba(255,255,255,0.55); }
.footer__col-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 18px; }
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a { font-size: 0.88rem; color: rgba(255,255,255,0.6); transition: color var(--duration-fast); }
.footer__links a:hover { color: var(--green-light); }
.footer__contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; margin-bottom: 10px; }
.footer__contact-item i { color: var(--green-light); margin-top: 3px; flex-shrink: 0; }
.footer__qrcode { width: 100px; height: 100px; background: #fff; border-radius: var(--radius-sm); padding: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.65rem; color: #999; margin-top: 8px; }

.footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; }
.footer__bottom-inner {
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--container-max); margin: 0 auto; padding: 0 24px;
  font-size: 0.8rem; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 8px;
}
.footer__bottom a { color: rgba(255,255,255,0.4); }
.footer__bottom a:hover { color: var(--green-light); }

/* 友情链接 */
.friend-links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 16px 0; }
.friend-links__label { font-size: 0.8rem; color: rgba(255,255,255,0.4); flex-shrink: 0; }
.friend-links a { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.friend-links a:hover { color: var(--green-light); }

/* ============================================================
   在线客服按钮
   ============================================================ */
.kf-widget { position: fixed; right: 20px; bottom: 100px; z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.kf-btn {
  width: 48px; height: 48px; border-radius: var(--radius-full);
  background: var(--green); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  box-shadow: var(--shadow-green); transition: all var(--duration-normal) var(--ease-out);
}
.kf-btn:hover { background: var(--green-dark); transform: scale(1.1); }
.kf-btn--phone { background: #4A90D9; }

/* ============================================================
   内页 Banner
   ============================================================ */
.inner-banner {
  position: relative; height: 280px; overflow: hidden; background: var(--bg-light);
  margin-top: var(--header-h);
}
.inner-banner__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.inner-banner__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(123,191,122,0.12) 0%, rgba(255,255,255,0.7) 100%);
}
.inner-banner__content {
  position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center;
  max-width: var(--container-max); margin: 0 auto; padding: 0 24px;
}
.inner-banner__title { font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.inner-banner__subtitle { font-size: 1rem; color: var(--text-secondary); }

/* 面包屑 */
.breadcrumb-bar { background: #fff; border-bottom: 1px solid var(--border-light); }
.breadcrumb {
  display: flex; align-items: center; gap: 8px; max-width: var(--container-max);
  margin: 0 auto; padding: 12px 24px; font-size: 0.85rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb i { font-size: 0.65rem; }

/* ============================================================
   列表页网格
   ============================================================ */
.list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.list-header { text-align: center; margin-bottom: 40px; }
.list-header h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin-bottom: 0.5rem; }

/* 子栏目过滤栏 */
.filter-bar {
  display: flex; align-items: center; gap: 8px; overflow-x: auto;
  padding-bottom: 8px; margin-bottom: 32px; justify-content: center;
  -ms-overflow-style: none; scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar a {
  display: inline-flex; padding: 8px 20px; font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary); border: 1px solid var(--border-normal); border-radius: 100px;
  white-space: nowrap; flex-shrink: 0; transition: all var(--duration-fast);
}
.filter-bar a:hover, .filter-bar a.active { color: var(--green); border-color: var(--green); background: var(--bg-green-light); }

/* ============================================================
   详情页
   ============================================================ */
.detail { max-width: 900px; margin: 0 auto; }

.detail-gallery { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 36px; }
.detail-gallery .swiper-slide { aspect-ratio: 16/10; background: var(--bg-light); }
.detail-gallery .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }

.detail__header { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border-light); }
.detail__title { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 10px; }
.detail__meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.85rem; color: var(--text-muted); }
.detail__meta i { margin-right: 4px; color: var(--green); }

/* 参数网格 */
.detail__params { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 28px; }
.detail__param {
  padding: 16px; background: var(--bg-green-light); border-radius: var(--radius-sm);
  text-align: center; border: 1px solid var(--border-green);
}
.detail__param-label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.detail__param-value { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); }

/* 详情Tab */
.detail-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border-light); margin-bottom: 28px; }
.detail-tabs a { padding: 10px 24px; font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--duration-fast); }
.detail-tabs a.active, .detail-tabs a:hover { color: var(--green-dark); border-bottom-color: var(--green); }

/* 正文 */
.detail__body { color: var(--text-secondary); line-height: 2; font-size: 0.95rem; }
.detail__body img { border-radius: var(--radius-md); margin: 20px 0; max-width: 100%; }
.detail__body p { margin-bottom: 14px; }
.detail__body h2, .detail__body h3 { color: var(--text-primary); margin-top: 28px; margin-bottom: 14px; }

/* 上下篇 */
.detail__pager { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-light); font-size: 0.88rem; color: var(--text-muted); }
.detail__pager a { color: var(--text-secondary); }
.detail__pager a:hover { color: var(--green); }

/* 相关推荐 */
.related-title { font-size: 1.3rem; font-weight: 700; margin: 48px 0 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ============================================================
   生产流水线 — 时间轴
   ============================================================ */
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding: 40px 0; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--green-light); transform: translateX(-50%); }
.timeline-item { display: flex; margin-bottom: 48px; position: relative; }
.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-item__dot {
  position: absolute; left: 50%; top: 20px; transform: translateX(-50%);
  width: 14px; height: 14px; border-radius: 50%; background: var(--green);
  border: 3px solid #fff; box-shadow: 0 0 0 3px var(--green-light); z-index: 1;
}
.timeline-item__content { width: 45%; padding: 24px; background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-xs); }
.timeline-item:nth-child(odd) .timeline-item__content { margin-right: 5%; }
.timeline-item:nth-child(even) .timeline-item__content { margin-left: 5%; }
.timeline-item__img { width: 100%; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16/9; margin-bottom: 14px; background: var(--bg-light); }
.timeline-item__img img { width: 100%; height: 100%; object-fit: cover; }
.timeline-item__title { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.timeline-item__desc { font-size: 0.9rem; color: var(--text-secondary); }

/* ============================================================
   联系我们页
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info__item {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px;
  background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md);
  margin-bottom: 10px; transition: all var(--duration-fast);
}
.contact-info__item:hover { border-color: var(--border-green); }
.contact-info__icon {
  width: 44px; height: 44px; border-radius: var(--radius-full);
  background: var(--bg-green-light); display: flex; align-items: center; justify-content: center;
  color: var(--green); font-size: 1.05rem; flex-shrink: 0;
}
.contact-info__label { font-size: 0.8rem; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; }
.contact-info__value { font-size: 0.88rem; color: var(--text-secondary); }

.contact-form-card { padding: 36px; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-lg); }

/* 表单 */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 6px; }
.form-group label .required { color: #E74C3C; }
.form-control {
  width: 100%; padding: 12px 16px; background: var(--bg-light); border: 1px solid var(--border-normal);
  border-radius: var(--radius-sm); color: var(--text-primary); font-size: 0.9rem;
  transition: all var(--duration-fast);
}
.form-control:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(123,191,122,0.1); }
textarea.form-control { resize: vertical; min-height: 110px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23888' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* ============================================================
   搜索页
   ============================================================ */
.search-box { max-width: 680px; margin: 0 auto; }
.search-form-row { display: flex; gap: 10px; }
.search-input-wrap { position: relative; flex: 1; }
.search-input-wrap i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search-input-wrap input { width: 100%; padding: 14px 14px 14px 40px; }
.search-result-item {
  display: flex; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--border-light);
  border-radius: var(--radius-md); transition: all var(--duration-fast); margin-bottom: 10px;
}
.search-result-item:hover { border-color: var(--border-green); box-shadow: var(--shadow-xs); }
.search-result-item__thumb { width: 100px; height: 80px; border-radius: var(--radius-xs); overflow: hidden; flex-shrink: 0; background: var(--bg-light); }
.search-result-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-result-item__info { flex: 1; min-width: 0; }
.search-result-item__title { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result-item__date { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 4px; }
.search-result-item__desc { font-size: 0.85rem; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ============================================================
   分页
   ============================================================ */
.pagination { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 40px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 8px; font-size: 0.88rem;
  color: var(--text-secondary); border-radius: var(--radius-sm); transition: all var(--duration-fast);
}
.pagination a:hover { background: var(--bg-green-light); color: var(--green); }
.pagination .active { background: var(--green); color: #fff; font-weight: 600; }
.pagination .disabled { color: var(--text-muted); pointer-events: none; }

/* ============================================================
   空状态
   ============================================================ */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 2.5rem; color: var(--text-muted); margin-bottom: 14px; display: block; }
.empty-state p { color: var(--text-muted); font-size: 0.95rem; }

/* ============================================================
   返回顶部
   ============================================================ */
.back-top {
  position: fixed; right: 20px; bottom: 40px; width: 42px; height: 42px;
  border-radius: var(--radius-full); background: #fff; border: 1px solid var(--border-normal);
  color: var(--text-secondary); display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; cursor: pointer; z-index: 80; opacity: 0; pointer-events: none;
  transition: all var(--duration-normal) var(--ease-out); box-shadow: var(--shadow-sm);
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* ============================================================
   动画系统 — 轻量化
   ============================================================ */
[data-aos] { transition-timing-function: var(--ease-out); }

/* 脉冲动画 (CTA按钮) */
@keyframes btnPulse {
  0% { box-shadow: 0 0 0 0 rgba(123, 191, 122, 0.4); }
  70% { box-shadow: 0 0 0 14px rgba(123, 191, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(123, 191, 122, 0); }
}
.btn--primary.pulse { animation: btnPulse 2s infinite; }

/* ============================================================
   响应式 — 平板 (768px - 1023px)
   ============================================================ */
@media (max-width: 1023px) {
  :root { --section-py: 56px; --section-py-sm: 40px; }

  .header__nav, .header__cta { display: none; }
  .hamburger { display: flex; }

  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .list-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-wall { grid-template-columns: repeat(4, 1fr); }

  .timeline::before { left: 24px; }
  .timeline-item, .timeline-item:nth-child(even) { flex-direction: row; }
  .timeline-item__dot { left: 24px; }
  .timeline-item__content { width: calc(100% - 60px); margin-left: 60px !important; margin-right: 0 !important; }
}

/* ============================================================
   响应式 — 移动端 (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  :root { --section-py: 48px; --section-py-sm: 32px; }
  body { font-size: 14px; }

  .hero { height: 70vh; min-height: 420px; }
  .hero__title { font-size: 1.6rem; }
  .hero__subtitle { font-size: 0.95rem; }

  .inner-banner { height: 200px; }

  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .list-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-wall { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
  .contact-form-card { padding: 24px; }
  .related-grid { grid-template-columns: 1fr; }

  .detail__params { grid-template-columns: repeat(2, 1fr); }
  .detail__pager { flex-direction: column; gap: 8px; }
  .detail-tabs { overflow-x: auto; }

  .search-result-item { flex-direction: column; }
  .search-result-item__thumb { width: 100%; height: 160px; }

  .category-card { aspect-ratio: 1/1; }

  .back-top { right: 10px; bottom: 30px; }
  .kf-widget { right: 10px; bottom: 80px; }
}

/* ============================================================
   响应式 — 小屏 (< 375px)
   ============================================================ */
@media (max-width: 374px) {
  .cert-wall { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   减少动画偏好
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
