:root {
  --blue: #4169e2;
  --blue-dark: #3154be;
  --light-blue: #9fbaff;
  --navy: #0a142b;
  --ink: #101e38;
  --muted: #53637a;
  --line: #dbe3f1;
  --paper: #f5f7fc;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 3px solid #7194ff; outline-offset: 4px; }
section[id] { scroll-margin-top: 92px; }
.wrap { width: min(100% - 104px, 1280px); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: fixed; z-index: 10; top: 8px; left: 8px; background: white; padding: 12px; }

.header { position: sticky; top: 0; z-index: 5; background: #fcfdff; border-bottom: 1px solid var(--line); }
.header-inner { height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 140px; height: auto; }
.navigation { display: flex; gap: clamp(22px, 4vw, 59px); align-items: center; font-size: 14px; font-weight: 600; }
.navigation a { padding-block: 28px; position: relative; }
.navigation a:hover, .navigation a[aria-current="location"] { color: var(--blue-dark); }
.navigation a[aria-current="location"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 15px; height: 2px; background: var(--blue); }
.header-cta, .menu-toggle { border: 1px solid #c9d5f3; background: #f6f8ff; color: var(--blue-dark); padding: 11px 17px; font-size: 13px; font-weight: 700; border-radius: 4px; white-space: nowrap; }
.header-cta[aria-current="location"] { background: var(--blue-dark); color: white; border-color: var(--blue-dark); }
.header-cta span { margin-left: 12px; }
.menu-toggle { display: none; }

.hero { position: relative; isolation: isolate; background: var(--navy); color: white; overflow: hidden; }
.hero-image, .hero::after, .hero-grid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-image { object-fit: cover; object-position: 62% center; filter: saturate(.48) brightness(.75); }
.hero::after { content: ""; background: linear-gradient(90deg, #081329 0%, #0a1631f5 28%, #0e214bb5 54%, #193f8970 100%), linear-gradient(0deg, #070f24, transparent 49%); }
.hero-grid { z-index: 0; pointer-events: none; opacity: .27; background-image: linear-gradient(#76a0fb22 1px, transparent 1px), linear-gradient(90deg, #76a0fb22 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg, transparent 18%, #000); }
.hero-layout { position: relative; min-height: clamp(505px, 43vw, 648px); display: flex; align-items: center; }
.hero-copy { position: relative; z-index: 1; padding-block: 70px; }
.kicker { display: flex; align-items: center; gap: 10px; color: var(--blue-dark); font-family: "Inter", "PingFang SC", sans-serif; font-size: 12px; font-weight: 750; letter-spacing: .15em; line-height: 1.5; }
.kicker span { width: 21px; height: 2px; background: currentColor; flex: 0 0 21px; }
.hero .kicker, .contact .kicker { color: var(--light-blue); }
h1 { font-size: clamp(44px, 5.1vw, 77px); line-height: 1.17; letter-spacing: -.047em; margin: 24px 0; }
h1 em { font-style: normal; color: var(--light-blue); }
.hero-description { color: #d4def0; line-height: 1.85; font-size: clamp(15px, 1.35vw, 18px); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 25px; padding: 13px 18px; font-weight: 700; font-size: 14px; border-radius: 4px; border: 1px solid transparent; min-height: 48px; }
.primary { background: var(--blue); color: white; }
.primary:hover { background: var(--blue-dark); }
.secondary { border-color: #8ca3cf80; background: #0d1b3866; color: white; }
.secondary:hover { background: #233a66; }
.viewfinder { pointer-events: none; position: absolute; width: 29%; height: 38%; top: 30%; right: 5%; border: 1px solid #a6c0ff53; background: linear-gradient(0deg, #5985f326, transparent 50%); }
.viewfinder i { position: absolute; width: 22px; height: 22px; border: solid #a6c0ff; }
.viewfinder i:nth-child(1) { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.viewfinder i:nth-child(2) { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.viewfinder i:nth-child(3) { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.viewfinder i:nth-child(4) { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.viewfinder span { position: absolute; top: calc(100% + 10px); right: 0; color: #d4e0ff; font: 11px "IBM Plex Mono", monospace; letter-spacing: .16em; }
.hero-index { position: relative; background: #0b1730de; border-top: 1px solid #96aff237; }
.hero-index .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.hero-index span { padding: 21px 0; font: 12px "IBM Plex Mono", monospace; color: var(--light-blue); }
.hero-index span + span { border-left: 1px solid #96aff237; padding-left: 28px; }
.hero-index b { color: #f4f7fe; font: 600 14px "PingFang SC", "Microsoft YaHei", sans-serif; }

.section { padding-block: 80px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px 44px; margin-bottom: 30px; }
h2 { font-size: clamp(30px, 3.5vw, 48px); line-height: 1.22; letter-spacing: -.035em; margin-top: 10px; }
.section-head > p { color: var(--muted); font-size: 15px; line-height: 1.8; max-width: 350px; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }
.filters button { border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--muted); font-size: 13px; padding: 10px 15px; }
.filters button:hover { border-color: var(--blue); }
.filters [aria-pressed="true"] { background: var(--blue-dark); color: white; border-color: var(--blue-dark); }
.product-grid, .service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: white; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; display: flex; flex-direction: column; }
.card-image { width: 100%; height: 174px; object-fit: contain; padding: 8px; background: #e7edf8; }
.card-body { display: flex; flex-direction: column; align-items: start; flex: 1; padding: 20px; }
.card h3 { font-size: 19px; line-height: 1.45; margin: 6px 0 10px; }
.card-label { color: var(--blue-dark); font-size: 12px; font-weight: 700; }
.card-summary { color: var(--muted); font-size: 14px; line-height: 1.75; margin-bottom: 18px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.inline-link { display: inline-flex; align-items: center; gap: 9px; padding: 5px 0; color: var(--blue-dark); border: 0; background: transparent; font-size: 14px; font-weight: 700; margin-top: auto; }
.inline-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.services { background: #eaf0fc; border-block: 1px solid var(--line); }
.service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-grid .card-image { height: 125px; object-fit: contain; padding: 8px; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 80px); align-items: center; }
.about img { width: 100%; aspect-ratio: 1.55; object-fit: cover; border-radius: 6px; }
.about p:not(.kicker), .contact p { font-size: 15px; line-height: 1.8; margin-top: 16px; }
.about p:not(.kicker) { color: var(--muted); }
.about .inline-link { margin-top: 17px; }
.contact { color: white; background: radial-gradient(ellipse at right top, #1e3978, transparent 65%), var(--navy); padding-block: 62px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.contact p, address { color: #d3dcf1; }
address { font-style: normal; }
address div { display: grid; align-items: baseline; grid-template-columns: 58px 1fr; gap: 12px; border-bottom: 1px solid #aec1f040; padding: 13px 0; }
address span { font-size: 13px; color: var(--light-blue); }
address a:hover { text-decoration: underline; }
address p { margin: 0 !important; }
footer { background: #fcfdff; }
.footer-inner { display: flex; align-items: center; gap: 24px; min-height: 88px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.footer-inner > a:last-child { margin-left: auto; }
dialog { border: 1px solid var(--line); border-radius: 9px; padding: clamp(18px, 4vw, 34px); color: var(--ink); width: min(800px, calc(100% - 28px)); max-height: min(88vh, 920px); overflow: auto; box-shadow: 0 20px 95px #05143270; }
dialog::backdrop { background: #08142ac7; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 14px; margin-bottom: 18px; }
.dialog-head h2 { font-size: clamp(23px, 4vw, 32px); }
.close-button { border: 1px solid var(--line); background: var(--paper); border-radius: 4px; width: 42px; height: 42px; font-size: 24px; line-height: 1; color: var(--ink); }
#detail-body p { margin-bottom: 12px; color: var(--muted); line-height: 1.8; font-size: 15px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; margin: 22px 0; }
.gallery img { width: 100%; height: 180px; object-fit: contain; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; }
.gallery a:hover img { border-color: var(--blue); }

@media (max-width: 960px) {
  .wrap { width: min(100% - 56px, 1280px); }
  .product-grid, .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .navigation { gap: 20px; }
  .section { padding-block: 60px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .hero-layout { min-height: 475px; }
  .hero-copy { padding-block: 54px; }
  .hero::after { background: linear-gradient(90deg, #081329f7, #0d2149aa), linear-gradient(0deg, #071125, transparent 56%); }
  .hero-image { object-position: 65% center; }
  h1 { font-size: clamp(35px, 8.4vw, 55px); }
  .desktop-break, .viewfinder { display: none; }
  .hero-index span { padding-block: 16px; }
  .hero-index span + span { padding-left: 8px; }
  .hero-index b { font-size: 12px; }
  .section-head { display: block; }
  .section-head > p { margin-top: 12px; }
  .section { padding-block: 54px; }
  .product-grid, .service-grid { gap: 12px; }
  .card-body { padding: 13px; }
  .card h3 { font-size: 16px; }
  .card-image { height: 116px; }
  .about, .contact-layout { grid-template-columns: 1fr; }
  .footer-inner { gap: 0 16px; padding-block: 10px; }
  .footer-inner > a:last-child { margin-left: 0; }
}
@media (max-width: 370px) { .product-grid, .service-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }

.header-actions { display: flex; align-items: center; gap: 10px; }
.language-toggle {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
  padding: 3px;
  border: 1px solid #c9d5f3;
  border-radius: 999px;
  background: #edf2ff;
  white-space: nowrap;
}
.language-toggle::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 3px auto 3px 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--blue-dark);
  transition: transform 180ms ease;
}
.language-toggle:has(#language-en:checked)::before { transform: translateX(100%); }
.language-toggle label {
  display: grid;
  place-items: center;
  min-width: 43px;
  min-height: 32px;
  padding-inline: 6px;
  border-radius: 999px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.language-toggle input:checked + label { color: white; }
.language-toggle input:focus-visible + label { outline: 2px solid var(--blue-dark); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .language-toggle::before { transition: none; }
}
:lang(en) .desktop-break { display: none; }
:lang(en) .hero-description { max-width: 560px; }
:lang(en) .hero-index b { font-family: Inter, sans-serif; }
@media (max-width: 800px) {
  .header-inner { height: 64px; gap: 10px; }
  .brand img { width: 115px; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: inline-block; order: 3; padding-inline: 12px; }
  .navigation { display: none; position: absolute; top: 100%; inset-inline: 0; background: #fcfdff; border-bottom: 1px solid var(--line); padding: 10px 18px; }
  .navigation.open { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .navigation a { padding: 12px; }
  .navigation a[aria-current="location"] { background: #edf2ff; border-radius: 4px; }
  .navigation a[aria-current="location"]::after { display: none; }
}
@media (max-width: 490px) {
  .header-cta { display: none; }
  :lang(en) h1 { font-size: clamp(31px, 8.4vw, 42px); }
  .hero-index b { overflow-wrap: anywhere; }
}
