/* =========================================================
   CHENGYANG — Hook & Loop Components
   Design system v1.0
   ========================================================= */

:root {
  --ink: #0a1220;
  --ink-2: #16202f;
  --ink-3: #3d4a5c;
  --muted: #6b7888;
  --line: #e3e7ec;
  --paper: #ffffff;
  --mist: #f4f6f8;
  --mist-2: #edf0f4;
  --brand: #0d3b66;
  --brand-2: #11507f;
  --accent: #ff5a1f;
  --accent-2: #ff7a45;
  --ok: #1f9d55;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(10, 18, 32, .06), 0 2px 8px rgba(10, 18, 32, .04);
  --shadow-md: 0 8px 24px rgba(10, 18, 32, .08), 0 2px 6px rgba(10, 18, 32, .05);
  --shadow-lg: 0 24px 60px rgba(10, 18, 32, .16);
  --max: 1240px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
               "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 700;
}

p { margin: 0; }

.wrap { width: min(100% - 48px, var(--max)); margin-inline: auto; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- utility bar ---------- */
.topbar {
  background: var(--ink);
  color: #c7d0dc;
  font-size: 12.5px;
  letter-spacing: .02em;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 38px; gap: 16px;
}
.topbar a:hover { color: #fff; }
.topbar .left { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar .dot { width: 6px; height: 6px; border-radius: 50%; background: #49d17e; display: inline-block; }
.lang { display: flex; gap: 2px; align-items: center; }
.lang a {
  padding: 3px 8px; border-radius: 5px; color: #9fadbf;
}
.lang a[aria-current="true"] { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- header ---------- */
.masthead {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.masthead .wrap {
  display: flex; align-items: center; gap: 28px;
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 16px rgba(13, 59, 102, .28);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: .14em; }
.brand-sub { font-size: 10.5px; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; margin-top: -2px; }

.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav > li { position: relative; list-style: none; }
.nav > li > a {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 13px; border-radius: 8px;
  font-size: 14.5px; font-weight: 550; color: var(--ink-2);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav > li > a:hover, .nav > li.is-open > a { background: var(--mist); color: var(--brand); }
.nav > li.on > a { background: rgba(13, 59, 102, .07); color: var(--brand); }
.nav .caret { width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .55; }

.head-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 650; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(255, 90, 31, .28); }
.btn-primary:hover { background: #f04d12; box-shadow: 0 14px 30px rgba(255, 90, 31, .34); }
.btn-ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline-light { border-color: rgba(255,255,255,.42); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 10px; }
.burger span { display: block; width: 18px; height: 1.8px; background: var(--ink); margin: 4px auto; transition: .2s; }

/* ---------- mega menu ---------- */
.mega {
  position: absolute; left: 50%; top: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  width: min(920px, calc(100vw - 40px));
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 22px;
  display: grid; grid-template-columns: 1fr 1fr 236px; gap: 10px 26px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.nav > li:hover .mega, .nav > li.is-open .mega, .nav > li:focus-within .mega {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega a.mi {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 10px 12px; border-radius: 10px;
}
.mega a.mi:hover { background: var(--mist); }
.mi .ico {
  width: 34px; height: 34px; border-radius: 9px; background: var(--mist-2);
  display: grid; place-items: center; flex: none; font-size: 15px; color: var(--brand);
}
.mi b { display: block; font-size: 14px; font-weight: 650; }
.mi span { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.mega-promo {
  background: linear-gradient(160deg, #0d3b66, #08243f);
  border-radius: 12px; color: #fff; padding: 20px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
}
.mega-promo h4 { font-size: 16px; }
.mega-promo p { font-size: 12.5px; color: #b9c9db; }
.mega-promo a { font-size: 12.5px; font-weight: 650; color: #ffb99f; }
.mega-foot {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 22px;
  border-top: 1px solid var(--line); margin-top: 2px; padding-top: 13px;
}
.mega-foot a { font-size: 12.5px; font-weight: 650; color: var(--brand); }
.mega-foot a::after { content: " →"; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(115deg, #071a2e 0%, #0d3357 52%, #0a2440 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 82% 12%, rgba(255, 90, 31, .20), transparent 62%),
    radial-gradient(700px 380px at 12% 88%, rgba(44, 132, 214, .22), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.06fr .94fr; gap: 48px; align-items: center;
  padding: 76px 0 92px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #9fb6cd;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--accent); }
.hero h1 {
  font-size: clamp(38px, 5.1vw, 64px);
  letter-spacing: -.035em; margin: 18px 0 20px; font-weight: 800;
}
.hero h1 em { font-style: normal; color: #ff8a5c; }
.hero p.lede { font-size: clamp(15px, 1.35vw, 18px); color: #c2d1e0; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-chips { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.hero-chips div { font-size: 12.5px; color: #a8bbcd; display: flex; align-items: center; gap: 7px; }
.hero-chips i { width: 16px; height: 16px; border-radius: 50%; background: rgba(73, 209, 126, .16); display: grid; place-items: center; color: #49d17e; font-size: 10px; font-style: normal; }

.hero-visual { position: relative; }
.hero-card {
  position: relative; border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12);
  background: #fff;
}
.hero-card img { width: 100%; height: 420px; object-fit: cover; }
.hero-float {
  position: absolute; left: -26px; bottom: 26px;
  background: #fff; color: var(--ink); border-radius: 12px; padding: 14px 18px;
  box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center;
}
.hero-float b { font-size: 20px; letter-spacing: -.02em; }
.hero-float span { font-size: 11.5px; color: var(--muted); display: block; }
.hero-float .bar { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,90,31,.1); display: grid; place-items: center; color: var(--accent); }

/* ---------- stat strip ---------- */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 8px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 26px; letter-spacing: -.02em; }
.stat span { font-size: 12.5px; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 84px 0; }
.section.tight { padding: 64px 0; }
.section.mist { background: var(--mist); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 40px; }
.sec-head .kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.sec-head h2 { font-size: clamp(26px, 3.1vw, 40px); margin-top: 10px; letter-spacing: -.03em; }
.sec-head p { color: var(--muted); max-width: 520px; font-size: 15px; margin-top: 12px; }
.link-more { font-size: 13.5px; font-weight: 650; color: var(--brand); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.link-more::after { content: "→"; transition: transform .2s var(--ease); }
.link-more:hover::after { transform: translateX(4px); }

/* ---------- category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s;
}
.cat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #cfd6df; }
.cat-card .ph { aspect-ratio: 4 / 3; background: #fff; overflow: hidden; }
.cat-card .ph img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .5s var(--ease); }
.cat-card:hover .ph img { transform: scale(1.05); }
.cat-card .tx { padding: 16px 18px 20px; }
.cat-card h3 { font-size: 15.5px; }
.cat-card p { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.cat-card .cnt { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); border-radius: 999px; font-size: 11px; font-weight: 650; padding: 3px 9px; color: var(--ink-2); }

/* ---------- product grid ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prod-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #fff; transition: box-shadow .2s var(--ease), transform .2s var(--ease);
  display: flex; flex-direction: column;
}
.prod-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.prod-card .ph { aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.prod-card .ph img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .5s var(--ease); }
.prod-card:hover .ph img { transform: scale(1.045); }
.prod-card .tx { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.prod-card .tag { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.prod-card h3 { font-size: 16.5px; line-height: 1.3; }
.prod-card p { font-size: 13px; color: var(--muted); line-height: 1.55; }
.prod-card .meta { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--ink-3); }
.prod-card .meta span::before { content: "•"; color: #c3ccd7; margin-right: 7px; }
.prod-card .meta span:first-child::before { display: none; }

/* ---------- split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.rev .media { order: 2; }
.media { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-md); }
.media img { width: 100%; height: 460px; object-fit: cover; }
.media .badge {
  position: absolute; left: 18px; bottom: 18px; background: rgba(10,18,32,.86);
  color: #fff; font-size: 12px; padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(6px);
}
.feature-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.feature-list li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.feature-list .n {
  width: 30px; height: 30px; border-radius: 8px; background: var(--mist);
  display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: var(--brand);
}
.feature-list b { font-size: 15px; display: block; }
.feature-list span { font-size: 13.5px; color: var(--muted); }

/* ---------- applications ---------- */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.app-tile {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 230px;
  display: flex; align-items: flex-end; color: #fff; isolation: isolate;
}
.app-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.app-tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,20,34,0) 30%, rgba(8,20,34,.86) 100%);
}
.app-tile:hover img { transform: scale(1.06); }
.app-tile .in { padding: 20px 22px; }
.app-tile h3 { font-size: 17px; }
.app-tile p { font-size: 12.5px; color: #cfdae6; margin-top: 5px; }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: p; }
.step { position: relative; padding: 0 22px 0 0; }
.step::before {
  counter-increment: p; content: "0" counter(p);
  font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--accent);
}
.step::after {
  content: ""; position: absolute; top: 9px; left: 42px; right: 14px; height: 1px;
  background: linear-gradient(90deg, #cfd6df, transparent);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 16px; margin: 14px 0 8px; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ---------- cert band ---------- */
.certband { background: var(--ink); color: #fff; padding: 54px 0; }
.certband .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.certband h2 { font-size: clamp(22px, 2.4vw, 30px); max-width: 520px; }
.certband p { color: #a9b7c7; font-size: 14px; margin-top: 10px; max-width: 540px; }
.cert-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.cert-tags span {
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  padding: 8px 15px; font-size: 12.5px; color: #dbe4ee; background: rgba(255,255,255,.04);
}

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; max-width: 880px; }
.faq details {
  border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 0 20px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 30px 18px 0; position: relative;
  font-weight: 600; font-size: 15px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 20px; font-weight: 400; color: var(--muted); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-3); font-size: 14px; line-height: 1.7; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(115deg, #0b2a49, #0d3b66 55%, #123f6b);
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 300px at 88% 20%, rgba(255,90,31,.22), transparent 65%);
}
.cta .wrap { position: relative; padding: 74px 0; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(26px, 3.4vw, 42px); letter-spacing: -.03em; max-width: 640px; }
.cta p { color: #c1d0df; margin-top: 12px; font-size: 15px; }

/* ---------- footer ---------- */
.foot { background: #070f1a; color: #93a3b6; font-size: 13.5px; padding: 64px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.foot h4 { color: #fff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a:hover { color: #fff; }
.foot .brand-name { color: #fff; }
.foot p.about { margin-top: 16px; line-height: 1.7; max-width: 320px; }
.foot-bot {
  border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0 30px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12.5px; color: #6f8095;
}

/* ---------- page head ---------- */
.pagehead {
  background: linear-gradient(115deg, #0a1c30, #10365a);
  color: #fff; padding: 62px 0 56px;
}
.crumbs { font-size: 12.5px; color: #9db1c6; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: #fff; }
.pagehead h1 { font-size: clamp(30px, 4vw, 46px); margin-top: 14px; max-width: 820px; }
.pagehead p { color: #b7c8d9; max-width: 680px; margin-top: 14px; font-size: 15px; }
.crumbbar { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 0; }
.crumbbar .crumbs { color: var(--muted); }
.crumbbar .crumbs a:hover { color: var(--brand); }

/* ---------- product detail ---------- */
.pd { display: grid; grid-template-columns: 1.04fr .96fr; gap: 54px; align-items: start; padding: 56px 0 20px; }
.gallery .main { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fafbfc; }
.gallery .main img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.thumbs button { padding: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(13,59,102,.14); }
.thumbs img { aspect-ratio: 4 / 3; object-fit: cover; }
.pd h1 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.03em; }
.pd .cat-link { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.pd .lede { color: var(--ink-3); margin-top: 14px; font-size: 15px; }
.pd .actions { display: flex; gap: 10px; margin: 24px 0 8px; flex-wrap: wrap; }
.spec { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: 13.5px; }
.spec th, .spec td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 38%; color: var(--muted); font-weight: 500; }
.spec td { font-weight: 600; color: var(--ink-2); }

/* ---------- prose ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 26px; margin: 38px 0 14px; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; }
.prose p { color: var(--ink-3); margin-bottom: 14px; font-size: 15px; line-height: 1.75; }
.prose ul { color: var(--ink-3); padding-left: 20px; font-size: 15px; line-height: 1.75; }
.prose li { margin-bottom: 8px; }

/* ---------- filter chips ---------- */
.filters { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 28px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 16px; font-size: 13px; cursor: pointer; color: var(--ink-3);
  transition: .16s var(--ease);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.chip span { color: var(--muted); font-size: 12px; }
.chip:hover span { color: var(--ink-3); }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea, .field select {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  font: inherit; font-size: 14px; background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(13,59,102,.1);
}
.field textarea { min-height: 118px; resize: vertical; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---------- contact cards ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; }
.contact-card .k { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-card b { display: block; margin-top: 8px; font-size: 15.5px; }
.contact-card p { font-size: 13px; color: var(--ink-3); margin-top: 6px; }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1fr; padding: 54px 0 64px; }
  .hero-card img { height: 340px; }
  .hero-float { left: 16px; }
  .process { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
  .step::after { display: none; }
}

@media (max-width: 900px) {
  .wrap { width: calc(100% - 36px); }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat { border-bottom: 1px solid var(--line); }
  .cat-grid, .prod-grid, .app-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.rev .media { order: 0; }
  .media img { height: 340px; }
  .pd { grid-template-columns: 1fr; gap: 30px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 620px) {
  .section { padding: 56px 0; }
  .topbar .left { display: none; }
  .cat-grid, .prod-grid, .app-grid, .contact-grid, .form-grid { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .hero-card img { height: 250px; }
  .hero-float { position: static; margin-top: 12px; }
  .cta .wrap { padding: 54px 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .masthead .wrap { min-height: 64px; gap: 12px; }
  .head-actions .btn { padding: 10px 15px; font-size: 13px; }
}

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 120; background: #fff;
  transform: translateX(100%); transition: transform .26s var(--ease);
  display: flex; flex-direction: column; padding: 18px;
  overflow-y: auto;
}
.drawer.open { transform: none; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer nav { display: grid; gap: 2px; }
.drawer nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 15.5px; font-weight: 550; }
.drawer .sub { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 18px 0 6px; }
.drawer-close { width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 10px; font-size: 20px; }

/* =========================================================
   v1.1 — gallery-safe media, mega columns, lightbox
   Product photography is never cropped: containers letterbox it.
   ========================================================= */

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.mega .mcol { display: grid; gap: 2px; align-content: start; }

/* product surfaces: contain, never cover */
.prod-card .ph,
.cat-card .ph,
.gallery .main,
.thumbs button {
  background: #fff;
}
.prod-card .ph img,
.cat-card .ph img {
  object-fit: contain;
  padding: 10px;
}
.prod-card:hover .ph img,
.cat-card:hover .ph img { transform: none; }
.gallery .main img {
  object-fit: contain;
  background: #fff;
  padding: 12px;
}
.thumbs img {
  object-fit: contain;
  padding: 4px;
  background: #fff;
}
.media.product img {
  object-fit: contain;
  background: #fff;
  padding: 16px;
}

/* lightbox */
.lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(7, 15, 26, .92);
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s var(--ease), visibility .2s;
}
.lb.open { opacity: 1; visibility: visible; pointer-events: auto; }
.lb-fig {
  margin: 0; max-width: min(1000px, 88vw); max-height: 82vh;
  background: #fff; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.lb-fig img {
  max-width: 100%; max-height: 70vh; width: auto; height: auto;
  object-fit: contain; margin: 0 auto;
}
.lb-fig figcaption {
  padding: 12px 18px; font-size: 13px; color: var(--ink-3);
  border-top: 1px solid var(--line); background: #fff;
}
.lb-close {
  position: absolute; top: 18px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .1); color: #fff;
  font-size: 24px; line-height: 1; cursor: pointer;
}
.lb-close:hover { background: rgba(255, 255, 255, .2); }
.lb-actions {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
}

/* forms on dark / inline helpers */
.form-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 28px; box-shadow: var(--shadow-sm);
}
.form-card h2 { font-size: 22px; margin-bottom: 6px; }
.form-card > p { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.field .req { color: var(--accent); }
.checkline { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--muted); }
.checkline input { width: 16px; height: 16px; margin-top: 2px; }

/* spec / info panels */
.panel {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; background: #fff;
}
.panel h3 { font-size: 17px; margin-bottom: 10px; }
.panel ul { margin: 0; padding-left: 18px; color: var(--ink-3); font-size: 14px; line-height: 1.7; }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.threecol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.note {
  border-left: 3px solid var(--accent); background: #fff7f3;
  padding: 14px 18px; border-radius: 0 10px 10px 0;
  font-size: 13.5px; color: var(--ink-3);
}
.steps-list { counter-reset: s; display: grid; gap: 0; }
.steps-list li {
  list-style: none; counter-increment: s; position: relative;
  padding: 0 0 26px 54px; border-left: 1px solid var(--line); margin-left: 15px;
}
.steps-list li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps-list li::before {
  content: counter(s); position: absolute; left: -16px; top: -2px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 700;
  display: grid; place-items: center;
}
.steps-list b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.steps-list span { font-size: 13.5px; color: var(--muted); }

table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th, table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
table.data th { background: var(--mist); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
table.data td:first-child { font-weight: 600; }
.table-scroll { overflow-x: auto; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat-card b { display: block; font-size: 24px; letter-spacing: -.02em; }
.stat-card span { font-size: 12.5px; color: var(--muted); }

.timeline { display: grid; gap: 26px; }
.timeline li { list-style: none; display: grid; grid-template-columns: 110px 1fr; gap: 20px; }
.timeline .yr { font-weight: 800; color: var(--brand); font-size: 15px; letter-spacing: .02em; }
.timeline b { display: block; font-size: 15.5px; }
.timeline span { font-size: 13.5px; color: var(--muted); }

.p404 { text-align: center; padding: 96px 0 110px; }
.p404 .code { font-size: clamp(64px, 12vw, 130px); font-weight: 800; letter-spacing: -.05em; color: var(--mist-2); line-height: 1; }
.p404 h1 { font-size: clamp(24px, 3vw, 34px); margin: 18px 0 12px; }
.p404 p { color: var(--muted); max-width: 520px; margin: 0 auto 26px; }

@media (max-width: 900px) {
  .twocol, .threecol, .stat-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .twocol, .threecol, .stat-strip { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .lb { padding: 14px; }
  .lb-fig { max-width: 100%; }
}

/* ---------- v1.2 · 母站品牌标识（诚泱字标 ｜ CHENGYANG） ---------- */
/* 页头只出现一次 CHENGYANG：左侧为“诚泱”字标，右侧为品牌名 + 事业部副标。
   主副标之间用 1px 竖线分隔，颜色统一到 --brand，避免墨绿标识与近黑文字并排。 */
.masthead .brand { gap: 15px; }
.brand-mark {
  width: auto; height: 40px; border-radius: 0; background: none;
  box-shadow: none; overflow: visible; display: flex; align-items: center;
}
.brand-mark img { height: 40px; width: auto; display: block; }
.brand-text { padding-left: 15px; border-left: 1px solid rgba(13, 59, 102, .18); gap: 3px; }
.brand-name { color: var(--brand); letter-spacing: .13em; font-size: 16px; }
.brand-sub { font-size: 8.5px; letter-spacing: .2em; color: #7f8d9b; }
.foot-logo { display: inline-block; line-height: 0; }
.foot-logo img { height: 72px; width: auto; display: block; }
@media (max-width: 620px) {
  .brand-mark, .brand-mark img { height: 34px; }
  .foot-logo img { height: 60px; }
}

/* ---------- v1.3 · 图库 / 图片墙 ---------- */
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 10px; }
.gal-item { display: block; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.gal-item .ph { aspect-ratio: 1; background: #fff; display: grid; place-items: center; overflow: hidden; }
.gal-item .ph img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: transform .45s var(--ease); }
.gal-item:hover .ph img { transform: scale(1.05); }
.gal-item:hover { box-shadow: var(--shadow-md); border-color: #cfd6df; }
.gal-item .cap { display: flex; justify-content: space-between; gap: 6px; padding: 7px 10px 9px; font-size: 11px; color: var(--ink-3); border-top: 1px solid var(--line); }
.gal-item .cap b { font-weight: 650; color: var(--ink-2); font-size: 11px; letter-spacing: .04em; }
.gal-count { font-size: 13px; color: var(--muted); margin: 2px 0 18px; }

/* 页面内的图片横条：全部等比，不裁切 */
.imgstrip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 26px; }
.imgstrip a { display: block; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.imgstrip img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 6px; display: block; transition: transform .4s var(--ease); }
.imgstrip a:hover img { transform: scale(1.05); }
.imgstrip a:hover { border-color: #cfd6df; box-shadow: var(--shadow-sm); }

@media (max-width: 980px) {
  .imgstrip { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 620px) {
  .gal-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .imgstrip { grid-template-columns: repeat(3, 1fr); }
  .brand-text { display: none; }
  .brand-mark, .brand-mark img { height: 34px; }
}

/* ---------- v1.4 · 首屏轮播 / 材料族滚动条 / 通栏品类卡 ---------- */

/* 首屏轮播：产品图一律 contain，永不裁切 */
.hero-grid > .hero-slider { min-width: 0; }
.hero-stage {
  position: relative; aspect-ratio: 4 / 3;
  border-radius: 18px; overflow: hidden;
  background: #fff; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: var(--shadow-lg);
}
.hero-slide {
  position: absolute; inset: 0; margin: 0;
  background: #fff; opacity: 0;
  transition: opacity .6s var(--ease);
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%; display: block;
  object-fit: contain; padding: 12px 12px 26px;
}
.hero-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: flex-end; gap: 14px;
  padding: 72px 20px 34px; color: #fff;
  background: linear-gradient(to top,
    rgba(6, 21, 37, .90) 0%, rgba(6, 21, 37, .55) 46%, rgba(6, 21, 37, 0) 100%);
}
.hc-idx {
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  color: #ffb99f; line-height: 1.6; font-variant-numeric: tabular-nums;
}
.hc-idx i { font-style: normal; color: rgba(255, 255, 255, .55); }
.hc-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hc-tx b { font-size: 17px; letter-spacing: -.01em; }
.hc-tx span { font-size: 12px; color: rgba(255, 255, 255, .74); }
.hero-arrows { position: absolute; inset: 0; pointer-events: none; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(6, 21, 37, .42); color: #fff;
  font-size: 22px; line-height: 1; pointer-events: auto;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background .2s, border-color .2s;
}
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); }
.hero-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hero-prev { left: 12px; }
.hero-next { right: 12px; }
.hero-dots {
  position: absolute; left: 20px; bottom: 14px; z-index: 4;
  display: flex; gap: 7px;
}
.hero-dot {
  width: 24px; height: 3px; padding: 0; border: 0; border-radius: 2px;
  background: rgba(255, 255, 255, .38); cursor: pointer;
  transition: width .25s var(--ease), background .25s;
}
.hero-dot.is-active { width: 34px; background: #fff; }
.hero-dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: rgba(255, 255, 255, .18); z-index: 4;
}
.hero-progress i {
  display: block; width: 100%; height: 100%;
  background: var(--accent); transform: scaleX(0);
  transform-origin: 0 50%;
}
.hero-progress i.run { animation: heroProg 6s linear forwards; }
@keyframes heroProg { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* 材料族滚动条（纯文字，无缝） */
.range-ticker {
  overflow: hidden; background: #fff; border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.rt-track { display: flex; width: max-content; animation: rtTick 52s linear infinite; }
.rt-track > span {
  display: inline-flex; align-items: center;
  padding: 13px 0 13px 44px; white-space: nowrap;
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
}
.rt-track > span::after {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); opacity: .5; margin-left: 44px;
}
.range-ticker:hover .rt-track { animation-play-state: paused; }
@keyframes rtTick { to { transform: translateX(-50%); } }

/* 第 13 个材料族通栏 */
.cat-card.wide {
  grid-column: 1 / -1; display: grid; align-items: stretch;
  grid-template-columns: 320px minmax(0, 1fr) 300px;
}
.cat-card.wide .ph { aspect-ratio: auto; height: 100%; min-height: 292px; border-right: 1px solid var(--line); }
.cat-card.wide .ph img { height: 100%; min-height: 292px; }
.cat-card.wide .cnt { left: 12px; right: auto; border: 1px solid var(--line); }
.cat-card.wide .tx { display: flex; flex-direction: column; justify-content: center; padding: 26px 30px; }
.cat-card.wide h3 { font-size: 19px; }
.cat-card.wide p { font-size: 13.5px; max-width: 560px; }
.cat-card.wide:hover .tx h3 { color: var(--brand); }
.cat-card.wide .ph-strip {
  display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr);
  gap: 8px; align-content: center; padding: 14px 14px 14px 0;
}
.cat-card.wide .ph-strip img {
  width: 100%; height: auto; aspect-ratio: 1; display: block; background: #fff;
  object-fit: contain; padding: 4px;
  border: 1px solid var(--line); border-radius: 8px;
}

@media (max-width: 1100px) {
  .hero-stage { max-width: 640px; }
}
@media (max-width: 900px) {
  .cat-card.wide { grid-column: auto; display: flex; flex-direction: column; }
  .cat-card.wide .ph { aspect-ratio: 4 / 3; height: auto; min-height: 0; border-right: 0; }
  .cat-card.wide .ph img { height: 100%; min-height: 0; }
  .cat-card.wide .ph-strip { display: none; }
  .cat-card.wide .tx { padding: 16px 18px 20px; }
}
@media (max-width: 620px) {
  .hero-slide img { padding: 8px 8px 24px; }
  .hero-cap { padding: 52px 14px 30px; gap: 10px; }
  .hc-tx b { font-size: 15px; }
  .hero-arrow { width: 34px; height: 34px; font-size: 18px; }
  .hero-prev { left: 8px; }
  .hero-next { right: 8px; }
  .hero-dots { left: 14px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-progress { display: none; }
}

/* ---------- v1.5 顶部条移除：语言切换并入主导航 ---------- */
.lang-head { border: 1px solid var(--line); border-radius: 999px; padding: 2px; gap: 0; }
.lang-head a { font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 4px 9px; border-radius: 999px; color: var(--muted); }
.lang-head a:hover { color: var(--ink); }
.lang-head a[aria-current="true"] { background: var(--ink); color: #fff; }
.drawer-lang { display: flex; gap: 8px; padding: 16px 22px 4px; }
.drawer-lang a { font-size: 13px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.drawer-lang a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (max-width: 900px) {
  .head-actions .btn-primary { display: none; }
}
@media (max-width: 620px) {
  .lang-head a { font-size: 11.5px; padding: 4px 7px; }
  .masthead .wrap { gap: 8px; }
}

/* ---------- v1.5 · 品类事实块 / 上下文内链 ---------- */
.factbox {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
}
.factbox .fb { background: #fff; padding: 15px 18px 16px; }
.factbox span {
  display: block; font-size: 10px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 5px;
}
.factbox b { display: block; font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--ink-2); }
.rel-line { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.rel-line a { color: var(--brand); font-weight: 600; border-bottom: 1px solid rgba(13, 59, 102, .25); }
.rel-line a:hover { border-bottom-color: var(--brand); }
@media (max-width: 900px) { .factbox { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .factbox { grid-template-columns: 1fr; } }
