/* ==========================================================================
   Shanghai Xingyirun New Materials
   Palette derived from the brand mark: deep navy, teal, droplet cyan.
   ========================================================================== */

:root {
  /* brand */
  --navy-900: #0a1d30;
  --navy-800: #0c2237;
  --navy-700: #12304d;
  --navy-600: #1b4368;
  --teal-700: #14707c;
  --teal-600: #178a98;
  --teal-500: #1aa2b2;
  --cyan-400: #2bb8cc;
  --green-500: #35a854;

  /* neutrals — very slightly teal-biased so they sit with the brand */
  --ink:        #16242f;
  --ink-soft:   #46586a;
  --muted:      #6b7d8c;
  --line:       #e2e9ee;
  --line-soft:  #eef3f6;
  --surface:    #ffffff;
  --surface-2:  #f6f9fb;
  --surface-3:  #eaf1f5;

  --grad-brand:  linear-gradient(125deg, var(--navy-700) 0%, var(--teal-600) 100%);
  --grad-accent: linear-gradient(120deg, var(--teal-600) 0%, var(--green-500) 100%);
  --grad-deep:   linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--teal-700) 100%);

  --shadow-xs: 0 1px 3px rgba(12, 34, 55, .06);
  --shadow-sm: 0 2px 10px rgba(12, 34, 55, .07);
  --shadow-md: 0 12px 32px rgba(12, 34, 55, .10);
  --shadow-lg: 0 26px 64px rgba(12, 34, 55, .16);
  --shadow-brand: 0 14px 34px rgba(23, 138, 152, .28);

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 22px;

  --maxw: 1200px;
  --gutter: 26px;
  --header-h: 78px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system,
          BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* type scale */
  --fs-display: clamp(2.15rem, 1.2rem + 3.6vw, 3.7rem);
  --fs-h1:      clamp(1.95rem, 1.3rem + 2.4vw, 3rem);
  --fs-h2:      clamp(1.6rem, 1.2rem + 1.7vw, 2.45rem);
  --fs-h3:      clamp(1.15rem, 1rem + .55vw, 1.45rem);
  --fs-lede:    clamp(1rem, .96rem + .3vw, 1.12rem);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-modal-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  color: var(--navy-700);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.012em;
  text-wrap: balance;
}

:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: min(100% - (var(--gutter) * 2), var(--maxw)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy-700); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.noscript-banner {
  position: fixed; inset: 0 0 auto 0; z-index: 999;
  background: var(--navy-800); color: #fff; padding: 18px; text-align: center; font-size: .95rem;
}

/* ============================== header ============================== */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .93);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  height: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 22px;
}

.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark { width: 44px; height: 44px; object-fit: contain; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-cn {
  font-weight: 800; font-size: 1.03rem; color: var(--navy-700);
  letter-spacing: .2px; white-space: nowrap;
}
.brand-en {
  font-size: .655rem; color: var(--teal-600); letter-spacing: 1.1px;
  text-transform: uppercase; white-space: nowrap; font-weight: 600;
}

.main-nav { display: flex; align-items: center; gap: 2px; }
.nav-link {
  position: relative; padding: 10px 15px; border-radius: 8px;
  font-weight: 600; font-size: .945rem; color: var(--ink-soft);
  transition: color .25s; white-space: nowrap;
}
.nav-link::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 2px;
  background: var(--grad-accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .34s var(--ease);
}
.nav-link:hover { color: var(--navy-700); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--navy-700); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: .84rem; font-weight: 600; color: var(--muted);
  transition: border-color .25s, background .25s;
}
.lang-toggle:hover { border-color: var(--teal-500); background: #fff; }
.lang-opt.is-active { color: var(--navy-700); }
.lang-sep { opacity: .35; }

.menu-btn {
  display: none; width: 42px; height: 42px; border: none; background: transparent;
  cursor: pointer; flex-direction: column; justify-content: center; gap: 5px;
}
.menu-btn span {
  display: block; height: 2px; width: 22px; margin-inline: auto;
  background: var(--navy-700); border-radius: 2px;
  transition: transform .32s var(--ease), opacity .2s;
}
.menu-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ========================= view / transitions ========================= */

.view { min-height: 70vh; padding-top: var(--header-h); }

.page { opacity: 0; transform: translateY(16px); }
.page.is-entering { animation: pageIn .5s var(--ease-out) forwards; }
.page.is-leaving { animation: pageOut .26s var(--ease) forwards; }
@keyframes pageIn  { to { opacity: 1; transform: none; } }
@keyframes pageOut { to { opacity: 0; transform: translateY(-12px); } }

.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.is-delayed { transition-delay: .12s; }
.cards .reveal:nth-child(2), .features .reveal:nth-child(2),
.facility-grid .reveal:nth-child(2), .eq-grid .reveal:nth-child(2),
.apps-grid .reveal:nth-child(2), .values .reveal:nth-child(2) { transition-delay: .09s; }
.cards .reveal:nth-child(3), .features .reveal:nth-child(3),
.facility-grid .reveal:nth-child(3), .eq-grid .reveal:nth-child(3),
.apps-grid .reveal:nth-child(3), .values .reveal:nth-child(3) { transition-delay: .18s; }
.features .reveal:nth-child(4), .eq-grid .reveal:nth-child(4),
.apps-grid .reveal:nth-child(4) { transition-delay: .27s; }

/* ============================== sections ============================== */

.section { padding: clamp(64px, 8vw, 104px) 0; }
.section.is-soft { background: var(--surface-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .78rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--teal-600); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--grad-accent); border-radius: 2px;
}

