/* ================================================================
   甘肃中成环境科技有限公司 2025 官网重构主题样式
   主题：生态修复・绿色金融（森林绿 + 天空蓝 + 大地棕）
   ================================================================ */

:root {
  /* Brand Colors */
  --color-forest: #228b22;          /* 森林绿 */
  --color-forest-dark: #0f5d1f;
  --color-canopy: #3fb774;
  --color-sky: #87ceeb;             /* 天空蓝 */
  --color-deep-sky: #2d99c3;
  --color-earth: #8b5a2b;           /* 大地棕 */
  --color-sunrise: #f2c94c;
  --color-cream: #f5f7f0;
  --color-cloud: #eef7fb;
  --color-stone: #d7dfd2;
  --color-text: #1f2b2b;
  --color-text-light: #4c5c52;
  --color-border: #d8e2da;
  --color-shadow: rgba(18, 62, 42, 0.08);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, rgba(34, 139, 34, 0.95), rgba(135, 206, 235, 0.92));
  --gradient-forest: linear-gradient(120deg, #0f5d1f, #3fb774);
  --gradient-sky: linear-gradient(120deg, #87ceeb, #2d99c3);
  --gradient-earth: linear-gradient(120deg, #8b5a2b, #f2c94c);

  /* Typography */
  --font-sans: 'Source Han Sans SC', 'Noto Sans SC', 'PingFang SC', 'Microsoft Yahei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Source Han Serif SC', 'Songti SC', serif;
  --font-mono: 'JetBrains Mono', 'Menlo', monospace;

  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 22px;
  --font-size-2xl: 28px;
  --font-size-3xl: 36px;
  --font-size-4xl: 48px;

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 6px 18px rgba(26, 62, 43, 0.08);
  --shadow-md: 0 16px 32px rgba(26, 62, 43, 0.12);
  --shadow-lg: 0 28px 56px rgba(15, 45, 34, 0.18);
  --transition-base: all 0.3s ease;
}

/* ================================================================
   Global Resets
   ================================================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: radial-gradient(circle at top, rgba(135, 206, 235, 0.15), transparent 45%),
              radial-gradient(circle at 20% 20%, rgba(34, 139, 34, 0.12), transparent 35%),
              #fbfdf9;
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

.img-rounded {
  border-radius: var(--radius-lg);
}

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

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mt-5 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mb-5 { margin-bottom: 32px; }
.mb-6 { margin-bottom: 48px; }

.pt-3 { padding-top: 16px; }
.pt-4 { padding-top: 24px; }
.pt-5 { padding-top: 32px; }
.pt-6 { padding-top: 48px; }

.pb-3 { padding-bottom: 16px; }
.pb-4 { padding-bottom: 24px; }
.pb-5 { padding-bottom: 32px; }
.pb-6 { padding-bottom: 48px; }

.hidden { display: none !important; }
.visible { display: block !important; }

ul, ol {
  padding-left: 1.2rem;
}

p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

/* ================================================================
   Typography Util
   ================================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(34, 139, 34, 0.08);
  color: var(--color-forest-dark);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin: 12px 0 18px;
  color: var(--color-forest-dark);
}

.section-desc {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  max-width: 760px;
}

/* ================================================================
   Layout Utilities
   ================================================================ */
.container {
  width: min(1280px, 92%);
  margin: 0 auto;
}

section {
  padding: 80px 0;
}

.light-bg {
  background: var(--color-cream);
}

.primary-bg {
  background: var(--gradient-forest);
  color: #fff;
}

.primary-bg .section-title,
.primary-bg h1,
.primary-bg h2,
.primary-bg h3,
.primary-bg p {
  color: #fff;
}

.grid {
  display: grid;
  gap: 28px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.flex {
  display: flex;
  gap: 24px;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  section { padding: 60px 0; }
  .section-title { font-size: 28px; }
}

/* ================================================================
   Buttons & Badges
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--font-size-base);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-base);
}

.btn-primary {
  background: var(--gradient-forest);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--gradient-sky);
  color: #0f2c38;
}

.btn-outline {
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
  background: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: var(--font-size-sm);
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(34, 139, 34, 0.12);
  color: var(--color-forest-dark);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

/* ================================================================
   Card System
   ================================================================ */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(15, 93, 31, 0.06);
  transition: var(--transition-base);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card h3,
.card h4 {
  margin-bottom: 12px;
}

.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(135, 206, 235, 0.2), transparent);
  pointer-events: none;
}

.stat-value {
  font-size: 44px;
  font-weight: 700;
  color: var(--color-forest-dark);
}

.stat-meta {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.data-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid rgba(135, 206, 235, 0.25);
}

.kpi-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.kpi-item {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(135,206,235,0.1);
  border: 1px solid rgba(34,139,34,0.15);
}

.kpi-item strong {
  display: block;
  font-size: 28px;
  color: var(--color-forest-dark);
}

.callout {
  border-radius: var(--radius-lg);
  padding: 24px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(34,139,34,0.15);
  box-shadow: var(--shadow-sm);
}

.icon-list {
  list-style: none;
  padding-left: 0;
}

.icon-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(34,139,34,0.1);
}

