/* ============================================================
   RUIMAT / Changsha RuiYang — Global B2B Chemicals Website
   Theme: Industrial blue palette · Bilingual · Image-rich
   ============================================================ */

:root {
  /* Brand palette — derived from logo (deep ocean + globe blue) */
  --c-bg:           #f4f7fb;
  --c-bg-soft:      #eaf1f8;
  --c-white:        #ffffff;
  --c-ink:          #0b2239;
  --c-ink-soft:     #34516e;
  --c-muted:        #6b7e94;

  --c-primary:      #0a4d8c;          /* deep ocean blue */
  --c-primary-2:    #0a3d70;
  --c-primary-3:    #07305a;
  --c-accent:       #1ca7e3;          /* cyan sky blue */
  --c-accent-2:     #38c5f1;
  --c-amber:        #f4a72c;          /* highlight */
  --c-green:        #2eaa67;          /* agriculture */

  --c-dark:         #061a2c;          /* hero/dark sections */
  --c-dark-2:       #0c2a44;
  --c-line:         rgba(10, 77, 140, 0.12);
  --c-line-soft:    rgba(10, 77, 140, 0.08);

  --shadow-sm:      0 4px 14px rgba(10, 40, 80, 0.08);
  --shadow-md:      0 12px 30px rgba(10, 40, 80, 0.12);
  --shadow-lg:      0 24px 60px rgba(10, 40, 80, 0.18);

  --radius-sm:      8px;
  --radius:         14px;
  --radius-lg:      22px;

  --container:      1200px;

  --font-en:        "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-cn:        "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-base:      "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-base);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Language visibility ---------- */
html[data-lang="zh"] .en-only { display: none !important; }
html[data-lang="en"] .zh-only { display: none !important; }

/* ---------- Containers / helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

/* ============================================================
   Top Bar (Header)
   ============================================================ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.topbar.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--c-line);
  box-shadow: 0 6px 22px rgba(10, 40, 80, 0.06);
}

.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.brand {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* right cluster: nav tail + language toggle + mobile menu button */
.topbar-right {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(10, 77, 140, 0.25);
  background: #fff;
}
.brand-text { line-height: 1.15; }
.brand-en {
  font-weight: 700;
  font-size: 15px;
  color: var(--c-ink);
  letter-spacing: 0.01em;
}
.brand-cn {
  font-size: 12px;
  color: var(--c-muted);
  margin-top: 3px;
  letter-spacing: 0.04em;
}

.nav {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  position: relative;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--c-ink-soft);
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--c-primary); background: var(--c-bg-soft); }
.nav-link.active { color: var(--c-primary); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  border-radius: 2px;
}
.nav-cta {
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(28, 167, 227, 0.35);
}
.nav-cta:hover { background: linear-gradient(135deg, var(--c-primary-2), var(--c-accent-2)); color: #fff !important; }
.nav-cta.active::after { display: none; }

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--c-line);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-ink-soft);
  transition: border-color .2s, background .2s;
}
.lang-toggle:hover { border-color: var(--c-primary); }
.lang-toggle .lang-opt { padding: 2px 4px; }
.lang-toggle .lang-opt.active { color: var(--c-primary); }
.lang-sep { color: var(--c-line); }

/* Mobile menu button */
.menu-btn {
  display: none;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--c-line);
  background: #fff;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.menu-btn span {
  width: 18px; height: 2px; background: var(--c-ink);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.menu-btn.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  position: fixed;
  top: 74px; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--c-line);
  z-index: 99;
  padding: 14px 0;
  display: none;
  box-shadow: 0 12px 30px rgba(10, 40, 80, 0.12);
}
.drawer.is-open { display: block; }
.drawer-link {
  display: block;
  padding: 14px 28px;
  font-weight: 500;
  color: var(--c-ink-soft);
  border-bottom: 1px solid var(--c-line-soft);
}

/* ============================================================
   Pages
   ============================================================ */
.page {
  position: relative;
  min-height: 100vh;
  padding: 130px 0 90px;
  overflow: hidden;
}
.page-indicator {
  position: absolute;
  right: 28px;
  bottom: 22px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  z-index: 3;
  opacity: 0.7;
}
.page-indicator .pi-num {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 800;
  color: var(--c-primary);
  letter-spacing: 0.02em;
}
.page-indicator .pi-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c-muted);
}

/* ============================================================
   Page 1 — Home (REDESIGNED: split layout + image collage)
   ============================================================ */
