/* ============================================================
   铭洋净化科技有限公司 - 企业官网全局样式
   设计风格：精工品质风 (Precision Craft Aesthetic)
   主色：深海蓝 #0A2342 | 工业橙 #FF6B00
   ============================================================ */
@import url('images.css');
@import url('locale.css');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #1a2a3a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ---- CSS Variables ---- */
:root {
  --navy: #0A2342;
  --navy-dark: #061829;
  --navy-mid: #1E4D8C;
  --orange: #FF6B00;
  --orange-light: rgba(255,107,0,0.12);
  --light-bg: #F5F7FA;
  --border: #D9E2EC;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 4px;
  --transition: 0.25s cubic-bezier(0.23, 1, 0.32, 1);

  /* 图片规范（见 assets/images/IMAGE_SPEC.md） */
  --img-product-w: 800px;
  --img-product-h: 600px;
  --img-product-ratio: 4 / 3;
  --img-product-thumb-max: 140px;
  --img-news-w: 800px;
  --img-news-h: 450px;
  --img-news-ratio: 16 / 9;
  --img-news-max-w: 800px;
  --img-cases-w: 1200px;
  --img-cases-h: 800px;
  --img-cases-ratio: 3 / 2;
  --img-solutions-w: 800px;
  --img-solutions-h: 450px;
  --img-solutions-ratio: 16 / 9;
  --img-banner-w: 1920px;
  --img-banner-h: 700px;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ---- Typography Utilities ---- */
.section-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
}
.orange-divider {
  width: 48px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  margin: 12px 0;
}
.orange-divider.center { margin: 12px auto; }

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-transform: uppercase;
}
.btn-primary:hover { background: #e05a00; box-shadow: 0 4px 16px rgba(255,107,0,0.35); }
.btn-primary:active { transform: scale(0.97); }

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 24px;
  border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase;
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-outline-navy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--navy);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 24px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-outline-navy:hover { border-color: var(--orange); color: var(--orange); }

/* ---- Tags ---- */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  padding: 3px 10px;
  border-radius: 2px;
  background: var(--orange-light);
  color: var(--orange);
  letter-spacing: 0.04em;
}

/* ---- Cards ---- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow-lg); border-color: rgba(255,107,0,0.3); }

/* ---- Scroll Animations ---- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.23,1,0.32,1), transform 0.6s cubic-bezier(0.23,1,0.32,1);
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }


/* ============================================================
   SECTION COMMON
   ============================================================ */
.section { padding: 88px 0; }
.section-light { background: var(--light-bg); }
.section-dark { background: var(--navy); }
.section-white { background: #fff; }

.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .orange-divider { margin: 12px auto; }
.section-header-row { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.section-header-row .section-header { margin-bottom: 0; }
.see-all { display: flex; align-items: center; gap: 6px; font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600; color: var(--navy); transition: color var(--transition); }
.see-all:hover { color: var(--orange); }
.see-all svg { transition: transform var(--transition); }
.see-all:hover svg { transform: translateX(3px); }

/* ============================================================
   PRODUCTS GRID

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 48px 0 40px;
  min-height: 200px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,107,0,0.06);
  z-index: 0;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,35,66,0.88) 0%, rgba(10,35,66,0.72) 55%, rgba(10,35,66,0.55) 100%);
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero--about { background-image: url('../images/banners/about_banner.webp'); }
.page-hero--products { background-image: url('../images/banners/products_banner.webp'); }
.page-hero--product-detail { background-image: url('../images/banners/products_banner.webp'); }
.page-hero--solutions { background-image: url('../images/banners/solutions_banner.webp'); }
.page-hero--industries { background-image: url('../images/banners/industries_banner.webp'); }
.page-hero--cases { background-image: url('../images/banners/cases_banner.webp'); }
.page-hero--news { background-image: url('../images/banners/news_banner.webp'); }
.page-hero--contact { background-image: url('../images/banners/contact_banner.webp'); }
.page-hero[class*="page-hero--"]::before { display: none; }
.page-hero .breadcrumb { display: flex; align-items: center; gap: 8px; font-family: 'Montserrat', sans-serif; font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.page-hero .breadcrumb a:hover { color: var(--orange); }
.page-hero .breadcrumb span { color: rgba(255,255,255,0.3); }
.page-hero h1 { font-family: 'Montserrat', sans-serif; font-weight: 900; color: #fff; font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 8px; }
.page-hero .en { font-family: 'Montserrat', sans-serif; font-size: 12px; color: var(--orange); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.65); max-width: 900px; font-size: 14px; line-height: 1.7; }
.page-hero-desc { white-space: nowrap; }
@media (max-width: 991px) {
  .page-hero-desc { white-space: normal; }
}
.section-desc-nowrap { white-space: nowrap; }
@media (max-width: 991px) {
  .section-desc-nowrap { white-space: normal; }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .hero.hero-banner {
    height: auto;
    min-height: 0;
  }
  .hero-banner .hero-slide {
    position: relative;
    inset: auto;
    min-height: 0;
    padding: 28px 0 24px;
  }
  .hero-banner .hero-content { padding: 0; }
  .hero-banner .hero-badge {
    margin-bottom: 14px;
    font-size: 10px;
    padding: 5px 10px;
    letter-spacing: 0.08em;
  }
  .hero-banner .hero-title {
    white-space: normal;
    font-size: clamp(1.25rem, 5vw, 1.7rem);
    margin-bottom: 10px;
  }
  .hero-banner .hero-subtitle { font-size: 0.95rem; }
  .hero-banner .hero-subtitle-divider { margin: 8px 0 12px; }
  .hero-banner .hero-desc {
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 18px;
  }
  .hero-banner .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-bottom: 20px;
    gap: 10px;
  }
  .hero-banner .hero-actions .btn-primary,
  .hero-banner .hero-actions .btn-outline-white {
    width: 100%;
    justify-content: center;
    font-size: 12px;
    padding: 11px 20px;
  }
  .hero-banner .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding-top: 16px;
    margin-top: 0;
  }
  .hero-banner .hero-stat {
    padding: 14px 8px;
    border-left: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    text-align: center;
  }
  .hero-banner .hero-stat .num {
    font-size: 1.45rem;
    line-height: 1.1;
  }
  .hero-banner .hero-stat .en {
    display: none;
  }
  .hero-banner .hero-stat .cn {
    font-size: 12px;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.3;
  }
  .hero-content { padding: 100px 0 60px; }
  .advantages-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .news-list-card { flex-direction: column; }
  .news-list-card .news-img { width: 100%; height: 160px; }
}

@media (max-width: 380px) {
  .hero-banner .hero-stat .num { font-size: 1.3rem; }
  .hero-banner .hero-stat .cn { font-size: 11px; }
  .hero-banner .hero-stat { padding: 12px 6px; }
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */
.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   GRID BACKGROUND PATTERN (dark sections)
   ============================================================ */
.grid-pattern {
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}


/* ═══════════════════════════════════════════════════════════
   section-header p 行高修正
   ═══════════════════════════════════════════════════════════ */
.section-header p { line-height: 1.85; }