.icon-list li:last-child {
  border-bottom: none;
}

/* ================================================================
   Hero
   ================================================================ */
.hero {
  position: relative;
  padding: 120px 0 100px;
  color: #f0fff6;
  background: linear-gradient(135deg, #02150f, #042e3f);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(transparent 0, transparent calc(100% - 1px), rgba(255,255,255,0.08) calc(100% - 1px)),
                    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(255,255,255,0.08) calc(100% - 1px));
  background-size: 140px 140px;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 15%, rgba(111, 211, 166, 0.32), transparent 45%),
              radial-gradient(circle at 85% 0%, rgba(79, 173, 212, 0.3), transparent 45%);
  z-index: 0;
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 2;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  max-width: 640px;
}

.hero-eyebrow {
  font-size: var(--font-size-sm);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.hero-title {
  font-size: clamp(36px, 6vw, 66px);
  font-weight: 800;
  line-height: 1.1;
  margin: 18px 0;
  color: #f8fef9;
}

.hero-lede {
  font-size: 20px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.hero-tag {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.8);
  font-size: var(--font-size-sm);
  background: rgba(255,255,255,0.04);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero .hero-actions {
  align-items: center;
  gap: 20px;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  text-decoration: none;
}

.hero-link::after {
  content: '→';
  font-size: 18px;
  transition: transform 0.2s ease;
}

.hero-link:hover::after {
  transform: translateX(4px);
}

.hero-panel {
  position: relative;
  background: rgba(2, 24, 21, 0.7);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  z-index: 1;
}

.hero-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top right, rgba(63,183,116,0.22), transparent 50%);
  pointer-events: none;
  z-index: -1;
}