.page-home {
  background:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(28, 167, 227, 0.18), transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 80%, rgba(10, 77, 140, 0.20), transparent 60%),
    linear-gradient(180deg, #061a2c 0%, #0a2a4a 60%, #061a2c 100%);
  color: #eaf3fb;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 200, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 200, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
  z-index: 1;
}
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  pointer-events: none;
}
.bg-glow-1 {
  width: 520px; height: 520px;
  top: -120px; left: -100px;
  background: radial-gradient(circle, rgba(28, 167, 227, 0.45), transparent 70%);
  animation: float 14s ease-in-out infinite;
}
.bg-glow-2 {
  width: 460px; height: 460px;
  bottom: -150px; right: -80px;
  background: radial-gradient(circle, rgba(10, 77, 140, 0.55), transparent 70%);
  animation: float 18s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}
.bg-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(120, 200, 255, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 70% 60%, rgba(120, 200, 255, 0.5), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(180, 220, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 85% 20%, rgba(120, 200, 255, 0.7), transparent);
  background-size: 800px 600px;
  animation: drift 40s linear infinite;
}
@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(-200px); }
}

/* ---------- Hero split layout ---------- */
.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 30px 28px 80px;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(28, 167, 227, 0.16);
  border: 1px solid rgba(28, 167, 227, 0.4);
  font-size: 13px;
  font-weight: 500;
  color: #b3e5ff;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}
.hero-tag .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-accent-2);
  box-shadow: 0 0 12px var(--c-accent-2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
}

/* Big logo on hero photo (top-right of container image) */
.hero-logo-overlay {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 112px;
  height: 112px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  z-index: 5;
}
.hero-title {
  font-family: var(--font-base);
  font-size: clamp(30px, 3.8vw, 50px);
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
  margin-bottom: 22px;
  letter-spacing: -0.015em;
  max-width: 580px;
  animation: rise .9s ease .1s both;
}

.hero-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: rgba(220, 235, 250, 0.85);
  max-width: 560px;
  margin: 0 0 32px;
  line-height: 1.8;
  animation: rise .9s ease .25s both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
  animation: rise .9s ease .4s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--c-accent), var(--c-primary));
  color: #fff;
  box-shadow: 0 12px 30px rgba(28, 167, 227, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(28, 167, 227, 0.55);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #eaf3fb;
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px;
  max-width: 560px;
  animation: rise .9s ease .55s both;
}
.meta-item { padding: 6px 18px 6px 0; border-right: 1px solid rgba(255, 255, 255, 0.08); }
.meta-item:last-child { border-right: 0; }
.meta-num {
  font-family: var(--font-en);
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(90deg, #fff, #b3e5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.01em;
}
.meta-label {
  font-size: 12px;
  color: rgba(220, 235, 250, 0.6);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

/* ---------- Hero right: image collage ---------- */
.hero-right {
  position: relative;
  animation: rise 1s ease .3s both;
}
.hero-collage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-width: 520px;
  margin: 0 auto;
}
.hero-img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.08);
}
.hero-img-inset {
  position: absolute;
  width: 48%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  border: 4px solid #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  background: #fff;
}
.hero-img-1 {
  bottom: -32px;
  left: -32px;
}
.hero-img-2 {
  bottom: -32px;
  right: -32px;
  width: 44%;
}
.hero-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  background: linear-gradient(135deg, var(--c-accent), var(--c-primary));
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 30px rgba(28, 167, 227, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  animation: float-y 4s ease-in-out infinite;
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ---------- Three Pillars ---------- */
.pillars-wrap {
  padding: 40px 28px 60px;
  position: relative;
  z-index: 2;
}
.section-head-light .kicker { color: var(--c-accent-2); }
.section-head-light .section-title { color: #fff; }
.section-head-light .title-bar { background: linear-gradient(90deg, var(--c-accent-2), #b3e5ff); }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 50px;
}

.pillar {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .3s, box-shadow .3s, border-color .3s, background .3s;
  cursor: pointer;
}
.pillar:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--c-accent-2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.pillar-img {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.pillar-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.pillar:hover .pillar-img img { transform: scale(1.08); }
.pillar-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(6, 26, 44, 0.6) 100%);
  z-index: 1;
}
.pillar-tag {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--c-ink);
  font-family: var(--font-en);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.pillar-agri .pillar-tag { color: var(--c-green); }
.pillar-chem .pillar-tag { color: var(--c-primary); }
.pillar-water .pillar-tag { color: var(--c-accent); }

.pillar-body { padding: 24px 22px 22px; }
.pillar-body h3 {
  font-size: 21px;
  color: #fff;
  margin-bottom: 12px;
}
.pillar-body p {
  font-size: 14.5px;
  color: rgba(220, 235, 250, 0.78);
  margin: 0 0 18px;
  line-height: 1.7;
  min-height: 70px;
}
.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-accent-2);
  transition: gap .25s;
}
.pillar-link svg { width: 14px; height: 14px; transition: transform .25s; }
.pillar:hover .pillar-link { gap: 10px; }
.pillar:hover .pillar-link svg { transform: translateX(3px); }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(220, 235, 250, 0.5);
  z-index: 3;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}
