/* Guyi desk26 — warm-white / ink-navy / muted teal; system sans only (no Google Fonts) */

:root {
  --paper: #FAF8F5;
  --paper-2: #FFFFFF;
  --stone: #F0EBE4;
  --ink: #0F1B2D;
  --body: #2C3648;
  --muted: #5B6577;
  --line: #E2DDD5;
  --line-strong: #CBC4B8;
  --copper: #2A6F6B;
  --copper-ink: #1F5552;
  --accent: #2A6F6B;
  --accent-soft: #E6F2F1;
  --danger: #8B3A32;
  --danger-bg: #F7EBE9;
  --header: 68px;
  --pad: clamp(16px, 3vw, 32px);
  --wrap: min(1120px, calc(100% - var(--pad) * 2));
  --radius: 8px;
  --radius-btn: 8px;
  --shadow-soft: 0 1px 2px rgba(15, 27, 45, 0.04);
  --shadow-lift: 0 8px 24px rgba(15, 27, 45, 0.08);
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-serif: var(--font-sans);
  --font-en-serif: var(--font-sans);
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --step-0: 0.8125rem;
  --step-1: 0.9375rem;
  --step-2: 1.0625rem;
  --step-3: clamp(1.25rem, 2vw, 1.5rem);
  --step-4: clamp(1.6rem, 3.2vw, 2.15rem);
  --step-5: clamp(1.9rem, 4vw, 2.65rem);
}

html[lang="zh-CN"] {
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}
html[lang="ja"] {
  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif;
}
html[lang="ko"] {
  --font-sans: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
}
html[lang="ar"] {
  --font-sans: "Segoe UI", Tahoma, "Noto Sans Arabic", system-ui, sans-serif;
}
html[lang="hi"] {
  --font-sans: "Kohinoor Devanagari", "Noto Sans Devanagari", system-ui, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: var(--step-2);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: anywhere;
  word-break: break-word;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent-soft); color: var(--ink); }

.skip {
  position: absolute; inset-inline-start: 12px; top: -48px;
  background: var(--ink); color: #fff; padding: 8px 12px; z-index: 40; border-radius: 6px;
}
.skip:focus { top: calc(10px + var(--safe-t)); }
.wrap { width: var(--wrap); margin-inline: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
  text-wrap: balance;
}
html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3 { letter-spacing: 0; }
h1 {
  font-size: var(--step-5);
  margin: 0 0 14px;
  max-width: 18em;
}
h2 { font-size: var(--step-4); margin: 0 0 12px; max-width: 22em; }
h3 { font-size: var(--step-3); margin: 0 0 8px; font-weight: 700; }
p { margin: 0 0 0.85em; }
.kicker {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
}
html[lang="zh-CN"] .kicker,
html[lang="ja"] .kicker,
html[lang="ko"] .kicker,
html[lang="ar"] .kicker,
html[lang="hi"] .kicker { letter-spacing: 0.04em; text-transform: none; }
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--body);
  max-width: 38rem;
  line-height: 1.75;
}
.note {
  color: var(--danger);
  font-weight: 650;
  font-size: var(--step-1);
  max-width: 40rem;
  margin: 0 0 12px;
  padding: 12px 14px;
  background: var(--danger-bg);
  border: 1px solid #e8d0cb;
  border-inline-start: 3px solid var(--danger);
  border-radius: var(--radius);
}

/* Header / menu */
.site-header {
  position: sticky; top: 0; z-index: 40;
  padding-top: var(--safe-t);
  background: rgba(250, 248, 245, 0.96);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
}
.header-inner {
  width: var(--wrap); margin-inline: auto; min-height: var(--header);
  display: flex; align-items: center; gap: 18px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit; flex-shrink: 0;
}
.logo img {
  width: 44px; height: 44px; border-radius: 12px;
  box-shadow: var(--shadow-soft);
  background: #F3EDE3;
  object-fit: cover;
}
.logo strong {
  display: block; font-size: 1.12rem; color: var(--ink);
  font-weight: 800; letter-spacing: -0.02em; white-space: nowrap;
  font-family: var(--font-sans);
}
.logo small {
  display: block; color: var(--muted); font-size: 0.74rem; line-height: 1.3;
  max-width: 14rem;
}
.nav-desktop {
  display: flex; align-items: center; gap: 2px;
  margin-inline-start: auto;
}
.nav-desktop a {
  position: relative;
  color: var(--body); text-decoration: none;
  font-weight: 650; font-size: 0.92rem;
  padding: 10px 12px; border-radius: 6px;
  min-height: 44px; display: inline-flex; align-items: center;
}
.nav-desktop a:hover { color: var(--ink); background: var(--stone); }
.nav-desktop a[aria-current="page"] {
  color: var(--ink); font-weight: 750;
  box-shadow: inset 0 -2px 0 var(--accent);
  background: transparent; border-radius: 0;
}
.header-tools { display: flex; align-items: center; gap: 10px; margin-inline-start: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--radius-btn);
  border: 1px solid transparent; text-decoration: none; font: inherit; font-weight: 700;
  cursor: pointer; white-space: normal; text-align: center; line-height: 1.3;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary {
  background: var(--ink);
  color: #FAF8F5;
}
.btn-primary:hover {
  background: #1a2a42;
  color: #fff;
}
.btn-primary:active { background: var(--ink); }
.btn-line {
  border-color: var(--line-strong);
  background: var(--paper-2);
  color: var(--ink);
}
.btn-line:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn .ico { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary .ico { filter: brightness(0) invert(1); }
.header-cta { white-space: nowrap; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong);
  background: var(--paper-2); border-radius: 8px; padding: 11px 10px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--ink); margin: 5px 0; border-radius: 2px; }