.section-head { max-width: 720px; margin-bottom: clamp(38px, 5vw, 56px); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .eyebrow { justify-content: center; }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { color: var(--muted); font-size: var(--fs-lede); margin-top: 14px; }
.section-foot { text-align: center; margin-top: 44px; }

.lede { font-size: var(--fs-lede); color: var(--muted); }

/* ============================== buttons ============================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  cursor: pointer; padding: 14px 27px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; border: 1.5px solid transparent;
  transition: transform .26s var(--ease), box-shadow .26s, background .25s,
              color .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { transition: transform .26s var(--ease); flex: none; }
.btn:hover svg { transform: translateX(4px); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(23, 138, 152, .36); }

.btn-ghost { background: rgba(255,255,255,.13); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.24); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--navy-700); border-color: var(--line); }
.btn-outline:hover { border-color: var(--teal-500); color: var(--teal-600); transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--navy-700); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.text-link {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--teal-600); font-weight: 700; font-size: .93rem;
}
.text-link svg { transition: transform .25s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* ================================ hero ================================ */

.hero {
  position: relative; overflow: hidden;
  height: min(94vh, 820px); min-height: 560px;
  margin-top: calc(var(--header-h) * -1);
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.3s var(--ease); }
.hero-slide.is-active { opacity: 1; }
/* Scrim for headline legibility. Tuned for the brand artwork, which is
   already dark — heavy enough to hold white text on the left, light enough
   on the right to let the artwork show through. */
.hero-slide::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(96deg, rgba(8,22,38,.80) 0%, rgba(8,22,38,.52) 44%, rgba(8,22,38,.14) 74%, rgba(8,22,38,0) 100%),
    linear-gradient(to top, rgba(8,22,38,.42) 0%, transparent 38%);
}
.hero-slide img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.09);
}
.hero-slide.is-active img { animation: kenburns 8.5s ease-out forwards; }
@keyframes kenburns { to { transform: scale(1); } }