.cue-arrow {
  width: 22px; height: 22px;
  border-right: 2px solid rgba(220, 235, 250, 0.5);
  border-bottom: 2px solid rgba(220, 235, 250, 0.5);
  transform: rotate(45deg);
}

/* ============================================================
   Section heads (light theme)
   ============================================================ */
.section-head {
  text-align: center;
  margin-bottom: 50px;
}
.section-head-2 { margin-top: 90px; }
.kicker {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--c-accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--c-ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.title-bar {
  width: 60px;
  height: 4px;
  margin: 0 auto;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  border-radius: 4px;
}

/* ============================================================
   Page 2 — About (with banner)
   ============================================================ */
.page-about {
  background:
    linear-gradient(180deg, #fff 0%, var(--c-bg) 100%);
}
.about-banner {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 360px;
  overflow: hidden;
  z-index: 0;
}
.about-banner-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) brightness(0.85);
}
.about-banner-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(244, 247, 251, 0.95) 80%, var(--c-bg) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 64px;
  margin-top: 220px;
}
.about-text .lead {
  font-size: 18px;
  line-height: 1.85;
  color: var(--c-ink);
  margin: 0 0 18px;
}
.about-text .lead strong { color: var(--c-primary); }
.about-text .muted {
  font-size: 15.5px;
  color: var(--c-ink-soft);
  margin: 0;
  line-height: 1.85;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.orbit-card {
  position: relative;
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.orbit-logo {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: 12px;
  z-index: 2;
  filter: drop-shadow(0 18px 40px rgba(10, 77, 140, 0.35));
  background: #fff;
  /* 固定位置，不做动画 */
  animation: none;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-accent);
}
.feat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  color: #fff;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(10, 77, 140, 0.25);
}
.feat-icon svg { width: 24px; height: 24px; }
.feature h3 {
  font-size: 17px;
  color: var(--c-ink);
  margin-bottom: 10px;
}
.feature p {
  font-size: 14px;
  color: var(--c-ink-soft);
  margin: 0;
  line-height: 1.7;
}

/* ============================================================
   Page 3 & 4 — Products (with banner)
   ============================================================ */
.page-products {
  background:
    linear-gradient(180deg, #fff 0%, var(--c-bg-soft) 50%, #fff 100%);
}
.page-products-2 {
  background:
    linear-gradient(180deg, var(--c-bg-soft) 0%, var(--c-bg) 50%, #fff 100%);
}
.products-banner {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 280px;
  overflow: hidden;
  z-index: 0;
}
.products-banner-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.95) brightness(0.78);
}
.products-banner-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(244, 247, 251, 0.95) 80%, var(--c-bg-soft) 100%);
}
.page-products .section-head,
.page-products .page-pager { margin-top: 140px; }

