/* Hero carousel */
.hero { background: var(--navy); }

.hero-track { position: relative; aspect-ratio: 1983 / 793; overflow: hidden; background: #0b2c63; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s;
}

.hero-slide.is-active { opacity: 1; visibility: visible; }

.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }

.hero-slide.is-active img { animation: drift 7s ease-out both; }

@keyframes drift {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

.hero-bar { background: var(--navy-2); color: #fff; }

.hero-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; }

.hero-controls { display: flex; align-items: center; gap: 6px; }

.hero-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 36px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}

.chev {
  width: 8px;
  height: 8px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.chev-next { transform: rotate(-135deg); }

.hero-dots { display: flex; gap: 2px; }

.hero-dots button { min-width: 26px; }

.hero-dots i {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
}

.hero-dots i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}

.hero-dots [aria-current="true"] i::after { animation: fill var(--hero-ms, 6500ms) linear both; }

.hero.is-paused .hero-dots [aria-current="true"] i::after { animation: none; transform: none; }

@keyframes fill {
  to { transform: scaleX(1); }
}

.hero-count { margin-left: 14px; font-size: 11px; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; opacity: 0.8; }

.hero-controls .hero-pause { margin-left: 8px; padding: 0 8px; font-size: 11px; opacity: 0.75; }

.hero-controls .hero-pause:hover { opacity: 1; }

.hero .btn-ghost { min-height: 32px; font-size: 13px; }

/* Product cards */
.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }

.pgrid-3 { grid-template-columns: repeat(3, 1fr); }

.pcard { background: #fff; border: 1px solid var(--line); transition: box-shadow 0.35s, transform 0.35s var(--ease); }

.pcard:hover { box-shadow: 0 16px 36px rgba(15, 42, 77, 0.1); transform: translateY(-4px); }

.pcard-img { display: block; overflow: hidden; aspect-ratio: 1164 / 684; background: #eef1f5; }

.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }

.pcard:hover .pcard-img img { transform: scale(1.04); }

.pcard-body { padding: 16px 20px 12px; }

.pcard-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }

.pcard h3 { font-size: 22px; font-weight: 700; letter-spacing: 0.01em; }

.pcard-type { color: var(--text); font-size: 12px; }

.pcard-links { display: flex; justify-content: space-between; margin-top: 6px; }

.pcard-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 20px; }

.pcard-row .pcard-type { display: block; margin-top: 4px; }

.list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }

.list-head h2 { font-size: 20px; }

.list-head span { color: var(--text); font-size: 12px; }

.list-block + .list-block { margin-top: 56px; }

/* About block */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.about h3 { margin: 26px 0 12px; font-size: 18px; }

.about p { color: var(--text); font-size: 14px; }

.about p + p { margin-top: 12px; }

/* About hub + detail (参考5) */
.about-hero .ph-lead {
  margin-top: 14px;
  max-width: 28em;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.about-intro h2 { margin-bottom: 18px; font-size: 22px; font-weight: 500; }

.about-intro p { color: var(--text); font-size: 14px; line-height: 1.85; }

.about-intro p + p { margin-top: 14px; }

.about-adv { list-style: none; margin: 0; padding: 0; }

.about-adv li {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 20px 36px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.about-adv li:last-child { border-bottom: 1px solid var(--line); }

.about-adv strong { color: var(--blue); font-size: 16px; font-weight: 500; }

.about-adv p { margin: 0; color: var(--text); font-size: 14px; line-height: 1.8; }

.about-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.about-card {
  display: block;
  padding: 22px 20px 20px;
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  transition: background 0.3s, color 0.3s;
}

.about-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.about-card strong { font-size: 18px; font-weight: 500; }

.about-card .arrow { color: var(--blue); }

.about-card p { margin: 0; color: var(--text); font-size: 13px; line-height: 1.6; }

.about-card:hover { background: var(--blue); color: #fff; }

.about-card:hover p,
.about-card:hover .arrow { color: rgba(255, 255, 255, 0.9); }

.about-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  margin: 8px 0 8px;
  border-bottom: 1px solid var(--line);
}

.about-tabs a {
  position: relative;
  padding: 14px 28px;
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
}

.about-tabs a:hover { color: var(--blue); }

.about-tabs a[aria-current="page"] { color: var(--blue); }

.about-tabs a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: -1px;
  height: 2px;
  background: var(--blue);
}

.about-detail { padding-top: 36px; }

.about-h { margin: 0 0 18px; font-size: 22px; font-weight: 500; }

.about-prose p { color: var(--text); font-size: 14px; line-height: 1.85; }

.about-prose p + p { margin-top: 14px; }

.about-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 48px;
  margin-top: 36px;
}

.about-grid2 h3 {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 500;
}

.about-grid2 p { margin: 0; color: var(--text); font-size: 14px; line-height: 1.8; }

.about-adv-in { margin-top: 28px; }

.about-motto {
  margin: 36px 0 0;
  color: var(--blue);
  font-size: 18px;
  font-weight: 500;
}

.about-note {
  margin: 28px 0 0;
  color: var(--blue);
  font-size: 14px;
  line-height: 1.7;
}