.hero-inner {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--header-h);
}
.hero-content { max-width: 700px; color: #fff; }
.hero-content > * {
  opacity: 0; transform: translateY(24px);
  animation: heroUp .78s var(--ease-out) forwards;
}
.hero-content > *:nth-child(1) { animation-delay: .12s; }
.hero-content > *:nth-child(2) { animation-delay: .24s; }
.hero-content > *:nth-child(3) { animation-delay: .36s; }
.hero-content > *:nth-child(4) { animation-delay: .48s; }
@keyframes heroUp { to { opacity: 1; transform: none; } }

.hero-tag {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 17px; border-radius: 999px;
  background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.26);
  font-size: .8rem; font-weight: 600; letter-spacing: 1px; margin-bottom: 22px;
  backdrop-filter: blur(6px);
}
.hero-tag::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-500); box-shadow: 0 0 0 4px rgba(53,168,84,.28);
}
.hero h1 { color: #fff; font-size: var(--fs-display); letter-spacing: -.02em; }
.hero p {
  font-size: clamp(1rem, .94rem + .5vw, 1.24rem);
  color: rgba(255,255,255,.9); margin-top: 20px; max-width: 580px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

.hero-dots {
  position: absolute; z-index: 3; bottom: 38px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 10px;
}
.hero-dot {
  width: 34px; height: 4px; border: none; border-radius: 4px; padding: 0;
  background: rgba(255,255,255,.35); cursor: pointer;
  transition: background .3s, width .3s var(--ease);
}
.hero-dot.is-active { background: #fff; width: 46px; }

.hero-scroll {
  position: absolute; z-index: 3; right: 34px; bottom: 34px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: rgba(255,255,255,.62); font-size: .7rem; letter-spacing: 1.4px; text-transform: uppercase;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* =============================== stats =============================== */

.stats { background: var(--navy-700); position: relative; overflow: hidden; }
.stats::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 18% 50%, rgba(26,162,178,.24), transparent 58%);
}
.stats-grid {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; padding: clamp(38px, 5vw, 54px) 0;
}
.stat { text-align: center; color: #fff; position: relative; }
.stat:not(:last-child)::after {
  content: ""; position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
  height: 48px; width: 1px; background: rgba(255,255,255,.15);
}
.stat-num {
  font-size: clamp(2rem, 1.2rem + 2.4vw, 3rem); font-weight: 800;
  color: #fff; line-height: 1; font-variant-numeric: tabular-nums;
}
.stat-suffix { color: var(--green-500); }
.stat-label { margin-top: 10px; font-size: .88rem; color: rgba(255,255,255,.7); }

/* =============================== split =============================== */

.split {
  display: grid; grid-template-columns: 1.02fr 1fr;
  gap: clamp(36px, 5vw, 68px); align-items: center;
}
.split-media { position: relative; }
.split-media > img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3; object-fit: cover;
}
.media-badge {
  position: absolute; bottom: -24px; right: -16px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 18px 24px; display: flex; align-items: center; gap: 14px; max-width: 74%;
}
.badge-num { font-size: 1.9rem; font-weight: 800; color: var(--teal-600); line-height: 1; }
.badge-txt { font-size: .82rem; color: var(--muted); line-height: 1.4; }

.split-body h2 { font-size: var(--fs-h2); }
.split-body .eyebrow { margin-bottom: 12px; }
.split-body .lede, .split-body p { margin-top: 18px; }
.split-body .btn, .split-body .text-link { margin-top: 28px; }

/* =============================== cards =============================== */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .42s var(--ease), box-shadow .42s var(--ease), border-color .42s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-media { aspect-ratio: 16 / 11; overflow: hidden; background: var(--surface-3); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--ease); }
.card:hover .card-media img { transform: scale(1.07); }
.card-body { padding: 26px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.card-body h3 { font-size: var(--fs-h3); }
.card-body p { color: var(--muted); font-size: .94rem; flex: 1; }
.card-body .text-link { margin-top: 6px; }

/* ============================= facility ============================= */

.facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.facility-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); background: var(--navy-800);
  transition: transform .42s var(--ease), box-shadow .42s;
}
.facility-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.facility-media { aspect-ratio: 4 / 5; overflow: hidden; }
.facility-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.facility-card:hover .facility-media img { transform: scale(1.06); }
.facility-body {
  position: absolute; inset: auto 0 0 0; padding: 26px 24px 24px; color: #fff;
  background: linear-gradient(to top, rgba(8,22,38,.94) 12%, rgba(8,22,38,.72) 52%, transparent 100%);
}
.facility-body h3 { color: #fff; font-size: 1.16rem; }
.facility-body h3::before {
  content: ""; display: block; width: 32px; height: 3px; border-radius: 3px;
  background: var(--grad-accent); margin-bottom: 12px;
  transform-origin: left; transition: transform .4s var(--ease);
}
.facility-card:hover .facility-body h3::before { transform: scaleX(1.55); }
.facility-body p { color: rgba(255,255,255,.8); font-size: .88rem; margin-top: 8px; }

/* ============================== features ============================== */

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform .38s var(--ease), box-shadow .38s, border-color .38s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-ic {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(23,138,152,.26);
}
.feature h3 { font-size: 1.08rem; }
.feature p { color: var(--muted); font-size: .91rem; margin-top: 10px; }

/* ========================== application tiles ========================== */

.apps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.app-tile {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3 / 4; box-shadow: var(--shadow-sm); display: block;
}
.app-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--ease); }
.app-tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,22,38,.86) 0%, rgba(8,22,38,.18) 55%, transparent 100%);
}
.app-tile:hover img { transform: scale(1.08); }
.app-label {
  position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 20px;
  color: #fff; font-weight: 700; font-size: 1.1rem;
}
.app-label::before {
  content: ""; display: block; width: 32px; height: 3px; border-radius: 3px;
  background: var(--green-500); margin-bottom: 10px;
  transform-origin: left; transition: transform .4s var(--ease);
}
.app-tile:hover .app-label::before { transform: scaleX(1.6); }

