:root {
  color-scheme: light;
  --ink: #102432;
  --muted: #465b68;
  --accent: #006ca4;
  --accent-hover: #005889;
  --focus: #178bcb;
  --footer-link-hover: #96dafc;
  --pale: #f2f6f8;
  --line: #d9e3e9;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.65;
}

*, *::before, *::after { box-sizing: border-box; }
.home-zh {
  --accent: #e10b21;
  --accent-hover: #bc0a1c;
  --accent-tint: #fff0f2;
  --focus: var(--accent);
  --footer-link-hover: #ffadb6;
}

body, h1, h2, p, ul { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
.shell { width: min(100% - 88px, 1264px); margin-inline: auto; }
.section { padding-block: clamp(72px, 9vw, 132px); }
h2 { font-size: clamp(2rem, 4.1vw, 3.25rem); line-height: 1.15; letter-spacing: -.035em; }
h2 + p { margin-top: 26px; }
p { text-wrap: pretty; }

.header { background: #fff; }
.header-inner { display: flex; min-height: 80px; align-items: center; justify-content: space-between; gap: 30px; }
.header img { width: 310px; }
.main-nav { display: flex; align-items: center; gap: clamp(12px, 1.5vw, 24px); font-size: .875rem; white-space: nowrap; }
.main-nav a:first-child { color: var(--accent); font-weight: 700; }
.language { border-left: 1px solid var(--line); padding-left: 16px; }
.menu-toggle { border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 999px; padding: 8px 18px; font: inherit; }

.hero {
  color: #fff;
  background: linear-gradient(90deg, #0a1d2be8, #0a1d2b45 56%, transparent 77%), #102432 url(hero.jpg) center right / cover no-repeat;
}
.hero-inner { min-height: clamp(540px, 72vh, 750px); display: grid; align-content: center; justify-items: start; padding-block: 80px; }
.hero h1 { font-size: clamp(3.6rem, 6.7vw, 6.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -.055em; }
:lang(en) .hero h1 { font-size: clamp(3.4rem, 6.1vw, 6rem); }
.hero p { margin-top: 26px; color: #e7f0f5; max-width: 36ch; font-size: clamp(1rem, 1.4vw, 1.2rem); }
.button { display: inline-flex; align-items: center; gap: 18px; margin-top: 30px; padding: 12px 24px; border-radius: 999px; background: var(--accent); color: white; font-weight: 700; }
.button:hover { background: var(--accent-hover); color: white; }
.about { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: clamp(40px, 8vw, 125px); }
.about p, .capabilities p, .careers p { color: var(--muted); }
.about img, .capabilities img { width: 100%; border-radius: 16px; }
.text-link { display: inline-block; margin-top: 24px; color: var(--accent); font-weight: 700; }
.text-link:hover { text-decoration: underline; }

.products, .news { background: var(--pale); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; list-style: none; padding: 0; margin-top: 36px; }
.product-grid a { display: block; overflow: hidden; border-radius: 16px; background: white; }
.product-grid img { width: 100%; aspect-ratio: 1.25; object-fit: contain; background: #e6edf1; }
.product-grid a > span { display: flex; justify-content: space-between; gap: 12px; padding: 16px 20px; font-weight: 700; }
.capabilities { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(40px, 8vw, 120px); }
.capabilities img { margin-block: 24px 16px; }
.news-list { list-style: none; padding: 0; margin-top: 36px; }
.news-list li { display: flex; gap: 24px; padding-block: 18px; border-top: 1px solid var(--line); }
.news-list time { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.careers { margin-top: 66px; }
.careers h2 { font-size: 1.65rem; }

footer {
  color: #fff;
  background: radial-gradient(ellipse at 80% 75%, #244a61 0, transparent 62%), radial-gradient(ellipse at 15% 0, #1c3e52 0, transparent 55%), #102432;
  padding-block: clamp(70px, 9vw, 136px) 42px;
}
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 50px; }
.footer-brand { font-weight: 750; font-size: clamp(1.4rem, 2vw, 2rem); line-height: 1.35; }
.footer-grid nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; align-content: start; }
.footer-grid h2 { font-size: 1.45rem; margin-bottom: 15px; }
address { display: grid; gap: 8px; font-style: normal; }
footer a:hover { color: var(--footer-link-hover); }
.copyright { margin-top: 72px; border-top: 1px solid #8299a66b; padding-top: 26px; color: #d2e1e9; font-size: .85rem; }

@media (max-width: 1100px) {
  .header-inner { flex-wrap: wrap; gap: 12px; padding-block: 14px; }
  .menu-toggle:not([hidden]) { display: block; }
  .main-nav { width: 100%; flex-wrap: wrap; padding-block: 8px; }
  .main-nav[hidden] { display: none; }
}

@media (max-width: 700px) {
  .shell { width: calc(100% - 40px); }
  .header img { width: min(230px, 62vw); }
  .main-nav { gap: 14px 18px; }
  .hero { background-position: 63% center; background-image: linear-gradient(0deg, #0a1d2bf5, #0a1d2ba0 52%, #0a1d2b10), url(hero.jpg); }
  .hero-inner { min-height: 590px; align-content: end; padding-block: 58px; }
  .about, .capabilities, .footer-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-grid a > span { padding: 12px; }
  .news-list li { gap: 13px; }
  .copyright { margin-top: 52px; }
}

@media (max-width: 480px) {
  :lang(en) .hero h1 { font-size: clamp(2.55rem, 10vw, 3.4rem); }
}

.home-zh .about { grid-template-columns: 1.15fr 1fr; }
.about-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-weight: 700;
}
.about-link:is(:hover, :focus-visible) { color: #fff; background-color: var(--accent); text-decoration: none; }

.equipment-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(144px, 1fr);
  gap: 18px;
  margin-top: 32px;
  padding: 8px 6px 20px;
  overflow-x: auto;
  list-style: none;
}
.equipment-row li { overflow: hidden; border-radius: 10px; background: #fff; text-align: center; }
.equipment-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.equipment-row span { display: block; padding: 8px; }

.news-layout {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  align-items: center;
  gap: clamp(28px, 6vw, 84px);
  margin-top: 32px;
}
.news-layout img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; }
.news-layout .news-list { margin-top: 0; }
.home-zh footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(125deg, #201f24, #302d30 57%, #253536);
  padding-block: clamp(36px, 5vw, 64px);
}
.home-zh footer::before {
  content: "";
  position: absolute;
  inset: -35%;
  z-index: -1;
  background:
    radial-gradient(ellipse at 26% 82%, #8b685e85, transparent 32%),
    radial-gradient(ellipse at 55% 15%, #72678b70, transparent 32%),
    radial-gradient(ellipse at 79% 66%, #4876728c, transparent 32%);
  filter: blur(36px);
}
.home-zh .footer-grid { grid-template-columns: 1fr; gap: 20px; text-align: center; }
.home-zh .footer-grid nav,
.home-zh .footer-grid address { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; }

.home-zh .header {
  position: sticky;
  top: 0;
  z-index: 5;
  box-shadow: 0 8px 24px transparent;
}
.home-zh .header.is-scrolled { box-shadow: 0 8px 24px #10243220; }
.home-zh [id]:not(#home) { scroll-margin-top: 96px; }
.home-zh .main-nav { gap: 6px; }
.home-zh .main-nav a {
  padding: 7px clamp(12px, 1.25vw, 20px);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
}
.home-zh .main-nav a:is(:hover, :focus-visible) { background-color: var(--accent-tint); color: var(--accent); }
.home-zh .main-nav a[aria-current="page"] { background-color: var(--accent); color: #fff; }
.home-zh .main-nav .language {
  margin-inline-start: 8px;
  padding: 2px 0 2px 16px;
  border-inline-start: 1px solid #eabbc1;
  border-radius: 0;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home-zh .main-nav .language:is(:hover, :focus-visible) { background-color: transparent; }
.home-zh .menu-toggle:hover { background: var(--accent-tint); border-color: var(--accent); color: var(--accent); }
.home-zh .hero { position: relative; isolation: isolate; overflow: hidden; }
.home-zh :is(.product-grid a, .equipment-row li) {
  border: 1px solid var(--line);
  box-shadow: 0 3px 10px #1024320d;
}
.home-zh :is(.product-grid a:is(:hover, :focus-visible), .equipment-row li:hover) {
  border-color: #eabbc1;
  box-shadow: 0 8px 20px #1024321a;
}
.home-zh .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: inherit;
}

@media (prefers-reduced-motion: no-preference) {
  html:has(.home-zh) { scroll-behavior: smooth; }
  .home-zh .hero::before { animation: hero-pan 8s ease-out both; }
  .home-zh .hero-inner > * { animation: hero-copy-in .75s ease-out both; }
  .home-zh .hero p { animation-delay: .08s; }
  .home-zh .hero .button { animation-delay: .16s; }
  .home-zh .header { transition: box-shadow 220ms ease; }
  .home-zh :is(a, summary, .menu-toggle) { transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease; }
  .home-zh .button span { transition: transform 180ms ease; }
  .home-zh .about-link span { transition: transform 180ms ease; }
  .home-zh .about-link:is(:hover, :focus-visible) span { transform: translateX(4px); }
  .home-zh .button:is(:hover, :focus-visible) span { transform: translateX(4px); }
  .home-zh :is(.product-grid a, .equipment-row li) {
    transition: color 180ms ease, transform 180ms linear, border-color 180ms linear, box-shadow 180ms linear;
  }
  .home-zh :is(.product-grid a:is(:hover, :focus-visible), .equipment-row li:hover) { transform: translateY(-4px); }
}

@keyframes hero-pan {
  from { transform: scale(1.065) translateX(-1%); }
  to { transform: scale(1); }
}
@keyframes hero-copy-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 700px) {
  .home-zh .about, .news-layout { grid-template-columns: 1fr; }
}
