/* ==========================================================================
   海山机械主题 — main.css（全站公共样式）
   移动端优先；断点 640 / 900 / 1100 / 1280
   ========================================================================== */

@font-face {
  font-family: "Barlow";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/barlow-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Barlow";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/barlow-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* ---------- Tokens ---------- */
:root {
  --navy-950: #061423;
  --navy-900: #0a1f33;
  --navy-800: #0f2a44;
  --navy-700: #173b5c;
  --teal-300: #5ccfe0;
  --teal-500: #009eb8; /* Logo 品牌色 */
  --teal-600: #007386; /* 白底/浅灰底上的按钮与链接，对比度 ≥ 5:1 */
  --teal-700: #005b6b;
  --teal-50: #e6f6f9;

  --ink: #0d1b2a;
  --body: #3a4858;
  --muted: #5a6b7d;
  --line: #e1e7ed;
  --surface: #f3f6f9;
  --white: #ffffff;
  --on-dark: rgba(255, 255, 255, 0.92);
  --on-dark-muted: rgba(255, 255, 255, 0.68);
  --line-dark: rgba(255, 255, 255, 0.14);

  --font-cn: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-latin: "Barlow", var(--font-cn);
  --font-cond: "Barlow Condensed", "Barlow", var(--font-cn);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 42, 0.06), 0 1px 3px rgba(13, 27, 42, 0.08);
  --shadow: 0 8px 24px -8px rgba(13, 27, 42, 0.16);
  --shadow-lg: 0 22px 48px -14px rgba(13, 27, 42, 0.28);

  --container: 1240px;
  --gutter: 16px;
  --header-h: 64px;
  --section-y: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 220ms;

  --z-header: 50;
  --z-drawer: 80;
  --z-actionbar: 40;
  --z-pill: 45;
}
@media (min-width: 640px) {
  :root { --gutter: 24px; --section-y: 80px; }
}
@media (min-width: 1100px) {
  :root { --gutter: 32px; --header-h: 80px; --section-y: 112px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-cn);
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { color: var(--teal-700); }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.3; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--teal-300); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; background: var(--white); color: var(--ink); border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 28px; height: 28px; }
.latin { font-family: var(--font-latin); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: 0.02em;
  cursor: pointer; white-space: nowrap; touch-action: manipulation;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn .icon { transition: transform var(--dur) var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--teal-600); color: var(--white); }
.btn--primary:hover { background: var(--teal-700); color: var(--white); }
.btn--light { background: var(--white); color: var(--navy-900); }
.btn--light:hover { background: var(--teal-50); color: var(--navy-900); }
.btn--ghost-light { border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); color: var(--white); }
.btn--outline { border-color: var(--teal-600); color: var(--teal-600); }
.btn--outline:hover { background: var(--teal-600); color: var(--white); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 15px; color: var(--teal-600);
}
.link-arrow .icon { transition: transform var(--dur) var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
.on-dark .link-arrow { color: var(--teal-300); }
.on-dark .link-arrow:hover { color: var(--white); }

/* ---------- Section scaffolding ---------- */
.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }
.section--dark { background: var(--navy-900); color: var(--on-dark-muted); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-latin); font-weight: 600; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-600);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.on-dark .eyebrow { color: var(--teal-300); }

.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-title { font-size: clamp(26px, 4.2vw, 40px); letter-spacing: 0.01em; }
.section-lead { margin-top: 14px; font-size: 16px; color: var(--muted); }
.on-dark .section-lead { color: var(--on-dark-muted); }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.section-head--split > div { max-width: 720px; }
@media (min-width: 1100px) { .section-head { margin-bottom: 56px; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  height: var(--header-h);
  color: var(--white);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
}
.site-header::before { /* 顶部渐暗，保证透明状态下 Logo 与导航可读 */
  content: ""; position: absolute; inset: 0 0 -24px 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 20, 35, 0.55), rgba(6, 20, 35, 0));
  transition: opacity var(--dur) var(--ease);
}
.site-header.is-solid { background: var(--white); color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 6px 20px -12px rgba(13, 27, 42, 0.25); }
.site-header.is-solid::before { opacity: 0; }
.header-inner { position: relative; display: flex; align-items: center; height: 100%; gap: 24px; }

.brand { position: relative; display: block; flex-shrink: 0; width: 142px; height: 34px; }
.brand img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity var(--dur) var(--ease); }
.brand .logo--color { opacity: 0; }
.site-header.is-solid .brand .logo--white { opacity: 0; }
.site-header.is-solid .brand .logo--color { opacity: 1; }
@media (min-width: 1100px) { .brand { width: 168px; height: 40px; } }

.main-nav { display: none; margin-left: auto; height: 100%; }
.nav-list { display: flex; height: 100%; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  height: 100%; padding: 0 14px; color: inherit; font-size: 15px; font-weight: 500; white-space: nowrap;
}
.nav-link:hover { color: inherit; }
.nav-link .icon { width: 14px; height: 14px; opacity: 0.7; transition: transform var(--dur) var(--ease); }
.nav-link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px;
  background: var(--teal-500); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
}
.nav-item:hover > .nav-link::after, .nav-item.is-current > .nav-link::after, .nav-item:focus-within > .nav-link::after { transform: scaleX(1); }
.nav-item:hover > .nav-link .icon, .nav-item.is-open > .nav-link .icon { transform: rotate(180deg); }