/* ============================== CTA band ============================== */

.cta-band {
  position: relative; overflow: hidden; text-align: center;
  background: var(--grad-brand); color: #fff;
  padding: clamp(58px, 7vw, 88px) 0;
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.06);
}
.cta-band::before { width: 380px; height: 380px; top: -150px; left: -90px; }
.cta-band::after { width: 300px; height: 300px; bottom: -160px; right: -70px; }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: var(--fs-h2); }
.cta-band p { color: rgba(255,255,255,.88); margin-top: 14px; font-size: var(--fs-lede); }
.cta-band .btn { margin-top: 30px; }

/* ============================== page hero ============================== */

.page-hero {
  position: relative; overflow: hidden; color: #fff;
  padding: calc(var(--header-h) + 58px) 0 66px;
  background: var(--navy-800);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--hero-image, none);
  background-size: cover; background-position: center;
  opacity: .3;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(118deg, rgba(10,29,48,.93) 0%, rgba(10,29,48,.72) 45%, rgba(20,112,124,.6) 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: var(--fs-h1); }
.page-hero p { color: rgba(255,255,255,.86); margin-top: 14px; font-size: var(--fs-lede); max-width: 620px; }

.breadcrumb {
  display: flex; gap: 9px; align-items: center;
  font-size: .84rem; color: rgba(255,255,255,.68); margin-bottom: 16px;
}
.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: #fff; }

/* ================================ prose ================================ */

.prose p { color: var(--ink-soft); font-size: var(--fs-lede); }
.prose p + p { margin-top: 18px; }
.prose-wide { max-width: 900px; margin-inline: auto; }

/* ================================ about ================================ */

.about-media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-media img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3; object-fit: cover;
}
.about-media-lead { grid-column: 1 / -1; aspect-ratio: 16 / 9 !important; }

