:root {
  --navy: #173b59;
  --navy-deep: #0f2a40;
  --teal: #079b91;
  --teal-text: #06706a;
  --bg: #f3f6f7;
  --card: #ffffff;
  --ink: #1e2a33;
  --muted: #4d5d69;
  --line: #d5dde2;
  --wrap: 1200px;
  --head-h: 68px;
  --sans: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-text); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

/* language visibility */
html:not(.lang-en) [data-l="en"],
html.lang-en [data-l="zh"] { display: none !important; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--head-h); gap: 16px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.1rem; letter-spacing: .12em; }
.brand-text small { font-size: .7rem; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 8px 12px; text-decoration: none;
  color: var(--ink); font-size: .9rem; font-weight: 600; letter-spacing: .04em;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--navy); border-bottom-color: var(--teal); }

.lang-btn {
  margin-left: 12px; font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  padding: 7px 12px; background: transparent; color: var(--navy);
  border: 1px solid var(--navy); border-radius: 0; cursor: pointer;
}
.lang-btn:hover { background: var(--navy); color: #fff; }

.menu-btn {
  display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line);
  background: #fff; border-radius: 0; cursor: pointer; color: var(--navy);
}
.menu-btn svg { width: 22px; height: 22px; margin: auto; display: block; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--head-h);
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 8px 24px 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .lang-btn { margin: 16px 0 0; align-self: flex-start; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 13px 26px; font-weight: 700; font-size: .9rem;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  border: 2px solid var(--navy); border-radius: 0; transition: background .15s, color .15s;
}
.btn-solid { background: var(--navy); color: #fff; }
.btn-solid:hover { background: #fff; color: var(--navy); }
.btn-line { background: transparent; color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }

/* ---------- hero ---------- */
.hero { background: var(--bg); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 5fr 7fr; align-items: stretch; min-height: 500px; }
.hero-copy { padding: 72px 48px 72px 0; display: flex; flex-direction: column; justify-content: center; }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--teal-text); margin: 0 0 18px; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--teal); }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; letter-spacing: -.01em; }
.hero-lead { font-size: 1.08rem; color: var(--muted); max-width: 34em; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; margin-right: calc(-1 * max(24px, (100vw - var(--wrap)) / 2 + 24px)); }
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 62% 70%; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 48px 0 32px; }
  .hero-media { margin: 0 -24px; }
  .hero-media img { height: auto; aspect-ratio: 1920 / 1046; }
}

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { border-left: 3px solid var(--teal); padding-left: 20px; margin-bottom: 48px; }
.sec-num { font-size: .78rem; font-weight: 700; letter-spacing: .22em; color: var(--teal-text); text-transform: uppercase; margin: 0 0 8px; }
.sec-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.sec-head p { margin: 12px 0 0; color: var(--muted); max-width: 46em; }

@media (max-width: 600px) { .section { padding: 64px 0; } }

/* about */
.about-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; }
.about-text p { margin: 0 0 1.1em; font-size: 1.05rem; }
.facts { margin: 0; border-top: 2px solid var(--navy); }
.facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.facts dd { margin: 0; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 420px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }

