:root {
  color-scheme: light;
  --white: #ffffff;
  --ink: #172128;
  --body: #46545d;
  --muted: #586a77;
  --brand: #1975da;
  --link: #135da9;
  --blue-surface: #ecf2fe;
  --fact-surface: #f7f9fc;
  --line: #dce5ed;
  --urgent: #b42318;
  --attention: #a44809;
  --wrap: 1160px;
  font-family: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--white); color: var(--ink); font-size: 16px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
section[id], details[id] { scroll-margin-top: 86px; }
.api-page .public-header { position: sticky; top: 0; z-index: 3; }
h1, h2, h3, p, dl, dd, ol { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(38px, 4.45vw, 61px); font-weight: 750; letter-spacing: -.035em; }
h2 { font-size: clamp(26px, 2.65vw, 35px); font-weight: 730; letter-spacing: -.025em; }
h3 { font-size: 19px; }
p { color: var(--body); }
.lead { max-width: 37em; color: var(--body); font-size: clamp(16px, 1.55vw, 19px); line-height: 1.75; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 27px; }
.button { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 17px; border: 1px solid transparent; border-radius: 7px; font-size: 15px; font-weight: 650; line-height: 1.35; text-align: center; cursor: pointer; }
.button.primary { background: var(--brand); color: var(--white); }
.button.primary:hover { background: var(--link); }
.button.outline { border-color: #acbfd3; background: var(--white); color: var(--link); }
.button.outline:hover { border-color: var(--brand); background: var(--blue-surface); }
.text-link { color: var(--link); font-size: 15px; font-weight: 650; }
a.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.section { padding-block: clamp(42px, 5vw, 67px); }
.section-divider { border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.section-heading p { margin-top: 9px; }
.section-heading > .text-link { flex: none; }
.hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.94fr); align-items: center; column-gap: clamp(36px,6vw,82px); padding-block: clamp(56px, 6.4vw, 84px) clamp(48px, 5.7vw, 74px); }
.hero-subline { display: block; margin-top: 11px; color: var(--link); font-size: .59em; font-weight: 700; letter-spacing: -.023em; }
.hero .lead { max-width: 26em; margin-top: 20px; }
.hero-caption { margin-top: 16px; color: var(--muted); font-size: 14px; }
.hero-report { display: block; min-width: 0; padding: 15px 18px 0; border: 1px solid #dce8f8; border-radius: 12px; background: var(--blue-surface); }
.hero-report:hover { border-color: #a9c4e5; }
.report-window-head, .report-window-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.report-window-head { color: var(--body); }
.report-window-head > :first-child { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 680; }
.document-symbol { display: inline-block; width: 12px; height: 15px; border: 1.5px solid var(--brand); border-radius: 2px; }
.report-paper { margin-top: 13px; padding: 20px 22px 13px; border: 1px solid #d9e4f0; border-radius: 4px; background: var(--white); }
.report-paper-title h2 { font-size: clamp(20px, 2.15vw, 27px); }
.report-paper-title p { margin-top: 5px; color: var(--muted); font-size: 13px; }
.report-totals { display: grid; grid-template-columns: .85fr 1.3fr; gap: 14px; margin-top: 16px; padding: 12px 15px; border-radius: 4px; background: var(--fact-surface); }
.report-totals dt { color: var(--body); font-size: 13px; }
.report-totals dd { font-family: inherit; font-size: clamp(26px, 2.6vw, 34px); font-weight: 720; line-height: 1.2; font-variant-numeric: tabular-nums; }
.report-totals dd span { font-size: .49em; }
.report-totals .total-amount { margin-top: 3px; font-size: clamp(18px,2vw,26px); }
.report-mini { width: 100%; margin-top: 13px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.report-mini th { color: var(--muted); font-size: 12px; font-weight: 600; }
.report-mini td, .report-mini th { padding: 6px 0; text-align: left; white-space: nowrap; }
.report-mini td:last-child, .report-mini th:last-child { text-align: right; }
.report-mini tbody tr { border-top: 1px solid var(--line); }
.level { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 4px; font-size: 12px; font-weight: 680; white-space: nowrap; }
.urgent { color: var(--urgent); background: #fff0ee; }
.attention { color: var(--attention); background: #fff3e6; }
.report-window-foot { min-height: 49px; color: var(--link); font-weight: 680; }
.hero-report:hover .report-window-foot > span:first-child { text-decoration: underline; text-underline-offset: 4px; }
.reports-band { background: var(--fact-surface); border-block: 1px solid var(--line); }
.format { color: var(--muted); font-size: 13px; font-weight: 650; }

.information-block { align-self: start; min-width: 0; padding: 23px; border: 1px solid var(--line); border-radius: 6px; background: var(--fact-surface); }
.information-block h2 { font-size: 24px; }
.feature-list { margin-top: 16px; }
.feature-list > div { display: grid; gap: 5px; padding-block: 11px; border-top: 1px solid var(--line); }
.feature-list dt { color: var(--ink); font-weight: 680; }
.feature-list dd { color: var(--body); font-size: 15px; }
.tablist { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.tablist button { min-height: 45px; padding: 7px 14px; border: 1px solid transparent; border-radius: 6px; background: var(--white); color: var(--body); font-size: 15px; font-weight: 650; cursor: pointer; }
.tablist button:hover { background: var(--fact-surface); color: var(--link); }
.tablist button[aria-selected="true"] { border-color: #bfd5ef; background: var(--blue-surface); color: var(--link); }
[role="tabpanel"] { min-width: 0; padding-top: 25px; }
.sample-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.92fr); align-items: start; gap: clamp(22px,5vw,64px); }
.sample-copy h3 { margin-top: 9px; font-size: clamp(22px, 2.4vw, 29px); }
.sample-copy > p:not(.format) { margin-top: 13px; }
.fineprint { margin-top: 12px; color: var(--muted); font-size: 13px; }
.document-preview { display: block; width: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--fact-surface); }
.document-preview:hover { background: var(--blue-surface); }
.document-preview img { width: min(100%,245px); height: auto; margin: auto; border: 1px solid var(--line); }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; color: var(--body); font-size: 14px; }
.data-table caption { padding: 0 0 11px; color: var(--ink); font-weight: 700; text-align: left; }
.data-table td, .data-table th { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { background: var(--fact-surface); color: var(--ink); font-weight: 675; }
.data-table code { font-size: .96em; }
.information-block .table-wrap { margin-top: 12px; }
.sample-invoice .text-link { display: inline-block; margin-top: 15px; }
.invoice-result { min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: 6px; }
.risk-detail { margin-top: 13px; padding: 10px 13px; border-radius: 4px; background: var(--blue-surface); }
.risk-detail summary { min-height: 38px; cursor: pointer; }
.risk-summary { display: inline-flex; gap: 8px; align-items: center; padding-block: 5px; }
.risk-summary small { color: var(--muted); font-size: 13px; }
.risk-body { padding: 2px 11px; border-radius: 3px; background: var(--white); }
.risk-body .feature-list { margin-top: 0; }
.risk-body .feature-list > div:first-child { border-top: none; }

.endpoint { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 11px; }
.endpoint strong { color: var(--link); font-size: 13px; }
.endpoint code { min-width: 0; color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.api-overview { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); align-items: start; gap: 20px 28px; }
.api-example-grid { display: grid; gap: 12px; }
.api-example-grid pre { max-height: 220px; }
.code-card { min-width: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.code-heading { display: flex; min-height: 47px; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 12px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 680; }
.copy-button { flex: none; min-height: 34px; padding: 4px 9px; border: 1px solid #b7c9df; border-radius: 5px; background: var(--white); color: var(--link); font-size: 13px; font-weight: 650; cursor: pointer; }
.copy-button:hover { background: var(--blue-surface); }
pre { max-height: 420px; margin: 0; padding: 13px; overflow: auto; background: var(--fact-surface); color: #253c53; font-size: 13px; line-height: 1.58; tab-size: 2; }
code { font-family: "Cascadia Mono", Consolas, "Microsoft YaHei UI", monospace; }
.json-key { color: #225993; }
.json-string { color: #25684b; }
.expand { margin-top: 15px; border-top: 1px solid var(--line); }
.expand > summary { display: list-item; min-height: 44px; padding-block: 10px; color: var(--link); font-weight: 650; cursor: pointer; }
.reference-body { padding-block: 4px 12px; }
.reference-body code { overflow-wrap: anywhere; }
.reference-body .table-wrap { margin-block: 8px 16px; }
.reference-body .table-wrap:last-child { margin-bottom: 0; }
.api-input { padding: 0; }
.api-input .table-wrap { margin: 0 0 8px; }
.invoice-fields th:first-child { width: 37%; }
.invoice-fields th:nth-child(2) { width: 23%; }
.invoice-fields td:first-child code { overflow-wrap: normal; }
.invoice-fields td:nth-child(2) code, .enterprise-fields :is(th, td):nth-child(-n+3) { white-space: nowrap; }
.api-doc-section { margin-top: 17px; padding-top: 13px; border-top: 1px solid var(--line); }
.api-doc-section h4 { margin: 0 0 6px; font-size: 16px; line-height: 1.4; }
.api-doc-section p + p { margin-top: 7px; }
.product-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin-top: 23px; }
.product-links p { color: var(--muted); font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.analysis-layout, .connect-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(20px, 4vw, 48px); }
.analysis-demo { padding: clamp(16px, 2.4vw, 28px); border: 1px solid #dce8f8; border-radius: 6px; background: var(--blue-surface); }
.analysis-demo h3 { margin-block: 5px 12px; font-size: 21px; }
.analysis-answer > div { margin-block: 9px; }
.analysis-answer dt { font-size: 14px; font-weight: 700; }
.analysis-answer dd { margin-top: 3px; color: var(--body); }
.analysis-demo .text-link { display: inline-block; margin-top: 8px; }
.data-support { padding: 17px 0 0; border-top: 1px solid var(--line); }
.data-support h3 { margin-bottom: 13px; font-size: 23px; }
.library-counts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.library-counts > div { min-width: 0; padding-inline: clamp(8px,2.4vw,28px); border-right: 1px solid var(--line); }
.library-counts > div:first-child { padding-left: 0; }
.library-counts > div:last-child { padding-right: 0; border-right: 0; }
.library-counts dt { color: var(--body); font-size: 14px; font-weight: 650; }
.library-number { margin-block: 2px 4px; font-size: clamp(26px,3.2vw,39px); font-weight: 730; line-height: 1.2; font-variant-numeric: tabular-nums; }
.library-number small { color: var(--muted); font-size: .38em; font-weight: 600; }
.data-links { display: flex; flex-wrap: wrap; gap: 10px 19px; margin-top: 11px; }
.platform-part { padding-block: 22px 40px; border-top: 1px solid var(--line); }
.api-heading, .api-start, .api-call { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px 18px; }
.api-heading { align-items: end; }
.api-start { align-items: baseline; }
.api-start h2 { font-size: 21px; }
.platform-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.api-intro { color: var(--muted); font-size: 14px; }
.api-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 5px; padding: 0; border: 0; }
.api-tabs button { min-height: 76px; padding: 12px 15px; border-width: 1px 1px 3px; border-color: var(--line); text-align: left; font-size: 17px; line-height: 1.35; }
.api-tabs button[aria-selected="true"] { border-color: #8cb7ee #8cb7ee var(--brand); }
.api-tabs button:disabled { cursor: default; color: var(--muted); }
.api-tabs small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 500; }
.api-platform [role="tabpanel"] { padding-top: 18px; }
.api-use-cases p + p { margin-top: 5px; }
.api-use-cases strong, .api-doc-section > p > strong { margin-right: .4em; color: var(--ink); }
.api-example-grid > .fineprint code, .api-doc-section > p > code { overflow-wrap: anywhere; }
.api-call { margin-block: 12px 14px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--fact-surface); }
.api-call .endpoint { min-width: 0; margin: 0; }
.curl-card { margin-top: 12px; }
.connect-options article { min-width: 0; }
.connect-options article > p { margin-block: 8px 13px; }
.connection-address { display: block; margin: 0 0 12px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 4px; background: var(--fact-surface); color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
#connection-prompt { overflow-wrap: anywhere; }

@media (max-width: 980px) {
  .hero { column-gap: 26px; }
  .report-paper { padding-inline: 14px; }
  .api-overview { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 770px) {
  .hero, .sample-grid, .analysis-layout, .connect-options { grid-template-columns: minmax(0,1fr); }
  .hero { row-gap: 25px; padding-block: 42px; }
  .hero .lead { margin-top: 16px; }
  .hero-report { width: min(100%,520px); }
  .document-preview { max-width: 420px; }
}
@media (max-width: 620px) {
  .api-page .public-header { position: static; }
  section[id], details[id] { scroll-margin-top: 16px; }
  .platform-part { padding-top: 16px; }
  .api-start { gap: 4px; }
  .api-tabs { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .api-tabs button { min-height: 57px; padding-block: 8px; border-width: 1px 1px 1px 3px; }
  .api-tabs button[aria-selected="true"] { border-color: #8cb7ee #8cb7ee #8cb7ee var(--brand); }
  .copy-button { min-height: 40px; }
}
@media (max-width: 480px) {
  .product-links { align-items: start; flex-direction: column; gap: 7px; }
  .section-heading { align-items: start; flex-direction: column; gap: 6px; margin-bottom: 17px; }
  .report-totals { gap: 9px; padding-inline: 9px; }
  .report-mini { font-size: 13px; }
  .hero-report { padding-inline: 12px; }
  .tablist { gap: 4px; }
  .tablist button { padding-inline: 9px; }
  .api-tabs { gap: 8px; }
  .api-tabs button { padding-inline: 14px; }
  .reference-body .data-table :is(th, td) { padding-inline: 7px; }
  .api-example-grid pre { max-height: 180px; }
  .task-states th:first-child { width: 31%; }
  .task-states th, .task-states td:last-child { overflow-wrap: anywhere; }
  .library-counts .text-link { font-size: 13px; }
}