.mission {
  background: var(--grad-deep); color: #fff;
  border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 52px);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.mission::after {
  content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,.05); bottom: -120px; right: -80px;
}
.mission h2 { color: #fff; position: relative; }
.mission p { color: rgba(255,255,255,.9); margin-top: 16px; font-size: var(--fs-lede); position: relative; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value {
  text-align: center; padding: 40px 28px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .38s var(--ease), box-shadow .38s, border-color .38s;
}
.value:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.value-ic {
  width: 66px; height: 66px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface-3); color: var(--teal-600);
}
.value h3 { font-size: 1.28rem; }
.value p { color: var(--muted); margin-top: 12px; font-size: .94rem; }

/* ============================== products ============================== */

.prod-block { margin-bottom: clamp(52px, 7vw, 86px); }
.prod-block:last-child { margin-bottom: 0; }

.prod-head {
  display: grid; grid-template-columns: 42% 1fr;
  gap: clamp(28px, 4vw, 48px); align-items: center; margin-bottom: 32px;
}
.prod-head.is-reverse { grid-template-columns: 1fr 42%; }
.prod-head.is-reverse .prod-media { order: 2; }
.prod-media img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 11; object-fit: cover;
}
.prod-tag {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: 1.1px;
  text-transform: uppercase; color: #fff; background: var(--grad-accent);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}
.prod-body h3 { font-size: var(--fs-h3); }
.prod-body p { color: var(--muted); margin-top: 14px; font-size: 1rem; }
.prod-actions { margin-top: 22px; }

.table-wrap {
  overflow-x: auto; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-xs); background: #fff;
  -webkit-overflow-scrolling: touch;
}
.spec-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.spec-table thead th {
  background: var(--navy-700); color: #fff; font-weight: 700; font-size: .87rem;
  text-align: left; padding: 15px 18px; white-space: nowrap;
}
.spec-table tbody td {
  padding: 14px 18px; border-top: 1px solid var(--line);
  font-size: .91rem; color: var(--ink-soft); vertical-align: middle;
}
.spec-table tbody tr { transition: background .2s; }
.spec-table tbody tr:nth-child(even) { background: var(--surface-2); }
.spec-table tbody tr:hover { background: var(--surface-3); }
.cell-grade {
  font-weight: 700; color: var(--navy-700) !important;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.cell-use { min-width: 280px; }
.cell-action { text-align: right; white-space: nowrap; }

.btn-inquire {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 7px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  color: var(--teal-600); background: transparent; border: 1.5px solid var(--line);
  transition: border-color .22s, color .22s, background .22s, transform .22s var(--ease);
}
.btn-inquire:hover {
  border-color: var(--teal-500); background: var(--teal-600); color: #fff;
  transform: translateY(-1px);
}
.btn-inquire svg { flex: none; }

.mini-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.mini-feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .32s var(--ease), box-shadow .32s;
}
.mini-feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.mf-num { font-size: .78rem; font-weight: 800; color: var(--teal-600); letter-spacing: 1.2px; }
.mini-feature h4 { font-size: 1.1rem; margin-top: 8px; }
.mini-feature p { color: var(--muted); font-size: .9rem; margin-top: 8px; }

.prod-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.prod-gallery img {
  width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover;
  box-shadow: var(--shadow-xs); transition: transform .45s var(--ease);
}
.prod-gallery img:hover { transform: scale(1.03); }

/* ============================== equipment ============================== */

.eq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.eq-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .42s var(--ease), box-shadow .42s, border-color .42s;
}
.eq-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.eq-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.eq-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.eq-card:hover .eq-media img { transform: scale(1.06); }
.eq-body { padding: 24px; }
.eq-body h3 { font-size: 1.1rem; }
.eq-body p { color: var(--muted); font-size: .9rem; margin-top: 8px; }

/* ============================ applications ============================ */

.app-rows { display: flex; flex-direction: column; gap: clamp(44px, 6vw, 72px); }
.app-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px); align-items: center;
}
.app-row.is-reverse .app-row-media { order: 2; }
.app-row-media img {
  width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3; object-fit: cover;
}
.app-row-body h3 { font-size: var(--fs-h3); margin-top: 6px; }
.app-row-body p { color: var(--muted); margin-top: 16px; font-size: var(--fs-lede); }
.app-index {
  display: block; font-size: 2.9rem; font-weight: 800; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--line);
  font-variant-numeric: tabular-nums;
}

/* =============================== contact =============================== */

.contact-layout {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 4vw, 56px); align-items: start;
}
.contact-info-title { font-size: 1.3rem; }
.contact-company { color: var(--teal-600); font-weight: 700; margin-top: 6px; }

.info-list { display: flex; flex-direction: column; margin-top: 22px; }
.info-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: none; }
.info-ic {
  flex: none; width: 46px; height: 46px; border-radius: 13px;
  background: var(--surface-2); color: var(--teal-600); display: grid; place-items: center;
}
.info-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.info-label {
  font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .7px;
}
.info-value { font-size: 1.03rem; font-weight: 700; color: var(--navy-700); word-break: break-word; }
a.info-value { transition: color .2s; }
a.info-value:hover { color: var(--teal-600); }

