/* 今日库存官网：深蓝夜色（深色）+ 浅灰白（浅色），默认跟随系统 */
:root {
  --navy: #0a1024;
  --card: #121a33;
  --fg: #e9edf8;
  --muted: #9aa6c4;
  --dim: #6f7a97;
  --accent: #8ea8ff;
  --brand: #3f66e6;
  --line: rgba(233, 237, 248, .08);
  --line-strong: rgba(233, 237, 248, .22);
  --btn-bg: #fff;
  --btn-fg: #0a1024;
  --hero-glow: rgba(63, 102, 230, .55);
  --shade-mid: rgba(10, 16, 36, .82);
  --shade-zero: rgba(10, 16, 36, 0);
  --shade-m-mid: rgba(10, 16, 36, .7);
  --shade-m-end: rgba(10, 16, 36, .35);
  --dev-shadow: rgba(0, 0, 0, .5);
  --shot-shadow: rgba(0, 0, 0, .45);
  --gbtn-bg: rgba(10, 16, 36, .64);
  --gbtn-bg-hover: rgba(16, 26, 58, .82);
  --gbtn-fg: #a6bcff;
  --gbtn-fg-hover: #fff;
  --gbtn-border: rgba(142, 168, 255, .42);
  --gbtn-shadow: rgba(0, 0, 0, .35);
  --menu-shadow: #0006;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --navy: #f6f8fc;
    --card: #ffffff;
    --fg: #0f172a;
    --muted: #475569;
    --dim: #64748b;
    --accent: #3f66e6;
    --brand: #3f66e6;
    --line: rgba(15, 23, 42, .08);
    --line-strong: rgba(15, 23, 42, .18);
    --btn-bg: #0f172a;
    --btn-fg: #ffffff;
    --hero-glow: rgba(63, 102, 230, .18);
    --shade-mid: rgba(246, 248, 252, .86);
    --shade-zero: rgba(246, 248, 252, 0);
    --shade-m-mid: rgba(246, 248, 252, .78);
    --shade-m-end: rgba(246, 248, 252, .45);
    --dev-shadow: rgba(15, 23, 42, .18);
    --shot-shadow: rgba(15, 23, 42, .15);
    --gbtn-bg: rgba(255, 255, 255, .86);
    --gbtn-bg-hover: #ffffff;
    --gbtn-fg: #3f66e6;
    --gbtn-fg-hover: #0f172a;
    --gbtn-border: rgba(15, 23, 42, .14);
    --gbtn-shadow: rgba(15, 23, 42, .12);
    --menu-shadow: rgba(15, 23, 42, .14);
    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --navy: #f6f8fc;
  --card: #ffffff;
  --fg: #0f172a;
  --muted: #475569;
  --dim: #64748b;
  --accent: #3f66e6;
  --brand: #3f66e6;
  --line: rgba(15, 23, 42, .08);
  --line-strong: rgba(15, 23, 42, .18);
  --btn-bg: #0f172a;
  --btn-fg: #ffffff;
  --hero-glow: rgba(63, 102, 230, .18);
  --shade-mid: rgba(246, 248, 252, .86);
  --shade-zero: rgba(246, 248, 252, 0);
  --shade-m-mid: rgba(246, 248, 252, .78);
  --shade-m-end: rgba(246, 248, 252, .45);
  --dev-shadow: rgba(15, 23, 42, .18);
  --shot-shadow: rgba(15, 23, 42, .15);
  --gbtn-bg: rgba(255, 255, 255, .86);
  --gbtn-bg-hover: #ffffff;
  --gbtn-fg: #3f66e6;
  --gbtn-fg-hover: #0f172a;
  --gbtn-border: rgba(15, 23, 42, .14);
  --gbtn-shadow: rgba(15, 23, 42, .12);
  --menu-shadow: rgba(15, 23, 42, .14);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.in {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  position: relative;
}

/* nav */
.site-header {
  border-bottom: 1px solid var(--line);
}
.nav {
  width: 100%;
  display: flex; align-items: center; gap: clamp(10px, 2vw, 22px);
  padding-block: 14px;
  padding-left: max(clamp(20px, 3vw, 36px), env(safe-area-inset-left));
  padding-right: max(clamp(20px, 3vw, 36px), env(safe-area-inset-right));
  position: relative; z-index: 5;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; text-decoration: none; flex: none; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* Keep the language links available without JavaScript. */
.language-picker { position: relative; flex: none; font-size: 13px; }
.language-picker summary {
  list-style: none;
  display: inline-flex; align-items: center; gap: 5px;
  height: 34px; padding: 0 11px 0 13px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; color: var(--fg);
  font-size: 13px; font-weight: 500; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
}
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary:hover { background: var(--line); }
.language-picker .picker-chevron { width: 13px; height: 13px; opacity: .7; transition: transform .16s ease; }
.language-picker[open] .picker-chevron { transform: rotate(180deg); }
.language-picker summary:focus-visible, .language-picker a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.language-picker ul {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px);
  min-width: 11rem; width: max-content; max-width: calc(100vw - 40px);
  max-height: min(24rem, 65vh); overflow: auto;
  display: grid; grid-template-columns: 1fr; gap: 2px;
  margin: 0; padding: 8px; list-style: none; background: var(--card);
  border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 16px 40px var(--menu-shadow);
}
.language-picker a {
  display: block; padding: 7px 10px; border-radius: 8px;
  color: var(--muted); text-decoration: none; white-space: nowrap;
}
.language-picker a:hover, .language-picker a[aria-current] { color: var(--fg); background: var(--line); }
.language-picker a[aria-current] { font-weight: 600; }

/* theme toggle */
.theme-toggle {
  flex: none;
  width: 34px; height: 34px; padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent; color: var(--fg);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.theme-toggle:hover { background: var(--line); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { width: 15px; height: 15px; }
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
.theme-toggle[data-current-theme="light"] .icon-sun { display: none; }
.theme-toggle[data-current-theme="light"] .icon-moon { display: block; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--btn-bg); color: var(--btn-fg);
  border-radius: 999px; padding: 13px 26px;
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; fill: currentColor; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; line-height: 1; gap: 6px; border: 1px solid transparent; }
.btn.sm svg { width: 14px; height: 14px; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line-strong); }
.btn:focus-visible, .logo:focus-visible, .foot a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* device mockups (frame is part of the image) */
.dev { width: 100%; filter: drop-shadow(0 24px 40px var(--dev-shadow)); }

/* hero: fanned 3-phone showcase (Option A) */
.hero { position: relative; height: 700px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: max(-4%, calc(50% - 620px)); top: 12%; width: 720px; height: 600px;
  background: radial-gradient(closest-side, var(--hero-glow), rgba(63, 102, 230, 0));
  pointer-events: none;
}
.wall {
  position: absolute;
  right: max(20px, calc(50% - 560px));
  top: 96px;
  width: min(560px, 46vw);
  height: 560px;
  z-index: 2;
  pointer-events: none;
}
.wall .col { position: absolute; margin: 0; }
.wall .col img:nth-child(n+2) { display: none; }
.wall .col:nth-child(1) {
  width: 41%; left: 2%; top: 54px; z-index: 1;
  transform: rotate(-7deg); opacity: .94;
}
.wall .col:nth-child(2) {
  width: 48%; left: 50%; top: 10px; z-index: 3;
  transform: translateX(-50%);
}
.wall .col:nth-child(3) {
  width: 41%; right: 2%; top: 54px; z-index: 2;
  transform: rotate(7deg); opacity: .94;
}
.shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, var(--navy) 0%, var(--shade-zero) 20%);
}
.copy { position: relative; z-index: 3; padding-top: 112px; max-width: 520px; }
.eyebrow { font-size: 13px; letter-spacing: .18em; color: var(--accent); font-weight: 600; text-transform: uppercase; }
.eyebrow .brand-name { font-size: 15px; color: var(--fg); font-weight: 700; text-transform: none; letter-spacing: .02em; }
.hero h1 { font-size: 86px; line-height: 1.04; font-weight: 800; letter-spacing: -.02em; margin: 18px 0 22px; text-wrap: balance; }
.hero .sub { color: var(--muted); font-size: 19px; margin: 0 0 32px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* features: wide-card gallery + lightbox */
.sec { padding-block: 80px; border-top: 1px solid var(--line); }
.sec h2, .end h2 { font-size: 38px; line-height: 1.25; margin: 0 0 8px; font-weight: 700; text-wrap: balance; }
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.gallery-head h2 { margin: 0; }
.gallery-stage { position: relative; margin-bottom: 20px; }
.gallery-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gbtn-bg); color: var(--gbtn-fg);
  border: 1px solid var(--gbtn-border);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px var(--gbtn-shadow);
  font-size: 18px; font-weight: 600; cursor: pointer;
}
.gallery-btn[hidden] { display: none; }
.gallery-prev { left: max(12px, calc(50% - 600px)); }
.gallery-next { right: max(12px, calc(50% - 600px)); }
.gallery-btn:hover:not(:disabled) { background: var(--gbtn-bg-hover); border-color: var(--accent); color: var(--gbtn-fg-hover); }
.gallery-btn:disabled { opacity: .28; cursor: default; }
.gallery-btn:focus-visible, .shot-trigger:focus-visible, .support-link a:focus-visible,
.lightbox-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.shot-track {
  display: flex; gap: 24px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px max(20px, calc((100% - 1080px) / 2)) 8px;
  scroll-padding-inline: max(20px, calc((100% - 1080px) / 2));
  scrollbar-width: none;
}
.shot-track::-webkit-scrollbar { display: none; }

