:root {
  color-scheme: light;
  --ink: #112e3b;
  --muted: #405d69;
  --brand: #004766;
  --brand-dark: #00354d;
  --canvas: #fff;
  --surface: #f1f7f8;
  --line: #d4e4e8;
  --frame: 1200px;
  font-family: Inter, "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; color: var(--ink); background: var(--canvas); }
body:has(dialog[open]) { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
figure, h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #08758d; outline-offset: 4px; }
.frame { width: min(var(--frame), calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 2; padding: 12px; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
#main { flex: 1; }

.masthead { border-bottom: 1px solid var(--line); background: var(--canvas); }
.mast-inner { min-height: 80px; display: flex; justify-content: space-between; align-items: center; gap: 26px; }
.brand { flex: 0 0 auto; }
.brand-logo { width: 176px; height: auto; }
.mast-company { font-size: 13px; color: var(--muted); }
.customer-nav { display: flex; align-items: stretch; gap: clamp(15px, 3vw, 42px); margin-inline: auto; }
.customer-nav a { display: grid; place-items: center; border-bottom: 2px solid transparent; min-height: 64px; color: var(--muted); font-size: 14px; font-weight: 650; white-space: nowrap; }
.customer-nav a:hover, .customer-nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.return-link { font-size: 13px; color: var(--brand); font-weight: 700; white-space: nowrap; }
.return-link span { padding-inline-end: 5px; }
.return-link:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1 { font-size: clamp(38px, 5vw, 66px); font-weight: 760; letter-spacing: -.07em; line-height: 1.14; }
h2 { font-size: clamp(23px, 2.7vw, 33px); letter-spacing: -.04em; line-height: 1.3; }
.eyebrow { color: var(--brand); font-size: 13px; font-weight: 750; letter-spacing: .13em; margin-bottom: 13px; }
.intro { color: var(--muted); line-height: 1.75; font-size: 16px; margin-top: 16px; }
.arrow { flex: 0 0 auto; font: 21px/1 Inter, system-ui, sans-serif; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; padding: 11px 18px; min-height: 46px; border: 1px solid transparent; border-radius: 7px; font-size: 14px; font-weight: 700; }
.primary { background: var(--brand); color: white; }
.primary:hover { background: var(--brand-dark); }
.outline { color: var(--brand); border-color: #9dbbc5; background: white; }
.outline:hover { background: var(--surface); }
.site-footer { border-top: 1px solid var(--line); padding-block: 19px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.site-footer a { display: inline-flex; gap: 7px; align-items: center; color: var(--brand); }

.index-page { background: #f7fafb; }
.portal { display: grid; grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr); align-items: center; gap: clamp(32px, 6vw, 94px); padding-block: clamp(40px, 8vh, 92px); }
.portal-copy h1 { color: var(--brand); }
.portal-description { margin-top: 18px; font-size: 17px; line-height: 1.8; color: var(--muted); max-width: 24em; }
.portal-choices { display: grid; gap: 11px; margin-top: 36px; max-width: 385px; }
.portal-choice { min-height: 74px; display: flex; justify-content: space-between; align-items: center; padding: 12px 19px; gap: 12px; border: 1px solid transparent; border-radius: 9px; transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease; }
.portal-choice strong, .portal-choice small { display: block; }
.portal-choice strong { font-size: 19px; line-height: 1.35; }
.portal-choice small { font-size: 13px; margin-top: 4px; }
.portal-primary { background: var(--brand); color: white; }
.portal-primary small { color: #e7f4f8; }
.portal-primary:hover { background: var(--brand-dark); }
.portal-secondary { background: var(--canvas); color: var(--brand); border-color: #b9d1d8; }
.portal-secondary small { color: var(--muted); }
.portal-secondary:hover { border-color: var(--brand); background: #eef7f8; }
.portal-choice:hover { transform: translateY(-2px); }

.portal-picture, .customer-picture, .facility { position: relative; overflow: hidden; border-radius: 16px; background: var(--surface); }
.portal-picture { aspect-ratio: 1.17; }
.portal-picture img, .customer-picture img, .facility img { width: 100%; height: 100%; object-fit: cover; }
.portal-picture img { object-position: 55% center; }
figcaption { position: absolute; right: 12px; bottom: 12px; padding: 5px 8px; border-radius: 4px; color: var(--ink); background: #fffffff2; font-size: 11px; }
.portal h1, .portal-description { animation: enter 550ms cubic-bezier(.22, .76, .35, 1) both; }
.portal-choice { animation: enter 530ms cubic-bezier(.22, .76, .35, 1) 120ms both; }
.portal-choice + .portal-choice { animation-delay: 190ms; }
.portal-picture { animation: reveal-picture 820ms cubic-bezier(.22, .76, .35, 1) both; }
.portal-picture img { animation: settle 1s cubic-bezier(.22, .76, .35, 1) both; }
@keyframes enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes reveal-picture { from { opacity: 0; clip-path: inset(0 10% 0 0 round 16px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 16px); } }
@keyframes settle { from { transform: scale(1.045); } to { transform: scale(1); } }

.customer-home { padding-block: clamp(32px, 6vw, 78px); }
.customer-hero { display: grid; grid-template-columns: 1.06fr .94fr; background: var(--surface); border-radius: 16px; overflow: hidden; }
.customer-copy { align-self: center; padding: clamp(24px, 5vw, 68px); }
.customer-copy h1 { font-size: clamp(34px, 4.55vw, 59px); }
.customer-copy .button { margin-top: 25px; }
.customer-picture { min-height: 350px; border-radius: 0; }
.customer-picture img { position: absolute; inset: 0; }
.customer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.section-link { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 10px; }
.section-link:hover { border-color: #87aebc; background: #f8fbfc; }
.section-link h2 { font-size: 21px; }
.section-link p { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 6px; }
.section-link .arrow { color: var(--brand); }

.section { padding-block: clamp(34px, 5vw, 72px); }
.page-heading { margin-bottom: 28px; }
.section h1, .employee h1 { font-size: clamp(35px, 4.7vw, 58px); }
.section-heading { display: flex; gap: 18px; justify-content: space-between; align-items: end; margin-bottom: 22px; }
.catalog-search { min-height: 46px; width: min(100%, 310px); padding: 10px 13px; border: 1px solid #a6c1cb; border-radius: 7px; color: var(--ink); background: white; }
.catalog-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 17px; }
.catalog-count { font-size: 13px; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filters button { border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--muted); min-height: 40px; padding: 7px 12px; font-size: 13px; }
.filters button[aria-pressed="true"] { background: var(--surface); color: var(--brand); border-color: #90b3c0; font-weight: 700; }
.filters button:hover { border-color: var(--brand); }
.products-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.product-result { min-width: 0; }
.product-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; }
.product-card img { width: 100%; height: auto; aspect-ratio: 1.7; object-fit: cover; background: var(--surface); }
.catalog-photo { position: relative; }
.card-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 17px 18px; }
.card-category { color: var(--brand); font-size: 12px; font-weight: 700; }
.card-copy h3 { margin-block: 6px; font-size: 21px; line-height: 1.4; }
.card-spec { margin-bottom: 8px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.card-link { margin-top: auto; padding: 8px 0 2px; display: inline-flex; gap: 7px; border: 0; background: none; color: var(--brand); font-size: 14px; font-weight: 700; }
.card-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.catalog-empty { padding: 19px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); }
.catalog-more { display: flex; justify-content: center; margin-top: 23px; }
.catalog-more:has(button[hidden]) { display: none; }

dialog { width: min(540px, calc(100% - 28px)); max-height: 92dvh; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); }
dialog::backdrop { background: #0b2c3ab5; }
.dialog-inner { position: relative; padding: 24px; }
.dialog-inner h2 { margin: 8px 36px 14px 0; }
.close-dialog { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; background: var(--surface); color: var(--ink); border: 0; border-radius: 5px; font-size: 24px; }
.dialog-inner img { width: 100%; height: auto; aspect-ratio: 2; object-fit: cover; margin: 14px 0; border-radius: 7px; }
.dialog-inner h3 { font-size: 16px; }
.product-specs { font-size: 14px; line-height: 1.8; padding-inline-start: 21px; }
.product-specs li + li { margin-top: 4px; }
.product-note, .product-registration { margin-top: 12px; font-size: 13px; line-height: 1.65; }
.product-note { color: var(--muted); }
.product-registration { padding: 12px; border-radius: 5px; background: var(--surface); white-space: pre-line; }

.license-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.license-list li { padding: 22px; border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 9px; background: #f9fcfc; }
.license-list h3 { font-size: 18px; line-height: 1.45; }
.license-list p, .license-list a { margin-top: 8px; font-size: 13px; line-height: 1.55; }
.license-list p { color: var(--muted); }
.license-list strong { display: block; margin-top: 4px; font-size: 15px; overflow-wrap: anywhere; }
.license-list a, .company-facts a { display: inline-block; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.about { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(24px, 5vw, 65px); align-items: center; }
.facility { aspect-ratio: 1.5; }
.about h1 { font-size: clamp(32px, 4vw, 53px); }
.about h1 + p { margin-top: 14px; font-size: 16px; line-height: 1.8; color: var(--muted); }
.company-facts { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.company-facts div { display: grid; grid-template-columns: 6em 1fr; gap: 8px; padding-block: 8px; border-bottom: 1px solid var(--line); line-height: 1.6; }
.company-facts dt { font-weight: 700; color: var(--ink); }
.company-facts dd { margin: 0; }

.employees-page { background: #f4f8fa; }
.employee { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); align-content: center; align-items: center; column-gap: clamp(24px, 7vw, 100px); row-gap: 24px; padding-block: clamp(45px, 12vh, 116px); }
.employee h1 { color: var(--brand); }
.employee-system { padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: 14px; background: white; }
.employee-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 19px; }

@media (max-width: 990px) {
  .frame { width: calc(100% - 48px); }
  .portal { gap: 25px; }
  .mast-inner { gap: 15px; }
  .customer-nav { gap: 16px; }
  .customer-picture { min-height: 295px; }
  .license-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .frame { width: calc(100% - 32px); }
  .mast-inner { flex-wrap: wrap; min-height: 65px; gap: 0 12px; }
  .mast-company { display: none; }
  .brand-logo { width: 152px; }
  .customer-nav { width: 100%; order: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0; }
  .customer-nav a { min-height: 44px; font-size: 12px; }
  .portal, .customer-hero, .customer-links, .about, .employee { grid-template-columns: 1fr; }
  .portal { padding-block: 36px 27px; }
  .portal h1 { font-size: clamp(35px, 9.5vw, 56px); }
  .portal-description { font-size: 15px; margin-top: 12px; }
  .portal-choices { margin-top: 22px; max-width: none; }
  .portal-choice { min-height: 68px; }
  .portal-picture { aspect-ratio: 1.55; }
  .customer-picture { min-height: 0; aspect-ratio: 1.6; }
  .customer-links { gap: 10px; margin-top: 10px; }
  .section-link { min-height: 84px; padding: 14px 16px; }
  .section-heading { align-items: start; flex-direction: column; gap: 13px; }
  .catalog-search { width: 100%; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-copy { padding: 12px; }
  .card-copy h3 { font-size: 16px; }
  .license-list { grid-template-columns: 1fr; gap: 9px; }
  .about .facility { order: 2; }
}
@media (max-width: 385px) {
  .products-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.site-filing { flex-basis: 100%; margin: 0; text-align: center; }