.loc-card {
  position: relative; display: flex; align-items: center; gap: 18px;
  margin-top: 22px; padding: 26px 24px; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.loc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.loc-grid {
  position: absolute; inset: 0; opacity: .55;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(circle at 76% 50%, #000, transparent 72%);
  mask-image: radial-gradient(circle at 76% 50%, #000, transparent 72%);
}
.loc-pin {
  position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad-brand); color: #fff;
  box-shadow: 0 10px 22px rgba(23,138,152,.32);
}
.loc-text { position: relative; display: flex; flex-direction: column; gap: 3px; }
.loc-label { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .7px; }
.loc-addr { font-size: 1rem; font-weight: 700; color: var(--navy-700); }
.loc-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  color: var(--teal-600); font-weight: 700; font-size: .88rem;
}
.loc-link svg { transition: transform .25s var(--ease); }
.loc-card:hover .loc-link svg { transform: translateX(4px); }

.contact-form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(26px, 3.5vw, 40px); box-shadow: var(--shadow-md);
}
.form-head { margin-bottom: 26px; }
.form-head .eyebrow { display: none; }
.form-head h2 { font-size: 1.55rem; }
.form-head p { color: var(--muted); margin-top: 10px; font-size: .96rem; }

/* ================================ forms ================================ */

.message-form { display: flex; flex-direction: column; gap: 18px; }