.gallery-dots {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 auto;
}
.gallery-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
  background: var(--line-strong); cursor: pointer;
}
.gallery-dot[aria-current="true"] {
  width: 24px; background: var(--accent);
}
.gallery-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.shot-card {
  flex: 0 0 320px; scroll-snap-align: start;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 20px; display: flex; flex-direction: column;
}
.shot-copy { margin-bottom: 16px; }
.shot-trigger {
  position: relative; display: block; width: 100%;
  padding: 0; margin: auto 0 0; background: transparent; border: 0; cursor: zoom-in;
}
.shot-trigger .dev { filter: drop-shadow(0 16px 28px var(--shot-shadow)); }
.shot-tag { display: block; font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 4px; }
.shot-card h3 { font-size: 18px; line-height: 1.35; margin: 0 0 6px; }
.shot-card p { font-size: 14px; color: var(--muted); margin: 0; }
.support-link { margin: 22px 0 0; font-size: 14px; }
.support-link a {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); text-decoration: none;
}
.support-link a::after { content: "→"; color: var(--accent); }
.support-link a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }

html:has(dialog.lightbox[open]), body:has(dialog.lightbox[open]) { overscroll-behavior-x: none; }
dialog.lightbox {
  margin: 0; padding: 24px 32px; border: 0; background: transparent; color: var(--fg);
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  overflow-y: auto; overscroll-behavior-x: none; box-sizing: border-box;
}
dialog.lightbox[open] { display: flex; align-items: flex-start; justify-content: center; padding: 32px 32px 48px; }
dialog.lightbox.is-fit[open] { align-items: center; padding: 24px 32px; }
dialog.lightbox::backdrop { background: rgba(4, 8, 20, .88); backdrop-filter: blur(6px); }
.lightbox-body {
  display: flex; align-items: flex-start; justify-content: center; gap: 44px;
  text-align: left; max-width: 1180px;
}
.lightbox-stage {
  display: flex; align-items: flex-start; justify-content: center; gap: 16px;
}
dialog.lightbox.is-fit .lightbox-stage { align-items: center; }
.lightbox-body img {
  width: min(560px, 58vw); height: auto; max-width: none;
  border-radius: 32px; cursor: zoom-out;
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, .7));
}
.lightbox-meta {
  position: sticky; top: max(48px, 18vh); width: 380px; max-width: 400px; flex: none;
}
dialog.lightbox.is-fit .lightbox-body { align-items: center; }
dialog.lightbox.is-fit .lightbox-body img { width: auto; height: min(88vh, 1000px); max-width: min(76vw, 640px); object-fit: contain; cursor: zoom-in; }
dialog.lightbox.is-fit .lightbox-meta { position: static; width: 380px; max-width: 400px; }
.lb-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.lb-kicker { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.lb-index { font-variant-numeric: tabular-nums; color: var(--dim); flex: none; }
.lb-sep { color: var(--dim); flex: none; }
.lb-tag { color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-title { font-size: 40px; font-weight: 700; line-height: 1.18; letter-spacing: -.02em; color: #fff; margin: 18px 0 16px; text-wrap: balance; }
.lb-copy { font-size: 19px; line-height: 1.65; color: rgba(233, 237, 248, .72); margin: 0; }
.lb-arrow {
  flex: none;
  width: 44px; height: 44px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(10, 16, 36, .64); color: #a6bcff;
  border: 1px solid rgba(142, 168, 255, .42);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  font-size: 18px; font-weight: 600; cursor: pointer;
}
dialog.lightbox:not(.is-fit) .lightbox-stage .lb-arrow {
  position: sticky; top: calc(50vh - 22px);
}
.lb-arrow:hover { background: rgba(16, 26, 58, .82); border-color: var(--accent); color: #fff; }
.lb-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lightbox-btn {
  position: fixed; width: 40px; height: 40px; border-radius: 999px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: rgba(233, 237, 248, .55); border: 1px solid rgba(233, 237, 248, .12);
  backdrop-filter: blur(8px);
  font-size: 18px; cursor: pointer;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(233, 237, 248, .28); color: #fff; }
.lightbox-close { top: 18px; right: 18px; }
.lightbox-zoom { top: 18px; right: 68px; font-size: 20px; }

/* end */
.end { text-align: center; padding-block: 80px; border-top: 1px solid var(--line); }
.end h2 { margin-bottom: 26px; }

/* other products: one muted line above the footer */
.more { border-top: 1px solid var(--line); padding-block: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 13px; color: var(--dim); }
.more a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.more a:hover { color: var(--muted); }
.more img { width: 18px; height: 18px; border-radius: 5px; opacity: .85; }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 24px; font-size: 13px; color: var(--dim); display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--fg); }
.foot .sp { margin-left: auto; }
.foot .lang { font-size: 12px; opacity: .75; }

/* support / privacy / terms pages */
.doc-nav { border-bottom: 1px solid var(--line); }
.doc-nav .btn { margin-left: auto; }
.doc { max-width: 760px; padding-block: 44px 72px; }
.doc h1 { font-size: 34px; line-height: 1.3; margin: 0 0 8px; }
.doc h2 { font-size: 19px; margin: 32px 0 8px; }
.doc p, .doc li, .doc dd { color: var(--muted); }
.doc p { margin: 0 0 10px; }
.doc b { color: var(--fg); font-weight: 600; }
.doc a { color: var(--accent); }
.doc ol, .doc ul { padding-left: 1.3em; margin: 0 0 10px; display: grid; gap: 6px; }
.doc .meta { font-size: 14px; color: var(--dim); }
.doc .lead-p { font-size: 17px; }
.contact { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin: 24px 0 8px; }
.contact .label { font-size: 13px; color: var(--dim); }
.contact .mail { display: inline-block; font-size: 20px; font-weight: 600; color: var(--fg); text-decoration: none; margin: 2px 0 8px; word-break: break-all; }
.contact p { margin: 0; font-size: 14px; }
.faq { margin: 0; }
.faq dt { font-weight: 600; margin-top: 18px; }
.faq dd { margin: 4px 0 0; }

@media (max-width: 860px) {
  .hero { display: flex; flex-direction: column; height: auto; padding-bottom: 48px; }
  .hero > .nav { order: 1; width: 100%; }
  .hero > .in { order: 2; width: 100%; }
  .wall {
    order: 3;
    position: relative; right: auto; top: auto;
    width: min(360px, 90vw); height: 360px;
    margin: 36px auto 0;
  }
  .wall .col:nth-child(1) { top: 36px; }
  .wall .col:nth-child(2) { top: 4px; }
  .wall .col:nth-child(3) { top: 36px; }
  .shade { background: linear-gradient(0deg, var(--navy) 0%, var(--shade-zero) 22%); }
  .copy { padding-top: 44px; max-width: none; }
  .hero h1 { font-size: 48px; }
  .hero .sub { font-size: 17px; }
  .sec, .end { padding-block: 56px; }
  .sec h2, .end h2 { font-size: 28px; }
  .gallery-head { align-items: flex-end; margin-bottom: 20px; }
  .gallery-btn { width: 38px; height: 38px; font-size: 16px; }
  .gallery-prev { left: 8px; }
  .gallery-next { right: 8px; }
  .shot-track { gap: 16px; padding-inline: max(20px, env(safe-area-inset-left)); scroll-padding-inline: max(20px, env(safe-area-inset-left)); }
  .shot-card { flex-basis: min(290px, 82vw); padding: 14px; }
  .shot-card h3 { font-size: 17px; }
  .shot-card p { font-size: 13px; }
  dialog.lightbox[open] { padding: 64px 16px 36px; }
  .lightbox-body { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
  .lightbox-stage { position: relative; width: 100%; gap: 0; align-items: center; }
  .lightbox-stage .lb-arrow,
  dialog.lightbox:not(.is-fit) .lightbox-stage .lb-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 38px; height: 38px; font-size: 16px;
  }
  .lightbox-stage .lightbox-prev { left: 4px; }
  .lightbox-stage .lightbox-next { right: 4px; }
  .lightbox-body img { width: 92vw; max-width: 92vw; height: auto; }
  dialog.lightbox.is-fit .lightbox-body img { width: auto; max-height: 76vh; max-width: 92vw; }
  .lightbox-meta { position: static; width: 100%; max-width: 92vw; padding: 4px 8px; text-align: left; }
  .lb-head { justify-content: space-between; }
  .lb-title { font-size: 26px; margin: 12px 0 10px; }
  .lb-copy { font-size: 16px; }
  .foot .sp { margin-left: 0; width: 100%; }
  .doc { padding-block: 28px 48px; }
  .doc h1 { font-size: 27px; }
}
@keyframes lbSlideNext {
  from { opacity: 0; transform: translateX(36px) scale(.985); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes lbSlidePrev {
  from { opacity: 0; transform: translateX(-36px) scale(.985); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes lbFadeIn {
  from { opacity: 0; transform: scale(.97); }
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .gallery-btn, .lb-arrow, .shot-trigger .dev, .support-link a { transition: transform .18s ease, opacity .18s ease, border-color .18s ease, color .18s ease, background-color .18s ease; }
  .gallery-dot { transition: width .2s ease, background-color .2s ease; }
  .btn:hover { transform: translateY(-1px); }
  .shot-trigger:hover .dev { transform: scale(1.015); }
  .lightbox-body.is-next img, .lightbox-body.is-next .lb-text { animation: lbSlideNext .28s cubic-bezier(.22, 1, .36, 1) both; }
  .lightbox-body.is-prev img, .lightbox-body.is-prev .lb-text { animation: lbSlidePrev .28s cubic-bezier(.22, 1, .36, 1) both; }
  .lightbox-body.is-open { animation: lbFadeIn .22s cubic-bezier(.22, 1, .36, 1) both; }
}
@media (max-width: 680px) {
  .nav-actions { gap: 8px; }
}
@media (max-width: 380px) {
  .nav .logo { gap: 6px; font-size: 15px; }
  .nav .btn.sm, .language-picker summary { padding-inline: 8px; }
}

/* 两行标题按文案区域宽度缩放，首行突出定位，第二行保持完整。 */
.hero .copy { container-type: inline-size; }
.hero h1.product-title { font-size: 64px; font-size: clamp(36px, 12cqi, 76px); line-height: 1.15; white-space: nowrap; }
.hero h1.product-title .product-title-detail { display: block; margin-top: .25em; font-size: 36px; font-size: clamp(21px, 8cqi, 46px); line-height: 1.3; }

.localized-hero { height: auto; min-height: 700px; padding-bottom: 72px; }
.localized-hero h1 { font-size: clamp(34px, 10cqi, 62px); line-height: 1.15; overflow-wrap: anywhere; }
.localized-hero .product-title-detail {
  display: block; margin-top: .35em; font-size: clamp(20px, 5cqi, 32px); line-height: 1.3;
}
.localized-hero .ctas .btn { white-space: normal; }
@media (max-width: 860px) {
  .localized-hero { min-height: 0; }
}

/* tools hub, homepage strip & tool cross-links */
.tools-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 6px;
}
.tools-all-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 14px; font-weight: 500; color: var(--muted);
  text-decoration: none; white-space: nowrap;
}
.tools-all-link:hover { color: var(--fg); }
.tools-all-link span { color: var(--accent); transition: transform .15s ease; }
.tools-all-link:hover span { transform: translateX(2px); }

.tools-strip { padding-block: 64px; border-top: 1px solid var(--line); }
.tools-strip-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 24px;
}
.tools-strip-head h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.25; margin: 0; font-weight: 700; }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tool-card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 20px;
  text-decoration: none; color: inherit;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
a.tool-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--menu-shadow);
}
a.tool-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tool-card.is-soon { opacity: .72; cursor: default; }

.tool-card-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px;
}
.tool-card-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(63, 102, 230, .12); color: var(--accent);
  flex: none;
}
.tool-card-icon svg { width: 20px; height: 20px; }
.tool-card.is-soon .tool-card-icon { background: var(--line); color: var(--dim); }