.about-back {
  display: flex;
  justify-content: flex-end;
  margin-top: 40px;
  padding-top: 8px;
}

.about-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 14px;
  text-decoration: none;
}

.about-back .arrow { transform: rotate(180deg); }

.about-back a:hover { text-decoration: underline; }

.about-back a:hover .arrow { transform: rotate(180deg) translateX(4px); }

.values { display: flex; margin: 32px 0 10px; color: var(--blue); font-size: 13px; }

.values li + li { margin-left: 22px; padding-left: 22px; border-left: 1px solid #c9d3e0; }

.fig { position: relative; overflow: hidden; background: var(--navy); }

.fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }

.fig:hover img { transform: scale(1.03); }

.fig figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 18px 10px;
  background: linear-gradient(to top, rgba(15, 42, 77, 0.95), rgba(15, 42, 77, 0.82));
  color: #fff;
  overflow-wrap: anywhere;
}

.fig figcaption::before { content: ""; display: block; width: 22px; height: 2px; margin-bottom: 6px; background: #5aa2ff; }

.fig strong { display: block; font-size: 18px; font-weight: 400; }

.fig span { display: block; font-size: 10px; opacity: 0.85; }

.fig-about { aspect-ratio: 1152 / 876; }

/* Solutions carousel */
.sol-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 3);
  gap: 20px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.sol-track::-webkit-scrollbar { display: none; }

.sol-card { display: block; scroll-snap-align: start; background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 14px rgba(15, 42, 77, 0.05); }

.sol-card .sol-img { aspect-ratio: 796 / 504; overflow: hidden; }

.sol-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }

.sol-card:hover img { transform: scale(1.05); }

.sol-card span { display: block; padding: 12px; text-align: center; font-size: 16px; transition: color 0.2s; }

.sol-card:hover span { color: var(--blue); }

.sol-ctrl { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 18px; }

.circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #c9d3e0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.circle:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }

.circle:disabled { opacity: 0.4; cursor: default; }

.sol-dots { display: flex; gap: 4px; }

.sol-dots i { display: block; width: 12px; height: 2px; background: #d6deea; transition: background 0.3s, width 0.3s; }

.sol-dots i.is-on { width: 16px; background: var(--blue); }

/* Factory rows */
.frows { display: grid; gap: 28px; }

.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 44px; align-items: center; }

.frow > * { min-width: 0; }

.frow .fig { aspect-ratio: 1160 / 652; max-width: 100%; }

.frow:nth-child(even) > :first-child { order: 2; }

.tag { display: inline-block; padding-left: 8px; border-left: 2px solid var(--blue); color: var(--blue); font-size: 11px; line-height: 1.2; }

.frow h3 { margin: 14px 0 12px; font-size: 19px; }

.frow p { color: var(--text); font-size: 14px; }

.frow p + p { margin-top: 10px; }

.chips { display: flex; flex-wrap: wrap; margin-top: 26px; color: var(--blue); font-size: 12px; }

.chips li { line-height: 1.2; }

.chips li + li { margin-left: 18px; padding-left: 18px; border-left: 1px solid #c9d3e0; }

/* Service cards */
.sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.sgrid-4 { grid-template-columns: repeat(4, 1fr); }

.scard {
  position: relative;
  display: block;
  padding: 18px 56px 18px 18px;
  background: var(--bg);
  transition: background 0.3s, color 0.3s;
}

.scard h3 { margin: 2px 0 6px; font-size: 19px; }

.scard p { color: var(--text); font-size: 12px; line-height: 1.7; }

.scard .arrow { position: absolute; top: 46px; right: 22px; color: var(--blue); }

.scard:hover { background: var(--blue); color: #fff; }

.scard:hover p, .scard:hover .en, .scard:hover .arrow { color: rgba(255, 255, 255, 0.9); }

.section-rule { border-top: 1px solid var(--line); margin-top: 24px; }

/* Application cards */
.agrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.acard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); transition: box-shadow 0.35s, transform 0.35s var(--ease); }

.acard:hover { box-shadow: 0 16px 36px rgba(15, 42, 77, 0.1); transform: translateY(-4px); }

.acard-img { aspect-ratio: 16 / 9; overflow: hidden; }

.acard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }

.acard:hover .acard-img img { transform: scale(1.05); }

.acard-body { display: flex; flex: 1; flex-direction: column; padding: 18px 14px 16px; }

.acard h3 { font-size: 19px; }

.acard p { flex: 1; margin: 8px 0 6px; color: var(--text); font-size: 13px; }

.intro { margin-bottom: 28px; }

.intro h2 { font-size: 20px; }

.intro p { margin-top: 6px; color: var(--text); font-size: 13px; }

/* Detail pages */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }

.lede h2 { font-size: clamp(22px, 2.4vw, 28px); }

.lede h2 + p { margin-top: 16px; }

.lede p { color: var(--text); }

.lede p + p { margin-top: 12px; }

.lede .btn-row { margin-top: 28px; }

.split .fig { aspect-ratio: 16 / 9; }

.mech { max-width: 820px; }

.mech h2, .block-title { margin-bottom: 14px; font-size: 22px; }

.mech p { color: var(--text); }