.sub-menu {
  position: absolute; top: 100%; left: 50%; min-width: 184px; padding: 8px;
  background: var(--white); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.nav-item:hover > .sub-menu, .nav-item:focus-within > .sub-menu, .nav-item.is-open > .sub-menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s;
}
.sub-menu a { display: block; padding: 9px 14px; border-radius: var(--radius-sm); color: var(--ink); font-size: 14px; line-height: 1.5; white-space: nowrap; }
.sub-menu a:hover { background: var(--surface); color: var(--teal-600); }

.mega { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 560px; padding: 16px; }
.mega-col { padding: 8px; border-radius: var(--radius); }
.mega-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; color: var(--ink); }
.mega-head img { width: 64px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); }
.mega-head strong { display: block; font-size: 15px; line-height: 1.4; }
.mega-head span { display: block; font-family: var(--font-latin); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.mega-col a.mega-sub { padding: 7px 10px 7px 12px; }
.mega-foot { grid-column: 1 / -1; display: flex; justify-content: flex-end; padding: 10px 8px 0; border-top: 1px solid var(--line); }
.mega-foot a { padding: 6px 4px; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-tel { display: none; align-items: center; gap: 8px; color: inherit; font-family: var(--font-latin); font-weight: 600; font-size: 17px; letter-spacing: 0.02em; }
.header-tel:hover { color: inherit; opacity: 0.85; }
.header-tel .icon { color: var(--teal-500); }
.header-cta { display: none; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-sm); background: transparent; color: inherit;
}
.icon-btn:hover { background: rgba(127, 140, 155, 0.14); color: inherit; }
@media (min-width: 1100px) {
  .main-nav { display: block; }
  .header-actions { margin-left: 8px; gap: 20px; }
  .header-tel, .header-cta { display: inline-flex; }
  .nav-toggle, .header-call { display: none; }
}
@media (min-width: 1100px) and (max-width: 1279px) {
  .nav-link { padding: 0 10px; font-size: 14px; }
  .nav-link::after { left: 10px; right: 10px; }
  .header-tel { display: none; }
}

/* ---------- Mobile drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: var(--z-drawer); background: rgba(6, 20, 35, 0.55);
  opacity: 0; visibility: hidden; transition: opacity 260ms var(--ease), visibility 0s linear 260ms;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: calc(var(--z-drawer) + 1);
  display: flex; flex-direction: column;
  width: min(88vw, 380px); background: var(--white); color: var(--ink);
  transform: translateX(100%); visibility: hidden;
  transition: transform 300ms var(--ease), visibility 0s linear 300ms;
}
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; transition-delay: 0s; }
body.drawer-open .drawer { transform: none; visibility: visible; transition-delay: 0s; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 8px 0 var(--gutter); border-bottom: 1px solid var(--line); }
.drawer-head img { width: 142px; height: auto; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 0 24px; overscroll-behavior: contain; }
.drawer-nav > li { border-bottom: 1px solid var(--line); }
.drawer-row { display: flex; align-items: center; }
.drawer-row > a { flex: 1; display: block; padding: 14px var(--gutter); color: var(--ink); font-size: 16px; font-weight: 600; }
.drawer-row > a:hover { color: var(--teal-600); }
.drawer-row > button { width: 56px; height: 52px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.drawer-row > button .icon { transition: transform var(--dur) var(--ease); }
.drawer-row > button[aria-expanded="true"] .icon { transform: rotate(180deg); }
.drawer-sub { padding: 0 0 10px; }
.drawer-sub[hidden] { display: none; }
.drawer-sub a { display: block; padding: 9px var(--gutter) 9px calc(var(--gutter) + 14px); color: var(--body); font-size: 15px; }
.drawer-sub a:hover { color: var(--teal-600); }
.drawer-foot { padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer-foot .btn { width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-900); color: var(--on-dark); }
.hero::before { /* 工程网格底纹 */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  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: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 45%, #000 100%);
}
.hero-slides { display: grid; }
.hero-slide {
  grid-area: 1 / 1; position: relative;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity 700ms var(--ease), visibility 0s linear 700ms;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity 700ms var(--ease); }
