/* Guangqi Valve — site stylesheet.
   Light-blue technical theme built on the approved logo palette.
   No external fonts, no CDN requests. */

:root {
  --blue: #1b6bd6;
  --blue-strong: #14539f;
  --blue-soft: #e5f0fc;
  --navy: #16233f;
  --navy-deep: #0d1728;
  --orange: #f0851e;
  --orange-soft: #fdf0e2;
  --ink: #1d2a3a;
  --steel: #4e6480;
  --steel-soft: #7f97b2;
  --line: #d8e4f0;
  --line-soft: #e8f0f9;
  --bg: #ffffff;
  --bg-alt: #f4f8fd;
  --bg-tint: #e9f2fc;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow: 0 18px 44px rgba(22, 35, 63, 0.08);
  --shadow-soft: 0 10px 26px rgba(22, 35, 63, 0.06);
  --max: 1220px;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;
  --sans: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

/* The width/height attributes on <img> are fixed-size hints, not ratios: an
   image whose CSS width is shrunk keeps its full pixel height unless height is
   explicitly released. Without this, every scaled photo is squashed
   vertically. Rules that deliberately set a height (object-fit: cover or
   contain boxes) are more specific and still win. */
img, video { height: auto; }

a { color: var(--blue-strong); text-decoration: none; }
a:hover { color: var(--blue); }

h1, h2, h3, h4 { margin: 0; line-height: 1.22; color: var(--navy); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.1vw, 3.15rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff;
  padding: 10px 18px; border-radius: 0 0 10px 0; z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; gap: 26px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand img { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1rem; color: var(--navy); letter-spacing: 0.02em; }
.brand-text span { font-size: 0.72rem; color: var(--steel-soft); letter-spacing: 0.14em; text-transform: uppercase; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: block; padding: 9px 13px; border-radius: 10px;
  color: var(--steel); font-size: 0.94rem; font-weight: 600;
}
.site-nav a:hover { color: var(--navy); background: var(--bg-alt); }
.site-nav a[aria-current="page"] { color: var(--blue-strong); background: var(--blue-soft); }

.header-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--steel); font-size: 0.86rem; font-weight: 700; background: #fff;
}
.lang-switch:hover { border-color: var(--blue); color: var(--blue-strong); }
.lang-switch .globe { width: 15px; height: 15px; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  align-items: center; justify-content: center; padding: 0;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--navy); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--navy);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: 0.96rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-strong) 100%); color: #fff; box-shadow: 0 12px 26px rgba(27, 107, 214, 0.26); }
.btn-primary:hover { color: #fff; box-shadow: 0 16px 32px rgba(27, 107, 214, 0.32); }
.btn-accent { background: linear-gradient(135deg, #f5973c 0%, var(--orange) 100%); color: #fff; box-shadow: 0 12px 26px rgba(240, 133, 30, 0.26); }
.btn-accent:hover { color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--navy); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-strong); }
.btn-on-dark { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.28); color: #fff; }
.btn-on-dark:hover { background: rgba(255,255,255,0.18); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }

/* ---------------------------------------------------------------- sections */

section { position: relative; }
.section { padding: 78px 0; }
.section-tight { padding: 54px 0; }
.section-alt { background: var(--bg-alt); }
.section-tint { background: linear-gradient(180deg, #f7fbff 0%, var(--bg-tint) 100%); }
.section-navy { background: linear-gradient(155deg, #1b2c4d 0%, var(--navy-deep) 100%); color: #dbe6f4; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }

.grid-bg {
  background-image:
    linear-gradient(rgba(185, 205, 226, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 205, 226, 0.34) 1px, transparent 1px);
  background-size: 46px 46px;
}

.section-head { max-width: 780px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--steel); margin: 14px 0 0; font-size: 1.03rem; }

.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.76rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 14px;
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--orange); display: block; }
.section-navy .kicker { color: #f7b071; }
.section-navy .kicker::before { background: #f7b071; }

.lede { font-size: 1.06rem; color: var(--steel); }

/* ---------------------------------------------------------------- hero */

.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fbfdff 0%, #eef5fd 62%, #e6f0fb 100%); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(185, 205, 226, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(185, 205, 226, 0.3) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 54px; align-items: center; padding: 68px 0 74px; }
.hero h1 { margin-bottom: 18px; }
.hero .lede { max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 30px; }
.hero-trust { display: grid; gap: 10px; }
.hero-trust li { display: flex; gap: 10px; align-items: flex-start; color: var(--steel); font-size: 0.95rem; }
.hero-trust svg { flex: 0 0 auto; margin-top: 4px; color: var(--blue); }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hero-badge {
  position: absolute; left: -18px; bottom: 26px; background: #fff; border: 1px solid var(--line-soft);
  border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow-soft); display: flex; gap: 12px; align-items: center;
  max-width: 260px;
}
.hero-badge strong { display: block; font-family: var(--mono); font-size: 1.35rem; color: var(--blue-strong); line-height: 1.1; }
.hero-badge span { font-size: 0.8rem; color: var(--steel); line-height: 1.35; display: block; }

/* ---------------------------------------------------------------- stats */

.stat-band { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; }
.stat { padding: 26px 18px; border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--mono); font-size: 1.28rem; color: var(--navy); letter-spacing: -0.02em; }
.stat span { display: block; font-size: 0.8rem; color: var(--steel-soft); line-height: 1.4; margin-top: 6px; }

/* ---------------------------------------------------------------- cards */

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }

.family-card {
  display: block; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.family-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #c9dcef; }
.family-card .thumb { aspect-ratio: 4 / 3; background: var(--bg-alt); overflow: hidden; }
.family-card .thumb picture { display: block; width: 100%; height: 100%; }
.family-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.family-card .thumb.contain img { object-fit: contain; padding: 14px; }
.family-card .body { padding: 18px 20px 22px; }
.family-card h3 { margin-bottom: 6px; }
.family-card p { margin: 0; font-size: 0.9rem; color: var(--steel); line-height: 1.55; }
.family-card .meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--blue-soft); color: var(--blue-strong); font-size: 0.76rem; font-weight: 700;
}
.chip.orange { background: var(--orange-soft); color: #b9600f; }
.chip.grey { background: var(--bg-alt); color: var(--steel); }

/* ---------------------------------------------------------------- split rows */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); background: #fff; }
.split-media picture, .ratio picture, .hero-visual picture { display: block; }
.split + .split { margin-top: 70px; }