.mech p + p { margin-top: 10px; }

.kgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }

.kcard { padding: 24px 22px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--blue); }

.kcard b { color: var(--blue); font-size: 13px; font-weight: 400; letter-spacing: 0.08em; }

.kcard h3 { margin: 6px 0 10px; font-size: 18px; }

.kcard p { color: var(--text); font-size: 14px; }

.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }

/* 应用详情页：下方说明块与上方 kcard 统一为白底+顶蓝条 */
.duo > div {
  padding: 24px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
}

.duo h2 { margin-bottom: 12px; font-size: 18px; }

.duo p { color: var(--text); font-size: 14px; }

.duo p + p { margin-top: 10px; }

.footnote { margin-top: 24px; color: var(--muted); font-size: 12px; }

.more-apps { display: flex; flex-wrap: wrap; gap: 10px; }

.more-apps a { padding: 6px 16px; border: 1px solid var(--line); background: #fff; font-size: 13px; transition: border-color 0.2s, color 0.2s; }

.more-apps a:hover { border-color: var(--blue); color: var(--blue); }

.more-apps a[aria-current="page"] { border-color: var(--blue); background: var(--blue); color: #fff; }

.prod-top { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

.prod-top .pcard-img { border: 1px solid var(--line); }

.prod-name { font-size: 40px; font-weight: 700; line-height: 1.1; }

/* 首页单品推荐：左图右文（独立样式，整体收窄） */
.home-feat {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 36px;
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
}

.home-feat-media {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f5f7fa;
  aspect-ratio: 3 / 2;
}

.home-feat-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.7s var(--ease);
}

.home-feat-media:hover img { transform: scale(1.03); }

.home-feat-body .prod-type { margin-top: 0; }

.home-feat-body .prod-name { margin-top: 6px; font-size: 36px; }

.home-feat-body .prod-sum { margin-top: 16px; font-size: 14px; line-height: 1.85; }

.home-feat-body .quick { margin-top: 22px; }

.home-feat-body .btn-row { margin-top: 22px; }

.prod-type { margin-top: 8px; color: var(--blue); }

.prod-sum { margin-top: 18px; color: var(--text); }

.quick { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 24px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }

.quick div { padding: 12px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.quick dt { color: var(--muted); font-size: 12px; }

.quick dd { font-size: 15px; font-weight: 700; }

.prod-top .btn-row { margin-top: 24px; }

.doc-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }

.toc { position: sticky; top: calc(var(--header-h) + 24px); display: grid; border-left: 1px solid var(--line); font-size: 14px; }

.toc a { margin-left: -1px; padding: 6px 0 6px 16px; border-left: 2px solid transparent; color: var(--text); transition: color 0.2s, border-color 0.2s; }

.toc a:hover, .toc a.is-on { border-color: var(--blue); color: var(--blue); }

.doc-sec + .doc-sec { margin-top: 44px; }

.doc-sec h2 { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 20px; }

.doc-sec p { color: var(--text); }

.doc-sec p + p { margin-top: 10px; }

.spec { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }

.spec div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 12px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.spec div:nth-child(4n + 1), .spec div:nth-child(4n + 2) { background: #fafbfd; }

.spec dt { color: var(--muted); font-size: 14px; }

.spec dd { font-size: 14px; }

.dots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }

.dots li { position: relative; padding-left: 16px; color: var(--text); }

.dots li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 6px; height: 6px; border: 1.5px solid var(--blue); border-radius: 50%; }

.dots-1 { grid-template-columns: 1fr; }

.nums { display: grid; gap: 18px; }

.nums li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; }

.nums b { color: var(--blue); font-size: 22px; font-weight: 400; line-height: 1.3; }

.nums h3 { margin-bottom: 4px; font-size: 16px; }

.nums p { font-size: 14px; }

.ol { counter-reset: n; display: grid; gap: 6px; }

.ol li { counter-increment: n; position: relative; padding-left: 24px; color: var(--text); }

.ol li::before { content: counter(n) "."; position: absolute; left: 0; color: var(--blue); }

