:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --bg-elevated: rgba(255, 255, 255, 0.82);
  --surface: #ffffff;
  --surface-soft: #f0f2f6;
  --text: #1d1d1f;
  --muted: #626269;
  --subtle: #86868b;
  --line: rgba(60, 60, 67, 0.16);
  --blue: #0071e3;
  --blue-strong: #005bb5;
  --cyan: #00a8e8;
  --green: #248a3d;
  --orange: #c93400;
  --red: #d70015;
  --code: #111318;
  --code-text: #f5f5f7;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.10);
  --shadow-md: 0 12px 34px rgba(0, 0, 0, 0.08);
  --content: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Noto Sans TC", sans-serif; line-height: 1.62; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; }
[hidden] { display: none !important; }
.topbar { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(180%) blur(22px); }
.topbar-inner { max-width: var(--content); min-height: 68px; margin: auto; padding: 0 26px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; letter-spacing: -0.02em; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: white; font-size: 12px; font-weight: 850; background: linear-gradient(145deg, #0a84ff, #5e5ce6); box-shadow: 0 8px 20px rgba(0, 113, 227, .25); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; }
.brand small { color: var(--subtle); font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.desktop-nav { display: flex; align-items: center; gap: 22px; }
.desktop-nav a, .mobile-nav a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 650; }
.desktop-nav a:hover, .mobile-nav a:hover { color: var(--text); }
.menu-button { display: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--surface-soft); cursor: pointer; }
.menu-button span { display: block; width: 17px; height: 1.5px; margin: 5px auto; background: var(--text); transition: .2s ease; }
.mobile-nav { display: none; padding: 0 26px 18px; }
.mobile-nav[data-open] { display: grid; gap: 14px; }
.home-hero { position: relative; max-width: var(--content); min-height: 720px; margin: auto; padding: 104px 26px 78px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); align-items: center; gap: 58px; }
.home-hero::before { content: ""; position: absolute; width: 720px; height: 720px; right: -260px; top: -210px; border-radius: 50%; background: radial-gradient(circle, rgba(10,132,255,.24), rgba(94,92,230,.08) 42%, transparent 68%); pointer-events: none; }
.eyebrow { margin: 0 0 14px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { letter-spacing: -.035em; }
h1 { margin: 0; font-size: clamp(48px, 7vw, 82px); line-height: 1.02; }
.home-hero h1 span { background: linear-gradient(90deg, #0071e3, #5e5ce6); background-clip: text; color: transparent; }
h2 { margin: 0 0 14px; font-size: clamp(30px, 4vw, 48px); line-height: 1.12; }
h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.2; }
p { margin-top: 0; }
.lead { max-width: 820px; color: var(--muted); font-size: clamp(18px, 2.2vw, 23px); line-height: 1.55; }
.hero-copy .lead { max-width: 690px; margin-top: 24px; }
.actions { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 30px; }
.button { min-height: 46px; padding: 11px 20px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; background: var(--blue); color: #fff; text-decoration: none; font-size: 14px; font-weight: 750; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); background: var(--blue-strong); }
.button.secondary { color: var(--text); background: var(--surface); border-color: var(--line); }
.button.light { color: #111; background: #fff; }
.hero-facts { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 40px; color: var(--subtle); font-size: 12px; }
.hero-facts span { display: grid; }
.hero-facts strong { color: var(--text); font-size: 14px; }
.hero-visual { position: relative; z-index: 1; }
.glass-window { overflow: hidden; border: 1px solid rgba(255,255,255,.55); border-radius: 28px; background: rgba(20,22,28,.94); box-shadow: 0 42px 110px rgba(38,72,125,.24); transform: perspective(1200px) rotateY(-5deg) rotateX(2deg); }
.window-bar { height: 48px; display: flex; align-items: center; gap: 7px; padding: 0 17px; color: #8e8e93; background: rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.08); font-size: 12px; }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }.window-bar i:nth-child(3) { background: #28c840; }.window-bar span { margin-left: 8px; }
.glass-window pre { min-width: 0; padding: 34px 28px 30px; }
.status-row { margin: 0 18px 18px; padding: 14px 16px; display: flex; align-items: center; gap: 10px; border-radius: 14px; color: #d7d7dc; background: rgba(255,255,255,.07); font-size: 12px; }
.status-row strong { margin-left: auto; color: #8ce99a; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 5px rgba(48,209,88,.12); }
.trust-strip { max-width: var(--content); margin: 0 auto 52px; padding: 18px 26px; display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; border-block: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 650; }
.trust-strip span::before { content: "✓"; margin-right: 7px; color: var(--green); }
.home-section { max-width: var(--content); margin: auto; padding: 82px 26px; }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading > p:last-child { color: var(--muted); font-size: 18px; }
.journey-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.journey-card { min-height: 290px; padding: 26px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-elevated); text-decoration: none; box-shadow: var(--shadow-md); transition: transform .2s ease, box-shadow .2s ease; }
.journey-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.journey-card > span { color: var(--blue); font-size: 12px; font-weight: 800; }
.journey-card h3 { margin-top: 28px; }
.journey-card p { color: var(--muted); }
.journey-card b { margin-top: auto; color: var(--blue); font-size: 14px; }
.concept-section { padding-top: 112px; }
.concept-grid { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-lg); }
.concept-grid article { min-height: 260px; padding: 32px; border-right: 1px solid var(--line); }
.concept-grid article:last-child { border-right: 0; }
.concept-grid p { color: var(--muted); }
.concept-number { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: rgba(0,113,227,.10); font-weight: 800; }
.inline-link-row { margin-top: 22px; text-align: right; }
.inline-link-row a, .text-link { color: var(--blue); text-decoration: none; font-weight: 700; }
.example-tools { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 24px; }
.search { min-width: min(440px, 100%); padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); outline: none; }
.search:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,.12); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); cursor: pointer; }
.filter.active { color: white; background: var(--text); }
.scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.scenario-card { min-height: 244px; padding: 25px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-md); }
.scenario-card p { color: var(--muted); }
.scenario-tag, .meta { width: fit-content; padding: 5px 9px; border-radius: 999px; color: var(--blue); background: rgba(0,113,227,.09); font-size: 11px; font-weight: 800; }
.scenario-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: auto; padding-top: 18px; }
.scenario-actions a { color: var(--blue); text-decoration: none; font-size: 13px; font-weight: 700; }
.split-feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.split-feature > div:first-child > p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.comparison-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-lg); }
.comparison-card > div { padding: 24px 28px; display: grid; grid-template-columns: 90px 1fr 1.2fr; gap: 18px; align-items: center; border-bottom: 1px solid var(--line); }
.comparison-card > div:last-child { border-bottom: 0; }
.comparison-card span { color: var(--blue); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.comparison-card p { margin: 0; color: var(--muted); }
.release-card { padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 32px; border-radius: var(--radius-xl); color: white; background: linear-gradient(130deg, #111827, #1d4ed8 70%, #38bdf8); box-shadow: 0 30px 90px rgba(15,54,125,.28); }
.release-card > div { max-width: 800px; }.release-card p { color: rgba(255,255,255,.76); }.release-card .eyebrow { color: #9dd6ff; }
.support-section { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); }
.support-section > div { max-width: 780px; }.support-section > div > p:last-child { color: var(--muted); }
.docs-shell { max-width: var(--content); margin: auto; padding: 34px 26px 100px; display: grid; grid-template-columns: 245px minmax(0, 820px); gap: 54px; align-items: start; }
.docs-sidebar { min-width: 0; }
.sidebar-sticky { position: sticky; top: 100px; }
.sidebar-home { display: block; margin-bottom: 24px; color: var(--blue); text-decoration: none; font-size: 13px; font-weight: 700; }
.docs-sidebar section { margin-bottom: 25px; }
.docs-sidebar h2 { margin: 0 0 8px; color: var(--subtle); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.docs-sidebar section a { display: block; padding: 7px 10px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 13px; }
.docs-sidebar section a:hover, .docs-sidebar section a.active { color: var(--text); border-left-color: var(--blue); background: rgba(0,113,227,.06); }
.sidebar-help { margin-top: 30px; padding: 16px; border-radius: 15px; background: var(--surface-soft); font-size: 12px; }
.sidebar-help p { margin: 4px 0 8px; color: var(--muted); }.sidebar-help a { color: var(--blue); overflow-wrap: anywhere; }
.docs-content { min-width: 0; }
.breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; color: var(--subtle); font-size: 12px; }.breadcrumbs a { text-decoration: none; }
.docs-hero { padding: 50px 0 46px; border-bottom: 1px solid var(--line); }
.docs-hero h1 { max-width: 860px; font-size: clamp(42px, 6vw, 66px); }
.docs-hero .lead { max-width: 760px; margin: 20px 0 0; }
.example-hero .actions { margin-top: 25px; }
.doc-section { padding: 48px 0; border-bottom: 1px solid var(--line); }
.doc-section > p { color: var(--muted); font-size: 17px; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px; }
.info-grid article { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.info-grid p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.two-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two-panel article { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.checklist, .reason-list, .avoid-list { padding: 0; list-style: none; }
.checklist li, .reason-list li, .avoid-list li { position: relative; margin: 11px 0; padding-left: 28px; color: var(--muted); }
.checklist li::before { content: "✓"; position: absolute; left: 0; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: rgba(36,138,61,.10); font-size: 11px; font-weight: 900; }
.reason-list li::before { content: "→"; position: absolute; left: 2px; color: var(--blue); font-weight: 900; }
.avoid-list li::before { content: "×"; position: absolute; left: 3px; color: var(--red); font-weight: 900; }
.numbered-steps { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: steps; }
.numbered-steps li { position: relative; min-height: 58px; margin: 0 0 22px; padding-left: 62px; counter-increment: steps; }
.numbered-steps li::before { content: counter(steps); position: absolute; left: 0; top: 0; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: white; background: linear-gradient(145deg, var(--blue), #5e5ce6); font-weight: 800; }
.numbered-steps p { margin: 3px 0 0; color: var(--muted); }
.callout { margin: 24px 0; padding: 18px 20px; border-left: 4px solid var(--blue); border-radius: 0 var(--radius-md) var(--radius-md) 0; background: rgba(0,113,227,.08); }
.callout p { margin: 5px 0 0; color: var(--muted); }.callout.success { border-color: var(--green); background: rgba(36,138,61,.08); }.callout.warning { border-color: #ff9f0a; background: rgba(255,159,10,.09); }.callout.danger { border-color: var(--red); background: rgba(215,0,21,.08); }
.code-card { overflow: hidden; margin: 22px 0; border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); background: var(--code); box-shadow: var(--shadow-md); }
.code-toolbar { min-height: 42px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; color: #a9a9b2; background: rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.08); font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; }
.code-toolbar button { border: 0; color: #d9d9df; background: transparent; cursor: pointer; }
pre { margin: 0; padding: 22px; overflow: auto; color: var(--code-text); font: 13.5px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; tab-size: 4; }
.tok-keyword { color: #ff7ab2; }.tok-string { color: #ff8170; }.tok-comment { color: #7f8c98; }.tok-number { color: #d9c97c; }.tok-builtin { color: #78c2ff; }.tok-class { color: #b281eb; }.tok-operator { color: #c9d1d9; }
.definition-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.definition-list article { padding: 24px; display: grid; grid-template-columns: 110px 1fr; gap: 18px; border-bottom: 1px solid var(--line); }
.definition-list article:last-child { border-bottom: 0; }.definition-list > article > span { color: var(--blue); font-weight: 800; }.definition-list p { margin: 0; color: var(--muted); }
.decision-table { overflow: hidden; margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.table-row { display: grid; grid-template-columns: 1fr 1.1fr 1.5fr; }
.table-row span { padding: 15px 17px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.table-row span + span { border-left: 1px solid var(--line); }.table-row:last-child span { border-bottom: 0; }.table-head { background: var(--surface-soft); }.table-head span { color: var(--text); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.sequence { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0; }
.sequence > div { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.sequence span { width: 28px; height: 28px; display: grid; place-items: center; margin-bottom: 15px; border-radius: 9px; color: white; background: var(--blue); font-weight: 800; }.sequence p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.mini-note { padding-top: 12px; border-top: 1px solid var(--line); color: var(--blue) !important; font-size: 13px !important; }
.oss-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.oss-list article { padding: 24px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; border-bottom: 1px solid var(--line); }.oss-list article:last-child { border-bottom: 0; }.oss-list article > div:last-child { display: grid; gap: 6px; justify-items: start; }.oss-list p { margin: 5px 0 0; color: var(--muted); }.oss-list a { color: var(--blue); text-decoration: none; font-size: 13px; }.oss-badge { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.next-step-panel { margin-top: 50px; padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border-radius: var(--radius-lg); background: var(--surface-soft); }.next-step-panel p { margin: 6px 0 0; color: var(--muted); }
.site-footer { padding: 44px 26px 25px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { max-width: var(--content); margin: auto; display: flex; justify-content: space-between; gap: 30px; }.footer-inner p { max-width: 650px; margin: 7px 0 0; color: var(--muted); font-size: 13px; }.footer-contact { display: grid; justify-items: end; align-content: start; gap: 5px; }.footer-contact span { color: var(--subtle); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }.footer-contact a { color: var(--blue); text-decoration: none; font-size: 13px; overflow-wrap: anywhere; }
.footer-legal { max-width: var(--content); margin: 30px auto 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 11px; }
@media (max-width: 1040px) { .desktop-nav { display: none; }.menu-button { display: block; }.home-hero { grid-template-columns: 1fr; min-height: auto; }.hero-copy { max-width: 820px; }.hero-visual { max-width: 760px; }.journey-grid { grid-template-columns: repeat(2,1fr); }.scenario-grid { grid-template-columns: repeat(2,1fr); }.docs-shell { grid-template-columns: 1fr; }.docs-sidebar { display: none; }.sequence { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 720px) { .topbar-inner { padding-inline: 18px; }.home-hero, .home-section, .docs-shell { padding-left: 18px; padding-right: 18px; }.home-hero { padding-top: 72px; }.hero-visual { display: none; }.hero-facts { gap: 18px; }.journey-grid, .scenario-grid, .concept-grid, .info-grid, .two-panel, .split-feature { grid-template-columns: 1fr; }.concept-grid article { border-right: 0; border-bottom: 1px solid var(--line); }.concept-grid article:last-child { border-bottom: 0; }.comparison-card > div { grid-template-columns: 70px 1fr; }.comparison-card p { grid-column: 1 / -1; }.release-card, .support-section, .next-step-panel, .footer-inner { align-items: flex-start; flex-direction: column; }.footer-contact { justify-items: start; }.table-row { grid-template-columns: 1fr; }.table-row span + span { border-left: 0; }.table-row span { border-bottom: 1px solid var(--line) !important; }.table-row:last-child span:last-child { border-bottom: 0 !important; }.definition-list article, .oss-list article { grid-template-columns: 1fr; }.sequence { grid-template-columns: 1fr; }.code-card pre { font-size: 12.5px; }.trust-strip { justify-content: flex-start; } }
@media (prefers-color-scheme: dark) {
  :root { --bg: #000; --bg-elevated: rgba(29,29,31,.82); --surface: #1c1c1e; --surface-soft: #242426; --text: #f5f5f7; --muted: #a1a1a6; --subtle: #8e8e93; --line: rgba(255,255,255,.13); --shadow-lg: 0 34px 90px rgba(0,0,0,.38); --shadow-md: 0 16px 40px rgba(0,0,0,.30); }
  .button.secondary { background: #242426; }.topbar { background: rgba(0,0,0,.74); }.search, .filter { background: #1c1c1e; }.filter.active { color: #111; background: #f5f5f7; }.glass-window { border-color: rgba(255,255,255,.11); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Complete SDK API reference */
.sdk-api-tools { display: grid; gap: 14px; margin: 24px 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-soft); }
.sdk-api-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.sdk-api-list { display: grid; gap: 16px; }
.sdk-api-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.sdk-api-card[hidden] { display: none; }
.sdk-api-card.risk-high { border-left: 4px solid #ff9f0a; }
.sdk-api-card-head { display: flex; gap: 8px; align-items: center; color: var(--blue); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.sdk-api-card-head b { padding: 4px 7px; border-radius: 999px; color: var(--text); background: var(--surface-soft); }
.sdk-api-card h2 { margin: 12px 0 8px; font-size: 20px; }
.sdk-api-signature { overflow-wrap: anywhere; padding: 12px 14px; border-radius: 12px; background: var(--surface-soft); }
.sdk-api-card > p { color: var(--muted); line-height: 1.65; }
.sdk-api-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.sdk-api-facts > div { padding: 14px; border: 1px solid var(--line); border-radius: 13px; }
.sdk-api-facts p, .sdk-api-facts ul { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.sdk-model-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sdk-model-grid article { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.sdk-model-grid p { color: var(--muted); }
.sdk-chip-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 16px; }
.sdk-chip-list code { padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); overflow-wrap: anywhere; }
@media (max-width: 720px) { .sdk-api-facts, .sdk-model-grid { grid-template-columns: 1fr; } }
/* Documentation layout hardening. */
body { overflow-x: hidden; }
.topbar-inner,
.home-hero,
.home-section,
.docs-shell,
.footer-inner,
.footer-legal { width: 100%; }
.home-hero > *,
.home-section > *,
.docs-shell > *,
.docs-content > *,
.journey-grid > *,
.scenario-grid > *,
.concept-grid > *,
.sequence > *,
.sdk-api-facts > *,
.sdk-model-grid > * { min-width: 0; }
.docs-content p,
.docs-content li,
.docs-content code,
.docs-content a,
.docs-content span,
.scenario-card p,
.journey-card p { overflow-wrap: anywhere; }
.docs-content { max-width: min(100%, 930px); }
.docs-content pre,
.code-card,
.decision-table,
.definition-list,
.oss-list { max-width: 100%; }
.journey-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.scenario-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr)); }
.sequence { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.sdk-api-facts,
.sdk-model-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.docs-hero h1,
.home-hero h1 { overflow-wrap: anywhere; }
.code-toolbar { gap: 16px; }
.code-toolbar > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
pre { max-width: 100%; }

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
.home-hero { isolation: isolate; overflow: clip; }
.sdk-api-list,
.sdk-api-card,
.sdk-api-card > *,
.sdk-api-facts,
.sdk-api-facts > *,
.sdk-model-grid,
.sdk-model-grid > * {
  min-width: 0;
  max-width: 100%;
}
.sdk-api-signature {
  min-width: 0;
  max-width: 100%;
  overflow: auto;
}
.sdk-api-signature code {
  display: block;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.code-card,
.code-card pre,
.code-card code { min-width: 0; max-width: 100%; }

@media (max-width: 1180px) {
  .home-hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { max-width: 780px; }
  .docs-shell { grid-template-columns: 1fr; }
  .docs-sidebar { display: none; }
  .docs-content { max-width: none; }
}

@media (max-width: 760px) {
  .home-hero,
  .home-section,
  .docs-shell { padding-inline: 16px; }
  .glass-window { transform: none; }
  .comparison-card > div,
  .definition-list article,
  .oss-list article,
  .table-row { grid-template-columns: 1fr; }
  .comparison-card p { grid-column: auto; }
  .release-card,
  .support-section,
  .next-step-panel,
  .footer-inner { align-items: stretch; }
  .button { width: 100%; }
  .actions .button { width: auto; }
}
/* Workflow-oriented API manual. */
.sdk-journey-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.sdk-journey-nav a { min-width: 0; padding: 14px; display: grid; grid-template-columns: auto 1fr; gap: 3px 11px; align-items: center; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-soft); text-decoration: none; }
.sdk-journey-nav a > span { grid-row: 1 / span 2; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, transparent); font-size: 11px; font-weight: 800; }
.sdk-journey-nav strong { min-width: 0; overflow-wrap: anywhere; }
.sdk-journey-nav small { color: var(--subtle); }
.sdk-workflow-list { display: grid; gap: 22px; }
.sdk-workflow-section { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-soft); scroll-margin-top: 100px; }
.sdk-workflow-section[hidden] { display: none; }
.sdk-workflow-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, .36fr); gap: 20px; align-items: start; }
.sdk-workflow-header h2 { margin: 4px 0 8px; }
.sdk-workflow-header p { margin: 0; color: var(--muted); }
.sdk-workflow-header aside { min-width: 0; padding: 13px; display: grid; gap: 7px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.sdk-workflow-header aside strong { color: var(--subtle); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.sdk-workflow-header aside code { overflow-wrap: anywhere; color: var(--blue); }
.sdk-workflow-steps { margin: 17px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; list-style: none; }
.sdk-workflow-steps li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.sdk-workflow-steps li span { width: 20px; height: 20px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 999px; color: #fff; background: var(--blue); font-size: 10px; font-weight: 800; }
.sdk-workflow-steps p { margin: 0; color: var(--muted); font-size: 13px; }
details.sdk-api-card { padding: 0; overflow: clip; }
details.sdk-api-card > summary { min-width: 0; padding: 16px 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }
details.sdk-api-card > summary::-webkit-details-marker { display: none; }
details.sdk-api-card > summary:hover { background: var(--surface-soft); }
.sdk-api-summary-copy { min-width: 0; display: grid; gap: 6px; }
.sdk-api-summary-copy > strong { min-width: 0; overflow-wrap: anywhere; }
.sdk-api-summary-copy > small { color: var(--muted); line-height: 1.5; }
.sdk-api-expand { flex: 0 0 auto; min-width: 58px; padding: 6px 10px; border-radius: 999px; color: var(--blue); background: color-mix(in srgb, var(--blue) 11%, transparent); text-align: center; font-size: 11px; font-weight: 800; }
.sdk-api-expand::before { content: "展開"; }
details[open] .sdk-api-expand::before { content: "收合"; }
.sdk-api-card-body { padding: 0 17px 17px; border-top: 1px solid var(--line); }
.sdk-api-card-body .sdk-api-signature { margin-top: 15px; }
@media (max-width: 760px) {
  .sdk-journey-nav { grid-template-columns: 1fr; }
  .sdk-workflow-section { padding: 17px; }
  .sdk-workflow-header { grid-template-columns: 1fr; }
  details.sdk-api-card > summary { align-items: flex-start; }
}
/* Runtime execution explanations shared by public examples and API manual. */
.runtime-fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.runtime-fact-grid article, .runtime-failure, .sdk-session-model .two-panel article { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); }
.runtime-fact-grid h3, .runtime-failure h3 { margin: 0 0 9px; font-size: 17px; }
.runtime-fact-grid ul, .runtime-failure ul { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.65; }
.runtime-failure { margin-top: 12px; border-color: color-mix(in srgb, #ff9f0a 36%, var(--line)); }
.sdk-session-model .decision-table { margin-top: 18px; }
.sdk-session-model .two-panel { margin-top: 14px; }
@media (max-width: 760px) { .runtime-fact-grid { grid-template-columns: 1fr; } }

/* Beginner-first public API manual. */
.sdk-beginner-concepts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.sdk-beginner-concepts article { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-soft); }
.sdk-beginner-concepts article > span { width: 30px; height: 30px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 10px; color: #fff; background: linear-gradient(145deg, var(--blue), #5e5ce6); font-size: 12px; font-weight: 800; }
.sdk-beginner-concepts h3 { margin: 0 0 8px; font-size: 18px; }
.sdk-beginner-concepts p { margin: 0; color: var(--muted); line-height: 1.65; }
.sdk-first-run-layout { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 18px; align-items: start; }
.sdk-first-run-layout .numbered-steps { margin: 0; }
.sdk-first-run-layout .code-card { margin: 0; }
.sdk-plain-language { margin: 15px 0; padding: 15px; border: 1px solid color-mix(in srgb, var(--blue) 28%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--blue) 6%, var(--surface-soft)); }
.sdk-plain-language > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.sdk-plain-language span { color: var(--subtle); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.sdk-plain-language strong { color: var(--blue); }
.sdk-plain-language p { margin: 0; color: var(--muted); line-height: 1.62; }
.sdk-parameter-section { margin: 16px 0; }
.sdk-parameter-section h3 { margin: 0 0 10px; font-size: 16px; }
.sdk-parameter-list { display: grid; gap: 9px; }
.sdk-parameter-list article { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }
.sdk-parameter-list article > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.sdk-parameter-list code { min-width: 0; overflow-wrap: anywhere; }
.sdk-parameter-list p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.sdk-param-badge { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.sdk-param-badge.required { color: #8a3b00; background: rgba(255, 159, 10, .16); }
.sdk-param-badge.optional { color: var(--blue); background: color-mix(in srgb, var(--blue) 11%, transparent); }
.sdk-property-note { margin: 16px 0; padding: 13px 14px; border: 1px dashed var(--line); border-radius: 13px; background: var(--surface-soft); }
.sdk-property-note p { margin: 5px 0 0; color: var(--muted); }
.sdk-api-facts li + li { margin-top: 5px; }
.sdk-api-facts ol { margin: 0; padding-left: 20px; }
.sdk-glossary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.sdk-glossary-grid article, .sdk-lifecycle-grid article { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-soft); }
.sdk-glossary-grid h3, .sdk-lifecycle-grid h3 { margin: 0 0 8px; font-size: 18px; }
.sdk-glossary-grid p { margin: 0; color: var(--muted); line-height: 1.62; }
.sdk-lifecycle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.sdk-lifecycle-grid article > span { display: inline-flex; margin-bottom: 12px; padding: 4px 8px; border-radius: 999px; color: var(--blue); background: color-mix(in srgb, var(--blue) 11%, transparent); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.sdk-lifecycle-grid ol { margin: 0; padding-left: 20px; color: var(--muted); }
.sdk-lifecycle-grid li + li { margin-top: 7px; }
@media (max-width: 1050px) {
  .sdk-glossary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sdk-lifecycle-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sdk-beginner-concepts,
  .sdk-first-run-layout { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .sdk-glossary-grid { grid-template-columns: 1fr; }
}