.hero-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-800); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.hero-slide.is-active .hero-media img { transform: scale(1); }
.hero-media::after { /* 移动端：顶部压暗给导航留出可读区，底部过渡到文字区 */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 31, 51, 0.6) 0%, rgba(10, 31, 51, 0) 28%, rgba(10, 31, 51, 0) 70%, var(--navy-900) 100%);
}
.hero-copy { position: relative; padding: 4px 0 28px; }
.hero-copy .eyebrow { margin-bottom: 14px; color: var(--teal-300); }
.hero-title { color: var(--white); font-size: clamp(32px, 8.4vw, 60px); line-height: 1.18; letter-spacing: 0.02em; }
.hero-slogan { margin-top: 10px; font-size: clamp(18px, 4.6vw, 24px); font-weight: 600; color: var(--teal-300); letter-spacing: 0.06em; }
.hero-desc { margin-top: 16px; max-width: 520px; color: var(--on-dark-muted); font-size: 16px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-copy > * { transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.hero-slide:not(.is-active) .hero-copy > * { opacity: 0; transform: translateY(14px); }
.hero-slide.is-active .hero-copy > :nth-child(2) { transition-delay: 60ms; }
.hero-slide.is-active .hero-copy > :nth-child(3) { transition-delay: 120ms; }
.hero-slide.is-active .hero-copy > :nth-child(4) { transition-delay: 180ms; }
.hero-slide.is-active .hero-copy > :nth-child(5) { transition-delay: 240ms; }

.hero-controls { position: relative; z-index: 2; display: flex; align-items: stretch; gap: 8px; padding-bottom: 28px; }
.hero-tabs { display: grid; grid-template-columns: repeat(var(--tabs, 3), 1fr); flex: 1; gap: 8px; }
.hero-tab {
  position: relative; display: block; padding: 14px 0 0; border: 0; background: transparent;
  text-align: left; color: var(--on-dark-muted); font-size: 13px; line-height: 1.4; min-height: 44px;
}
.hero-tab::before, .hero-tab .bar { content: ""; position: absolute; top: 0; left: 0; height: 2px; }
.hero-tab::before { right: 0; background: rgba(255, 255, 255, 0.22); }
.hero-tab .bar { width: 100%; background: var(--teal-500); transform: scaleX(0); transform-origin: left; }
.hero-tab[aria-selected="true"] { color: var(--white); }
.hero-tab[aria-selected="true"] .bar { transform: scaleX(1); }
.hero.is-playing .hero-tab[aria-selected="true"] .bar { animation: hero-progress var(--hero-interval, 7000ms) linear forwards; }
.hero.is-hover .hero-tab[aria-selected="true"] .bar { animation-play-state: paused; }
.hero-tab .num { display: block; font-family: var(--font-cond); font-size: 15px; font-weight: 600; letter-spacing: 0.06em; color: var(--teal-300); }
.hero-tab .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-pause { align-self: flex-end; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 50%; background: transparent; color: var(--white); display: inline-flex; align-items: center; justify-content: center; }
.hero-pause:hover { background: rgba(255, 255, 255, 0.1); }
.hero-pause .icon { width: 16px; height: 16px; }
.hero-pause .i-play { display: none; }
.hero.is-paused .hero-pause .i-play { display: block; }
.hero.is-paused .hero-pause .i-pause { display: none; }
@keyframes hero-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (min-width: 640px) {
  .hero-tab .label { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; display: block; }
  .hero-media { aspect-ratio: 16 / 10; }
}
@media (min-width: 1100px) {
  .hero-slide { min-height: clamp(640px, 86vh, 820px); justify-content: center; }
  .hero-media { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; aspect-ratio: auto; clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%); }
  .hero-media::before { /* 斜切边上的品牌色描边 */
    content: ""; position: absolute; inset: 0; z-index: 1; background: var(--teal-500);
    clip-path: polygon(16% 0, calc(16% + 5px) 0, 5px 100%, 0 100%);
  }
  .hero-media::after { background: linear-gradient(180deg, rgba(10, 31, 51, 0.45) 0%, rgba(10, 31, 51, 0) 22%), linear-gradient(90deg, rgba(10, 31, 51, 0.35) 0%, rgba(10, 31, 51, 0) 30%); }
  .hero-copy { max-width: 540px; padding: calc(var(--header-h) + 24px) 0 140px; }
  .hero-controls { position: absolute; left: 0; right: 0; bottom: 40px; padding-bottom: 0; }
  .hero-controls .hero-tabs { max-width: 540px; }
  .hero-tab { font-size: 14px; }
}

/* ---------- Stats ---------- */
.stats { border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 28px 8px 28px 0; }
.stat:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 20px; }
.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.stat-value { display: flex; align-items: baseline; gap: 4px; color: var(--ink); font-family: var(--font-cond); font-weight: 700; font-size: clamp(38px, 9vw, 56px); line-height: 1; letter-spacing: 0.01em; }
.stat-value small { font-family: var(--font-cn); font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.stat-value .plus { color: var(--teal-500); }
.stat-label { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (min-width: 900px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .stat, .stat:nth-child(odd), .stat:nth-child(even) { padding: 40px 24px; border-bottom: 0; border-right: 1px solid var(--line); }
  .stat:first-child { padding-left: 0; }
  .stat:last-child { border-right: 0; }
}

/* ---------- Product lines ---------- */
.lines-grid { display: grid; gap: 20px; }
.line-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white);
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.line-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; }
.line-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.line-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 80%; transition: transform 600ms var(--ease); }
.line-card:hover .line-media img { transform: scale(1.04); }
.line-index { position: absolute; top: 16px; left: 16px; padding: 4px 10px; border-radius: 999px; background: rgba(10, 31, 51, 0.72); color: var(--white); font-family: var(--font-cond); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; }
.line-body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 24px; }
.line-en { font-family: var(--font-latin); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--teal-600); text-transform: uppercase; }
.line-title { font-size: clamp(22px, 3vw, 28px); }
.line-title a { color: var(--ink); }
.line-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.line-desc { color: var(--body); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 500; }
.line-body .link-arrow { margin-top: auto; padding-top: 6px; }
@media (min-width: 900px) {
  .lines-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .line-body { padding: 32px; }
}

/* ---------- Models (tabs) ---------- */
.tablist { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--white); box-shadow: var(--shadow-sm); max-width: 100%; overflow-x: auto; }
.tab {
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent;
  color: var(--body); font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--navy-900); color: var(--white); }
