/* ============================================
   成都翕湛环保科技有限公司 - 官网样式
   简约 · 大气 · 专业
   ============================================ */

/* --- Design Tokens --- */
:root {
  --primary: #1a6b4c;
  --primary-dark: #125039;
  --primary-light: #e8f5ee;
  --secondary: #0d3b66;
  --accent: #2d8f6f;
  --gold: #b8860b;
  --bg: #ffffff;
  --bg-alt: #f7faf8;
  --text: #1a1a2e;
  --text-light: #555;
  --text-muted: #888;
  --border: #e2e8e4;
  --shadow-sm: 0 2px 12px rgba(26,107,76,0.06);
  --shadow-md: 0 8px 30px rgba(26,107,76,0.10);
  --shadow-lg: 0 16px 48px rgba(13,59,102,0.14);
  --radius: 8px;
  --radius-lg: 16px;
  --max-w: 1200px;
  --nav-h: 72px;
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; transition: color .25s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* --- Container --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s, background .3s;
}
.navbar.scrolled { box-shadow: var(--shadow-sm); background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; color: var(--secondary);
  letter-spacing: 1px;
}
.logo-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; font-weight: 700;
}
.nav-links { display: flex; gap: 4px; }
.nav-item {
  position: relative; padding: 8px 16px; cursor: pointer;
  color: var(--text); font-size: 15px; font-weight: 500;
  transition: color .25s; background: none; border: none; font-family: inherit;
}
.nav-item:hover, .nav-item.active { color: var(--primary); }
.nav-item::after {
  content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2.5px; background: var(--primary);
  border-radius: 2px; transition: width .25s;
}
.nav-item:hover::after, .nav-item.active::after { width: 60%; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: -8px; min-width: 180px;
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .25s ease; z-index: 100;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu a {
  display: block; padding: 10px 20px; font-size: 14px; color: var(--text-light);
  transition: all .2s;
}
.dropdown-menu a:hover {
  background: var(--primary-light); color: var(--primary);
  padding-left: 26px;
}

/* Mobile toggle */
.menu-toggle {
  display: none; width: 36px; height: 36px; border: none; background: none;
  cursor: pointer; flex-direction: column; justify-content: center; gap: 5px;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: all .3s;
}

@media (max-width: 900px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none;
    flex-direction: column; padding: 24px; gap: 0;
    transform: translateX(100%); transition: transform .35s ease;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-item { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--border); }
  .dropdown-menu {
    position: static; box-shadow: none; background: var(--bg-alt);
    border-radius: var(--radius); margin-top: 8px; padding-left: 16px;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .dropdown.open .dropdown-menu { display: block; }
  .nav-item::after { display: none; }
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative; min-height: 85vh; display: flex; align-items: center;
  margin-top: var(--nav-h);
  background: linear-gradient(135deg, #0d3b66 0%, #1a6b4c 60%, #2d8f6f 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}
.hero-content {
  position: relative; z-index: 2; color: #fff; text-align: center;
  padding: 80px 24px; max-width: 800px; margin: 0 auto;
}
.hero-badge {
  display: inline-block; padding: 6px 20px; border-radius: 30px;
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
  font-size: 14px; letter-spacing: 2px; margin-bottom: 28px;
  backdrop-filter: blur(4px);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px); font-weight: 800; line-height: 1.2;
  margin-bottom: 20px; letter-spacing: 2px;
}
.hero h1 span { color: #7fdbca; }
.hero p {
  font-size: clamp(16px, 2vw, 19px); opacity: 0.88; line-height: 1.8;
  margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px; border-radius: 50px; background: #fff;
  color: var(--primary); font-size: 16px; font-weight: 600;
  transition: all .3s; box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.22);
  color: var(--primary-dark);
}
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 32px; border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.4); color: #fff;
  font-size: 15px; font-weight: 500; transition: all .3s;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12); border-color: #fff;
  transform: translateY(-2px);
}

/* Floating shapes for hero */
.hero-shapes {
  position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none;
}
.hero-shape {
  position: absolute; border-radius: 50%; opacity: 0.07;
  background: #fff;
}
.hs-1 { width: 400px; height: 400px; top: -100px; right: -80px; }
.hs-2 { width: 250px; height: 250px; bottom: 10%; left: -60px; }
.hs-3 { width: 150px; height: 150px; top: 40%; right: 15%; }

/* ============================================
   Stats Bar
   ============================================ */
.stats-bar {
  background: #fff; padding: 48px 0; border-bottom: 1px solid var(--border);
  margin-top: -60px; position: relative; z-index: 10;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.06);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px; text-align: center;
}
.stat-item {}
.stat-num {
  font-size: 42px; font-weight: 800; color: var(--primary);
  line-height: 1.2;
}
.stat-label {
  font-size: 14px; color: var(--text-muted); margin-top: 4px;
}

/* ============================================
   Section Common
   ============================================ */