/* Contact / misc */
.cgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.ccard { padding: 24px; background: #fff; border: 1px solid var(--line); }

.ccard .en { margin-bottom: 6px; }

.ccard h2 { font-size: 16px; }

.ccard p, .ccard a { color: var(--text); }

.ccard a:hover { color: var(--blue); }

.ccard .big { display: block; margin-top: 6px; color: var(--ink); font-size: 19px; font-weight: 500; }

.empty { padding: 56px 24px; background: var(--bg); text-align: center; }

.empty h2 { font-size: 20px; }

.empty p { margin: 8px auto 22px; max-width: 34em; color: var(--text); }

.empty .btn-row { justify-content: center; }

.results li { border-bottom: 1px solid var(--line); }

.results a { display: block; padding: 18px 0; }

.results a:hover h2 { color: var(--blue); }

.results h2 { font-size: 17px; }

.results p { color: var(--text); font-size: 13px; }

.results small { color: var(--muted); font-size: 12px; }

.search-big { display: flex; max-width: 560px; height: 46px; margin-bottom: 18px; border: 1px solid #d6deea; }

.search-big input { flex: 1; min-width: 0; padding: 0 14px; border: 0; font-size: 15px; }

.search-big input:focus { outline: none; }

.search-big .btn { min-height: 0; height: 100%; }

.slogan {
  padding: 64px 0;
  background:
    radial-gradient(600px 220px at 85% 0%, rgba(90, 162, 255, 0.35), transparent 70%),
    linear-gradient(110deg, var(--navy), #164f93);
  color: #fff;
  text-align: center;
}

.slogan h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: 0.08em; }

.slogan p { margin-top: 8px; opacity: 0.85; }

.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.vcard { padding: 28px 24px; background: #fff; border: 1px solid var(--line); text-align: center; }

.vcard strong { display: block; color: var(--blue); font-size: 28px; font-weight: 400; letter-spacing: 0.2em; }

.vcard p { margin-top: 8px; color: var(--text); font-size: 14px; }

/* Responsive */
@media (max-width: 1023px) {
  .pgrid-3, .sgrid-4, .cgrid { grid-template-columns: 1fr 1fr; }

  .sgrid { grid-template-columns: 1fr 1fr; }

  .about, .split, .prod-top, .about-grid2, .home-feat { grid-template-columns: 1fr; gap: 32px; }

  .about-cards { grid-template-columns: 1fr 1fr; }

  .frows { display: block; width: 100%; max-width: 100%; }

  .frow {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 28px;
  }

  .frow:first-child { margin-top: 0; }

  .frow > * { order: 0; width: 100%; max-width: 100%; min-width: 0; }

  .frow .fig {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: auto;
    overflow: visible;
    background: transparent;
  }

  .frow .fig img {
    position: static;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .frow .fig figcaption {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0;
  }

  .frow .fig figcaption strong,
  .frow .fig figcaption span {
    white-space: normal;
  }

  .js .frow .reveal,
  .js .frow .reveal.reveal-left,
  .js .frow .reveal.reveal-right,
  .js .frow .reveal.is-in,
  .js .frow .reveal.is-in.reveal-left,
  .js .frow .reveal.is-in.reveal-right { transform: none; }

  .agrid { grid-template-columns: 1fr 1fr; }

  .sol-track { grid-auto-columns: calc((100% - 20px) / 2); }

  .doc-layout { grid-template-columns: 1fr; gap: 0; }

  .toc { display: none; }

}

@media (max-width: 640px) {
  .hero-track { aspect-ratio: 16 / 10; }

  .hero-count, .hero-controls .hero-pause { display: none; }

  .pgrid, .pgrid-3, .sgrid, .sgrid-4, .cgrid, .agrid, .vgrid, .duo, .fields, .spec, .dots, .about-cards { grid-template-columns: 1fr; }

  .about-adv li { grid-template-columns: 1fr; gap: 8px; }

  .about-tabs a { padding: 12px 14px; font-size: 14px; }

  .sol-track { grid-auto-columns: 82%; gap: 14px; }

  .sol-ctrl { gap: 20px; }

  .circle { width: 40px; height: 40px; }

  .quick { grid-template-columns: 1fr 1fr; }

  .prod-name { font-size: 32px; }

  .spec div { grid-template-columns: 8em 1fr; }


  .pcard-row { flex-direction: column; align-items: flex-start; }

  .pcard-row .btn { width: 100%; justify-content: space-between; }

  .values { flex-wrap: wrap; }

  .about { gap: 24px; }

  .duo { gap: 18px; }

  .list-block + .list-block { margin-top: 40px; }
}

/* Form fields */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }

.field { display: grid; gap: 6px; align-content: start; }

.field-full { grid-column: 1 / -1; }

.field label, .flabel { font-size: 13px; color: var(--ink); }

.field b { color: #c4302b; font-weight: 400; }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #d6deea;
  border-radius: 2px;
  background: #fff;
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field ::placeholder { color: #9aa5b4; }

.field select {
  padding-right: 34px;
  -webkit-appearance: none;
  appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237a8594' stroke-width='1.2'/%3E%3C/svg%3E") right 14px center no-repeat;
}

.field select:invalid,
.field select:has(option[value=""]:checked) { color: #9aa5b4; }

.field option { color: var(--ink); }

.field textarea { min-height: 96px; resize: vertical; }

.field input:focus, .field select:focus, .field textarea:focus, .file:focus-within {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 98, 180, 0.12);
}

.file {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid #d6deea;
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.file input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.file-btn { flex: none; padding: 5px 18px; border: 1px solid #dfe6ef; background: #eef3f9; color: var(--navy); font-size: 12px; transition: background 0.2s; }

.file:hover .file-btn { background: #e2eaf4; }

.file-name { min-width: 0; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.file.has-file .file-name { color: var(--ink); }

.form-tip { margin-top: 12px; color: var(--muted); font-size: 12px; }

.form-done { margin-top: 12px; padding: 10px 12px; background: #e6f0fb; color: var(--blue-dark); font-size: 13px; }

/* Service center: banner */
.svc-hero { position: relative; display: flex; align-items: center; min-height: 300px; overflow: hidden; background: #fff; color: #fff; }

.svc-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 0;
  width: 63%;
  background: var(--navy);
  clip-path: polygon(0 0, 100% 0, calc(100% - 80px) 100%, 0 100%);
}

.svc-hero > .container { position: relative; z-index: 2; }

.svc-copy { max-width: 500px; padding: 30px 0; }

.svc-kicker { display: block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; }

.svc-hero h1 { margin: 10px 0 14px; font-size: clamp(28px, 3vw, 34px); font-weight: 400; }

.svc-slogan { font-size: 20px; }

.svc-desc { margin-top: 8px; font-size: 13px; opacity: 0.85; }

.svc-hero .crumb { margin-top: 22px; padding: 0; color: rgba(255, 255, 255, 0.75); font-size: 11px; }

.svc-hero .crumb a:hover { color: #fff; }

.svc-hero .crumb li + li::before { color: rgba(255, 255, 255, 0.45); }

.svc-art { position: absolute; top: 0; right: 0; bottom: 0; width: 50%; overflow: hidden; }

.svc-art img { width: 100%; height: 100%; object-fit: cover; }

.svc-art-sample {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  padding-right: max(24px, calc((100vw - var(--max)) / 2 + 40px));
  background: #fff;
}

.svc-art-sample img { width: auto; height: 88%; object-fit: contain; }

.svc-art-label { align-self: flex-end; width: 68px; margin-bottom: 34px; padding-top: 12px; border-top: 1px solid #b9c6d8; color: var(--muted); font-size: 9px; letter-spacing: 0.14em; }

.svc-art-quote { display: flex; flex-direction: column; justify-content: center; padding-left: 28%; background: var(--bg); color: var(--ink); }

.svc-quote { height: 52px; color: #a9c0de; font: 76px/1 Georgia, "Times New Roman", serif; }

.svc-art-quote p { font-size: 20px; line-height: 1.6; }

.svc-art-quote i, .svc-sign i, .svc-values i { position: relative; display: block; width: 50px; height: 1px; background: currentColor; }

.svc-art-quote i { margin-top: 18px; color: var(--blue); }

.svc-art-quote i::after, .svc-sign i::after, .svc-values i::after { content: ""; position: absolute; right: -2px; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.svc-hero-light { background: var(--bg); color: var(--ink); }

.svc-hero-light::before { width: 56%; background: var(--bg); clip-path: polygon(0 0, 100% 0, calc(100% - 70px) 100%, 0 100%); }

.svc-hero-light .svc-art { width: 52%; overflow: visible; }

.svc-hero-light .svc-kicker { color: var(--blue); opacity: 1; }

.svc-hero .svc-h1-sm { margin: 10px 0 8px; color: var(--blue); font-size: 19px; }

.svc-headline { font-size: clamp(26px, 3vw, 32px); line-height: 1.45; }

.svc-hero-light .svc-desc { margin-top: 14px; color: var(--text); opacity: 1; }

.svc-sign { display: flex; align-items: center; gap: 16px; margin-top: 26px; color: var(--blue); font-size: 13px; }

.svc-sign i { width: 36px; }

.svc-cap {
  position: absolute;
  right: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 0;
  padding: 14px 44px 12px 16px;
  border-left: 3px solid var(--blue);
  background: #fff;
}

.svc-cap span { display: block; color: var(--blue); font-size: 9px; letter-spacing: 0.12em; }

.svc-cap strong { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--ink); }

.js .svc-copy > * { animation: rise 0.8s var(--ease) both; }

.js .svc-copy > :nth-child(2) { animation-delay: 0.08s; }

.js .svc-copy > :nth-child(3) { animation-delay: 0.16s; }

.js .svc-copy > :nth-child(4) { animation-delay: 0.24s; }

.js .svc-copy > :nth-child(n + 5) { animation-delay: 0.32s; }

.js .svc-art { animation: art-in 1.1s var(--ease) both; }

.js .svc-cap { animation: rise 0.8s 0.45s var(--ease) both; }

@keyframes art-in {
  from { opacity: 0; transform: scale(1.04); }
  to { opacity: 1; transform: none; }
}

/* Service center: tabs, form, side card */
.svc-tabs { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 20px; border-bottom: 1px solid var(--line); }

.svc-tabs a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  margin-bottom: -1px;
  padding: 0 16px;
  border-bottom: 2px solid transparent;
  color: var(--text);
  font-size: 14px;
  transition: color 0.2s, background 0.2s;
}

.svc-tabs a + a::before { content: ""; position: absolute; left: 0; top: 13px; width: 1px; height: 14px; background: var(--line); }

.svc-tabs b { color: var(--blue); font-size: 11px; font-weight: 400; }

.svc-tabs a:hover { color: var(--blue); }

.svc-tabs a[aria-current="page"] { border-bottom-color: var(--blue); background: #eaf2fb; color: var(--blue); }

.svc-tabs a[aria-current="page"]::before, .svc-tabs a[aria-current="page"] + a::before { display: none; }

.svc-body { padding: 40px 0 72px; }

.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px 40px; align-items: start; }

.svc-form-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; }

.svc-form-head h2 { font-size: 22px; }

.svc-form-head span { color: var(--muted); font-size: 11px; }

.svc-form-head b { color: #c4302b; font-weight: 400; }

.svc-form-hint { margin: 2px 0 18px; color: var(--text); font-size: 13px; }

.svc-submit { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

.svc-submit .btn { min-width: 156px; justify-content: space-between; }

.svc-side { position: sticky; top: calc(var(--header-h) + 24px); }

.svc-side-img { position: relative; aspect-ratio: 720 / 416; overflow: hidden; }

.svc-side-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }

.svc-side:hover .svc-side-img img { transform: scale(1.04); }

.svc-side-img figcaption { position: absolute; left: 14px; bottom: 14px; padding: 3px 8px; background: #fff; color: var(--navy); font-size: 10px; }

.svc-side-img.is-dark figcaption { left: 0; right: 0; bottom: 0; padding: 10px 14px; background: rgba(15, 42, 77, 0.85); color: #fff; font-size: 12px; }

.svc-values { position: relative; padding: 22px 18px 30px; background: var(--blue); color: #fff; }

.svc-values span { font-size: 9px; letter-spacing: 0.12em; opacity: 0.8; }

.svc-values strong { display: block; margin: 12px 0 10px; font-size: 21px; font-weight: 400; }

.svc-values p { font-size: 13px; opacity: 0.9; }

.svc-values i { position: absolute; right: 26px; bottom: 22px; color: rgba(255, 255, 255, 0.8); }

.svc-side-body { padding: 20px 18px 20px; background: var(--bg); }

.svc-side-body h3 { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid #dbe3ee; font-size: 17px; }

.svc-side-body li + li { margin-top: 16px; }

.svc-side-body h4 { display: flex; align-items: baseline; gap: 10px; color: var(--blue); font-size: 14px; font-weight: 400; }

.svc-side-body h4 b { font-size: 10px; font-weight: 400; }

.svc-side-body p { margin-top: 4px; color: var(--text); font-size: 12px; line-height: 1.75; }

.svc-note { padding: 16px 18px 0; color: var(--text); font-size: 12px; }

/* Service center: landing cards */
.svc-pick-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 30px; }

.svc-pick-head h2 { font-size: 22px; }

.svc-pick-head p { margin-top: 4px; color: var(--text); font-size: 13px; }

.svc-pick-head .en { letter-spacing: 0.14em; }

.svc-bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }

.sb {
  position: relative;
  display: flex;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.sb:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 42, 77, 0.12); }

.sb-1 { grid-column: span 7; background: var(--bg); }

.sb-2 { grid-column: span 5; }

.sb-3 { grid-column: span 5; flex-direction: column; }

.sb-4 { grid-column: span 7; flex-direction: column; }

.sb-text { position: relative; z-index: 1; display: flex; flex: 1; flex-direction: column; padding: 22px 20px 20px; }

.sb-en { color: var(--muted); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; }

.sb-en b { margin-right: 12px; color: var(--blue); font-size: 11px; font-weight: 400; }

.sb h3 { margin: 10px 0 12px; font-size: 22px; font-weight: 400; }

.sb p { max-width: 22em; color: var(--text); font-size: 13px; }

.sb-go { display: flex; align-items: center; gap: 40px; margin-top: auto; padding-top: 24px; color: var(--blue); font-size: 13px; }

.circ {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.circ .arrow { width: 13px; margin: 0; }

.sb:hover .circ { border-color: var(--blue); background: var(--blue); color: #fff; }

.sb-text > .circ { position: absolute; top: 34px; right: 22px; color: var(--blue); }

.sb-pic { display: flex; flex: none; align-items: center; justify-content: center; width: 50%; background: #fff; }

.sb-pic img { width: auto; height: 84%; transition: transform 0.8s var(--ease); }

.sb-media { position: relative; height: 150px; overflow: hidden; }

.sb-media img, .sb-bg { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }

.sb:hover img { transform: scale(1.05); }

.sb-no { position: absolute; left: 14px; top: 14px; padding: 2px 9px; background: #fff; color: var(--blue); font-size: 10px; }

.sb-dark { border-color: transparent; background: var(--navy); color: #fff; }

.sb-dark .sb-en, .sb-dark p { color: rgba(255, 255, 255, 0.75); }

.sb-dark .sb-en b, .sb-dark .sb-go, .sb-dark .sb-text > .circ { color: #fff; }

.sb-dark:hover .circ { border-color: #fff; background: #fff; color: var(--navy); }

.sb-bg { position: absolute; inset: 0; opacity: 0.22; }

.sb-2::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(15, 42, 77, 0.6), rgba(15, 42, 77, 0.2)); }

.sb-quote { position: absolute; z-index: 1; top: 14px; right: 36px; color: rgba(255, 255, 255, 0.28); font: 72px/1 Georgia, "Times New Roman", serif; }

.sb-4 .sb-media { height: 170px; }

@media (max-width: 1023px) {
  .svc-grid { grid-template-columns: 1fr; }

  .svc-side { position: static; display: grid; grid-template-columns: 1fr 1fr; }

  .svc-side > :first-child { grid-row: span 2; }

  .svc-hero::before { width: 66%; }

  .svc-hero-light::before { width: 60%; }

  .sb-1, .sb-2, .sb-3, .sb-4 { grid-column: span 6; }
}

@media (max-width: 640px) {
  .svc-hero, .svc-hero-light { flex-direction: column-reverse; align-items: stretch; min-height: 0; background: var(--navy); }

  .svc-hero-light { background: var(--bg); }

  .svc-hero::before { display: none; }

  .svc-copy { padding: 28px 0 24px; }

  .svc-slogan { font-size: 18px; }

  .svc-art, .svc-hero-light .svc-art { position: relative; width: 100%; height: 180px; overflow: hidden; }

  .svc-art-sample { justify-content: center; padding-right: 0; }

  .svc-art-quote { height: auto; padding: 24px 16px; }

  .svc-art-quote p { font-size: 17px; }

  .svc-cap { right: 16px; padding-right: 24px; }

  .svc-tabs { grid-template-columns: 1fr 1fr; }

  .svc-tabs a::before { display: none; }

  .svc-tabs a { padding: 0 12px; }

  .svc-body { padding: 28px 0 48px; }

  .fields { grid-template-columns: 1fr; }

  .svc-submit { flex-direction: column; align-items: stretch; }

  .svc-submit .link { justify-content: center; }

  .svc-side { display: block; }

  .svc-pick-head { flex-direction: column; align-items: flex-start; }

  .svc-bento { gap: 16px; }

  .sb-1, .sb-2, .sb-3, .sb-4 { grid-column: 1 / -1; min-height: 220px; }

  .sb-pic { width: 38%; }
}

/* News list */
.news-tabs { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 28px; border-bottom: 1px solid var(--line); }

.news-filter { display: flex; flex-wrap: wrap; }

.news-filter button {
  position: relative;
  height: 44px;
  margin-bottom: -1px;
  padding: 0 20px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.news-filter button:hover { color: var(--blue); }

.news-filter button[aria-pressed="true"] { border-bottom-color: var(--blue); color: var(--blue); }

.news-count { color: var(--muted); font-size: 12px; }

.news-cat { display: inline-block; padding: 1px 8px; background: #eaf2fb; color: var(--blue); font-size: 11px; line-height: 1.8; }

a.news-cat:hover { background: var(--blue); color: #fff; }

.news-meta { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 12px; }

.news-hero { display: grid; grid-template-columns: 1.15fr 1fr; margin-bottom: 12px; background: var(--bg); transition: box-shadow 0.35s; }

.news-hero:hover { box-shadow: 0 16px 36px rgba(15, 42, 77, 0.1); }

.news-hero-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; }

.news-hero-img img, .news-thumb img, .news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }

.news-hero:hover .news-hero-img img, .news-row:hover .news-thumb img { transform: scale(1.05); }

.news-hero-text { display: flex; flex-direction: column; justify-content: center; padding: 32px 36px; }

.news-hero h2 { margin: 16px 0 12px; font-size: 24px; }

.news-hero h2 a:hover, .news-row h3 a:hover { color: var(--blue); }

.news-hero-text > p:not(.news-meta) { color: var(--text); font-size: 14px; }

.news-hero .link { margin-top: 20px; }

.news-row {
  display: grid;
  grid-template-columns: 240px 1fr 96px;
  gap: 28px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.news-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg); }

.news-row h3 { margin: 8px 0 8px; font-size: 18px; transition: color 0.2s; }

.news-row p { display: -webkit-box; overflow: hidden; color: var(--text); font-size: 13px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.news-date { padding-left: 24px; border-left: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: center; }

.news-date-m { display: none; }

.news-date b { display: block; color: var(--blue); font-size: 32px; font-weight: 300; line-height: 1.2; transition: transform 0.35s var(--ease); }

.news-row:hover .news-date b { transform: translateY(-3px); }

/* News detail */
.read-progress { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 3px; pointer-events: none; }

.read-progress i { display: block; height: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; }

.news-detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }

.news-head h1 { margin: 14px 0 16px; font-size: clamp(24px, 2.6vw, 30px); }

.news-lead { padding: 14px 18px; border-left: 3px solid var(--blue); background: var(--bg); color: var(--text); font-size: 14px; }

.news-cover { aspect-ratio: 16 / 9; margin: 28px 0; overflow: hidden; background: var(--bg); }

.news-body { color: var(--text); font-size: 15px; line-height: 1.95; }

.news-body h2 { margin: 32px 0 12px; padding-left: 12px; border-left: 3px solid var(--blue); color: var(--ink); font-size: 19px; line-height: 1.4; }

.news-body p + p { margin-top: 14px; }

.news-body ul { margin: 14px 0; padding: 16px 20px; background: var(--bg); }

.news-body li { position: relative; padding-left: 16px; }

.news-body li + li { margin-top: 6px; }

.news-body li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 6px; height: 6px; border: 1.5px solid var(--blue); border-radius: 50%; }

.news-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }

.news-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }

.news-pager-item { display: block; padding: 16px 18px; background: var(--bg); font-size: 14px; transition: background 0.25s, color 0.25s; }

.news-pager-item small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; }

.news-pager-item.next { text-align: right; }

a.news-pager-item:hover { background: var(--blue); color: #fff; }

a.news-pager-item:hover small { color: rgba(255, 255, 255, 0.75); }

.news-pager-item.is-empty { color: var(--muted); }

.news-side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }

.news-side-box { padding: 20px 18px; background: var(--bg); }

.news-side-box h2 { margin-bottom: 8px; padding-bottom: 12px; border-bottom: 1px solid #dbe3ee; font-size: 17px; }

.news-side-box li + li { border-top: 1px dashed #d6deea; }

.news-side-box a { display: block; padding: 10px 0; font-size: 13px; line-height: 1.6; }

.news-side-box a:hover span { color: var(--blue); }

.news-side-box time { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }

.news-side-cta { padding: 22px 18px; background: var(--navy); color: #fff; }

.news-side-cta .en { color: rgba(255, 255, 255, 0.6); }

.news-side-cta h2 { margin: 8px 0 6px; font-size: 18px; }

.news-side-cta p { color: rgba(255, 255, 255, 0.78); font-size: 13px; }

.news-side-cta .btn-row { margin-top: 16px; }

.news-side-cta .btn { flex: 1; min-height: 36px; padding: 0 12px; justify-content: space-between; font-size: 13px; }

@media (max-width: 1023px) {
  .news-hero { grid-template-columns: 1fr; }

  .news-detail { grid-template-columns: 1fr; }

  .news-side { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .news-filter button { padding: 0 12px; }

  .news-hero-text { padding: 20px 18px 24px; }

  .news-hero h2 { font-size: 20px; }

  .news-row { grid-template-columns: 112px 1fr; gap: 14px; align-items: start; padding: 18px 0; }

  .news-row h3 { margin: 6px 0 4px; font-size: 15px; }

  .news-row p { -webkit-line-clamp: 2; font-size: 12px; }

  .news-date { display: none; }

  .news-date-m { display: inline; }

  .news-body { font-size: 14px; }

  .news-pager, .news-side { grid-template-columns: 1fr; }

  .news-pager-item.next { text-align: left; }
}

.lang-switch {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
}

.lang-switch:hover { border-color: var(--blue); }

html[lang="en"] .brand-text { white-space: normal; }
html[lang="en"] .brand-text strong { font-size: 22px; letter-spacing: 0; line-height: 1.15; }
html[lang="en"] .brand-text small { font-size: 12px; letter-spacing: 0.04em; }

@media (max-width: 1279px) {
  html[lang="en"] .brand-text strong { font-size: 18px; }
}

@media (max-width: 1023px) {
  html[lang="en"] .brand img { width: 120px; height: auto; }
  html[lang="en"] .brand-text { margin-left: 10px; padding-left: 10px; }
  html[lang="en"] .brand-text strong { font-size: 15px; }
  html[lang="en"] .brand-text small { display: none; }
}

@media (max-width: 640px) {
  html[lang="en"] .brand img { width: 104px; height: auto; }
  html[lang="en"] .brand-text strong { font-size: 13px; }
  html[lang="en"] .lang-switch { height: 28px; padding: 0 8px; font-size: 12px; }
}

html[lang="en"] .nav .has-sub { position: relative; }

html[lang="en"] .nav .sub {
  left: 50%;
  right: auto;
  width: max-content;
  max-width: 280px;
  min-width: 180px;
  white-space: normal;
  transform: translate(-50%, 8px);
}

html[lang="en"] .nav .has-sub:hover > .sub,
html[lang="en"] .nav .has-sub:focus-within > .sub {
  transform: translate(-50%, 0);
}

@media (max-width: 1023px) {
  .header-top { gap: 8px; }
  .brand { overflow: hidden; }
  .brand-text strong,
  .brand-text small {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .lang-switch,
  .nav-toggle { position: relative; z-index: 2; flex: none; }
  html[lang="zh-CN"] .brand img { width: 112px; height: auto; }
  html[lang="zh-CN"] .brand-text { margin-left: 10px; padding-left: 10px; }
  html[lang="zh-CN"] .brand-text strong { font-size: 16px; letter-spacing: 0; }
  html[lang="zh-CN"] .brand-text small { margin-top: 4px; font-size: 10px; }
}

@media (max-width: 640px) {
  html[lang="zh-CN"] .header-top { height: 72px; }
  html[lang="zh-CN"] .nav { top: 72px; }
  html[lang="zh-CN"] .brand img { width: 84px; height: auto; }
  html[lang="zh-CN"] .brand-text { margin-left: 8px; padding-left: 8px; }
  html[lang="zh-CN"] .brand-text strong { font-size: 14px; }
  html[lang="zh-CN"] .brand-text small { display: none; }
  html[lang="zh-CN"] .lang-switch { height: 28px; padding: 0 8px; font-size: 12px; }
}

@media (max-width: 1023px) {
  html[lang="en"] .nav .sub,
  html[lang="en"] .nav .has-sub:hover > .sub,
  html[lang="en"] .nav .has-sub:focus-within > .sub {
    left: auto;
    right: auto;
    width: auto;
    max-width: none;
    min-width: 0;
    white-space: normal;
    transform: none;
  }
}