.tabpanel { margin-top: 28px; }
.tabpanel[hidden] { display: none; }
.models-grid { display: grid; gap: 16px; }
.model-card {
  position: relative; display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: start;
  padding: 12px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.model-card:hover { box-shadow: var(--shadow); }
.model-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); background: var(--surface); }
.model-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.model-card:hover .model-media img { transform: scale(1.05); }
.model-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; background: var(--teal-50); color: var(--teal-700); font-size: 12px; font-weight: 600; line-height: 1.6; }
.model-code { margin-top: 6px; font-family: var(--font-cond); font-weight: 700; font-size: 19px; line-height: 1.2; letter-spacing: 0.02em; color: var(--ink); word-break: break-all; }
.model-code a { color: inherit; }
.model-code a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.model-name { margin-top: 2px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.model-specs { display: none; }
.models-more { display: flex; justify-content: center; margin-top: 28px; }
.model-cta {
  display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 24px;
  border-radius: var(--radius); background: var(--navy-900); color: var(--on-dark-muted);
}
.model-cta h3 { color: var(--white); font-size: 20px; }
.model-cta .btn { align-self: flex-start; }
@media (min-width: 640px) {
  .models-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .model-card { grid-template-columns: 1fr; gap: 0; padding: 0; overflow: hidden; }
  .model-media { border-radius: 0; }
  .model-info { padding: 18px 20px 20px; }
  .model-code { font-size: 22px; margin-top: 10px; }
  .model-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
  .model-specs div { min-width: 0; }
  .model-specs dt { font-size: 12px; color: var(--muted); line-height: 1.4; }
  .model-specs dd { margin: 4px 0 0; color: var(--ink); font-family: var(--font-cond); font-weight: 600; font-size: 17px; line-height: 1.2; white-space: nowrap; }
  .model-specs dd small { margin-left: 2px; font-family: var(--font-latin); font-size: 12px; font-weight: 500; color: var(--muted); }
}
@media (min-width: 1100px) {
  .models-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .model-card:hover { transform: translateY(-4px); }
}

/* ---------- Applications (bento) ---------- */
.apps-grid { display: grid; gap: 16px; }
.app-tile {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 260px; padding: 22px; overflow: hidden; border-radius: var(--radius-lg); color: var(--on-dark);
  background: var(--navy-800);
}
.app-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.app-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 20, 35, 0) 30%, rgba(6, 20, 35, 0.86) 100%); }
.app-tile:hover img { transform: scale(1.05); }
.app-line { align-self: flex-start; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(6, 20, 35, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 12px; font-weight: 600; color: var(--white); }
.app-tile h3 { font-size: 20px; color: var(--white); }
.app-tile p { margin-top: 6px; font-size: 14px; line-height: 1.65; color: rgba(255, 255, 255, 0.8); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.app-tile a.cover { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.app-tile--feature h3 { font-size: clamp(22px, 3vw, 30px); }
@media (min-width: 640px) {
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .app-tile--feature { grid-column: 1 / -1; min-height: 340px; }
  .app-tile--wide-sm { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .apps-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; gap: 20px; }
  .app-tile { min-height: 0; padding: 26px; }
  .app-tile--feature { grid-column: span 2; grid-row: span 2; padding: 36px; }
  .app-tile--feature p { -webkit-line-clamp: 3; max-width: 560px; font-size: 15px; }
  .app-tile--wide-sm { grid-column: auto; }
}

/* ---------- Cases ---------- */
.cases-grid { display: grid; gap: 20px; }
.case-card { position: relative; display: flex; flex-direction: column; }
.case-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.case-card:hover .case-media img { transform: scale(1.05); }
.case-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 16px; font-size: 13px; color: var(--muted); }
.case-meta time { font-family: var(--font-latin); font-weight: 600; color: var(--teal-600); letter-spacing: 0.04em; }
.case-meta .loc { display: inline-flex; align-items: center; gap: 4px; }
.case-card h3 { margin-top: 6px; font-size: 18px; line-height: 1.45; }
.case-card h3 a { color: var(--ink); }
.case-card h3 a::after { content: ""; position: absolute; inset: 0; }
.case-card:hover h3 a { color: var(--teal-600); }
.case-card p { margin-top: 8px; font-size: 14px; line-height: 1.7; color: var(--body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cities { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.cities strong { color: var(--ink); font-weight: 600; margin-right: 4px; }
.cities span { display: inline-flex; align-items: center; gap: 14px; }
.cities span:not(:last-child)::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--teal-500); opacity: 0.6; }
@media (min-width: 640px) { .cases-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; } }
@media (min-width: 1100px) { .cases-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 32px; align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.about-badge {
  position: absolute; left: 16px; bottom: -20px; display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: var(--radius); background: var(--navy-900); color: var(--on-dark-muted); box-shadow: var(--shadow-lg);
}
.about-badge strong { font-size: 30px; line-height: 1; color: var(--teal-300); font-weight: 700; letter-spacing: 0.04em; }
.about-badge span { font-size: 13px; line-height: 1.5; }
.about-copy .eyebrow { margin-bottom: 14px; }
.about-copy p { margin-top: 18px; }
.creds { display: grid; gap: 10px; margin-top: 24px; }
.creds li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-weight: 500; line-height: 1.6; }
.creds .icon { margin-top: 3px; color: var(--teal-600); width: 18px; height: 18px; stroke-width: 2.25; }
.partners { margin-top: 22px; padding: 14px 16px; border-left: 3px solid var(--teal-500); background: var(--white); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 14px; color: var(--body); }
.partners b { color: var(--ink); }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (min-width: 640px) { .creds { grid-template-columns: 1fr 1fr; gap: 12px 24px; } }
@media (min-width: 1100px) {
  .about-grid { grid-template-columns: 1.05fr 1fr; gap: 72px; }
  .about-badge { left: -20px; bottom: 32px; }
}

.honors { margin-top: 72px; }
.honors-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.honors-head h3 { font-size: 20px; }
.honors-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.honor {
  display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line); transition: box-shadow var(--dur) var(--ease);
}
.honor:hover { box-shadow: var(--shadow); }
.honor-img { height: 150px; display: flex; align-items: center; justify-content: center; }
.honor-img img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; box-shadow: 0 2px 6px rgba(13, 27, 42, 0.12); }
.honor figcaption { font-size: 13px; line-height: 1.5; color: var(--ink); text-align: center; }
@media (min-width: 640px) { .honors-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1100px) { .honors-grid { grid-template-columns: repeat(6, 1fr); } .honor-img { height: 170px; } }