.lang { position: relative; }
.lang > summary {
  list-style: none; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-strong); background: var(--paper-2); border-radius: 8px;
  padding: 0 12px; font-weight: 700; font-size: 0.88rem; color: var(--ink);
}
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary:hover { border-color: var(--ink); box-shadow: var(--shadow-soft); }
.lang > summary .ico { width: 16px; height: 16px; opacity: .85; }
.lang-short { display: none; }
.lang-panel {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px);
  width: min(320px, 84vw); background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; z-index: 50;
  box-shadow: var(--shadow-lift);
}
.lang-panel a {
  text-decoration: none; color: var(--ink); border-radius: 8px; padding: 11px; font-weight: 650; font-size: 0.9rem;
}
.lang-panel a:hover, .lang-panel a[aria-current="page"] { background: var(--stone); }

.mobile-panel {
  display: none; border-top: 1px solid var(--line); background: var(--paper-2);
  padding: 12px var(--pad) calc(20px + var(--safe-b));
}
.mobile-panel.open { display: block; }
.mobile-panel nav { display: grid; gap: 4px; }
.mobile-panel nav a {
  display: block; padding: 14px 12px; color: var(--ink); text-decoration: none; font-weight: 750;
  border-radius: 10px; min-height: 48px;
}
.mobile-panel nav a[aria-current="page"],
.mobile-panel nav a:hover { background: var(--stone); }
.mobile-ctas { display: grid; gap: 10px; margin-top: 14px; }
.mobile-langs { margin-top: 12px; }