.check-list { display: grid; gap: 12px; margin-top: 20px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--steel); font-size: 0.96rem; }
.check-list svg { flex: 0 0 auto; margin-top: 5px; color: var(--blue); }
.section-navy .check-list li { color: #b9cbe2; }
.section-navy .check-list svg { color: #6fb0f0; }

/* ---------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); background: #fff; }
table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 0.94rem; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: top; overflow-wrap: anywhere; }
th { background: var(--bg-alt); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel); font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; }
td strong { color: var(--navy); }
.spec-table td:first-child { width: 34%; color: var(--steel); font-weight: 600; }

/* Grid children must be allowed to shrink: a wide table or a long unbroken
   string would otherwise push the whole page wider than the viewport. */
.split > *, .stage-card > *, .card-grid > *, .contact-grid > *, .stat-grid > * { min-width: 0; }
.stat-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.stat-grid.cols-6 { grid-template-columns: repeat(6, 1fr); }
.contact-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.contact-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------------------------------------------------------------- process steps */

.step-list { display: grid; gap: 26px; }
.step {
  display: grid; grid-template-columns: 88px 1fr; gap: 24px;
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 26px 28px;
}
.step-num {
  font-family: var(--mono); font-size: 1.6rem; font-weight: 700; color: var(--blue);
  background: var(--blue-soft); border-radius: 14px; display: grid; place-items: center; height: 62px;
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--steel); font-size: 0.96rem; }
.step dl { margin: 14px 0 0; display: grid; gap: 6px; }
.step dt { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); font-weight: 800; }
.step dd { margin: 0; font-size: 0.9rem; color: var(--steel); }