/* ---------- Service 5A ---------- */
.service-grid { display: grid; gap: 40px; }
.service-intro .eyebrow { margin-bottom: 14px; }
.service-intro p { margin-top: 16px; color: var(--muted); }
.service-nums { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 28px; overflow: hidden; border-radius: var(--radius); background: var(--line); border: 1px solid var(--line); }
.service-nums div { padding: 18px 16px; background: var(--white); }
.service-nums strong { display: block; font-family: var(--font-cond); font-weight: 700; font-size: 34px; line-height: 1; color: var(--ink); }
.service-nums strong small { margin-left: 2px; font-family: var(--font-cn); font-size: 14px; font-weight: 600; color: var(--muted); }
.service-nums span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.pillars { display: grid; gap: 12px; counter-reset: pillar; }
.pillar { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--surface); }
.pillar-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--white); color: var(--teal-600); box-shadow: var(--shadow-sm); }
.pillar-en { font-family: var(--font-latin); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-600); }
.pillar h3 { margin-top: 2px; font-size: 17px; }
.pillar p { margin-top: 6px; font-size: 14px; line-height: 1.7; color: var(--body); }
@media (min-width: 640px) { .pillars { grid-template-columns: 1fr 1fr; } .pillar:last-child { grid-column: 1 / -1; } }
@media (min-width: 1100px) {
  .service-grid { grid-template-columns: 0.9fr 1.4fr; gap: 64px; align-items: start; }
  .service-intro { position: sticky; top: calc(var(--header-h) + 32px); }
  .pillars { gap: 16px; }
  .pillar { padding: 24px; }
}

