/* ===== Reset & Variables ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
  overflow-x: hidden;
}

:root {
  --color-primary: #0a4d8c;
  --color-primary-dark: #063a6b;
  --color-accent: #1a7dd4;
  --color-text: #333;
  --color-text-light: #666;
  --color-bg-dark: #0d2137;
  --color-bg-section: #f5f8fa;
  --header-height: 64px;
  --container-max: 1200px;
  --transition: 0.4s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #e8e8e8;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-dark);
}
/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) #e8e8e8;
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.08);
}
.header-inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-size: 15px;
  color: #fff;
  transition: color var(--transition);
}
.site-header.scrolled .main-nav a { color: var(--color-text); }
.main-nav a:hover,
.main-nav a.nav-phone,
.main-nav a.active { color: var(--color-accent); }
.main-nav a.active { font-weight: 600; }
.nav-phone { font-weight: 600; }
.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
}
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  color: #fff;
}
.site-header.scrolled .nav-toggle::before,
.site-header.scrolled .nav-toggle::after { background: var(--color-text); }
.nav-toggle::before { top: 8px; }
.nav-toggle::after { bottom: 8px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-carousel {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--color-bg-dark);
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 0;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 77, 140, 0.5), rgba(6, 58, 107, 0.7));
}
.hero-slide.active {
  opacity: 1;
  z-index: 1;
}
.hero-slide .hero-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.hero-slide.active .hero-caption {
  opacity: 1;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--color-bg-dark);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 77, 140, 0.5), rgba(6, 58, 107, 0.7));
}
.company-name {
  margin-left: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.site-header.scrolled .company-name {
  color: var(--color-text);
}
.company-name::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 18px;
  margin: 0 12px 0 0;
  background: rgba(255, 255, 255, 0.4);
  vertical-align: middle;
}
.site-header.scrolled .company-name::before {
  background: rgba(0, 0, 0, 0.15);
}
.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.hero-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}
.hero-dot.active {
  background: #fff;
  transform: scale(1.2);
}
.hero-title {
  margin: 0 0 16px;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  max-width: 900px;
}
.hero-subtitle {
  margin: 0;
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  max-width: 720px;
}

/* ===== Sections common ===== */
.section {
  position: relative;
  padding: 80px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.section:nth-child(even) { background: var(--color-bg-section); }
.section-has-bg { background: var(--color-bg-dark) !important; }
.section-has-bg .section-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.section-has-bg .section-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 77, 140, 0.6), rgba(6, 58, 107, 0.8));
}
.section-business.section-has-bg .section-bg::after {
  /* 轻微偏蓝青，透明度略调低，仅做区分 */
  background: linear-gradient(to bottom, rgba(18, 120, 150, 0.35), rgba(7, 70, 110, 0.6));
}
.section-products.section-has-bg .section-bg::after {
  /* 轻微偏绿色 */
  background: linear-gradient(to bottom, rgba(20, 150, 100, 0.35), rgba(8, 100, 70, 0.6));
}
.section-news.section-has-bg .section-bg::after {
  /* 轻微偏橙金，保持整体偏蓝基调 */
  background: linear-gradient(to bottom, rgba(210, 140, 40, 0.32), rgba(160, 90, 20, 0.55));
}
.section-has-bg .container { position: relative; z-index: 1; }
.section-has-bg .section-title { color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3); }
.section-has-bg .section-desc { color: rgba(255, 255, 255, 0.95); }
.section-about.section-has-bg .about-intro { color: rgba(255, 255, 255, 0.95); }
.section-about.section-has-bg .contact-inner { border-top-color: rgba(255, 255, 255, 0.25); }
.section-about.section-has-bg .contact-name,
.section-about.section-has-bg .contact-phone,
.section-about.section-has-bg .contact-slogan { color: #fff; }
.section-about.section-has-bg .contact-phone a { color: rgba(255, 255, 255, 0.95); }
.section-about.section-has-bg .contact-qr span { color: rgba(255, 255, 255, 0.9); }
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
.section-title {
  margin: 0 0 32px;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
}
.section-desc {
  text-align: center;
  margin: 0 0 48px;
  color: var(--color-text-light);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Scroll animate: initial state */
.scroll-animate {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-animate.visible .stat-number { opacity: 1; }

/* ===== Intro ===== */
.intro-content,
.about-content {
  max-width: 800px;
  margin: 0 auto;
}
.intro-content p,
.about-intro {
  margin: 0;
  font-size: 17px;
  color: var(--color-text);
  line-height: 1.8;
}
.section-about .contact-inner {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* ===== Business ===== */
.business-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 24px;
}
.business-card {
  padding: 32px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--color-primary);
}
.business-card h3 {
  margin: 0 0 16px;
  font-size: 20px;
  color: var(--color-primary);
}
.business-card p {
  margin: 0;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ===== Stats ===== */
.section-stats {
  background: var(--color-bg-dark);
  color: #fff;
}
.section-stats .section-title { color: #fff; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.stats-in-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.section-has-bg .stat-number { color: #fff; }
.section-has-bg .stat-label { color: rgba(255, 255, 255, 0.85); }
.stat-item {
  text-align: center;
  padding: 24px 16px;
}
.stat-number {
  display: block;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  transition: opacity 0.5s ease;
}
.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

/* ===== Products ===== */
.product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 32px;
}
.product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}
.product-img-wrap {
  aspect-ratio: 16/10;
  background: #e8e8e8;
  overflow: hidden;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card h3 {
  margin: 0;
  padding: 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

/* ===== Green ===== */
.layout-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.green-content .section-title { text-align: left; margin-bottom: 24px; }
.green-content p {
  margin: 0;
  color: var(--color-text-light);
  line-height: 1.8;
  font-size: 16px;
}
.green-img img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}
.green-in-products {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.section-has-bg .green-content p { color: rgba(255, 255, 255, 0.95); }

/* ===== News ===== */
.news-scroll-wrap {
  overflow-x: auto;
  padding-bottom: 16px;
}
.news-scroll-wrap::-webkit-scrollbar { height: 6px; }
.news-list {
  display: flex;
  gap: 24px;
  min-width: min-content;
  padding: 8px 0;
}
.news-item {
  flex: 0 0 320px;
  padding: 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border-top: 3px solid var(--color-primary);
}
.news-date, .news-tag {
  font-size: 13px;
  color: var(--color-text-light);
  margin-right: 12px;
}
.news-item h3 {
  margin: 12px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
}

/* ===== Contact ===== */
.contact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin-top: 24px;
}
.contact-info { text-align: center; }
.contact-name, .contact-phone {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--color-text);
}
.contact-phone a { color: var(--color-primary); font-weight: 600; }
.contact-phone a:hover { text-decoration: underline; }
.contact-slogan {
  margin: 16px 0 0;
  color: var(--color-text-light);
  font-size: 15px;
}
.contact-qr {
  text-align: center;
}
.contact-qr img {
  width: 120px;
  height: 120px;
  margin: 0 auto 8px;
  background: #f0f0f0;
  border-radius: 8px;
}
.contact-qr span { font-size: 14px; color: var(--color-text-light); }

/* ===== Footer ===== */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.9);
  padding: 40px 24px 24px;
}
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-phone {
  margin: 0 0 8px;
  font-size: 15px;
}
.footer-phone a { color: #fff; }
.footer-copy {
  margin: 16px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.25em 0.5em;
}
.footer-copy a {
  color: inherit;
}
.footer-copy a:hover {
  color: #fff;
}
.footer-police {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  white-space: nowrap;
}
.footer-police img {
  flex-shrink: 0;
  display: block;
}

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  padding: 12px 20px;
  font-size: 14px;
  color: #fff;
  background: var(--color-primary);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition), background var(--transition);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover { background: var(--color-primary-dark); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .layout-split {
    grid-template-columns: 1fr;
  }
  .green-img { order: -1; }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    justify-content: flex-start;
    padding: 24px;
    gap: 20px;
    transform: translateX(100%);
    transition: transform var(--transition);
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { color: var(--color-text); font-size: 18px; }
  .nav-toggle { display: block; }
  .section { padding: 60px 0; min-height: auto; }
  .product-cards { grid-template-columns: 1fr; }
  .news-item { flex: 0 0 280px; }
  .contact-inner { flex-direction: column; }
  .footer-copy {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 24px; }
}
