:root {
  --apple-white: #ffffff;
  --apple-gray: #f5f5f7;
  --apple-gray-2: #e8e8ed;
  --apple-black: #1d1d1f;
  --apple-copy: #515154;
  --apple-muted: #6e6e73;
  --apple-blue: #0071e3;
  --apple-blue-hover: #0077ed;
  --apple-line: #d2d2d7;
  --shadow-small: 0 2px 8px rgba(0, 0, 0, .04);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, .08);
  --shadow-large: 0 8px 24px rgba(0, 0, 0, .12);
  --page-width: 1200px;
  --header-height: 56px;
  --radius-card: 24px;
  --radius-control: 14px;
  --z-header: 20;
  --z-menu: 18;
}

* { box-sizing: border-box; }
html { background: var(--apple-white); scroll-behavior: smooth; }
body {
  background: var(--apple-white);
  color: var(--apple-black);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  margin: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.is-dialog-open,
body.is-menu-open { overflow: hidden; }
button, input, textarea { font: inherit; }
a, button, input, textarea, [role="button"] { -webkit-tap-highlight-color: transparent; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  box-shadow: 0 0 0 4px rgba(0, 113, 227, .3);
  outline: none;
}
[hidden] { display: none !important; }
.sr-only {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}
.skip-link {
  background: var(--apple-blue);
  border-radius: 0 0 10px 10px;
  color: var(--apple-white);
  left: 16px;
  padding: 10px 16px;
  position: fixed;
  text-decoration: none;
  top: -60px;
  z-index: 30;
}
.skip-link:focus { top: 0; }

/* Navigation */
.site-header {
  background: var(--apple-white);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
}
.header-inner {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--page-width);
  padding: 0 28px;
}
.header-actions { align-items: center; display: flex; gap: 22px; }
.wordmark {
  align-items: center;
  color: var(--apple-black);
  display: inline-flex;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}
.official-logo { display: block; height: 40px; object-fit: contain; width: 42px; }
.company-lockup { display: grid; line-height: 1.05; min-width: 0; }
.company-lockup strong { font-size: .9rem; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.company-lockup small { color: var(--apple-muted); font-size: .52rem; letter-spacing: .08em; margin-top: 5px; white-space: nowrap; }
.site-header nav { align-items: center; display: flex; gap: 30px; }
.site-header nav a {
  color: var(--apple-copy);
  font-size: .76rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 200ms ease, opacity 200ms ease;
}
.site-header nav a:hover { color: var(--apple-black); opacity: .8; }
.site-header nav a.is-current { color: var(--apple-black); font-weight: 600; }
.nav-toggle { display: none; }
.language-toggle {
  background: transparent;
  border: 0;
  color: var(--apple-muted);
  cursor: pointer;
  display: inline-flex;
  font-size: .67rem;
  font-variant-numeric: tabular-nums;
  gap: 4px;
  padding: 8px 0;
}
.language-toggle span { transition: color 200ms ease, font-weight 200ms ease; }
.language-toggle span[data-language="zh"] { color: var(--apple-black); font-weight: 600; }
.language-toggle.is-english span[data-language="zh"] { color: var(--apple-muted); font-weight: 400; }
.language-toggle.is-english span[data-language="en"] { color: var(--apple-black); font-weight: 600; }
.language-toggle i { color: var(--apple-line); font-style: normal; }

/* Page transitions */
.view-panel[hidden] { display: none !important; }
.view-panel:not([hidden]) { animation: view-fade 200ms ease both; }
@keyframes view-fade { from { opacity: 0; } to { opacity: 1; } }
.subpage-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--page-width);
  padding: 24px 28px 0;
}
.subpage-head a,
.subpage-head span { color: var(--apple-muted); font-size: .78rem; text-decoration: none; }
.subpage-head a:hover { color: var(--apple-blue); }
body[data-view="consult"] .site-footer,
body[data-view="products"] .site-footer { display: none; }

