/* Shared reading scale for the commercial site. Keep this after the visual theme. */
:root {
  --type-hero: clamp(40px, 4.2vw, 60px);
  --type-heading: clamp(32px, 3.2vw, 44px);
  --type-card: 22px;
  --type-body: 16px;
  --type-small: 14px;
  --type-label: 13px;
  --page-gutter: max(32px, 5vw, calc((100vw - 1320px) / 2));
  --section-space: clamp(72px, 7vw, 104px);
}

body { font-size: var(--type-body); line-height: 1.75; }
section[id] { scroll-margin-top: 96px; }
.section, .system-band { padding: var(--section-space) var(--page-gutter); }
.site-header { height: 76px; padding-inline: var(--page-gutter); }
.brand-name { font-size: 22px; }
.brand-mark { width: 34px; height: 34px; }
.main-nav { gap: clamp(16px, 2vw, 28px); font-size: 15px; font-weight: 500; }
.main-nav .nav-buy { padding: 10px 18px; }

/* Titles remain prominent without compressing Chinese glyphs or forcing italics. */
.hero h1 {
  font-size: var(--type-hero);
  line-height: 1.22;
  letter-spacing: -.035em;
  font-weight: 700;
  margin-bottom: 24px;
}
h1 em, h2 em { font-style: normal; font-weight: inherit; letter-spacing: inherit; }
.intro h2, .section-heading h2, .assistant h2, .faq-section h2,
.scenario-heading h2, .hardware-heading h2, .system-heading h2, .final-cta h2 {
  font-size: var(--type-heading);
  line-height: 1.3;
  letter-spacing: -.025em;
  font-weight: 700;
}
.feature-card h3, .scene-copy h3, .setup-step h3, .system-flow h3, .capability h3 {
  font-size: var(--type-card);
  line-height: 1.45;
  letter-spacing: -.015em;
  font-weight: 700;
  margin-bottom: 12px;
}
.hero-lede, .intro-copy, .scenario-heading > p, .hardware-heading > p,
.section-heading > p, .feature-card p, .scene-copy p, .setup-step p,
.assistant-head p, .assistant-notes p, .system-heading p, .system-flow p,
.capability p, details p, .final-cta p, .compare-product > p, .compare-conclusion p {
  font-size: var(--type-body);
  line-height: 1.85;
  color: #b6cddd;
  font-weight: 400;
}
.kicker, .section-label, .feature-number, .scene-copy > span,
.system-flow article > span, .setup-step > span, .capability > span,
.compare-kicker, .compare-conclusion > span {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: var(--type-label);
  line-height: 1.6;
  letter-spacing: .06em;
}
.section-label { margin-bottom: 20px; }
.kicker { margin-bottom: 24px; }
.button, .text-link, .arrow-link, .feature-card a, .final-text-link {
  font-size: 15px;
  line-height: 1.5;
}
.button { min-height: 48px; padding: 12px 22px; gap: 18px; }
.hero-assurance, .hero-scroll, .visual-tag, .image-caption,
.image-caption b, .scenario-note, .trust-strip b, .compare-status,
.compare-compute small, .footer-brand small, .copyright {
  font-size: var(--type-label);
  line-height: 1.65;
}
.scenario-note, .copyright, .footer-brand small { color: #9eb9ce; }
.hero-assurance, .hero-scroll, .visual-tag { font-family: inherit; letter-spacing: .02em; }
.trust-strip span, .site-footer { font-size: var(--type-small); }

/* Consistent section spacing and balanced desktop columns. */
.hero {
  min-height: 650px;
  padding: 140px var(--page-gutter) 90px;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 4vw, 64px);
}
.hero:before { inset-block-start: 76px; }
.hero-copy { max-width: 570px; }
.hero-lede { max-width: 490px; margin-bottom: 28px; }
.hero-assurance { margin-top: 32px; gap: 14px; }
.hero-scroll { left: var(--page-gutter); bottom: 22px; }
.visual-tag { padding: 8px 12px; }
.trust-strip { padding-inline: var(--page-gutter); min-height: 88px; }
.trust-strip div { margin-right: 24px; gap: 14px; }
.intro-grid, .scenario-heading, .hardware-heading {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 48px;
  margin-bottom: 44px;
}
.intro-copy, .scenario-heading > p, .hardware-heading > p { max-width: 490px; }
.section-heading, .assistant-head { margin-bottom: 44px; }
.section-heading > p, .assistant-head p { margin-bottom: 0; }
.assistant-head { max-width: 680px; }
.feature-grid, .scenario-grid { gap: 22px; }
.scene-copy { padding: 28px 24px; }
.scene-copy > span { margin-bottom: 20px; }
.scene-copy h3 { font-size: 21px; }
.scenario-card { grid-template-columns: .9fr 1.1fr; min-height: 310px; }
.feature-content { padding: 26px; }
.feature-content .feature-number { margin-bottom: 16px; }
.feature-content p { max-width: none; }
.feature-content a { padding-block: 6px; }
.feature-card { min-height: 440px; }
.scene-preview b { font-size: 12px; letter-spacing: .06em; }
.system-heading {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 22px 48px;
  margin-bottom: 44px;
}
.system-heading h2 { max-width: 650px; }
.system-flow { align-items: stretch; }
.system-flow article { padding-block: 22px 26px; min-height: 350px; }
.system-flow article > span { margin-bottom: 0; }
.flow-image { height: 145px; margin: 18px 18px 20px; }
.system-flow p { max-width: none; }
.flow-arrow { align-self: center; margin-inline: 4px; }
.setup-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; }
.setup-step { grid-template-columns: 32px 1fr 16px; gap: 14px; padding-block: 26px; }
.setup-step p { max-width: none; }
.setup-image-real { aspect-ratio: 1.35; background: #091f36; }
.image-caption { flex-wrap: wrap; gap: 6px 12px; border-radius: 6px; }
.assistant-showcase { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; }
.assistant-notes span { font-family: inherit; font-size: 17px; font-weight: 700; }
.assistant-notes p { max-width: 390px; }
.capability { grid-template-columns: 52px 1fr 24px; padding-block: 26px; }
.capabilities .section-heading { display: block; }
.faq-section { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; }
summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; font-size: 17px; line-height: 1.65; }
summary span { width: 24px; text-align: center; }
details[open] summary span { transform: none; font-size: 0; }
details[open] summary span:after { content: '−'; font-size: 21px; }
details { padding-block: 22px; }
.final-cta { padding: 72px var(--page-gutter); align-items: center; }
.final-cta h2 { font-size: clamp(30px, 3vw, 40px); }
.final-actions { gap: 22px; flex-wrap: wrap; }
.site-footer { padding: 30px var(--page-gutter); gap: 28px; }
.footer-brand strong { font-size: 18px; }
.footer-links { gap: 22px; }