/* ---------- News ---------- */
.news-grid { display: grid; gap: 20px; }
.news-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); transition: box-shadow var(--dur) var(--ease); }
.news-card:hover { box-shadow: var(--shadow); }
.news-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.news-card:hover .news-media img { transform: scale(1.04); }
.news-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 24px; }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.news-meta .cat { color: var(--teal-700); font-weight: 600; }
.news-meta time { font-family: var(--font-latin); font-weight: 500; letter-spacing: 0.02em; }
.news-card h3 { margin-top: 10px; font-size: 18px; line-height: 1.5; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a::after { content: ""; position: absolute; inset: 0; }
.news-card:hover h3 a { color: var(--teal-600); }
.news-card p { margin-top: 10px; font-size: 14px; line-height: 1.7; color: var(--body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 900px) { .news-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ---------- Inquiry ---------- */
.inquiry { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-900); color: var(--on-dark-muted); }
.inquiry::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(700px 400px at 100% 0%, rgba(0, 158, 184, 0.28), transparent 70%), radial-gradient(600px 400px at 0% 100%, rgba(0, 158, 184, 0.12), transparent 70%);
}
.inquiry-grid { display: grid; gap: 40px; }
.inquiry-copy h2 { font-size: clamp(26px, 4.2vw, 40px); color: var(--white); margin-top: 14px; }
.inquiry-copy > p { margin-top: 16px; max-width: 460px; }
.contact-list { display: grid; gap: 18px; margin-top: 32px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon-wrap { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: var(--teal-300); flex-shrink: 0; }
.contact-list small { display: block; font-size: 13px; color: var(--on-dark-muted); }
.contact-list a, .contact-list strong { color: var(--white); font-weight: 600; }
.contact-list .tel { font-family: var(--font-cond); font-size: 30px; line-height: 1.2; letter-spacing: 0.02em; }
.inquiry-form { padding: 24px; border-radius: var(--radius-lg); background: var(--white); color: var(--body); box-shadow: var(--shadow-lg); }
.inquiry-form h3 { font-size: 20px; }
.inquiry-form .form-note { margin-top: 6px; font-size: 13px; color: var(--muted); }
.form-grid { display: grid; gap: 16px; margin-top: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field label .req { color: #c62828; margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #7d8c9c; border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.5;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 112px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23627386' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 3px rgba(0, 158, 184, 0.22); }
.field.has-error input, .field.has-error textarea { border-color: #c62828; }
.field .error { display: none; font-size: 13px; color: #c62828; }
.field.has-error .error { display: block; }
.form-status { display: none; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--teal-50); color: var(--teal-700); font-size: 14px; }
.form-status.is-visible { display: block; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
  .inquiry-form { padding: 32px; }
}
@media (min-width: 1100px) { .inquiry-grid { grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); font-size: 14px; }
.footer-main { display: grid; gap: 36px; padding-block: 56px 40px; }
.footer-brand img { width: 160px; height: auto; }
.footer-brand p { margin-top: 16px; max-width: 360px; line-height: 1.8; }
.footer-qr { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.footer-qr img { width: 88px; height: 88px; padding: 6px; border-radius: var(--radius-sm); background: var(--white); }
.footer-qr span { font-size: 13px; line-height: 1.6; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
.footer-col h3, .footer-col__title { margin: 0 0 14px; color: var(--white); font-size: 15px; font-weight: 700; }
.footer-col li + li { margin-top: 8px; }
.footer-col a { color: var(--on-dark-muted); }
.footer-col a:hover { color: var(--white); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.6; }
.footer-contact li + li { margin-top: 12px; }
.footer-contact .icon { margin-top: 2px; color: var(--teal-300); width: 18px; height: 18px; }
.footer-contact a { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 20px calc(20px + var(--actionbar-space, 0px)); border-top: 1px solid var(--line-dark); font-size: 13px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-bottom a { color: var(--on-dark-muted); }
.footer-bottom a:hover { color: var(--white); }
@media (min-width: 900px) {
  .footer-main { grid-template-columns: 1.1fr 2fr; gap: 64px; padding-block: 72px 56px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Mobile action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-actionbar);
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 -6px 20px -10px rgba(13, 27, 42, 0.3);
  transform: translateY(110%); transition: transform 300ms var(--ease);
}
.action-bar.is-visible { transform: none; }
.action-bar .btn { min-height: 46px; }
body { --actionbar-space: 76px; }
@media (max-width: 899px) { body { padding-bottom: 0; } }
@media (min-width: 900px) { .action-bar { display: none; } body { --actionbar-space: 0px; } }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero-media img { transform: none !important; }
}

/* ==========================================================================
   以下为内页与通用组件
   ========================================================================== */

/* ---------- 后台工具栏（登录状态）下的固定页头 ---------- */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } .admin-bar.is-scrolled-past-bar .site-header { top: 0; } }

/* ---------- 语言切换 ---------- */
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; color: inherit;
  font-family: var(--font-latin); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.lang-switch .icon { width: 18px; height: 18px; }
.lang-switch:hover { color: inherit; background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.6); }
.site-header.is-solid .lang-switch { border-color: var(--line); }
.site-header.is-solid .lang-switch:hover { background: var(--surface); border-color: #cfd8e1; }
.lang-zh .lang-switch span { font-family: var(--font-latin); }
@media (max-width: 1099px) { .lang-switch { min-height: 36px; padding: 0 10px; font-size: 13px; } }
@media (max-width: 479px) {
  .header-inner { gap: 10px; }
  .header-actions { gap: 2px; }
  .brand { width: 118px; height: 28px; }
  .lang-switch { padding: 0 10px; min-height: 34px; }
  .lang-switch .icon { display: none; }
}

.lang-segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--surface); }
.lang-segmented a { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 999px; color: var(--body); font-size: 15px; font-weight: 600; }
.lang-segmented a[aria-current="true"] { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }

/* 英文页面：标题使用 Barlow，正文字间距收紧 */
.lang-en .hero-title, .lang-en .section-title, .lang-en .page-hero__title, .lang-en .line-title, .lang-en .inquiry-copy h2,
.lang-en .cta-band h2, .lang-en .prose h2, .lang-en .entry-title { font-family: var(--font-latin); font-weight: 600; letter-spacing: 0; }
.lang-en .hero-title { font-size: clamp(32px, 7.6vw, 58px); line-height: 1.08; }
.lang-en .hero-slogan { letter-spacing: 0.01em; }
.lang-en .nav-link { padding: 0 12px; }
@media (min-width: 1100px) and (max-width: 1439px) {
  .lang-en .header-tel { display: none; }
  .lang-en .nav-link { padding: 0 9px; font-size: 14px; }
  .lang-en .nav-link::after { left: 9px; right: 9px; }
}

/* ---------- 内页横幅 ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-900); color: var(--on-dark); }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  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: 56px 56px;
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 31, 51, 0.94) 0%, rgba(10, 31, 51, 0.82) 45%, rgba(10, 31, 51, 0.55) 100%); }
.page-hero__inner { padding-block: calc(var(--header-h) + 28px) 44px; }
.page-hero .eyebrow { margin-top: 26px; color: var(--teal-300); }
.page-hero__title { margin-top: 12px; color: var(--white); font-size: clamp(28px, 5vw, 46px); letter-spacing: 0.02em; }
.page-hero .eyebrow + .page-hero__title { margin-top: 10px; }
.page-hero__lead { margin-top: 14px; max-width: 640px; color: var(--on-dark-muted); }
.page-hero--compact .page-hero__inner { padding-bottom: 20px; }
@media (min-width: 1100px) { .page-hero__inner { padding-block: calc(var(--header-h) + 40px) 64px; } .page-hero--compact .page-hero__inner { padding-bottom: 24px; } }

/* ---------- 面包屑 ---------- */
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.5; }
.breadcrumbs li { display: inline-flex; align-items: center; color: var(--on-dark-muted); }
.breadcrumbs li + li::before { content: "/"; margin: 0 10px; opacity: 0.45; }
.breadcrumbs a { color: var(--on-dark-muted); }
.breadcrumbs a:hover { color: var(--white); }
.breadcrumbs li[aria-current] { color: var(--white); max-width: min(60ch, 100%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }

/* ---------- 栏目二级导航 ---------- */
.subnav { position: relative; z-index: 2; background: var(--white); border-bottom: 1px solid var(--line); }
.subnav__list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 12px 0; list-style: none; }
.subnav__link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px;
  color: var(--body); font-size: 15px; font-weight: 600; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.subnav__link:hover { background: var(--surface); color: var(--ink); }
.subnav__link[aria-current="page"] { background: var(--navy-900); color: var(--white); }

/* ---------- 通用版式 ---------- */
.page-section { padding-block: var(--section-y); }
.page-section--tight { padding-block: calc(var(--section-y) * 0.7); }
.page-section + .page-section { padding-top: 0; }
.page-section--surface { background: var(--surface); }
.page-section--surface + .page-section { padding-top: var(--section-y); }
.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1100px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.narrow { max-width: 820px; margin-inline: auto; }
.empty-state { padding: 56px 24px; border: 1px dashed #cfd8e1; border-radius: var(--radius-lg); text-align: center; color: var(--muted); }

/* ---------- 正文排版（编辑器内容） ---------- */
.prose { color: var(--body); font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; font-size: clamp(22px, 3vw, 28px); line-height: 1.35; }
.prose h3 { margin-top: 1.8em; font-size: clamp(18px, 2.4vw, 21px); line-height: 1.45; }
.prose h4 { margin-top: 1.6em; font-size: 17px; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.6em; }
.prose strong { color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose img { border-radius: var(--radius); margin-inline: auto; }
.prose figure { margin: 1.6em 0; }
.prose figcaption, .prose .wp-element-caption { margin-top: 8px; font-size: 13px; color: var(--muted); text-align: center; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--teal-500); color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--surface); color: var(--ink); }
.prose .wp-block-table { overflow-x: auto; }
.prose .wp-block-image, .prose .wp-block-gallery { margin-block: 1.6em; }
.prose .wp-block-gallery.has-nested-images { gap: 12px; }
.prose .wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: var(--radius-sm); }
.prose .alignwide { margin-inline: 0; }

/* ---------- 图片网格（厂房、案例细节、证书） ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery-grid__item { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface); aspect-ratio: 4 / 3; }
.gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.gallery-grid__item:hover img { transform: scale(1.05); }
.gallery-grid__item .zoom { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(6, 20, 35, 0.6); color: var(--white); opacity: 0; transition: opacity var(--dur) var(--ease); }
.gallery-grid__item:hover .zoom, .gallery-grid__item:focus-visible .zoom { opacity: 1; }
.gallery-grid__item .zoom .icon { width: 16px; height: 16px; }
@media (min-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

/* ---------- 分页 ---------- */
.pagination { margin-top: 48px; }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink);
  font-family: var(--font-latin); font-weight: 600; font-size: 15px;
}
.pagination a.page-numbers:hover { border-color: var(--teal-600); color: var(--teal-600); }
.pagination .page-numbers.current { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.pagination .page-numbers.dots { border-color: transparent; background: transparent; }

/* ---------- 询价引导条 ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-900); color: var(--on-dark-muted); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 100% 0%, rgba(0, 158, 184, 0.3), transparent 70%); }
.cta-band__inner { display: grid; gap: 24px; padding-block: 56px; }
.cta-band h2 { margin-top: 12px; color: var(--white); font-size: clamp(24px, 3.6vw, 34px); }
.cta-band__copy > p:last-child { margin-top: 10px; max-width: 560px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1fr auto; align-items: center; gap: 48px; padding-block: 72px; } }

/* ---------- 看大图（lightbox） ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(4, 12, 22, 0.94); }
.lightbox.is-open { display: flex; }
.lightbox__figure { margin: 0; max-width: min(92vw, 1400px); max-height: 86vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox__img { max-width: 100%; max-height: calc(86vh - 40px); width: auto; height: auto; object-fit: contain; border-radius: 4px; background: #111; }
.lightbox__caption { color: rgba(255, 255, 255, 0.85); font-size: 14px; text-align: center; }
.lightbox__btn { position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: var(--white); }
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; top: 28px; left: 24px; color: rgba(255, 255, 255, 0.7); font-family: var(--font-latin); font-size: 14px; }
@media (max-width: 639px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 20px; transform: none; } }

/* ---------- 文章卡片网格包裹 ---------- */
.cases-grid > div, .news-grid__item { display: flex; }
.cases-grid > div > .case-card, .news-grid__item > .news-card { flex: 1; }

/* ---------- 细节修正 ---------- */
.partners b { margin-right: 0.35em; }
.lang-en .hero-copy { max-width: 600px; }
.lang-en .hero-title { font-size: clamp(30px, 6.4vw, 50px); }
.lang-en .stat-label, .lang-en .service-nums span { line-height: 1.4; }
.btn { max-width: 100%; }
.section-head--split > .tablist { min-width: 0; }
@media (max-width: 639px) {
  .btn { white-space: normal; text-align: center; line-height: 1.3; padding-top: 10px; padding-bottom: 10px; }
  .tablist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; border-radius: var(--radius); }
  .tab { white-space: normal; line-height: 1.3; padding: 8px 12px; border-radius: calc(var(--radius) - 4px); }
}
.header-tel { white-space: nowrap; }
@media (min-width: 1100px) and (max-width: 1599px) {
  .nav-link { padding: 0 10px; }
  .nav-link::after { left: 10px; right: 10px; }
  .header-actions { gap: 14px; }
  .lang-en .header-tel { display: none; }
}
.hero-title, .section-title, .page-hero__title, .line-title, .inquiry-copy h2, .cta-band h2 { text-wrap: balance; }
.section-lead, .hero-desc, .page-hero__lead { text-wrap: pretty; }