.section {
  padding: 90px 0;
}
.section-alt { background: var(--bg-alt); }
.section-header {
  text-align: center; margin-bottom: 56px;
}
.section-tag {
  display: inline-block; padding: 4px 16px; border-radius: 20px;
  background: var(--primary-light); color: var(--primary);
  font-size: 13px; font-weight: 600; letter-spacing: 1px; margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 38px); font-weight: 700;
  color: var(--secondary); line-height: 1.3;
}
.section-desc {
  font-size: 16px; color: var(--text-light); max-width: 640px;
  margin: 14px auto 0; line-height: 1.7;
}

/* ============================================
   Cards Grid
   ============================================ */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); transition: all .35s ease;
}
.card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card-img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  background: linear-gradient(135deg, var(--primary-light), #d4ede0);
}
.card-body { padding: 28px 24px 24px; }
.card-title {
  font-size: 18px; font-weight: 700; color: var(--secondary);
  margin-bottom: 10px;
}
.card-text {
  font-size: 14px; color: var(--text-light); line-height: 1.75;
}
.card-tag {
  display: inline-block; padding: 3px 12px; border-radius: 20px;
  background: var(--primary-light); color: var(--primary);
  font-size: 12px; font-weight: 600; margin-top: 14px;
}

/* ============================================
   Process / Timeline
   ============================================ */
.process-steps {
  display: flex; flex-direction: column; gap: 0; position: relative;
  padding-left: 40px;
}
.process-steps::before {
  content: ''; position: absolute; left: 15px; top: 0; bottom: 0;
  width: 3px; background: linear-gradient(to bottom, var(--primary), var(--accent));
  border-radius: 3px;
}
.step {
  position: relative; padding: 24px 28px; margin-bottom: 24px;
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--border); transition: all .3s;
  display: flex; gap: 20px; align-items: flex-start;
}
.step:hover { box-shadow: var(--shadow-sm); border-color: var(--primary); }
.step-num {
  position: absolute; left: -40px; top: 26px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(26,107,76,0.3);
}
.step-body { flex: 1; min-width: 0; }
.step-img { width: 180px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; flex-shrink: 0; align-self: center; box-shadow: var(--shadow-sm); background: var(--primary-light); }
.step h3 {
  font-size: 17px; font-weight: 700; color: var(--secondary); margin-bottom: 8px;
}
.step p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ============================================
   Feature Row (icon + text)
   ============================================ */
.features-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.feature-item {
  text-align: center; padding: 32px 20px;
}
.feature-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; font-size: 28px; color: #fff;
}
.feature-icon svg { width: 30px; height: 30px; color: #fff; }
.contact-icon svg { width: 22px; height: 22px; color: var(--primary); }
.info-box h4 svg { width: 20px; height: 20px; color: var(--primary); margin-right: 8px; vertical-align: -3px; }
.footer-contact-ico { display: inline-block; width: 16px; height: 16px; color: rgba(255,255,255,0.7); vertical-align: -3px; margin-right: 6px; }
.feature-title {
  font-size: 17px; font-weight: 700; color: var(--secondary); margin-bottom: 8px;
}
.feature-desc { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ============================================
   Comparison Table
   ============================================ */
.compare-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); background: #fff;
}
.compare-table th {
  background: var(--secondary); color: #fff; padding: 16px 20px;
  font-size: 15px; font-weight: 600; text-align: left;
}
.compare-table td {
  padding: 14px 20px; font-size: 14px; border-bottom: 1px solid var(--border);
  color: var(--text-light); line-height: 1.6;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--primary-light); }
.compare-table .col-highlight { color: var(--primary); font-weight: 600; }

/* ============================================
   Management System Cards
   ============================================ */
.system-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.sys-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 28px; transition: all .3s; position: relative;
  overflow: hidden;
}
.sys-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.sys-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sys-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--primary-light); color: var(--primary);
  font-size: 15px; font-weight: 700; margin-bottom: 16px;
}
.sys-card h3 {
  font-size: 18px; font-weight: 700; color: var(--secondary); margin-bottom: 10px;
}
.sys-card p { font-size: 14px; color: var(--text-light); line-height: 1.75; }
.sys-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.sys-tag {
  padding: 3px 10px; border-radius: 14px; background: var(--bg-alt);
  color: var(--text-muted); font-size: 12px;
}

/* ============================================
   Page Banner (inner pages)
   ============================================ */
.page-banner {
  margin-top: var(--nav-h); padding: 80px 0 60px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff; text-align: center; position: relative; overflow: hidden;
}
.page-banner::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 40px; background: var(--bg);
  border-radius: 40px 40px 0 0;
}
.page-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 12px;
}
.page-banner p { font-size: 16px; opacity: 0.82; }
.breadcrumb {
  display: flex; justify-content: center; gap: 8px; margin-top: 20px;
  font-size: 14px; opacity: 0.7;
}
.breadcrumb a { color: inherit; }
.breadcrumb a:hover { opacity: 1; }

/* ============================================
   Content Area (inner pages)
   ============================================ */