.prod-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  margin-bottom: 36px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.prod-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--c-accent);
}
.prod-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
}
.prod-card-alt { background: linear-gradient(180deg, #fff 0%, #f7fbff 100%); }
.prod-card-water::before {
  background: linear-gradient(90deg, var(--c-accent), var(--c-amber));
}

.prod-head {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 36px 18px;
  border-bottom: 1px dashed var(--c-line);
}
.prod-no {
  font-family: var(--font-en);
  font-size: 38px;
  font-weight: 800;
  background: linear-gradient(180deg, var(--c-primary), var(--c-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  letter-spacing: -0.02em;
  min-width: 80px;
}
.prod-name {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.prod-name .en {
  font-size: 22px;
  font-weight: 700;
  color: var(--c-ink);
}
.prod-name .zh {
  font-size: 14px;
  color: var(--c-muted);
  letter-spacing: 0.04em;
}

.prod-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  padding: 28px 36px 32px;
}
.prod-col { padding-right: 12px; }
.prod-col + .prod-col { border-left: 1px solid var(--c-line-soft); padding-left: 30px; }
.col-label {
  font-family: var(--font-en);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--c-accent);
  margin-bottom: 16px;
}
.prod-list { display: flex; flex-direction: column; gap: 8px; }
.prod-list li {
  font-size: 15px;
  color: var(--c-ink);
  line-height: 1.6;
  padding: 0;
  border-bottom: 1px dashed var(--c-line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.prod-list li:last-child { border-bottom: 0; }
.prod-list em {
  font-style: normal;
  font-size: 13px;
  color: var(--c-muted);
}
.prod-list-dense li { padding: 0; }

/* ---- Product name → TDS link ---- */
.prod-link {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 6px 0;
  color: var(--c-ink);
  text-decoration: none;
  transition: color 0.18s ease;
}
.prod-list-dense .prod-link { padding: 4px 0; }
.prod-link em { transition: color 0.18s ease; }
.prod-link:hover,
.prod-link:focus-visible { color: var(--c-primary); }
.prod-link:hover em { color: var(--c-primary); }
.prod-link:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 4px; }
.tds-badge {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--c-primary);
  background: rgba(10, 77, 140, 0.08);
  border: 1px solid rgba(10, 77, 140, 0.28);
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.prod-link:hover .tds-badge,
.prod-link:focus-visible .tds-badge {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}

.prod-col p {
  font-size: 15px;
  color: var(--c-ink-soft);
  line-height: 1.85;
  margin: 0;
}

.page-pager {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.pager-next {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--c-primary);
  color: var(--c-primary);
  font-weight: 600;
  font-size: 14.5px;
  transition: background .2s, color .2s, transform .2s;
}
.pager-next:hover { background: var(--c-primary); color: #fff; transform: translateY(-2px); }
.pager-next svg { width: 18px; height: 18px; transition: transform .2s; }
.pager-next:hover svg { transform: translateX(4px); }

/* ============================================================
   Page 5 — Advantages & Contact (with banner)
   ============================================================ */
.page-contact {
  background:
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(28, 167, 227, 0.08), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--c-bg-soft) 100%);
}
.contact-banner {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 320px;
  overflow: hidden;
  z-index: 0;
}
.contact-banner-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.7);
}
.contact-banner-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 80%, var(--c-bg-soft) 100%);
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}
.adv-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 26px 28px;
  border: 1px solid var(--c-line);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  overflow: hidden;
}
.adv-card::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--c-primary), var(--c-accent));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s;
}
.adv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--c-accent); }
.adv-card:hover::after { transform: scaleY(1); }

.adv-no {
  position: absolute;
  top: 22px; right: 26px;
  font-family: var(--font-en);
  font-size: 48px;
  font-weight: 800;
  color: var(--c-line);
  letter-spacing: -0.04em;
  line-height: 1;
  z-index: 0;
}
.adv-card h3 {
  position: relative;
  z-index: 1;
  font-size: 19px;
  color: var(--c-ink);
  margin-bottom: 14px;
  padding-right: 80px;
}
.adv-card p {
  position: relative;
  z-index: 1;
  font-size: 14.5px;
  color: var(--c-ink-soft);
  margin: 0;
  line-height: 1.8;
}

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-intro {
  font-size: 16px;
  color: var(--c-ink-soft);
  line-height: 1.95;
  background: #fff;
  border: 1px solid var(--c-line);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border-left: 5px solid var(--c-accent);
  position: relative;
}
.contact-intro::before {
  content: "“";
  position: absolute;
  top: 14px; left: 22px;
  font-size: 80px;
  font-family: Georgia, serif;
  color: var(--c-line);
  line-height: 1;
}
.contact-intro p { margin: 0; }