/* honeypot — hidden from humans and assistive tech, visible to naive bots */
.hp-field {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-label {
  display: flex; align-items: baseline; gap: 8px;
  font-size: .88rem; font-weight: 700; color: var(--navy-700);
}
.field-flag {
  font-size: .7rem; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .5px;
}
.field-flag.is-required { color: var(--teal-600); }

.control {
  width: 100%; padding: 12px 15px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--surface-2);
  font-size: .96rem; transition: border-color .22s, background .22s, box-shadow .22s;
}
.control::placeholder { color: #9dabb7; }
.control:hover { border-color: #cdd8e0; }
.control:focus {
  outline: none; border-color: var(--teal-500); background: #fff;
  box-shadow: 0 0 0 4px rgba(26,162,178,.14);
}
textarea.control { resize: vertical; min-height: 120px; line-height: 1.65; }

.field-error { font-size: .82rem; color: #c0392b; }
.field.has-error .control { border-color: #e0796b; background: #fef7f6; }

.form-hint { font-size: .84rem; color: var(--muted); }

.form-status {
  display: none; align-items: center; gap: 10px;
  padding: 13px 16px; border-radius: var(--radius-sm); font-size: .92rem;
}
.form-status.is-error {
  display: flex; background: #fdf1ef; color: #b93d2b; border: 1px solid #f3cdc6;
}
.form-status svg { flex: none; }

.form-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.form-submit { min-width: 172px; }
.form-privacy { font-size: .8rem; color: var(--muted); line-height: 1.5; }

.form-success {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 12px; padding: clamp(30px, 5vw, 48px) 20px;
}
.success-ic {
  width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(53,168,84,.12); color: var(--green-500); margin-bottom: 4px;
  animation: popIn .45s var(--ease-out) both;
}
@keyframes popIn { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.form-success h3 { font-size: 1.35rem; }
.form-success p { color: var(--muted); }
.form-success .btn { margin-top: 8px; }

/* =============================== modal =============================== */

.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 20px;
  background: rgba(8, 22, 38, .58); backdrop-filter: blur(5px);
  opacity: 0; transition: opacity .22s var(--ease);
  overflow-y: auto;
}
.modal-overlay.is-open { opacity: 1; }
.modal-panel {
  width: min(100%, 620px); background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  transform: translateY(18px) scale(.98);
  transition: transform .28s var(--ease-out);
  max-height: calc(100vh - 40px); display: flex; flex-direction: column;
}
.modal-overlay.is-open .modal-panel { transform: none; }
.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 26px 26px 18px; border-bottom: 1px solid var(--line);
}
.modal-head h2 { font-size: 1.35rem; }
.modal-sub { font-size: .9rem; color: var(--muted); margin-top: 5px; }
.modal-sub strong { color: var(--teal-600); font-variant-numeric: tabular-nums; }
.modal-close {
  flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--muted); cursor: pointer; display: grid; place-items: center;
  transition: background .2s, color .2s, border-color .2s;
}
.modal-close:hover { background: var(--surface-2); color: var(--navy-700); border-color: #cdd8e0; }
.modal-body { padding: 24px 26px 28px; overflow-y: auto; }
.message-form.is-compact .field-grid { gap: 14px; }
.message-form.is-compact textarea.control { min-height: 96px; }

/* ================================ FABs ================================ */

.fab-stack {
  position: fixed; z-index: 90; right: 24px; bottom: 24px;
  display: flex; flex-direction: column-reverse; gap: 12px;
}
.fab {
  width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  transition: transform .3s var(--ease), opacity .3s, visibility .3s, box-shadow .3s;
}
.fab-contact { background: var(--grad-brand); box-shadow: var(--shadow-brand); }
.fab-contact:hover { transform: scale(1.08) translateY(-2px); }
.fab-top {
  background: var(--navy-700); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px);
}
.fab-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.fab-top:hover { transform: translateY(-2px); }

/* =============================== footer =============================== */

.site-footer { background: var(--navy-900); color: rgba(255,255,255,.7); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: clamp(32px, 4vw, 56px); padding: clamp(48px, 6vw, 68px) 0 44px;
}
.footer-mark {
  width: 46px; height: 46px; object-fit: contain; padding: 9px;
  background: #fff; border-radius: 13px; box-shadow: 0 6px 18px rgba(0,0,0,.24);
  margin-bottom: 16px; box-sizing: content-box;
}
.footer-name { color: #fff; font-weight: 800; font-size: 1.03rem; }
.footer-name-en { font-size: .84rem; color: var(--cyan-400); margin-top: 3px; }
.footer-tagline { margin-top: 14px; font-size: .9rem; max-width: 320px; }
/* Flex column so each entry stacks; `align-items: flex-start` keeps a link's
   hover/focus target the width of its text rather than the whole column. */
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 5px; }
.footer-col a, .footer-col p {
  color: rgba(255,255,255,.7); font-size: .91rem; transition: color .2s;
}
.footer-col a:hover { color: var(--cyan-400); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09); padding: 20px 0; font-size: .84rem;
}
.footer-bottom .container {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 10px 24px;
}
/* ICP / 公安 filing numbers — required in the footer for mainland hosting */
.beian { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.beian-link {
  color: rgba(255,255,255,.6); transition: color .2s;
  font-variant-numeric: tabular-nums;
}
.beian-link:hover { color: var(--cyan-400); }
.beian-link.is-police { display: inline-flex; align-items: center; gap: 6px; }
.beian-badge { width: 14px; height: 14px; object-fit: contain; flex: none; }

/* ============================= responsive ============================= */

@media (max-width: 1080px) {
  .cards, .facility-grid, .eq-grid, .apps-grid, .features,
  .prod-gallery, .mini-features, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; --gutter: 20px; }
  .brand-en { display: none; }
  .brand-cn { font-size: .92rem; white-space: normal; line-height: 1.3; }
  .menu-btn { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(255,255,255,.98); backdrop-filter: blur(14px);
    padding: 10px 20px 22px; box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform .42s var(--ease), opacity .3s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-link { padding: 15px 6px; border-radius: 0; border-bottom: 1px solid var(--line-soft); }
  .nav-link::after { display: none; }
  .nav-link.is-active { color: var(--teal-600); }

  .hero { height: min(88vh, 640px); }
  .hero-scroll { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .stat:nth-child(2)::after { display: none; }

  .split, .prod-head, .prod-head.is-reverse, .app-row { grid-template-columns: 1fr; }
  .prod-head.is-reverse .prod-media, .app-row.is-reverse .app-row-media { order: 0; }
  .media-badge { right: 14px; bottom: -18px; padding: 15px 20px; }
  .about-media-lead { aspect-ratio: 16 / 10 !important; }
}

@media (max-width: 560px) {
  .cards, .facility-grid, .eq-grid, .apps-grid, .features,
  .prod-gallery, .mini-features, .gallery-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
  .contact-form-card { padding: 24px 18px; }
  .modal-head, .modal-body { padding-left: 18px; padding-right: 18px; }
  .facility-media { aspect-ratio: 3 / 2; }
  .fab-stack { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .page { opacity: 1; transform: none; }
}

@media print {
  .site-header, .fab-stack, .hero-dots, .cta-band, .modal-overlay { display: none !important; }
  .view { padding-top: 0; }
}