/* 英文页头在 1100–1199px 时收紧，避免按钮被挤出 */
@media (min-width: 1100px) and (max-width: 1199px) {
  .lang-en .nav-link { padding: 0 7px; font-size: 13.5px; }
  .lang-en .nav-link::after { left: 7px; right: 7px; }
  .lang-en .header-inner { gap: 16px; }
  .lang-en .header-actions { gap: 10px; margin-left: 4px; }
  .lang-en .lang-switch .icon { display: none; }
  .lang-en .header-cta { padding: 0 14px; }
}
/* 页头搜索入口 */
.header-search { display: none; }
@media (min-width: 1100px) { .header-search { display: inline-flex; } }
.drawer-search { display: flex; align-items: center; gap: 8px; margin: 4px var(--gutter) 12px; padding: 0 14px; min-height: 46px; border-radius: var(--radius-sm); background: var(--surface); color: var(--muted); font-size: 15px; }
.drawer-search:hover { color: var(--ink); }
/* 页头（≥1100px）：Logo、7 个导航、搜索、语言、电话、询价按钮要放进 1240px 内容区 */
@media (min-width: 1100px) {
  .nav-link { padding: 0 10px; font-size: 14px; }
  .nav-link::after { left: 10px; right: 10px; }
  .header-actions { gap: 12px; }
  .lang-en .header-tel { display: none; }
}
@media (min-width: 1100px) and (max-width: 1279px) { .lang-en .header-search { display: none; } }
/* 语言按钮在手机上的点击区域不小于 44px */
@media (max-width: 1099px) {
  .lang-switch { position: relative; min-width: 44px; justify-content: center; }
  .lang-switch::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
}