.contact-card {
  background: linear-gradient(160deg, var(--c-dark) 0%, var(--c-dark-2) 50%, var(--c-primary-3) 100%);
  color: #eaf3fb;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(6, 26, 44, 0.35);
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(28, 167, 227, 0.2), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(10, 77, 140, 0.25), transparent 50%);
  z-index: 0;
}
.contact-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 28px;
}
.contact-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(28, 167, 227, 0.6), transparent);
}
.contact-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.ci-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 167, 227, 0.16);
  border-radius: 10px;
  color: var(--c-accent-2);
}
.ci-icon svg { width: 18px; height: 18px; }
.ci-label {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(180, 215, 240, 0.7);
  margin-bottom: 4px;
  font-weight: 600;
}
.ci-text {
  font-size: 14.5px;
  color: #fff;
  line-height: 1.6;
}
.contact-cta { position: relative; z-index: 1; width: 100%; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--c-dark);
  color: rgba(220, 235, 250, 0.7);
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ft-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ft-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.ft-en { color: #fff; font-weight: 600; font-size: 14px; }
.ft-cn { color: rgba(220, 235, 250, 0.6); font-size: 12px; margin-top: 2px; }
.ft-copy { font-size: 12.5px; }

/* ============================================================
   Hidden SEO block — visible to crawlers only
   ============================================================ */
.seo-block {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .hero-split { gap: 40px; }
  .hero-collage { max-width: 460px; }
  /* keep the centred brand clear of the nav on both sides */
  .topbar-inner { gap: 10px; }
  .brand-en { font-size: 13.5px; }
  .brand-cn { font-size: 11.5px; }
  .nav-link { padding: 10px 10px; font-size: 13.5px; }
  .nav-link.active::after { left: 10px; right: 10px; }
  .nav-cta { padding: 10px 14px; }
}

@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; margin-top: 180px; }
  .about-visual .orbit-card { width: 200px; height: 200px; }
  .about-visual .orbit-logo { width: 180px; height: 180px; }
  .contact-wrap { grid-template-columns: 1fr; }
  .brand-text { display: none; }
  .brand-img { width: 42px; height: 42px; }
  .nav { gap: 0; }
  .nav-link { padding: 10px 10px; font-size: 13.5px; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-split { grid-template-columns: 1fr; }
  .hero-right { order: -1; max-width: 460px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .topbar-inner { padding: 12px 20px; gap: 12px; }
  .brand-text { display: none; }
  .nav, .nav-link-r, .lang-toggle { display: none; }
  .menu-btn { display: inline-flex; }
  .page { padding: 100px 0 100px; }
  .container, .topbar-inner { padding-left: 20px; padding-right: 20px; }
  .hero-split { padding: 0 0 50px; }
  .hero-title { font-size: 28px; }
  .hero-sub { font-size: 14.5px; margin-bottom: 26px; }
  .hero-logo-overlay { width: 88px; height: 88px; top: 14px; right: 14px; left: auto; padding: 6px; }
  .hero-collage { aspect-ratio: 4 / 4.5; max-width: 360px; }
  .hero-badge { font-size: 11.5px; padding: 8px 16px; top: 16px; left: 16px; bottom: auto; right: auto; }
  .pillars-wrap { padding: 30px 20px 50px; }
  .pillar-grid { grid-template-columns: 1fr; gap: 18px; }
  .pillar-img { height: 180px; }
  .features, .adv-grid { grid-template-columns: 1fr; }
  .prod-head { padding: 22px 24px 14px; gap: 12px; flex-wrap: wrap; }
  .prod-no { font-size: 30px; min-width: 60px; }
  .prod-name .en { font-size: 18px; }
  .prod-body { grid-template-columns: 1fr; gap: 22px; padding: 22px 24px 26px; }
  .prod-col + .prod-col { border-left: 0; padding-left: 0; border-top: 1px dashed var(--c-line); padding-top: 18px; }
  .contact-intro, .contact-card { padding: 26px 22px; }
  .adv-card h3 { font-size: 17px; padding-right: 60px; }
  .adv-no { font-size: 36px; top: 18px; right: 18px; }
  .page-indicator { right: 18px; bottom: 16px; }
  .page-indicator .pi-num { font-size: 22px; }
  .scroll-cue { display: none; }
  .about-grid { margin-top: 130px; }
  .page-products .section-head { margin-top: 100px; }
  .products-banner, .contact-banner { height: 180px; }
  .about-banner { height: 220px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 18px; padding-top: 20px; }
  .meta-item { border-right: 0; padding-right: 0; }
  .hero-img-1, .hero-img-2 { width: 38%; }
  .hero-img-1 { bottom: -18px; left: -10px; }
  .hero-img-2 { bottom: -18px; right: -10px; }
}

/* Print-friendly: simple page flow */
@media print {
  .topbar, .drawer, .menu-btn, .lang-toggle, .nav, .scroll-cue, .page-indicator,
  .about-banner, .products-banner, .contact-banner { display: none !important; }
  .page { padding: 0; min-height: auto; page-break-after: always; }
  body { background: #fff; color: #000; }
  html[data-lang="zh"] .en-only, html[data-lang="en"] .zh-only { display: initial !important; }
}