/* Home */
.hero {
  background: var(--apple-gray);
  min-height: calc(100dvh - var(--header-height));
  padding: clamp(62px, 7vw, 94px) 28px 64px;
}
.hero-layout {
  align-items: center;
  display: grid;
  gap: clamp(54px, 7vw, 100px);
  grid-template-columns: minmax(0, .92fr) minmax(420px, .78fr);
  margin: 0 auto;
  max-width: var(--page-width);
}
.hero-copy { max-width: 620px; padding-bottom: 8px; }
.hero-kicker { color: var(--apple-blue); font-size: .82rem; font-weight: 600; margin: 0 0 20px; }
.hero h1 {
  color: var(--apple-black);
  font-size: clamp(3.6rem, 5.6vw, 5.65rem);
  font-weight: 600;
  letter-spacing: -.06em;
  line-height: 1.01;
  margin: 0 0 30px;
  max-width: 7.4em;
  text-wrap: balance;
}
.hero-lead {
  color: var(--apple-copy);
  font-size: clamp(1.02rem, 1.45vw, 1.2rem);
  line-height: 1.72;
  margin: 0;
  max-width: 32em;
  text-wrap: pretty;
}
.hero-primary,
.composer button {
  background: var(--apple-blue);
  border: 0;
  border-radius: 999px;
  color: var(--apple-white);
  font-weight: 500;
  padding: 12px 24px;
  text-decoration: none;
  transition: background-color 200ms ease, opacity 200ms ease, transform 200ms ease;
}
.hero-primary:hover,
.composer button:hover { background: var(--apple-blue-hover); }
.hero-primary:active,
.composer button:active,
.new-chat:active,
.filter:active { transform: scale(.95); }
.hero-secondary {
  align-items: center;
  color: var(--apple-blue);
  display: inline-flex;
  font-size: .9rem;
  gap: 6px;
  margin-top: 30px;
  text-decoration: none;
  transition: opacity 200ms ease;
}
.hero-secondary:hover { opacity: .8; }
.hero-secondary span { font-size: 1.35rem; line-height: 1; }
.hero-signature { color: var(--apple-muted); font-size: .7rem; line-height: 1.65; margin: 23px 0 0; }
.home-consult {
  background: var(--apple-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-medium);
  overflow: hidden;
  width: 100%;
}
.home-consult-head {
  align-items: center;
  border-bottom: 1px solid var(--apple-line);
  display: flex;
  gap: 11px;
  min-height: 68px;
  padding: 13px 18px;
}
.home-consult-head > div:nth-child(2) { display: grid; }
.home-consult-head strong { font-size: .83rem; font-weight: 600; }
.home-consult-head > div span { color: var(--apple-muted); font-size: .64rem; margin-top: 2px; }
.home-consult-status { color: var(--apple-muted); font-size: .65rem; margin-left: auto; white-space: nowrap; }
.home-consult-status i { background: #34c759; border-radius: 50%; display: inline-block; height: 6px; margin-right: 5px; width: 6px; }
.home-consult-status.is-checking i, .live-status.is-checking i { background: #ff9f0a; }
.home-consult-status.is-unavailable, .live-status.is-unavailable { color: #c9342f; }
.home-consult-status.is-unavailable i, .live-status.is-unavailable i { background: #ff3b30; }
.home-consult-body { padding: 30px 28px 26px; }
.home-consult-kicker { color: var(--apple-muted); font-size: .7rem; margin: 0 0 7px; }
.home-consult h2 { font-size: clamp(1.7rem, 2.45vw, 2.25rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.12; margin: 0 0 10px; }
.home-consult-body > p:not(.home-consult-kicker) { color: var(--apple-copy); font-size: .78rem; line-height: 1.65; margin: 0; }
.home-question-form { margin-top: 22px; }
.home-question-form textarea {
  background: var(--apple-gray);
  border: 0;
  border-radius: var(--radius-control);
  color: var(--apple-black);
  display: block;
  font-size: .86rem;
  line-height: 1.55;
  min-height: 78px;
  outline: none;
  padding: 13px 14px;
  resize: none;
  transition: box-shadow 200ms ease, background-color 200ms ease;
  width: 100%;
}
.home-question-form textarea::placeholder { color: #86868b; }
.home-question-form textarea:focus { background: var(--apple-white); box-shadow: 0 0 0 2px var(--apple-blue); }
html[lang="en"] .home-question-form textarea { min-height: 92px; }
.home-question-form > div { align-items: center; display: flex; justify-content: space-between; margin-top: 10px; }
.home-question-form small { color: var(--apple-muted); font-size: .61rem; }
.home-question-form button {
  background: var(--apple-blue);
  border: 0;
  border-radius: 999px;
  color: var(--apple-white);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 500;
  padding: 9px 15px;
  transition: background-color 200ms ease, transform 200ms ease;
}
.home-question-form button:hover { background: var(--apple-blue-hover); }
.home-question-form button:active { transform: scale(.96); }
.home-question-form button b { font-size: .9rem; font-weight: 400; margin-left: 3px; }
.home-suggestions { border-top: 1px solid var(--apple-line); display: grid; margin-top: 21px; padding-top: 12px; }
.home-suggestions > span { color: var(--apple-muted); font-size: .66rem; margin-bottom: 3px; }
.home-suggestions button {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--apple-line);
  color: var(--apple-black);
  cursor: pointer;
  display: grid;
  font-size: .76rem;
  gap: 10px;
  grid-template-columns: 20px 1fr auto;
  padding: 10px 0;
  text-align: left;
  transition: color 200ms ease, opacity 200ms ease;
}
.home-suggestions button:last-child { border-bottom: 0; }
.home-suggestions button:hover { color: var(--apple-blue); }
.home-suggestions button:active { opacity: .55; }
.home-suggestions button i { color: var(--apple-muted); font-size: .58rem; font-style: normal; font-variant-numeric: tabular-nums; }
.home-suggestions button strong { font-weight: 500; }
.home-suggestions button b { color: var(--apple-blue); font-size: 1rem; font-weight: 400; }
.home-support-links {
  border-top: 1px solid var(--apple-line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 54px auto 0;
  max-width: var(--page-width);
}
.home-support-links a {
  align-items: center;
  color: var(--apple-black);
  display: flex;
  justify-content: space-between;
  min-height: 84px;
  padding: 19px 26px;
  text-decoration: none;
  transition: opacity 200ms ease;
}
.home-support-links a + a { border-left: 1px solid var(--apple-line); }
.home-support-links a:hover { opacity: .72; }
.home-support-links strong { display: block; font-size: .87rem; font-weight: 600; }
.home-support-links small { color: var(--apple-muted); display: block; font-size: .68rem; margin-top: 3px; }
.home-support-links i { color: var(--apple-blue); font-size: .7rem; font-style: normal; white-space: nowrap; }

/* Consultation */
.consult-section { background: var(--apple-gray); min-height: calc(100dvh - var(--header-height)); padding-bottom: 48px; }
.consult-grid {
  align-items: stretch;
  display: grid;
  gap: clamp(34px, 5vw, 72px);
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
  margin: 38px auto 0;
  max-width: var(--page-width);
  padding: 0 28px;
}
.consult-intro { padding: 44px 0 20px; }
.consult-intro h2 {
  font-size: clamp(2.45rem, 4vw, 4rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.05;
  margin: 0 0 25px;
  text-wrap: balance;
}
.consult-intro > p { color: var(--apple-copy); font-size: .92rem; line-height: 1.8; margin: 0; max-width: 32em; }
.prompt-list { border-top: 1px solid var(--apple-line); display: grid; margin-top: 40px; }
.prompt-list button {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--apple-line);
  color: var(--apple-black);
  cursor: pointer;
  font-size: .82rem;
  line-height: 1.5;
  padding: 17px 0;
  text-align: left;
  transition: color 200ms ease, opacity 200ms ease;
}
.prompt-list button:hover { color: var(--apple-blue); opacity: .8; }
.prompt-list button:active { opacity: .55; }
.prompt-list button span { color: var(--apple-muted); display: block; font-size: .69rem; margin-bottom: 3px; }
.chat-shell {
  background: var(--apple-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-medium);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: min(760px, calc(100dvh - 158px));
  min-height: 540px;
  overflow: hidden;
  position: relative;
}
.chat-header {
  align-items: center;
  border-bottom: 1px solid var(--apple-line);
  display: flex;
  gap: 11px;
  min-height: 70px;
  padding: 14px 20px;
}
.assistant-mark {
  align-items: center;
  background: var(--apple-black);
  border-radius: 12px;
  color: var(--apple-white);
  display: flex;
  font-size: .95rem;
  font-weight: 600;
  height: 40px;
  justify-content: center;
  width: 40px;
}
.chat-header p { color: var(--apple-muted); font-size: .6rem; letter-spacing: .04em; margin: 0; }
.chat-header h2 { font-size: .9rem; font-weight: 600; margin: 1px 0 0; }
.live-status { color: var(--apple-muted); font-size: .68rem; margin-left: auto; }
.live-status i { background: #34c759; border-radius: 50%; display: inline-block; height: 6px; margin-right: 5px; width: 6px; }
.new-chat,
.history-toggle {
  background: var(--apple-gray);
  border: 0;
  border-radius: 999px;
  color: var(--apple-blue);
  cursor: pointer;
  font-size: .7rem;
  margin-left: 6px;
  padding: 8px 12px;
  transition: opacity 200ms ease, transform 200ms ease;
}
.history-toggle { margin-left: 5px; }
.new-chat:hover,
.history-toggle:hover { opacity: .8; }
.history-panel {
  background: var(--apple-white);
  bottom: 0;
  box-shadow: -8px 0 24px rgba(0, 0, 0, .1);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  position: absolute;
  right: 0;
  top: 0;
  width: min(360px, 88%);
  z-index: 4;
}
.history-panel > header { align-items: center; border-bottom: 1px solid var(--apple-line); display: flex; justify-content: space-between; padding: 20px; }
.history-panel > header div { display: grid; }
.history-panel > header strong { font-size: 1rem; }
.history-panel > header small { color: var(--apple-muted); font-size: .65rem; margin-top: 3px; }
.history-panel > header button { background: var(--apple-gray); border: 0; border-radius: 50%; color: var(--apple-copy); cursor: pointer; font-size: 1.2rem; height: 32px; width: 32px; }
.history-list { overflow-y: auto; padding: 8px 16px; }
.history-row { align-items: center; border-bottom: 1px solid var(--apple-line); display: grid; grid-template-columns: 1fr auto; }
.history-row.is-current .history-open strong { color: var(--apple-blue); }
.history-open { background: transparent; border: 0; color: var(--apple-black); cursor: pointer; display: grid; min-width: 0; padding: 15px 4px; text-align: left; }
.history-open strong { font-size: .8rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.history-open small { color: var(--apple-muted); font-size: .62rem; margin-top: 4px; }
.history-delete { background: transparent; border: 0; color: var(--apple-muted); cursor: pointer; font-size: 1rem; padding: 12px; }
.history-delete:hover { color: #d70015; }
.history-empty { color: var(--apple-muted); font-size: .75rem; margin: 34px 4px; text-align: center; }
.clear-all { background: transparent; border: 0; border-top: 1px solid var(--apple-line); color: #d70015; cursor: pointer; font-size: .72rem; padding: 18px; text-align: left; }
.messages { background: var(--apple-gray); min-height: 0; overflow-y: auto; padding: 30px clamp(24px, 5vw, 70px); }
.welcome-card { margin: 34px 0; max-width: 650px; padding: 0; }
.eyebrow { color: var(--apple-muted); font-size: .78rem; margin: 0 0 10px; }
.welcome-card h2 { font-size: clamp(1.8rem, 3vw, 2.55rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.12; margin: 0 0 16px; }
.welcome-card > p:last-child { color: var(--apple-copy); font-size: .9rem; line-height: 1.75; margin: 0; max-width: 50em; }
.message { display: flex; margin: 15px 0; }
.message.user { justify-content: flex-end; }
.bubble {
  border-radius: 18px;
  font-size: .88rem;
  line-height: 1.75;
  max-width: min(88%, 780px);
  padding: 12px 16px;
  white-space: pre-wrap;
  word-break: break-word;
}
.user .bubble { background: var(--apple-blue); border-bottom-right-radius: 5px; color: var(--apple-white); }
.bot .bubble { background: var(--apple-white); border-bottom-left-radius: 5px; box-shadow: var(--shadow-small); color: var(--apple-black); }
.bot .bubble h3 { font-size: 1rem; margin: 0 0 10px; }
.bot .bubble h3:not(:first-child) { margin-top: 22px; }
.bot .bubble p { margin: 0 0 12px; }
.bot .bubble ul,
.bot .bubble ol { margin: 6px 0 14px; padding-left: 20px; }
.bot .bubble li { margin: 5px 0; }
.bot .bubble code { background: var(--apple-gray); border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88em; padding: 2px 5px; }
.waiting-bubble { align-items: center; display: flex; gap: 10px; min-width: 230px; }
.typing { align-items: center; display: flex; gap: 4px; }
.typing span { animation: dot-pulse 900ms ease-in-out infinite alternate; background: var(--apple-blue); border-radius: 50%; height: 5px; width: 5px; }
.typing span:nth-child(2) { animation-delay: 120ms; }
.typing span:nth-child(3) { animation-delay: 240ms; }
.waiting-copy { display: grid; gap: 1px; }
.waiting-copy strong { font-size: .78rem; }
.waiting-copy span { color: var(--apple-muted); font-size: .68rem; }
@keyframes dot-pulse { to { opacity: .25; } }
.composer { background: var(--apple-white); border-top: 1px solid var(--apple-line); margin: 0; padding: 15px 18px 13px; }
.composer textarea {
  background: var(--apple-gray);
  border: 0;
  border-radius: 14px;
  color: var(--apple-black);
  display: block;
  font-size: .87rem;
  line-height: 1.6;
  max-height: 140px;
  min-height: 58px;
  outline: none;
  padding: 12px 14px;
  resize: none;
  transition: box-shadow 200ms ease;
  width: 100%;
}
.composer textarea::placeholder { color: #86868b; }
.composer textarea:focus { box-shadow: 0 0 0 2px var(--apple-blue); }
.composer-bottom { align-items: center; color: var(--apple-muted); display: flex; font-size: .64rem; justify-content: space-between; margin-top: 10px; }
.privacy-note { color: var(--apple-muted); font-size: .62rem; line-height: 1.5; margin: 9px 2px 0; text-wrap: pretty; }
.privacy-note a { color: inherit; text-underline-offset: .16em; }
.composer button { cursor: pointer; font-size: .78rem; padding: 9px 18px; }
.composer button:disabled { cursor: not-allowed; opacity: .45; }
.composer button.is-stop { background: var(--apple-black); }
.composer button.is-stop b { font-size: .6rem; }
.stopped-note { color: var(--apple-muted); font-size: .68rem; margin-top: 10px !important; }
.composer button b { display: none; }

/* Product library */
.product-section { background: var(--apple-gray); min-height: calc(100dvh - var(--header-height)); padding-bottom: 112px; }
.section-topline {
  align-items: end;
  display: grid;
  gap: 72px;
  grid-template-columns: 1fr minmax(300px, 470px);
  margin: 0 auto;
  max-width: var(--page-width);
  padding: 74px 28px 0;
}
.section-topline h2 { font-size: clamp(3.2rem, 6.5vw, 6.2rem); font-weight: 600; letter-spacing: -.065em; line-height: 1; margin: 0; }
.section-topline > p { color: var(--apple-copy); font-size: .92rem; line-height: 1.8; margin: 0 0 7px; }
.product-toolbar {
  align-items: center;
  background: var(--apple-white);
  border-radius: 20px;
  box-shadow: var(--shadow-small);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 58px auto 28px;
  max-width: var(--page-width);
  padding: 14px 28px;
  position: sticky;
  top: var(--header-height);
  z-index: 10;
}
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter {
  background: var(--apple-gray-2);
  border: 0;
  border-radius: 999px;
  color: var(--apple-copy);
  cursor: pointer;
  font-size: .72rem;
  padding: 9px 13px;
  transition: background-color 200ms ease, color 200ms ease, opacity 200ms ease, transform 200ms ease;
}
.filter:hover { opacity: .8; }
.filter.is-active { background: var(--apple-blue); color: var(--apple-white); }
.product-search {
  align-items: center;
  background: var(--apple-gray);
  border-radius: var(--radius-control);
  display: flex;
  gap: 8px;
  min-width: 260px;
  padding: 11px 14px;
  transition: box-shadow 200ms ease;
}
.product-search:focus-within { box-shadow: 0 0 0 2px var(--apple-blue); }
.product-search span { color: var(--apple-muted); }
.product-search input { background: transparent; border: 0; color: var(--apple-black); font-size: .78rem; outline: none; width: 100%; }
.product-search input::placeholder { color: #86868b; }
.product-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: var(--page-width);
  padding: 0 28px;
}
.product-card {
  background: var(--apple-white);
  border: 0;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-medium);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 286px;
  opacity: 1;
  padding: 28px 27px 23px;
  transition: box-shadow 200ms ease, opacity 200ms ease, transform 200ms ease;
}
.product-card:hover { box-shadow: var(--shadow-large); }
.product-card:active { transform: scale(.98); }
.product-card.is-hidden { display: none; }
.product-card-top { align-items: flex-start; display: flex; justify-content: space-between; }
.product-type { color: var(--apple-muted); font-size: .68rem; margin: 0; }
.card-open-mark { color: var(--apple-blue); font-size: 1.3rem; line-height: 1; }
.product-card h3 { font-size: clamp(1.45rem, 2vw, 1.9rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.1; margin: 24px 0 11px; }
.product-summary { color: var(--apple-copy); font-size: .82rem; line-height: 1.7; margin: 0; }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 19px; }
.product-tags span { background: var(--apple-gray); border-radius: 7px; color: var(--apple-muted); font-size: .66rem; padding: 5px 7px; }
.product-detail-trigger { align-items: center; color: var(--apple-blue); display: flex; font-size: .76rem; justify-content: space-between; margin-top: auto; padding-top: 22px; }
.product-detail-trigger > span { color: var(--apple-muted); font-size: .68rem; }
.filter-empty { background: var(--apple-white); border-radius: var(--radius-card); color: var(--apple-copy); margin: 18px auto 0; max-width: calc(var(--page-width) - 56px); padding: 28px; }

/* Product details */
.product-dialog {
  background: var(--apple-white);
  border: 0;
  box-shadow: var(--shadow-large);
  color: var(--apple-black);
  height: 100dvh;
  inset: 0 0 0 auto;
  margin: 0;
  max-height: 100dvh;
  max-width: 820px;
  overflow: auto;
  padding: 0;
  position: fixed;
  width: min(820px, 100%);
}
.product-dialog::backdrop { background: rgba(0, 0, 0, .32); }
.product-dialog.is-opening { animation: sheet-fade 200ms ease both; }
@keyframes sheet-fade { from { opacity: 0; } to { opacity: 1; } }
.dialog-close {
  align-items: center;
  background: rgba(232, 232, 237, .95);
  border: 0;
  border-radius: 50%;
  color: var(--apple-black);
  cursor: pointer;
  display: flex;
  font-size: 1.3rem;
  height: 38px;
  justify-content: center;
  line-height: 1;
  padding: 0 0 2px;
  position: absolute;
  right: 20px;
  top: 20px;
  transition: opacity 200ms ease, transform 200ms ease;
  width: 38px;
  z-index: 2;
}
.dialog-close:hover { opacity: .8; }
.dialog-close:active { transform: scale(.95); }
.detail-head { background: var(--apple-gray); padding: 74px 72px 50px 42px; }
.detail-head > p:first-child { color: var(--apple-muted); font-size: .74rem; margin: 0 0 17px; }
.detail-head h2 { font-size: clamp(2.65rem, 5vw, 4.6rem); font-weight: 600; letter-spacing: -.055em; line-height: 1; margin: 0; }
.detail-subtitle { color: var(--apple-copy); font-size: .94rem; line-height: 1.7; margin: 18px 0 0; max-width: 55ch; }
.detail-body { background: var(--apple-white); }
.detail-block { border-bottom: 1px solid var(--apple-line); padding: 30px 42px; }
.detail-block h3 { font-size: .8rem; font-weight: 600; margin: 0 0 13px; }
.detail-block p,
.detail-block li { color: var(--apple-copy); font-size: .9rem; line-height: 1.75; }
.detail-block p { margin: 0; }
.detail-block ul { margin: 0; padding-left: 1.2em; }
.detail-table { border-collapse: collapse; color: var(--apple-copy); font-size: .86rem; width: 100%; }
.detail-table td { border-bottom: 1px solid var(--apple-line); line-height: 1.55; padding: 11px 10px; vertical-align: top; }
.detail-table td:first-child { color: var(--apple-black); font-weight: 600; width: 38%; }
.detail-table tr:last-child td { border-bottom: 0; }
.detail-foot { background: var(--apple-gray); color: var(--apple-muted); font-size: .72rem; line-height: 1.7; margin: 0; padding: 20px 42px; }

/* Footer */
.site-footer {
  align-items: center;
  background: var(--apple-gray);
  color: var(--apple-muted);
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr 1.5fr auto;
  margin: 0;
  padding: 48px max(28px, calc((100vw - var(--page-width)) / 2));
}
.site-footer p { font-size: .72rem; line-height: 1.7; margin: 0; max-width: 600px; }
.site-footer > a { color: var(--apple-blue); font-size: .76rem; text-decoration: none; }
.footer-links { align-items: center; display: flex; gap: 18px; white-space: nowrap; }
.footer-links a { color: var(--apple-blue); font-size: .76rem; text-decoration: none; }

@media (max-width: 980px) {
  .hero-layout { gap: 42px; grid-template-columns: 1fr; max-width: 680px; }
  .hero-copy { max-width: 610px; }
  .consult-grid { grid-template-columns: 1fr; }
  .consult-intro { display: none; }
  .chat-shell { height: calc(100dvh - 155px); }
  .section-topline { align-items: start; grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  :root { --header-height: 50px; --radius-card: 20px; }
  .site-header { background: var(--apple-white); height: var(--header-height); }
  .header-inner { padding: 0 16px; }
  .official-logo { height: 34px; width: 36px; }
  .company-lockup strong { font-size: .8rem; }
  .company-lockup small { display: none; }
  .nav-toggle {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: grid;
    gap: 5px;
    padding: 12px 7px;
    width: 34px;
  }
  .header-actions { gap: 12px; }
  .language-toggle { font-size: .65rem; position: relative; z-index: calc(var(--z-menu) + 1); }
  .nav-toggle span { background: var(--apple-black); height: 1px; transition: transform 200ms ease; width: 20px; }
  body.is-menu-open .nav-toggle span:first-child { transform: translateY(3px) rotate(45deg); }
  body.is-menu-open .nav-toggle span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .site-header nav {
    align-items: stretch;
    background: var(--apple-white);
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    left: 0;
    opacity: 0;
    padding: 28px 28px calc(32px + env(safe-area-inset-bottom));
    pointer-events: none;
    position: fixed;
    right: 0;
    top: var(--header-height);
    transition: opacity 200ms ease, visibility 200ms ease;
    visibility: hidden;
    z-index: var(--z-menu);
  }
  body.is-menu-open .site-header nav { opacity: 1; pointer-events: auto; visibility: visible; }
  .site-header nav a {
    border-bottom: 1px solid var(--apple-line);
    color: var(--apple-black);
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: -.035em;
    padding: 15px 0;
  }
  .site-header nav a.is-current { color: var(--apple-blue); }

  .subpage-head { display: none; }
  .hero { min-height: auto; padding: 38px 16px 42px; }
  .hero-layout { gap: 30px; }
  .hero-copy { padding: 0 4px; }
  .hero-kicker { font-size: .73rem; margin-bottom: 13px; }
  .hero h1 { font-size: clamp(2.65rem, 12vw, 3.25rem); line-height: 1.02; margin-bottom: 19px; max-width: 7.8em; }
  .hero-lead { font-size: .94rem; line-height: 1.65; max-width: 24em; }
  .hero-secondary,
  .hero-signature { display: none; }
  .home-consult { border-radius: 22px; }
  .home-consult-head { min-height: 62px; padding: 11px 14px; }
  .home-consult-head .assistant-mark { height: 38px; width: 38px; }
  .home-consult-status { font-size: .6rem; }
  .home-consult-body { padding: 24px 18px 18px; }
  .home-consult h2 { font-size: 1.75rem; }
  .home-consult-body > p:not(.home-consult-kicker) { font-size: .75rem; }
  .home-question-form { margin-top: 18px; }
  .home-question-form textarea { font-size: .82rem; min-height: 74px; }
  html[lang="en"] .home-question-form textarea { min-height: 104px; }
  .home-question-form small { display: none; }
  .home-question-form > div { justify-content: flex-end; }
  .home-suggestions { margin-top: 17px; }
  .home-suggestions button { font-size: .75rem; min-height: 43px; }
  .home-support-links { grid-template-columns: 1fr; margin-top: 36px; }
  .home-support-links a { min-height: 74px; padding: 16px 4px; }
  .home-support-links a + a { border-left: 0; border-top: 1px solid var(--apple-line); }

  .consult-section { min-height: calc(100dvh - var(--header-height)); padding: 0; }
  .consult-grid { height: calc(100dvh - var(--header-height)); margin: 0; padding: 0; }
  .chat-shell { border-radius: 0; box-shadow: none; height: 100%; min-height: 0; }
  .chat-header { min-height: 62px; padding: 10px 14px; }
  .assistant-mark { border-radius: 10px; height: 38px; width: 38px; }
  .chat-header p { display: none; }
  .chat-header h2 { font-size: .86rem; }
  .live-status { display: none; }
  .history-toggle,
  .new-chat { font-size: .67rem; margin-left: 0; padding: 8px 10px; }
  .history-toggle { margin-left: auto; }
  .history-panel { width: 100%; }
  .messages { padding: 24px 16px; }
  .welcome-card { margin: 28px 4px; }
  .welcome-card h2 { font-size: 1.72rem; }
  .welcome-card > p:last-child { font-size: .84rem; }
  .bubble { font-size: .85rem; max-width: 92%; }
  .composer { padding: 12px 12px calc(11px + env(safe-area-inset-bottom)); }
  .composer textarea { min-height: 52px; }
  .composer-bottom > span { display: none; }
  .composer-bottom { justify-content: flex-end; }

  .product-section { padding-bottom: 52px; }
  .section-topline { display: block; padding: 58px 20px 0; text-align: center; }
  .section-topline h2 { font-size: 2.65rem; }
  .section-topline > p { font-size: .84rem; line-height: 1.7; margin: 19px auto 0; max-width: 27em; }
  .product-toolbar { align-items: stretch; display: flex; flex-direction: column; margin: 30px 16px 20px; padding: 13px; top: var(--header-height); }
  .filters { flex-wrap: nowrap; margin: 0 -13px; overflow-x: auto; padding: 0 13px 2px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; }
  .product-search { min-width: 0; width: 100%; }
  .product-grid { gap: 14px; grid-template-columns: 1fr; padding: 0 16px; }
  .product-card { min-height: 250px; padding: 24px 22px 20px; }
  .product-card h3 { font-size: 1.5rem; }
  .filter-empty { margin: 14px 16px 0; }

  .product-dialog {
    border-radius: 24px 24px 0 0;
    height: min(90dvh, 760px);
    inset: auto 0 0;
    max-height: calc(100dvh - 12px);
    max-width: none;
    width: 100%;
  }
  .product-dialog::before { background: #c7c7cc; border-radius: 999px; content: ""; height: 5px; left: 50%; position: absolute; top: 9px; transform: translateX(-50%); width: 38px; z-index: 2; }
  .detail-head { padding: 66px 54px 38px 23px; }
  .detail-head h2 { font-size: 2.35rem; }
  .detail-subtitle { font-size: .86rem; }
  .dialog-close { right: 13px; top: 18px; }
  .detail-block,
  .detail-foot { padding-left: 22px; padding-right: 22px; }
  .detail-table td { padding-left: 5px; padding-right: 5px; }
  .site-footer { gap: 22px; padding: 38px 20px calc(38px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
/* Mobile home: direct product-selection flow. */
.mobile-primary-nav { display: none; }

@media (max-width: 720px) {
  body.mobile-home-active {
    --mobile-page-gutter: 14px;
  }

  .mobile-primary-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1.08fr 1fr 1.15fr;
    gap: 7px;
    padding: 9px var(--mobile-page-gutter, 14px) 10px;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(20, 24, 32, .07);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
  }

  .mobile-primary-link {
    min-width: 0;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0 8px;
    border: 1px solid rgba(20, 24, 32, .09);
    border-radius: 12px;
    background: #f2f3f5;
    color: #1d1d1f;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
  }

  .mobile-primary-link.is-primary {
    border-color: #0878e8;
    background: #0878e8;
    color: #fff;
  }

  .site-header .nav-toggle {
    display: none !important;
  }

  body.mobile-home-active main {
    padding-top: 0;
  }

  body.mobile-home-active .mobile-home-title {
    max-width: 10em;
    margin-top: 10px;
    margin-bottom: 14px;
    font-size: clamp(42px, 12vw, 58px) !important;
    line-height: .98 !important;
    letter-spacing: -.065em !important;
    text-wrap: balance;
  }

  body.mobile-home-active .mobile-home-lead {
    max-width: 30em;
    margin-bottom: 20px !important;
    font-size: 15px !important;
    line-height: 1.55 !important;
  }

  body.mobile-home-active .home-hero,
  body.mobile-home-active [class*="home-hero"] {
    padding-top: 28px !important;
  }

  body.mobile-home-active .home-consult {
    width: calc(100% + 4px) !important;
    max-width: none !important;
    margin-left: -2px !important;
    margin-right: -2px !important;
    border-radius: 24px !important;
  }

  body.mobile-home-active .mobile-home-secondary-copy {
    display: none !important;
  }

  body.mobile-home-active .home-consult h2,
  body.mobile-home-active .home-consult h3 {
    font-size: clamp(28px, 8vw, 36px) !important;
    line-height: 1.08 !important;
    letter-spacing: -.045em !important;
  }

  body.mobile-home-active .home-consult textarea {
    min-height: 150px !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  body.mobile-home-active .home-consult button {
    min-height: 48px;
  }
}