.content-area {
  padding: 60px 0 90px;
}
.content-body {
  max-width: 860px; margin: 0 auto;
}
.content-body h2 {
  font-size: 24px; font-weight: 700; color: var(--secondary);
  margin: 40px 0 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
}
.content-body h3 {
  font-size: 19px; font-weight: 600; color: var(--primary);
  margin: 28px 0 12px;
}
.content-body p {
  font-size: 15px; color: var(--text-light); line-height: 1.85;
  margin-bottom: 14px;
}
.content-body ul { padding-left: 20px; margin-bottom: 16px; }
.content-body li {
  position: relative; padding-left: 18px; margin-bottom: 8px;
  font-size: 15px; color: var(--text-light); line-height: 1.7;
}
.content-body li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

/* Image gallery in content */
.img-gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; margin: 28px 0;
}
.img-gallery img {
  border-radius: var(--radius); object-fit: cover;
  width: 100%; aspect-ratio: 4 / 3; transition: transform .3s;
  background: var(--primary-light);
}
.img-gallery img:hover { transform: scale(1.03); }

/* Single large image */
.content-img {
  border-radius: var(--radius-lg); overflow: hidden; margin: 28px 0;
  box-shadow: var(--shadow-sm);
}
.content-img img { width: 100%; height: auto; max-height: 480px; object-fit: cover; display: block; }

/* Process category header (大类) */
.proc-cat {
  display: flex; align-items: center; gap: 14px;
  margin: 28px 0 16px; padding: 14px 18px;
  background: linear-gradient(90deg, var(--primary-light), transparent);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.proc-cat-bar { width: 6px; height: 22px; background: var(--primary); border-radius: 3px; flex-shrink: 0; }
.proc-cat-title { font-size: 18px; font-weight: 700; color: var(--secondary); letter-spacing: 0.5px; }
.process-steps .proc-cat:first-child { margin-top: 0; }

/* Info box */
.info-box {
  background: var(--primary-light); border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 28px; margin: 24px 0;
}
.info-box h4 { color: var(--primary); font-size: 16px; margin-bottom: 8px; }
.info-box p { color: var(--text); font-size: 14px; margin-bottom: 0; }

/* ============================================
   Sub Navigation (inner page sidebar)
   ============================================ */
.page-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 40px;
  padding: 60px 0 90px;
}
.sub-nav {
  position: sticky; top: calc(var(--nav-h) + 24px); align-self: start;
}
.sub-nav-title {
  font-size: 14px; font-weight: 700; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 2px solid var(--border);
}
.sub-nav ul li { margin-bottom: 2px; }
.sub-nav a {
  display: block; padding: 11px 16px; border-radius: var(--radius);
  font-size: 14px; color: var(--text-light); transition: all .2s;
}
.sub-nav a:hover, .sub-nav a.active {
  background: var(--primary-light); color: var(--primary);
  font-weight: 600;
}

@media (max-width: 850px) {
  .page-layout { grid-template-columns: 1fr; }
  .sub-nav { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .sub-nav-title { display: none; }
  .sub-nav ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .sub-nav a { padding: 8px 16px; font-size: 13px; background: var(--bg-alt); border-radius: 20px; }
}

/* ============================================
   Contact Page
   ============================================ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.contact-info-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
}
.contact-item {
  display: flex; gap: 16px; margin-bottom: 28px;
  align-items: flex-start;
}
.contact-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary-light); display: flex; align-items: center;
  justify-content: center; font-size: 20px; flex-shrink: 0;
}
.contact-label { font-size: 13px; color: var(--text-muted); margin-bottom: 2px; }
.contact-value { font-size: 16px; font-weight: 600; color: var(--text); }

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 14px; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-size: 15px; font-family: inherit;
  transition: border-color .25s; outline: none; background: #fff;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light);
}
.form-group textarea { resize: vertical; min-height: 120px; }

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

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--secondary); color: rgba(255,255,255,0.78);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; line-height: 1.7; opacity: 0.72; }
.footer-col h4 {
  color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 18px;
}
.footer-col a {
  display: block; font-size: 14px; color: rgba(255,255,255,0.62);
  padding: 5px 0; transition: all .2s;
}
.footer-col a:hover { color: #fff; padding-left: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0; text-align: center; font-size: 13px; opacity: 0.5;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-4 { margin-bottom: 32px; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.fw-bold { font-weight: 700; }

/* Fade-in animation */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1; transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 600px) {
  .hero { min-height: 70vh; }
  .stats-bar { margin-top: -40px; padding: 32px 0; }
  .stat-num { font-size: 32px; }
  .section { padding: 60px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .process-steps { padding-left: 32px; }
  .step { padding: 18px 20px; flex-direction: column; }
  .step-num { position: static; left: auto; top: auto; margin-bottom: 12px; align-self: flex-start; }
  .step-img { width: 100%; align-self: stretch; }
  .system-cards { grid-template-columns: 1fr; }
}