.tool-card-tag, .tool-card-soon {
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
  white-space: nowrap;
}
.tool-card-tag {
  background: rgba(63, 102, 230, .12); color: var(--accent);
}
.tool-card-soon {
  background: var(--line); color: var(--dim);
}

.tool-card h3 {
  font-size: 16px; line-height: 1.35; font-weight: 700;
  margin: 0 0 8px; color: var(--fg);
}
.tool-card p {
  font-size: 13.5px; line-height: 1.55; color: var(--muted);
  margin: 0;
}
.tool-card-action {
  margin-top: auto; padding-top: 16px;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: var(--accent);
}

/* tools hub page */
.tools-hub { max-width: 760px; padding-block: 48px 80px; }
.tools-hub h1 {
  font-size: clamp(26px, 3.6vw, 34px); line-height: 1.25; font-weight: 700;
  letter-spacing: -.015em; margin: 0 0 24px;
}
.tools-list { display: grid; gap: 10px; }
.tool-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: border-color .18s ease, background-color .18s ease;
}
a.tool-row:hover { border-color: var(--accent); }
a.tool-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tool-row.is-soon { opacity: .58; cursor: default; }
.tool-row.is-soon .tool-card-icon { background: var(--line); color: var(--dim); }
.tool-row-body { min-width: 0; flex: 1; display: grid; gap: 2px; }
.tool-row-name { font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--fg); }
.tool-row-desc {
  font-size: 13.5px; line-height: 1.45; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tool-row-arrow {
  font-size: 18px; line-height: 1; color: var(--accent); flex: none;
  transition: transform .15s ease;
}
a.tool-row:hover .tool-row-arrow { transform: translateX(3px); }

/* top horizontal tool switcher bar */
.tool-bar {
  border-bottom: 1px solid var(--line);
  background: var(--navy);
}
.tool-bar-in {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding-block: 10px;
}
@media (max-width: 680px) {
  .tool-bar-in {
    flex-wrap: nowrap;
    overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .tool-bar-in::-webkit-scrollbar { display: none; }
}
.tool-tab {
  flex: none;
  display: inline-flex; align-items: center;
  padding: 5px 11px; border-radius: 999px;
  font-size: 13px; font-weight: 500; line-height: 1.3;
  color: var(--muted); text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.tool-tab:hover {
  color: var(--fg);
  background: var(--line);
}
.tool-tab[aria-current="page"] {
  color: #fff;
  background: var(--brand);
  font-weight: 600;
}
.tool-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media print {
  .tool-bar { display: none !important; }
}

/* 3-column footer for tools */
.foot.foot-cols { display: block; padding-block: 44px 36px; }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
}
.foot-brand .logo { font-size: 16px; color: var(--fg); }
.foot-brand .logo img { width: 28px; height: 28px; border-radius: 7px; }
.foot-copy { margin: 12px 0 4px; font-size: 13px; color: var(--dim); }
.foot-icp { display: inline-block; font-size: 12px; color: var(--dim); margin-top: 2px; }
.foot-col h3 {
  font-size: 13px; font-weight: 600; color: var(--fg);
  margin: 0 0 12px; letter-spacing: .01em;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-col li { font-size: 13px; color: var(--muted); }
.foot-col a { color: var(--muted); text-decoration: none; }
.foot-col a:hover { color: var(--fg); }
.foot-soon { color: var(--dim); }
.foot-soon em {
  font-style: normal; font-size: 11px; margin-left: 4px;
  padding: 1px 6px; border-radius: 999px;
  background: var(--line); color: var(--dim);
}

@media (max-width: 960px) {
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .tools-strip { padding-block: 48px; }
  .tools-strip-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .tools-grid { grid-template-columns: 1fr; }
  .tools-hub { padding-block: 32px 56px; }
  .tool-row { padding: 14px; gap: 12px; }
  .tool-row-desc { white-space: normal; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
}