/* hero facts strip */
.hero-facts { background: #fff; border-top: 1px solid var(--line); }
.hero-facts dl { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-facts dl > div { padding: 22px 24px 22px 0; border-right: 1px solid var(--line); margin-right: 24px; }
.hero-facts dl > div:last-child { border-right: 0; margin-right: 0; }
.hero-facts dt { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero-facts dd { margin: 4px 0 0; font-weight: 700; color: var(--navy); }
@media (max-width: 860px) {
  .hero-facts dl { grid-template-columns: 1fr 1fr; }
  .hero-facts dl > div { padding: 16px 12px 16px 0; margin-right: 12px; border-bottom: 1px solid var(--line); }
  .hero-facts dl > div:nth-child(2n) { border-right: 0; margin-right: 0; }
  .hero-facts dl > div:nth-last-child(-n+2) { border-bottom: 0; }
}

/* services */
.svc-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.svc-group > h3 {
  display: flex; align-items: center; gap: 12px; font-size: 1.15rem;
  padding-bottom: 14px; margin: 0; border-bottom: 2px solid var(--navy);
}
.svc-key {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  background: var(--navy); color: #fff; font-size: .8rem; letter-spacing: 0;
}
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list li { display: grid; grid-template-columns: 28px 1fr; column-gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.svc-list svg { width: 26px; height: 26px; color: var(--teal-text); grid-row: 1 / 3; margin-top: 2px; }
.svc-list h4 { font-size: 1rem; color: var(--navy); margin: 0 0 6px; line-height: 1.35; }
.svc-list p { margin: 0; color: var(--muted); font-size: .93rem; }
@media (max-width: 1000px) { .svc-groups { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .svc-groups { grid-template-columns: 1fr; gap: 32px; } }

/* products */
.cat-index { list-style: none; margin: 0 0 56px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cat-index a {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px;
  border: 1px solid var(--navy); color: var(--navy); text-decoration: none; font-weight: 600; font-size: .92rem;
}
.cat-index a:hover { background: var(--navy); color: #fff; }
.pgroup + .pgroup { margin-top: 64px; }
.pgroup > h3 {
  font-size: 1.3rem; display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 14px; border-bottom: 2px solid var(--navy); margin-bottom: 0;
}
.pgroup > h3 small { font-size: .8rem; font-weight: 600; letter-spacing: .1em; color: var(--muted); }
.pitem { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.pimg { background: #fff; border: 1px solid var(--line); aspect-ratio: 1 / 1; padding: 16px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pimg picture { display: block; width: 100%; height: 100%; }
.pimg img { width: 100%; height: 100%; object-fit: contain; }
.pbody h4 { font-size: 1.25rem; color: var(--navy); margin: 0 0 10px; line-height: 1.3; }
.pdesc { margin: 0 0 20px; color: var(--ink); max-width: 44em; }
.spec { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.spec div.wide { grid-column: 1 / -1; }
.spec dt { color: var(--muted); font-weight: 600; }
.spec dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.card-tag { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-text); margin: 0 0 6px; }
@media (max-width: 960px) { .pitem { grid-template-columns: 220px 1fr; gap: 28px; } .spec { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .pitem { grid-template-columns: 1fr; gap: 20px; padding: 28px 0; }
  .pimg { max-width: 360px; }
  .spec div { grid-template-columns: 5.5em 1fr; }
}

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: #fff; }
.contact-item { padding: 36px 32px; border-right: 1px solid var(--line); }
.contact-item:last-child { border-right: 0; }
.contact-item svg { width: 30px; height: 30px; color: var(--teal-text); margin-bottom: 18px; }
.contact-item h3 { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.contact-item p, .contact-item address { margin: 0; font-style: normal; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.contact-item a { color: var(--navy); }
.contact-item a:hover { color: var(--teal-text); }
.contact-note { margin: 24px 0 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 24px; }
  .contact-item:last-child { border-bottom: 0; }
}

/* ---------- footer ---------- */
.site-foot { background: var(--navy-deep); color: #c9d6df; font-size: .9rem; padding: 56px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.foot-name { color: #fff; font-weight: 700; margin: 0 0 4px; }
.site-foot p { margin: 0 0 6px; }
.site-foot a { color: #fff; }
.site-foot a:hover { color: #8fe3da; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin-bottom: 8px; }
.foot-bottom { padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- inner pages ---------- */
.page { padding: 72px 0 96px; }
.page .doc { max-width: 720px; }
.doc h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.doc h2 { font-size: 1.2rem; margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.doc .updated { color: var(--muted); font-size: .92rem; margin: 0 0 2em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .4em; }
.doc address { font-style: normal; }

.notfound { min-height: 60vh; display: flex; align-items: center; padding: 80px 0; }
.notfound .code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; color: var(--navy); margin: 0; letter-spacing: -.03em; }
.notfound .code span { color: var(--teal); }
.notfound h1 { font-size: 1.5rem; margin: 16px 0 10px; }
.notfound p { color: var(--muted); margin: 0 0 28px; max-width: 32em; }
.page-404 { min-height: 100vh; display: flex; flex-direction: column; }
.page-404 main { flex: 1; }

.site-foot p { overflow-wrap: anywhere; }
.hero-lead, .about-text p, .doc p, .doc address, .foot-bottom span { overflow-wrap: anywhere; }