/* Comparison stays legible; text never competes with the product rendering. */
.compare-product { min-height: 420px; padding: 28px; }
.compare-product h3 { font-size: 25px; line-height: 1.4; letter-spacing: -.02em; }
.compare-product > p { max-width: none; }
.compare-tzbox > img { height: 49%; bottom: -2%; }
.compare-compute { left: 28px; bottom: 30px; }
.compare-compute strong { font-size: 56px; }
.compare-row { grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr); }
.compare-row > b, .compare-row > span, .compare-row > strong {
  display: block;
  align-content: center;
  padding: 20px 24px;
  font-size: 16px;
  line-height: 1.8;
}
.compare-row > strong { font-weight: 500; }
.compare-row > strong:before { display: none; }
.compare-row > strong i { white-space: nowrap; }
.compare-table-head > span { font-size: 14px; font-weight: 700; letter-spacing: 0; }
.compare-conclusion { grid-template-columns: 150px minmax(0, 1fr); }
.compare-conclusion > span { font-size: 14px; }

/* The assistant mockup is readable UI, not a thumbnail. */
.window-top { min-height: 54px; height: auto; padding: 14px 18px; font-size: 15px; flex-wrap: wrap; }
.window-logo { font-size: 11px; }
.window-state { font-size: 12px; }
.window-body { grid-template-columns: 88px minmax(0, 1fr); }
.window-side { padding: 24px 10px; }
.window-side span { font-size: 14px; padding-inline: 10px; }
.window-main { padding: 24px 20px; }
.search-line { font-size: 16px; }
.search-line b, .device-row strong, .window-footer, .window-footer button { font-size: 14px; }
.device-row { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; padding: 14px 12px; border-radius: 7px; }
.device-thumb { font-size: 12px; }
.device-row b { font-size: 15px; }
.device-row small { font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.window-footer { gap: 12px; flex-wrap: wrap; }
.window-footer button { padding: 10px 14px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #72e1ff; outline-offset: 5px; }

@media (max-width: 1100px) {
  .main-nav { gap: 16px; font-size: 14px; }
  .scenario-card { grid-template-columns: 1fr; }
  .scene-preview { min-height: 230px; }
  .scene-copy { padding: 26px; }
  .assistant-showcase { gap: 32px; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
  .final-cta { flex-direction: column; align-items: flex-start; gap: 30px; }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 124px; min-height: auto; }
  .hero-copy { max-width: 680px; }
  .hero h1 { font-size: clamp(40px, 6vw, 56px); }
  .hero-visual { width: 100%; max-width: 740px; }
  .hero-lede { max-width: 600px; }
  .intro-grid, .scenario-heading, .hardware-heading, .system-heading,
  .setup-layout, .assistant-showcase, .faq-section { grid-template-columns: 1fr; gap: 28px; }
  .scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assistant-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 290px; }
  .feature-media { height: 100%; min-height: 290px; border-bottom: 0; }
  .system-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-flow article { min-height: 340px; }
  .flow-image { height: 175px; }
  .setup-image-real { aspect-ratio: 16 / 10; }
  .assistant-window { max-width: 740px; }
  .compare-products { grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); }
  .compare-product { padding: 22px; min-height: 440px; }
  .compare-product-head { flex-wrap: wrap; gap: 10px; }
  .compare-product h3 { font-size: 22px; }
  .compare-vs { height: auto; }
  .compare-vs span { display: none; }
  .compare-vs b { width: 36px; height: 36px; }
  .compare-row { grid-template-columns: 116px minmax(0, 1fr) minmax(0, 1fr); }
  .compare-row > * { padding: 18px; }
  .site-footer { flex-wrap: wrap; gap: 20px; }
}