/* ==========================================================================
   审查修正（无障碍、对比度、打印、触控）
   ========================================================================== */
/* 应用场景图块：键盘焦点框画在图块外侧（图块本身 overflow:hidden 会裁掉链接的焦点框） */
.app-tile:has(> a.cover:focus-visible) { outline: 3px solid var(--teal-500); outline-offset: 3px; }
.on-dark .app-tile:has(> a.cover:focus-visible) { outline-color: var(--teal-300); }
.app-tile a.cover:focus-visible { outline: none; }
/* 手机底部操作栏隐藏时移出 Tab 顺序 */
.action-bar { visibility: hidden; transition: transform 300ms var(--ease), visibility 0s linear 300ms; }
.action-bar.is-visible { visibility: visible; transition-delay: 0s; }
/* 询价表单在白底上的焦点框用深青色 */
.inquiry-form :focus-visible { outline-color: var(--teal-600); }
/* 手机上内页横幅的说明文字对比度 */
@media (max-width: 639px) {
  .page-hero__media::after { background: linear-gradient(90deg, rgba(10, 31, 51, 0.94) 0%, rgba(10, 31, 51, 0.82) 45%, rgba(10, 31, 51, 0.75) 100%); }
}
/* 1100–1279px：首屏文字不压到右侧斜切图片 */
@media (min-width: 1100px) and (max-width: 1279px) {
  .hero-copy, .lang-en .hero-copy { max-width: calc(42vw - var(--gutter) - 24px); }
  .hero-controls .hero-tabs { max-width: calc(42vw - var(--gutter) - 64px); }
  .lang-en .hero-title { font-size: 44px; }
}
/* 桌面下拉菜单：按 Esc 收起 */
.nav-item.is-dismissed > .sub-menu { opacity: 0; visibility: hidden; transform: translate(-50%, 8px); }
/* 触控设备：可点击区域不小于 44px */
@media (max-width: 1099px) {
  .footer-col li + li, .footer-contact li + li { margin-top: 0; }
  .footer-contact li { align-items: center; }
  .footer-col a, .footer-contact a, .footer-bottom a, .breadcrumbs a, .link-arrow, .contact-list a { display: inline-flex; align-items: center; min-height: 44px; }
  .subnav__link, .lang-segmented a, .btn--sm { min-height: 44px; }
  .brand::after { content: ""; position: absolute; inset: 50% 0 auto; height: 44px; transform: translateY(-50%); }
}
/* 打印：显示所有渐显内容，隐藏页头、浮层等 */
@media print {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .site-header, .action-bar, .drawer, .drawer-backdrop, .skip-link, .lightbox { display: none !important; }
}