.hero-panel-label {
  font-size: var(--font-size-sm);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.hero-panel-item {
  display: flex;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-panel-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.hero-panel-number {
  font-size: 32px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
}

.hero-panel-title {
  font-size: var(--font-size-lg);
  color: #f7fff9;
  margin-bottom: 4px;
}

.hero-panel-desc {
  color: rgba(255,255,255,0.7);
  margin: 0;
}

.hero-sub {
  background: linear-gradient(120deg, rgba(34,139,34,0.95), rgba(45,153,195,0.9)), url('../images/water_treatment/generated_river_ecology_restoration.png') center/cover;
  color: #fff;
  text-align: center;
  padding: 110px 0 80px;
}

.hero-sub .section-label {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.hero-sub h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin: 16px 0;
}

.hero-sub p {
  color: rgba(255,255,255,0.9);
}

/* ================================================================
   Navigation
   ================================================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(34,139,34,0.08);
  box-shadow: 0 10px 30px rgba(15,45,34,0.06);
}

.navbar {
  width: min(1280px, 92%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.navbar-brand {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-forest-dark);
  text-decoration: none;
  letter-spacing: 2px;
}

.navbar-menu {
  list-style: none;
  display: flex;
  gap: 18px;
  align-items: center;
}

.navbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-base);
}

.navbar-link:hover {
  background: rgba(34, 139, 34, 0.08);
  color: var(--color-forest-dark);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 110%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 12px 0;
  display: none;
  list-style: none;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 10px 18px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
}

.dropdown-item:hover {
  background: rgba(135,206,235,0.18);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(34,139,34,0.4);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .navbar { flex-wrap: wrap; }
  .navbar-menu {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    display: none;
    padding-bottom: 12px;
  }
  .navbar-menu.active { display: flex; }
  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    background: rgba(135,206,235,0.12);
  }
}

/* ================================================================
   Specialized Components (Map, Flow, Timeline, Tabs)
   ================================================================ */
.eco-map {
  background: #03261a;
  border-radius: var(--radius-lg);
  padding: 32px;
  min-height: 320px;
  position: relative;
  color: #9adfb1;
  overflow: hidden;
}

.eco-map::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/air_soil_treatment/generated_industrial_flue_gas_treatment.png') center/cover;
  opacity: 0.06;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.map-point {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(135,206,235,0.1);
  border: 1px solid rgba(135,206,235,0.3);
  cursor: pointer;
  transition: var(--transition-base);
}

.map-point:hover,
.map-point.active {
  background: rgba(63, 183, 116, 0.2);
  color: #fff;
}

.flow-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.flow-step {
  position: relative;
  padding: 24px;
  border-left: 4px solid var(--color-forest);
  background: rgba(255,255,255,0.96);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
}

.flow-step::after {
  content: attr(data-step);
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 32px;
  font-weight: 700;
  color: rgba(34,139,34,0.15);
}

.flow-step h4 {
  color: var(--color-forest-dark);
  margin-bottom: 10px;
}

.flow-step p {
  color: var(--color-text-light);
  margin-bottom: 0;
}

.tabs {
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.tab-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tab-button {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(34,139,34,0.2);
  background: transparent;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text);
}

.tab-button.active {
  background: rgba(34,139,34,0.12);
  color: var(--color-forest-dark);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10px;
  width: 2px;
  background: rgba(34,139,34,0.3);
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-forest);
  box-shadow: 0 0 0 6px rgba(34,139,34,0.15);
}

/* ================================================================
   Before/After Slider
   ================================================================ */
.before-after {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.before-after img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.before-layer,
.after-layer {
  position: absolute;
  inset: 0;
}

.after-layer {
  clip-path: inset(0 0 0 50%);
}

.slider-control {
  margin-top: 16px;
}

/* ================================================================
   Tables & Lists
   ================================================================ */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

thead {
  background: rgba(34,139,34,0.08);
}

th, td {
  padding: 16px;
  border-bottom: 1px solid rgba(34,139,34,0.08);
  text-align: left;
}

tr:last-child td {
  border-bottom: none;
}

/* ================================================================
   Footer
   ================================================================ */
footer {
  background: #0f1f1a;
  color: #cfe8d1;
  padding: 80px 0 40px;
  margin-top: 80px;
}

.footer-content {
  width: min(1280px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
}

.footer-section h4 {
  margin-bottom: 12px;
  color: #fff;
}

.footer-section a {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.footer-section a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 40px;
  text-align: center;
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,0.6);
}

/* ================================================================
   Animations
   ================================================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.8s ease;
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse-ring {
  from { box-shadow: 0 0 0 0 rgba(135,206,235,0.4); }
  to { box-shadow: 0 0 0 18px rgba(135,206,235,0); }
}

.pulse-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-sky);
  animation: pulse-ring 1.8s infinite;
}

/* ================================================================
   Forms
   ================================================================ */
input,
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(34,139,34,0.2);
  background: rgba(255,255,255,0.9);
  font-family: var(--font-sans);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-forest);
  box-shadow: 0 0 0 3px rgba(34,139,34,0.15);
}

/* ================================================================
   Media Queries Fine Tuning
   ================================================================ */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .hero-panel {
    max-width: 520px;
  }
}

@media (max-width: 640px) {
  .hero { padding: 100px 0 80px; }
  .hero .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-panel { padding: 28px; }
  .tab-buttons { flex-direction: column; }
}
