@font-face {
  font-family: Inter;
  src: url('/public/assets/fonts/databridge-inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2190-21FF;
}

:root {
  color-scheme: light;
  --db-ink: #202624;
  --db-text: #4d5551;
  --db-muted: #6b6b6b;
  --db-accent: #23755e;
  --db-accent-deep: #1e634f;
  --db-soft: #eaf6f1;
  --db-border: #e5eae7;
  --db-header-height: 70px;
  --db-font-mono: ui-monospace, 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --db-reading-leading: 1.8;
  --db-card-title: 1.1875rem;
  font-family: Inter, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Noto Sans SC', system-ui, sans-serif;
  line-height: 1.55;
  color: var(--db-ink);
  background: #fff;
  font-synthesis: none;
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
code, pre, kbd { font-family: var(--db-font-mono); }
button { color: inherit; }
button:not(:disabled), summary { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--db-accent); outline-offset: 4px; }
[id] { scroll-margin-top: calc(var(--db-header-height) + 24px); }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 100; top: 10px; left: 10px; color: white; background: var(--db-accent); padding: 10px 14px; border-radius: 6px; }
.db-container { width: min(1184px, calc(100% - 88px)); margin-inline: auto; }
.db-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--db-border); }
.db-header-inner { min-height: var(--db-header-height); display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.db-brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.db-brand img { height: auto; }
.db-brand small { padding-left: 10px; border-left: 1px solid var(--db-border); color: var(--db-muted); font-weight: 400; font-size: .8125rem; }
.db-nav, .db-header-actions { display: flex; align-items: center; }
.db-nav { gap: clamp(18px, 2.6vw, 39px); }
.db-nav a, .db-footer nav a { font-size: .875rem; line-height: 1.6; color: var(--db-text); transition: color .3s ease; }
.db-nav a:hover, .db-footer nav a:hover { color: var(--db-accent); }
.db-header-actions { gap: 17px; }
.db-icon-button { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 8px; background: none; border: 1px solid var(--db-border); }
.db-icon-button:hover { background: var(--db-soft); }
.db-icon-button svg { width: 20px; height: 20px; }
.db-menu-toggle { display: none; }

.db-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; min-height: 49px; padding: 0 21px; border: 1px solid transparent; border-radius: 999px; font-weight: 500; font-size: 1rem; line-height: 1.375; transition: background .3s ease, border-color .3s ease, transform .3s ease; }
.db-button svg { width: 19px; height: 19px; }
.db-button.db-sm { min-height: 39px; padding: 0 14px; font-size: .875rem; }
.db-primary { color: #fff; background: #1a1a1a; }
.db-primary:hover { background: #2e5546; }
.db-secondary { background: #fff; border-color: #dbe6df; }
.db-secondary:hover { border-color: #9dbfad; background: #f5faf7; }
.db-text-link { display: inline-block; color: var(--db-accent); font-size: .875rem; font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: #9ebfae; text-underline-offset: 5px; }
.db-text-link:hover { text-decoration-color: currentColor; }

.db-hero {
  background: radial-gradient(ellipse at 91% 64%, #e5f8f0 0%, transparent 53%),
    radial-gradient(ellipse at 5% 85%, #ecfaf4 0%, transparent 43%), #fff;
  border-bottom: 1px solid var(--db-border);
}
.db-hero-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(28px, 4.8vw, 72px); align-items: center; padding-block: 58px 57px; }
.db-kicker { font-size: .8125rem; font-weight: 500; color: var(--db-accent-deep); display: inline-flex; align-items: center; gap: 9px; padding: 7px 11px; background: #e7f4ed; border: 1px solid #dbede4; border-radius: 6px; }
.db-kicker span, .db-live-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #43a889; }
.db-hero h1 { margin-block: 23px 20px; font-size: clamp(2.5rem, 5.32vw, 4.25rem); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; }
.db-hero h1 em { font-style: normal; color: var(--db-accent-deep); }
.db-hero-description { max-width: 30em; font-size: clamp(1rem, .92rem + .35vw, 1.125rem); line-height: var(--db-reading-leading); }
.db-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.db-hero-note { color: var(--db-muted); font-size: .8125rem; margin-top: 19px; }
.db-hero-note span { padding-inline: 8px; color: #a2aca6; }

.db-bridge { container-type: inline-size; min-width: 0; width: 100%; margin-inline: auto; }
/* 透明插画直接承接首屏渐变，避免在纸艺场景外出现矩形色块。 */
.db-bridge-stage { position: relative; }
/* 画布与海报使用同一布局空间；悬浮文字仍是可选取的原生文本。 */
[data-scene] > canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; visibility: hidden; }
.db-scene-ready > canvas { visibility: visible; }
.db-scene-ready > img, .db-scene-ready > .db-paper-typing { opacity: 0; }
.db-paper-title { z-index: 1; }
.db-bridge-stage img { width: 100%; height: auto; }
.db-paper-title { position: absolute; inset: 7% auto auto 6%; display: grid; gap: 4px; color: var(--db-ink); }
.db-paper-title strong { font-size: clamp(1.25rem, 4.8cqi, 1.9rem); letter-spacing: -.045em; line-height: 1.15; }
.db-paper-title span { color: var(--db-text); font-size: .75rem; }
.db-paper-typing { position: absolute; left: 13.6%; top: 54.4%; transform: translate(-50%, -50%) rotate(-9deg); display: flex; gap: .45cqi; }
.db-paper-typing i { width: .62cqi; aspect-ratio: 1; border-radius: 50%; background: white; }
.db-bridge-tools, .db-bridge-clients, .db-bridge-results, .db-bridge-result { display: flex; align-items: center; }
.db-bridge-tools { justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.db-bridge-clients { gap: clamp(1px, .5cqi, 4px); }
.db-bridge-clients a { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; }
.db-bridge-clients a:is(:hover, :focus-visible) { z-index: 2; background: var(--db-soft); }
.db-bridge-clients img { object-fit: contain; border-radius: 5px; }
.db-bridge-clients a span {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  padding: 4px 8px;
  color: white;
  background: var(--db-accent-deep);
  border-radius: 5px;
  font-size: .75rem;
  white-space: nowrap;
}
.db-bridge-clients a:is(:hover, :focus-visible) span { display: block; }
/* 三个静态图注分别对应模型中的提问卡、数据源和图表。 */
.db-bridge-caption {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block: -3cqi 20px;
  text-align: center;
  color: var(--db-text);
  font-size: .8125rem;
}
.db-bridge-results { gap: 8px; }
.db-bridge-result {
  position: relative;
  white-space: nowrap;
  gap: 7px;
  min-width: 0;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--db-border);
  border-radius: 8px;
  background: rgba(255,255,255,.73);
  font-size: .8125rem;
  font-weight: 550;
  cursor: pointer;
}
.db-bridge-result:is(:hover, :focus-within) { border-color: var(--db-accent); color: var(--db-accent-deep); background: white; }
.db-bridge-result a::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }
.db-bridge-result i { margin-left: auto; color: var(--db-accent); font-style: normal; }
.db-result-preview { width: clamp(25px, 6cqi, 38px); height: 26px; flex: none; border-radius: 4px; overflow: hidden; object-fit: cover; object-position: bottom; }
.db-bridge-dashboard-preview { position: relative; pointer-events: none; }
.db-bridge-dashboard-preview iframe { position: absolute; top: 0; left: 0; border: 0; transform: scale(var(--db-dashboard-scale, .045)); transform-origin: left top; }

.db-dashboard-dialog { width: min(1220px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; overflow: hidden; border: 1px solid var(--db-border); border-radius: 14px; background: #fff; color: var(--db-ink); }
.db-dashboard-dialog::backdrop { background: rgba(15,33,27,.55); }
.db-dashboard-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--db-border); }
.db-dashboard-dialog-head h2 { font-size: 1rem; font-weight: 600; }
.db-dashboard-dialog-head button { padding: 6px 11px; border: 1px solid var(--db-border); border-radius: 7px; background: #f7faf8; }
.db-dashboard-dialog iframe { display: block; width: 100%; height: min(78dvh, 820px); border: 0; }
.db-qa-dialog { width: min(980px, calc(100% - 24px)); }
.db-qa-dialog-view { max-height: min(78dvh, 820px); overflow: auto; overscroll-behavior: contain; }
.db-qa-dialog-view img { width: 100%; height: auto; }
body:has(.db-dashboard-dialog[open]) { overflow: hidden; }

@container (max-width: 430px) {
  .db-bridge-tools { gap: 8px; }
  .db-bridge-clients a { width: 25px; }
  .db-bridge-results { gap: 5px; }
  .db-bridge-result { gap: 4px; padding: 6px; }
}
.db-app-mark { width: 26px; height: 26px; flex: none; object-fit: contain; }

.db-section { padding-block: 92px; }
.db-section-heading { max-width: 630px; margin-bottom: 32px; }
.db-label { color: var(--db-accent-deep); font-size: .8125rem; font-weight: 500; margin-bottom: 10px; }
.db-section h2, .db-band h2, .db-faq h2, .db-end h2 { font-size: clamp(1.75rem, 3.6vw, 2.875rem); font-weight: 600; line-height: 1.28; letter-spacing: -.015em; text-wrap: balance; }
.db-section-heading > p:last-child, .db-feature-copy > p:not(.db-label), .db-end p { font-size: 1rem; line-height: 1.75; color: var(--db-text); margin-top: 13px; }
.db-model-tip { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; padding: 12px 17px; margin-bottom: 14px; border: 1px solid #dbe6df; border-radius: 10px; background: #f0f8f4; font-size: .875rem; line-height: 1.6; }
.db-model-tip strong { color: var(--db-accent-deep); font-weight: 600; overflow-wrap: anywhere; }
.db-integration { border: 1px solid var(--db-border); border-radius: 15px; background: #f8faf8; }
.db-tabs { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); padding: 11px; gap: 8px; border-bottom: 1px solid var(--db-border); }
.db-tabs button { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 45px; padding: 7px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--db-text); font-weight: 400; font-size: .875rem; transition: background .3s ease, color .3s ease, border-color .3s ease; }
.db-tabs button:hover { background: #eef7f2; }
.db-tabs button[aria-selected="true"] { background: white; border-color: #c7e4d4; color: var(--db-accent-deep); }
.db-integration-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 35px 36px; align-items: center; }
.db-tab-copy h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 600; line-height: 1.4; }
.db-tab-copy p { color: var(--db-text); line-height: 1.75; font-size: 1rem; margin: 11px 0 18px; max-width: 430px; }
.db-instruction-shot { width: min(100%, 316px); margin-top: 16px; }
.db-instruction-shot a { display: block; border: 1px solid var(--db-border); border-radius: 8px; overflow: hidden; }
.db-instruction-shot a:hover { border-color: var(--db-accent); }
.db-instruction-shot img { width: 100%; height: auto; }
.db-instruction-shot figcaption { margin-top: 6px; color: var(--db-muted); font-size: .8125rem; line-height: 1.6; }
.db-query-demo { padding: 18px 20px; background: white; border: 1px solid var(--db-border); border-radius: 10px; }
.db-demo-label { font-size: .8125rem; font-weight: 500; color: var(--db-accent-deep); }
.db-query-demo blockquote { margin-top: 9px; font-weight: 500; line-height: 1.75; }
.db-query-demo ol { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.db-query-demo li { font-size: .8125rem; color: var(--db-text); background: #eef4f0; border-radius: 5px; padding: 4px 8px; }

.db-expert { border-top: 1px solid var(--db-border); }
.db-expert-panel { padding-block: 0; }
.db-expert-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 24px; margin-bottom: 28px; }
.db-expert-guides { display: flex; flex-wrap: wrap; gap: 8px; }
.db-expert-identity { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 16px; max-width: 640px; }
.db-expert-avatar { border-radius: 15px; border: 1px solid #fff; box-shadow: 0 4px 16px rgba(26, 73, 55, .11); }
.db-expert-heading .db-section-heading { margin-bottom: 0; }
.db-skill-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.db-skill-list li { display: grid; grid-template-rows: auto auto 1fr auto; min-width: 0; padding: 22px 14px 6px 0; border-top: 2px solid var(--db-accent); }
.db-skill-list h3 { font-size: var(--db-card-title); font-weight: 600; line-height: 1.4; }
.db-skill-list code { margin-top: 7px; color: var(--db-accent-deep); font-size: .8125rem; overflow-wrap: anywhere; }
.db-skill-list p { margin-top: 11px; color: var(--db-text); font-size: .9375rem; line-height: var(--db-reading-leading); }
.db-skill-list .db-skill-example { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(79, 123, 105, .18); font-size: .8125rem; }
.db-skill-example span { color: var(--db-accent-deep); font-weight: 500; margin-right: .55em; }

.db-band { border-block: 1px solid var(--db-border); background: #f6faf8; }
.db-band .db-feature { padding-block: 70px; }
.db-feature { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: clamp(30px, 6vw, 82px); }
.db-feature-media { position: relative; isolation: isolate; overflow: hidden; border-radius: 14px; background: radial-gradient(ellipse at 50% 68%, var(--db-soft), transparent 70%); }
.db-feature-media img { width: 100%; height: auto; }
.db-permission-list { margin-block: 20px; }
.db-permission-list div { display: flex; align-items: baseline; gap: 14px; padding-block: 11px; border-bottom: 1px solid var(--db-border); font-size: .875rem; }
.db-permission-list dt { flex: none; color: var(--db-ink); font-weight: 500; }
.db-permission-list dd { margin: 0; color: var(--db-text); }
.db-database-list { list-style: none; margin: 20px 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }
.db-database-list li { display: flex; gap: 7px; align-items: center; border: 1px solid var(--db-border); border-radius: 7px; min-height: 43px; padding: 7px; font-weight: 500; font-size: .8125rem; }
.db-database-list img { object-fit: contain; flex: none; }

.db-faq { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; padding-block: 52px 76px; border-top: 1px solid var(--db-border); }
.db-faq .db-text-link { margin-top: 17px; }
.db-faq details { border-bottom: 1px solid var(--db-border); }
.db-faq summary { padding-block: 18px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; }
.db-faq summary::-webkit-details-marker { display: none; }
.db-faq summary::after { content: '+'; font-size: 1.25rem; font-weight: 600; color: var(--db-accent); }
.db-faq details[open] summary::after { content: '−'; }
.db-faq details p { margin: -2px 0 19px; color: var(--db-text); line-height: 1.75; }
.db-faq details a { color: var(--db-accent); text-decoration: underline; margin-left: .5em; }
.db-end { display: flex; align-items: center; justify-content: space-between; gap: 30px; background: #e7f6ee; border: 1px solid #d8ede0; border-radius: 15px; margin-bottom: 72px; padding: 35px 44px; }
.db-end h2 { font-size: clamp(1.625rem, 3.3vw, 2.5rem); }
.db-end p { margin-top: 7px; }
.db-footer { border-top: 1px solid var(--db-border); background: #f7f9f8; }
.db-footer-inner { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) minmax(156px, 1fr); gap: clamp(22px, 3vw, 35px); padding-block: 39px 33px; }
.db-footer-brand p { max-width: 345px; color: var(--db-muted); font-size: .875rem; line-height: 1.75; margin-top: 11px; }
.db-footer nav { display: grid; align-content: start; gap: 11px; }
.db-footer nav h2 { font-size: .875rem; font-weight: 500; margin-bottom: 2px; }
.db-footer-contact { width: min(100%, 156px); height: auto; }
.db-footer-bottom { border-top: 1px solid var(--db-border); padding-block: 18px; display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: .82rem; color: var(--db-muted); }
.db-footer-bottom small { font-size: inherit; }
.db-footer-bottom a:hover { color: var(--db-accent-deep); }

/* 桌面接入说明与配置面板左右并列；窄屏沿用文档顺序阅读。 */
@media (min-width: 1051px) {
  #integrations { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.45fr); gap: 18px clamp(30px,4vw,60px); align-content: start; }
  #integrations .db-section-heading { grid-column: 1; margin: 0; }
  #integrations .db-model-tip { grid-column: 1; align-self: start; margin: 0; }
  #integrations .db-integration { grid-area: 1 / 2 / 3 / 3; align-self: center; }
  #integrations .db-integration-layout { gap: 22px; padding: 24px; }
}
@media (max-width: 1050px) {
  .db-brand small { display: none; }
  .db-container { width: min(1184px, calc(100% - 56px)); }
  .db-hero-grid { padding-block: 48px; }
}
@media (max-width: 780px) {
  :root { --db-header-height: 59px; }
  .db-container { width: calc(100% - 38px); }
  .db-header-inner, .db-header-actions { gap: 9px; }
  .db-menu-toggle { display: inline-grid; }
  .db-nav { visibility: hidden; position: absolute; top: 100%; inset-inline: 0; display: grid; gap: 0; padding: 6px 19px 12px; background: #fff; border-bottom: 1px solid var(--db-border); }
  .db-nav.is-open { visibility: visible; }
  .db-nav a { padding: 12px 0; font-size: 1rem; }
  .db-hero-grid, .db-feature, .db-integration-layout, .db-faq { grid-template-columns: 1fr; }
  .db-expert-heading { margin-bottom: 20px; }
  .db-expert-identity { gap: 12px; }
  .db-expert-avatar { width: 49px; height: 49px; border-radius: 12px; }
  .db-skill-list { grid-template-columns: 1fr; }
  .db-skill-list li { padding: 17px; }
  .db-hero-grid { padding-block: 42px 26px; gap: 27px; }
  .db-hero h1 { font-size: clamp(2.125rem, 9.5vw, 3.5rem); margin-block: 18px 15px; }
  .db-bridge { max-width: 620px; }
  .db-section, .db-band .db-feature { padding-block: 54px; }
  .db-integration-layout { gap: 24px; padding: 24px; }
  .db-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .db-feature { gap: 22px; }
  .db-band .db-feature-copy { order: -1; }
  .db-faq { gap: 1px; padding-block: 42px 52px; }
  .db-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
  .db-footer-brand, .db-footer-contact { grid-column: 1/-1; }
  .db-end { display: grid; align-items: start; justify-items: start; gap: 16px; padding: 24px; margin-bottom: 50px; }
}
@media (max-width: 390px) {
  .db-database-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: no-preference) {
  .db-hero-copy, .db-bridge { animation: db-enter .64s cubic-bezier(.2,.65,.3,1) both; }
  .db-bridge { animation-delay: .09s; }
  .db-paper-typing i { animation: db-paper-type 6s ease-in-out infinite; }
  .db-paper-typing i:nth-child(2) { animation-delay: .16s; }
  .db-paper-typing i:nth-child(3) { animation-delay: .32s; }
  .db-hero-copy:focus-within, .db-bridge:focus-within { animation: none; }
  .db-integration [role="tabpanel"]:not([hidden]) { animation: db-enter .3s ease-out both; }
  .db-enter { animation: db-enter .45s ease-out both; }
  @keyframes db-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes db-paper-type {
    0%, 19%, 100% { opacity: .65; transform: translateY(0); }
    9% { opacity: 1; transform: translateY(-.45cqi); }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