/* Hero */
.hero {
  padding: calc(28px + var(--safe-t) * 0.2) 0 clamp(52px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-media {
  margin: 0; border-radius: 16px; overflow: hidden;
  aspect-ratio: 5 / 4; background: var(--stone);
  border: 1px solid var(--line); box-shadow: var(--shadow-lift);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.img-credit { font-size: 0.78rem; color: var(--muted); margin-top: 12px; }

.section { padding: clamp(40px, 6vw, 72px) 0; }
.section-stone { background: var(--stone); }
.section-head { margin-bottom: 28px; max-width: 42rem; }
.section-head p { color: var(--muted); margin: 0; }
.section-cta { margin-top: 28px; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  padding: clamp(28px, 5vw, 52px) 0;
  border-top: 1px solid var(--line);
}
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature-reverse { direction: rtl; }
.feature-reverse > * { direction: ltr; }
html[dir="rtl"] .feature-reverse { direction: ltr; }
html[dir="rtl"] .feature-reverse > * { direction: rtl; }
.feature-media {
  margin: 0; border-radius: 14px; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--stone);
  border: 1px solid var(--line); box-shadow: var(--shadow-soft);
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.spec-list { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.spec-list li {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.spec-list strong { color: var(--ink); font-weight: 750; font-size: 0.95rem; }
.spec-list span { color: var(--body); font-size: 0.98rem; }
.feature-actions { margin-top: 20px; }

.handover-block {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}
.handover-media {
  margin: 0; border-radius: 14px; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--stone);
  border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  position: sticky; top: calc(var(--header) + 16px);
}
.handover-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.handover-list { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line-strong); }
.handover-list li {
  display: grid; grid-template-columns: 3rem 1fr; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.handover-list .n {
  font-family: var(--font-sans); font-size: 1rem; color: var(--accent);
  font-weight: 750; line-height: 1.2;
}
.handover-list strong { display: block; color: var(--ink); margin-bottom: 4px; }
.handover-list span { color: var(--muted); font-size: 0.98rem; }

/* Homepage guides as visible card grid */
.guide-cards {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.guide-cards a {
  display: flex; flex-direction: column;
  height: 100%;
  text-decoration: none; color: inherit;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.guide-cards a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--line-strong);
}
.guide-cards .thumb {
  aspect-ratio: 16 / 10; background: var(--stone); overflow: hidden;
}
.guide-cards .thumb img { width: 100%; height: 100%; object-fit: cover; }
.guide-cards .body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.guide-cards .cat {
  font-size: 0.75rem; font-weight: 750; color: var(--accent); letter-spacing: 0.04em;
}
.guide-cards h3 {
  margin: 0; font-size: 1.02rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.guide-cards p {
  margin: 0; color: var(--muted); font-size: 0.92rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.guide-cards .more {
  margin-top: auto; padding-top: 8px;
  font-weight: 750; color: var(--ink); font-size: 0.9rem;
}

/* legacy list kept for compatibility */
.guide-list { list-style: none; margin: 0; padding: 0; }
.guide-list li { border-bottom: 1px solid var(--line); }
.guide-list a {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 16px;
  padding: 16px 0; text-decoration: none; color: inherit; align-items: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px; min-height: 100%;
  text-decoration: none; color: inherit;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.card-top {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 0.78rem; font-weight: 750; color: var(--accent);
}
.card h3 { font-size: 1.08rem; margin: 0; line-height: 1.35; }
.card p { color: var(--muted); margin: 0; flex: 1; font-size: 0.95rem; }
.card .more { margin-top: 8px; font-weight: 750; color: var(--ink); font-size: 0.9rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--paper-2); font: inherit; font-weight: 700; font-size: 0.88rem;
  color: var(--ink); cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-on { background: var(--ink); color: #FAF8F5; border-color: var(--ink); }

.faq details {
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2);
  box-shadow: var(--shadow-soft); margin: 0 0 10px; overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 15px 16px; font-weight: 750; color: var(--ink); list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details p { margin: 0; padding: 14px 16px 16px; color: var(--body); }

.contact {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start;
  padding: 28px; border-radius: 16px; background: #fff;
  border: 1px solid var(--line); color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.contact h2 { color: var(--ink); margin-top: 0; }
.contact .kicker { color: var(--copper-ink); }
.contact p { color: var(--body); }
.inquiry {
  margin: 0; padding: 16px; border-radius: 12px;
  background: var(--stone); color: var(--ink);
  border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.88rem; line-height: 1.55;
  white-space: pre-wrap; overflow-x: auto;
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.tg-pill, .tg-float {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 16px;
  border-radius: var(--radius-btn); border: 1px solid var(--ink);
  background: var(--ink); color: #FAF8F5;
  font-weight: 700; font-size: 0.92rem; line-height: 1.2;
  text-decoration: none; letter-spacing: 0.01em;
  box-shadow: var(--shadow-soft);
}
.tg-pill:hover, .tg-float:hover {
  color: #fff; background: #1a2a42; border-color: #1a2a42;
}
.tg-pill .ico, .tg-float .ico {
  width: 18px; height: 18px; flex-shrink: 0;
  filter: brightness(0) invert(1);
}
.header-cta { white-space: nowrap; }
.tg-float {
  position: fixed; z-index: 50;
  inset-inline-end: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  min-height: 2.55rem; padding: 0.45rem 0.95rem 0.45rem 0.8rem;
}
.footer-grid .tg-pill { margin-top: 8px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 42px 0 calc(28px + var(--safe-b));
  background: #fffdf8;
}
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; margin-bottom: 28px;
}
.footer-grid a { display: block; color: var(--body); text-decoration: none; padding: 4px 0; font-weight: 600; }
.footer-grid a:hover { color: var(--ink); }
.footer-grid strong { font-size: 1.1rem; color: var(--ink); }
.footer-grid h3 { font-family: var(--font-sans); font-size: 0.85rem; color: var(--muted); margin: 0 0 10px; }
.legal-row {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 16px;
  color: var(--muted); font-size: 0.88rem;
}
.legal-row .copyright {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: 0.01em;
}
.legal-row .copyright a { color: var(--copper-ink); font-weight: 650; }

.dock {
  display: none; position: fixed; inset-inline: 0; bottom: 0; z-index: 35;
  padding: 10px var(--pad) calc(10px + var(--safe-b));
  background: rgba(250,248,245,.97);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .2s ease;
}
.dock.is-visible { transform: translateY(0); }
.dock-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: var(--wrap); margin-inline: auto; }

.page-hero { padding: calc(var(--header) + 16px) 0 32px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.crumb { color: var(--muted); font-size: 0.9rem; }
.meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; }
.layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px;
  padding: 36px 0 64px; align-items: start;
}
.side { display: grid; gap: 16px; position: sticky; top: calc(var(--header) + 16px); }
.side-card {
  padding: 18px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--paper-2); box-shadow: var(--shadow-soft);
}
.side-card h2 { font-size: 1rem; margin: 0 0 8px; max-width: none; font-family: var(--font-sans); }
.side-card .card { box-shadow: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 0; }
.side-card .card:last-child { border-bottom: 0; }
.side-card .card:hover { transform: none; box-shadow: none; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li { border-bottom: 1px solid var(--line); }
.side-links li:last-child { border-bottom: 0; }
.side-links a {
  display: block; padding: 12px 0; min-height: 44px;
  text-decoration: none; color: var(--ink); font-weight: 650; font-size: 0.92rem; line-height: 1.35;
}
.side-links a:hover { color: var(--accent); }
.side-links .cat { display: block; font-size: 0.75rem; color: var(--muted); font-weight: 600; margin-bottom: 2px; }

.prose { max-width: 44rem; }
.prose h1 { max-width: none; }
.prose h2 {
  margin-top: 2em; padding-top: .4em; border-top: 1px solid var(--line); max-width: none;
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1.3em; }
.prose ul, .prose ol { padding-inline-start: 1.25em; margin: 0 0 1.1em; }
.prose li { margin: .35em 0; }
.prose a { font-weight: 700; }
.prose blockquote {
  margin: 1.2em 0; padding: 14px 16px;
  border-inline-start: 3px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 8px 8px 0;
}
.prose pre {
  margin: 1.1em 0; padding: 16px 18px; background: #1E1F1C; color: #F4F1EA;
  border-radius: 12px; overflow-x: auto; font-family: var(--font-mono); font-size: .9rem; line-height: 1.55;
}
.prose code {
  font-family: var(--font-mono); font-size: .92em; background: var(--stone);
  padding: .12em .4em; border-radius: 5px;
}
.prose pre code { background: transparent; padding: 0; color: inherit; }
.table-scroll {
  margin: 1.1em 0; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-2);
}
.table-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.table-scroll table { width: 100%; min-width: 520px; border-collapse: collapse; margin: 0; font-size: .92rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; }
.prose th, .prose td, .table-scroll th, .table-scroll td {
  border: 1px solid var(--line); padding: 10px 12px; text-align: start; vertical-align: top;
}
.prose th, .table-scroll th { background: var(--stone); color: var(--ink); font-weight: 750; }
.table-scroll table th, .table-scroll table td { border-width: 0 0 1px; }
.table-scroll table tr:last-child td { border-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.article-cover {
  margin: 0 0 22px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--stone); box-shadow: var(--shadow-soft);
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.pager {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line);
}
.pager a {
  display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; background: var(--paper-2); box-shadow: var(--shadow-soft);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.pager a:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.pager span { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
.pager strong { color: var(--ink); font-size: .95rem; line-height: 1.35; }

.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.band { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sku { padding: 18px; border-inline-end: 1px solid var(--line); }
.empty[hidden] { display: none; }
.kw-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.kw-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.kw {
  display: inline-block; padding: 8px 10px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--body); font-size: .9rem;
}
.kw:hover { color: var(--ink); border-bottom-color: var(--copper); }

.stats-band, .trust-band, .why-grid, .scenes, .paths, .cases, .facts, .steps,
.hero-tags, .scope-panel, .brand-inline { display: none !important; }

/* Tablet */
@media (max-width: 1100px) {
  .nav-desktop { gap: 0; }
  .nav-desktop a { padding: 10px 11px; font-size: .88rem; }
  .guide-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog, .kw-groups { grid-template-columns: 1fr 1fr; }
}

/* Mobile / small tablet */
@media (max-width: 1020px) {
  .hero-grid, .feature, .feature-reverse, .handover-block, .contact, .footer-grid, .layout, .band {
    grid-template-columns: 1fr;
  }
  .feature-reverse { direction: ltr; }
  .handover-media { position: static; }
  .nav-desktop, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .lang-full { display: none; }
  .lang-short { display: inline; }
  h1 { max-width: none; }
  .guide-list a { grid-template-columns: 96px 1fr; }
  .guide-list .more { display: none; }
  .catalog, .kw-groups { grid-template-columns: 1fr; }
  .sku { border-inline-end: 0; }
  .side { position: static; }
  .pager { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --header: 64px; }
  .logo img { width: 40px; height: 40px; border-radius: 10px; }
  .logo small { max-width: 9.5rem; }
  .hero { padding-top: 20px; padding-bottom: 28px; }
  .section { padding: 36px 0; }
  .hero-media { aspect-ratio: 4 / 3; border-radius: 10px; }
  .guide-cards { grid-template-columns: 1fr; }
  .spec-list li { grid-template-columns: 1fr; gap: 4px; }
  .hero-actions .btn, .mobile-ctas .btn { width: 100%; min-height: 44px; }
  .tg-float { max-width: calc(100vw - 2rem); }
  .contact { padding: 20px; border-radius: 10px; }
  .decision-grid { grid-template-columns: 1fr; }
  .prose > .table-scroll { margin-inline: 0; }
}

/* Large phones landscape / fold */
@media (max-width: 900px) and (orientation: landscape) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .dock { padding-bottom: calc(8px + var(--safe-b)); }
}

/* Very small */
@media (max-width: 380px) {
  body { font-size: 1rem; }
  .logo strong { font-size: 1rem; }
  h1 { font-size: 1.7rem; }
}

/* Safari/iOS input zoom prevention on form-like controls */
@supports (-webkit-touch-callout: none) {
  .chip, .btn, .lang > summary { font-size: max(16px, 0.88rem); }
}

/* desk26: policy, decision panel, TOC, catalog meta */
.policy-banner {
  border-bottom: 1px solid var(--line);
  background: var(--accent-soft);
  padding: 12px 0;
}
.policy-banner .wrap {
  display: grid; gap: 6px;
  font-size: var(--step-1); line-height: 1.55; color: var(--ink);
}
.policy-banner strong { color: var(--copper-ink); }
.policy-banner a { font-weight: 700; }

.decision-panel {
  margin: 28px 0 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
}
.decision-panel > h2 { margin: 0 0 8px; font-size: var(--step-3); max-width: none; }
.decision-panel > p { margin: 0 0 16px; color: var(--muted); max-width: 42rem; }
.decision-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.decision-grid li {
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
  padding: 14px; display: flex; flex-direction: column; gap: 6px; min-height: 100%;
}
.decision-grid .n {
  font-size: var(--step-0); font-weight: 750; color: var(--accent); letter-spacing: 0.04em;
}
.decision-grid strong { color: var(--ink); font-size: 0.98rem; line-height: 1.35; }
.decision-grid span { color: var(--muted); font-size: 0.9rem; line-height: 1.45; flex: 1; }
.decision-grid a {
  margin-top: 8px; font-weight: 750; font-size: 0.88rem; text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center;
}
.decision-grid a:hover { text-decoration: underline; }

.toc {
  margin: 0 0 22px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2);
}
.toc strong {
  display: block; margin-bottom: 8px; font-size: var(--step-0);
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
}
html[lang="zh-CN"] .toc strong,
html[lang="ja"] .toc strong,
html[lang="ko"] .toc strong,
html[lang="ar"] .toc strong,
html[lang="hi"] .toc strong { letter-spacing: 0; text-transform: none; }
.toc ol { margin: 0; padding-inline-start: 1.2em; }
.toc li { margin: 0.3em 0; }
.toc a { text-decoration: none; font-weight: 650; color: var(--ink); }
.toc a:hover { color: var(--accent); }

.catalog-meta {
  margin: 0 0 14px; color: var(--muted); font-size: var(--step-1); font-weight: 650;
}
.quick-answers {
  margin: 0 0 22px; padding: 0; list-style: none;
  display: grid; gap: 10px;
}
.quick-answers li {
  padding: 12px 14px; border-radius: 8px; background: var(--paper-2);
  border: 1px solid var(--line);
}
.quick-answers strong { display: block; color: var(--ink); margin-bottom: 4px; }
.quick-answers span { color: var(--body); font-size: 0.95rem; }

.hero-media, .feature-media, .handover-media, .article-cover, .guide-cards a {
  border-radius: 10px;
}
.guide-cards a:hover, .card:hover, .pager a:hover {
  transform: none;
}
.guide-cards a:hover, .card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
}

html[dir="rtl"] .nav-desktop a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}
html[dir="rtl"] .decision-grid .n,
html[dir="rtl"] .kicker { letter-spacing: 0; }

@media (max-width: 1100px) {
  .decision-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 320px) {
  body { overflow-x: hidden; }
  .header-inner { gap: 8px; }
  .logo small { display: none; }
}

@media print {
  .site-header, .dock, .tg-float, .nav-toggle, .lang, .policy-banner { display: none !important; }
  body { background: #fff; padding-bottom: 0; }
  .contact { background: #fff; color: #000; }
}