.stage-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.stage-card + .stage-card { margin-top: 26px; }
.stage-card:nth-child(even) .stage-media { order: 2; }
.stage-media { background: linear-gradient(180deg, #f8fbff 0%, #edf4fc 100%); }
.stage-media.dark { background: linear-gradient(180deg, #16233f 0%, #0d1728 100%); }
.stage-media picture { display: block; width: 100%; height: 100%; }
.stage-media img { width: 100%; height: 100%; object-fit: contain; padding: 6%; display: block; }
.stage-body { padding: 32px 34px; }
.stage-body .step-num { width: 62px; height: 54px; font-size: 1.3rem; margin-bottom: 14px; }
.stage-body p { color: var(--steel); font-size: 0.96rem; }

/* ---------------------------------------------------------------- media */

.ratio { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-soft); }
.ratio img, .ratio video { width: 100%; display: block; }
.video-shell { position: relative; }
.video-shell video { width: 100%; border-radius: var(--radius-lg); background: #0d1728; }
.video-poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg);
  cursor: pointer; border: 0; padding: 0; background: none;
}
.video-poster .play {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%;
  background: rgba(255,255,255,0.92); display: grid; place-items: center; box-shadow: var(--shadow);
}
.video-poster .play svg { color: var(--blue-strong); margin-left: 5px; }

/* ---------------------------------------------------------------- contact */

.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.contact-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.contact-card .icon { width: 44px; height: 44px; border-radius: 13px; background: var(--blue-soft); display: grid; place-items: center; color: var(--blue-strong); margin-bottom: 6px; }
.contact-card h3 { font-size: 0.94rem; letter-spacing: 0.02em; }
.contact-card .value { font-family: var(--mono); font-size: 0.98rem; color: var(--navy); word-break: break-word; }
.contact-card .value.pending { color: #b9600f; background: var(--orange-soft); border-radius: 8px; padding: 6px 10px; font-family: var(--sans); font-size: 0.84rem; }
.contact-card .copy { margin-top: auto; align-self: flex-start; }

.notice {
  border-left: 4px solid var(--orange); background: var(--orange-soft); color: #8a4a0d;
  padding: 14px 18px; border-radius: 0 12px 12px 0; font-size: 0.92rem;
}
.note {
  border-left: 4px solid var(--blue); background: var(--blue-soft); color: var(--blue-strong);
  padding: 14px 18px; border-radius: 0 12px 12px 0; font-size: 0.92rem;
}

/* ---------------------------------------------------------------- cta band */

.cta-band { background: linear-gradient(140deg, #1c3f74 0%, var(--navy) 55%, #0f1c33 100%); color: #cfdcec; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
}
.cta-band .wrap { position: relative; z-index: 2; display: flex; gap: 34px; align-items: center; justify-content: space-between; padding: 56px 24px; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { margin: 0; max-width: 46em; color: #b8cade; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; flex: 0 0 auto; }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--navy-deep); color: #9fb3ca; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.4fr; gap: 40px; padding: 58px 0 34px; }
.site-footer h4 { color: #fff; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #9fb3ca; }
.site-footer a:hover { color: #fff; }
.footer-links { display: grid; gap: 9px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand img { height: 40px; width: auto; align-self: flex-start; }
.footer-profile { display: grid; gap: 9px; }
.footer-profile div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; }
.footer-profile span:first-child { color: #6c85a3; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.09); padding: 20px 0; display: flex; gap: 18px; justify-content: space-between; flex-wrap: wrap; font-size: 0.84rem; color: #7d93ad; }
.footer-credits { margin: 0; padding: 14px 0 0; border-top: 1px solid rgba(255,255,255,0.09); font-size: 0.76rem; color: #64798f; line-height: 1.7; }

/* ---------------------------------------------------------------- reveal */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .stat:nth-child(4) { border-right: 0; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid.cols-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 74px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line-soft);
    padding: 12px 18px 22px; display: none; box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { padding: 13px 14px; font-size: 1rem; }
  .header-actions .btn { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; padding: 46px 0 56px; }
  .hero-badge { left: auto; right: 14px; bottom: 14px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .split-media { order: 0; }
  .split + .split { margin-top: 46px; }
  .stage-card { grid-template-columns: 1fr; }
  .stage-card:nth-child(even) .stage-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding: 44px 0 26px; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .card-grid, .card-grid.three, .card-grid.two { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 20px 16px; }
  .stat:nth-child(2n) { border-right: 0; }
  .contact-grid.cols-3, .contact-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid.cols-6 { grid-template-columns: repeat(2, 1fr); }
  .step { grid-template-columns: 1fr; gap: 14px; padding: 22px 20px; }
  .step-num { width: 68px; height: 52px; font-size: 1.3rem; }
  .stage-body { padding: 24px 22px; }
  .brand img { height: 32px; }
  table { min-width: 380px; }
}

@media (max-width: 520px) {
  .card-grid, .card-grid.three, .card-grid.two { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid.cols-3, .contact-grid.cols-4 { grid-template-columns: 1fr; }
  .stat-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .hero-badge { position: static; margin-top: 16px; max-width: none; }
}

@media print {
  .site-header, .cta-band, .site-footer, .nav-toggle { display: none; }
  body { background: #fff; }
}