/* Switch navigation before larger links start colliding with the logo. */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-toggle b { font-size: 12px; }
  .main-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; padding: 18px 28px; background: #071b34; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; font-size: 16px; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .main-nav .nav-buy { margin-top: 12px; text-align: center; }
}

@media (max-width: 680px) {
  :root { --page-gutter: 20px; --section-space: 64px; --type-heading: 30px; --type-card: 21px; }
  .site-header { height: 68px; }
  .main-nav { top: 68px; }
  .hero { padding: 110px var(--page-gutter) 54px; gap: 32px; }
  .hero:before { inset-block-start: 68px; }
  .hero h1 { font-size: clamp(32px, 8.6vw, 44px); }
  .hero-assurance { font-size: 13px; gap: 12px; margin-top: 28px; }
  .hero-actions { gap: 20px; flex-wrap: wrap; }
  .visual-tag { font-size: 12px; padding: 6px 8px; }
  .visual-tag-top { left: 8px; top: 8px; }
  .visual-tag-bottom { right: 8px; bottom: 8px; }
  .trust-strip { min-height: 132px; }
  .trust-strip div { margin-right: 12px; gap: 8px; }
  .trust-strip span { font-size: 14px; }
  .section-label { margin-bottom: 16px; }
  .intro-grid, .scenario-heading, .hardware-heading, .section-heading,
  .assistant-head, .system-heading { margin-bottom: 32px; }
  .scenario-grid, .feature-grid { grid-template-columns: 1fr; gap: 20px; }
  .scene-preview { min-height: 220px; }
  .scene-copy > span { margin-bottom: 14px; }
  .feature-card { display: flex; min-height: auto; }
  .feature-media { min-height: 0; height: 210px; }
  .feature-content { padding: 24px; }
  .compare-products { grid-template-columns: 1fr; }
  .compare-vs { height: 52px; }
  .compare-product { min-height: 400px; padding: 24px; }
  .compare-product-head { flex-wrap: nowrap; }
  .compare-product h3 { font-size: 23px; }
  .compare-tzbox > img { width: 76%; right: -5%; height: 47%; }
  .compare-table-head { display: none; }
  .compare-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare-row > b { grid-column: 1 / -1; padding: 14px 16px; }
  .compare-row > span, .compare-row > strong { padding: 16px 14px; font-size: 15px; align-content: start; }
  .compare-row > span:before, .compare-row > strong:before {
    display: block; width: auto; height: auto; margin: 0 0 10px; padding: 0;
    background: none; box-shadow: none; border-radius: 0;
    color: #83d7eb; font: 500 12px/1.5 'Noto Sans SC', sans-serif; letter-spacing: 0;
  }
  .compare-row > strong:before { content: 'TZBox 定制方案'; }
  .compare-row > strong:after { display: none; }
  .compare-conclusion { grid-template-columns: 1fr; }
  .system-flow { grid-template-columns: 1fr; }
  .system-flow article { min-height: 0; padding: 24px 6px; }
  .system-flow article > span { position: static; margin-top: 0; }
  .flow-image { height: 190px; margin-top: 16px; }
  .setup-step { padding-block: 24px; grid-template-columns: 26px 1fr 12px; gap: 10px; }
  .setup-step.is-active { padding-left: 8px; }
  .setup-image-real { aspect-ratio: 1.3; }
  .image-caption { position: static; border: 0; border-radius: 0; padding: 12px 14px; }
  .setup-image-real { aspect-ratio: auto; }
  .setup-image-real img { height: auto; aspect-ratio: 1.3; }
  .assistant-notes { grid-template-columns: 1fr; }
  .assistant-notes article { grid-template-columns: 1fr; gap: 8px; }
  .window-body { grid-template-columns: 1fr; }
  .window-side { flex-direction: row; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .window-side span { padding: 6px 14px; }
  .window-main { padding: 20px 14px; }
  .window-footer { flex-direction: row; align-items: center; }
  .device-row { padding: 12px 10px; gap: 8px; }
  .device-row small { font-size: 12px; }
  .capability { grid-template-columns: 30px 1fr 16px; gap: 12px; }
  .faq-section { gap: 0; }
  .final-cta { padding: 56px var(--page-gutter); gap: 24px; }
  .final-cta h2 { font-size: 30px; }
  .final-actions { flex-direction: row; align-items: center; }
  .site-footer { display: flex; }
  .footer-links { margin-left: 0; width: 100%; gap: 18px; }
  .copyright { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
