/* YDATA AI 首页视觉系统：冰白底色 + 柔和薰衣草紫 + 高对比午夜蓝与钴蓝 */
:root {
  color-scheme: light;
  --bg: #f7f8ff;
  --surface: #ffffff;
  --surface-soft: #f5f6fe;
  --ink: #151633;
  --ink2: #4c506b;
  --ink3: #686d8a;
  --blue: #3354f4;
  --blue-hover: #2443d9;
  --blue-soft: #e9efff;
  --lav: #ece8ff;
  --lav-strong: #ded7ff;
  --lav-ink: #4b39c6;
  --yellow: #f6c750;
  --yellow-soft: #fff1c7;
  --yellow-ink: #734c00;
  --line: #e4e7f6;
  --line-strong: #cfd5ee;
  --shadow-sm: 0 10px 26px -16px rgba(34, 48, 128, .22);
  --shadow-md: 0 24px 60px -28px rgba(37, 52, 138, .22);
  --shadow-lg: 0 32px 72px -28px rgba(34, 48, 128, .28);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(740px 500px at 88% 6%, rgba(193, 181, 255, .34), transparent 68%),
    radial-gradient(620px 460px at 6% 14%, rgba(191, 212, 255, .30), transparent 68%),
    radial-gradient(560px 400px at 78% 48%, rgba(210, 200, 255, .18), transparent 72%),
    var(--bg);
}

button, select, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .52; }
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(51, 84, 244, .48);
  outline-offset: 3px;
}
h1, h2, h3, p, ol, ul { margin: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  display: inline-block; flex: none; width: 18px; height: 18px;
  vertical-align: middle; fill: none; stroke: currentColor;
  stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round;
}
.skip {
  position: fixed; z-index: 100; top: -80px; left: 16px;
  padding: 10px 14px; border-radius: 10px; background: var(--surface);
  color: var(--ink); box-shadow: var(--shadow-sm);
}
.skip:focus { top: 14px; }

/* 顶栏导航 */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247, 248, 255, .82);
  border-bottom: 1px solid rgba(228, 231, 246, .85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav-inner {
  width: min(100%, 1320px); height: 76px; margin: 0 auto; padding: 0 36px;
  display: flex; align-items: center; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  white-space: nowrap;
}
.brand-mark { width: 34px; height: 34px; display: block; flex: none; filter: drop-shadow(0 6px 14px rgba(51, 84, 244, .32)); }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.brand-name b { color: var(--blue); font-weight: 850; }

.topnav { display: flex; align-items: center; gap: 6px; margin: 0 auto; }
.topnav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 15px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink2);
  white-space: nowrap; transition: background .18s, color .18s;
}
.topnav a:hover { background: rgba(236, 232, 255, .65); color: var(--ink); }
.topnav a .icon { width: 15px; height: 15px; }

.header-tools { display: flex; align-items: center; gap: 16px; flex: none; }
.header-plain { font-size: 14px; font-weight: 600; color: var(--ink2); white-space: nowrap; transition: color .18s; }
.header-plain:hover { color: var(--blue); }
.account {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 9px 20px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 650;
  white-space: nowrap; box-shadow: 0 12px 24px -12px rgba(21, 22, 51, .6);
  transition: background .18s, transform .18s;
}
.account:hover { background: #262854; transform: translateY(-1px); }
.account .icon { width: 15px; height: 15px; }

.menu-toggle, .mobile-menu:not(:popover-open) { display: none; }
.menu-toggle {
  width: 40px; height: 40px; place-items: center; border: 1px solid var(--line);
  border-radius: 12px; background: rgba(255, 255, 255, .85); color: var(--ink);
}
.menu-toggle:hover { background: var(--lav); border-color: var(--lav-strong); }

.mobile-menu {
  border: 1px solid var(--line); border-radius: 22px; background: var(--surface);
  box-shadow: var(--shadow-lg); color: var(--ink);
}

/* 主容器 */
.shell { width: 100%; }
.wrap { width: min(100%, 1320px); margin-inline: auto; padding-inline: 36px; }

/* 首屏 Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr);
  align-items: center; gap: 48px; min-height: 670px; padding: 42px 0 64px;
}
.hero-copy { min-width: 0; }
.hero-eyebrow, .eyebrow {
  font-size: 11px; font-weight: 750; letter-spacing: .12em;
  line-height: 1.5; text-transform: uppercase;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink2); margin-bottom: 18px;
}
.hero-eyebrow > span {
  width: 10px; height: 10px; border-radius: 3px; background: var(--blue);
  box-shadow: 0 0 0 4px rgba(51, 84, 244, .14);
}
.hero h1 {
  max-width: 600px; margin-bottom: 22px;
  font-size: clamp(42px, 4.5vw, 62px); line-height: 1.15;
  font-weight: 850; letter-spacing: -.03em; color: var(--ink);
}
.hero-accent {
  position: relative; display: inline-block; color: var(--blue); padding-bottom: 6px;
}
.hero-accent svg {
  position: absolute; left: -2%; bottom: -4px; width: 104%; height: 14px; pointer-events: none;
}
.hero-intro {
  max-width: 510px; color: var(--ink2); font-size: 16px; line-height: 1.8;
}

/* 首屏搜索条 + 热门模型胶囊 */
.hero-search {
  display: flex; align-items: center; gap: 10px;
  max-width: 540px; margin-top: 28px;
  padding: 7px 7px 7px 18px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 18px 40px -22px rgba(45, 62, 150, .28);
  transition: border-color .18s, box-shadow .18s;
}
.hero-search:focus-within {
  border-color: rgba(51, 84, 244, .55);
  box-shadow: 0 0 0 4px rgba(51, 84, 244, .12), 0 18px 40px -22px rgba(45, 62, 150, .3);
}
.hero-search > .icon { color: var(--ink3); width: 19px; height: 19px; }
.hero-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; padding: 6px 0;
  font-size: 15px; color: var(--ink); background: transparent;
}
.hero-search input::placeholder { color: var(--ink3); }
.hero-search button {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 11px 20px; border: 0; border-radius: 12px;
  background: var(--blue); color: #fff; font-size: 14px; font-weight: 650;
  white-space: nowrap; transition: background .18s, transform .18s;
}
.hero-search button:hover { background: var(--blue-hover); transform: translateY(-1px); }
.hero-search button .icon { width: 15px; height: 15px; }

.popular-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 16px;
}
.popular-label { font-size: 13px; color: var(--ink3); font-weight: 500; }
.popular-row a {
  padding: 6px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, .86); border: 1px solid var(--line);
  color: var(--ink); font-size: 13px; font-weight: 600;
  transition: border-color .18s, background .18s, color .18s;
}
.popular-row a:hover { border-color: var(--lav-strong); background: var(--lav); color: var(--lav-ink); }

.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 11px 22px; border-radius: 14px;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 650;
  box-shadow: 0 14px 28px -12px rgba(21, 22, 51, .52);
  transition: background .18s, transform .18s;
}
.btn-primary:hover { background: #262854; transform: translateY(-1px); }
.btn-primary .icon { width: 16px; height: 16px; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 48px; padding: 11px 18px; border-radius: 14px;
  background: rgba(255, 255, 255, .86); border: 1px solid var(--line-strong);
  color: var(--ink); font-size: 14px; font-weight: 600;
  transition: border-color .18s, background .18s, color .18s;
}
.btn-outline:hover { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.btn-outline .icon { width: 15px; height: 15px; }

.hero-proof {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px;
  margin-top: 24px; padding: 0; list-style: none;
  font-size: 13px; color: var(--ink2);
}
.hero-proof li { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.hero-proof strong { color: var(--ink); font-weight: 700; }

/* 首屏右栏：玻璃态活体卡片 + 微倾状态胶囊 */
.hero-stage {
  position: relative; min-height: 460px; padding: 38px 18px;
  display: grid; place-items: center;
}
.spark {
  position: absolute; width: 22px; height: 22px; pointer-events: none;
  fill: none; stroke: #9aa2ce; stroke-width: 1.5; opacity: .72;
}
.spark-a { top: 26px; left: 40%; }
.spark-b { bottom: 92px; left: 4%; width: 18px; height: 18px; }

.stage-card {
  position: relative; z-index: 2; width: min(100%, 420px);
  padding: 28px; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(224, 228, 248, .85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.stage-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.stage-tag {
  display: block; font-size: 11px; font-weight: 750; letter-spacing: .08em;
  color: var(--blue); text-transform: uppercase; margin-bottom: 6px;
}
.stage-head h2 { font-size: 22px; line-height: 1.3; font-weight: 800; letter-spacing: -.02em; }
.stage-ring {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--blue) 0 82%, #e6eafb 82% 100%);
  display: grid; place-items: center;
}
.stage-ring span {
  width: 44px; height: 44px; border-radius: 50%; background: var(--surface);
  display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--ink);
}
.stage-item {
  display: flex; align-items: center; gap: 12px;
  margin-top: 20px; padding: 12px 14px; border-radius: 14px;
  background: var(--surface-soft); border: 1px solid var(--line);
}
.stage-badge {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  background: var(--blue-soft); color: var(--blue);
  display: grid; place-items: center;
}
.stage-item strong { display: block; font-size: 13.5px; color: var(--ink); }
.stage-item small { display: block; font-size: 12px; color: var(--ink3); margin-top: 1px; }
.stage-progress {
  height: 8px; border-radius: 999px; background: #e9ecfb; overflow: hidden; margin: 18px 0 20px;
}
.stage-progress i {
  display: block; width: 78%; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), #6c5ce7);
}
.stage-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 13px 18px; border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), #4f5cf7); color: #fff;
  font-size: 14px; font-weight: 650;
  box-shadow: 0 12px 24px -10px rgba(51, 84, 244, .55);
  transition: transform .18s, box-shadow .18s;
}
.stage-cta:hover { transform: translateY(-1px); box-shadow: 0 16px 28px -10px rgba(51, 84, 244, .65); }
.stage-cta .icon { width: 15px; height: 15px; }

.float-chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 15px; border-radius: 16px;
  font-size: 13px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 18px 38px -18px rgba(34, 45, 115, .30);
  transition: transform .22s ease;
}
.float-chip .icon { width: 15px; height: 15px; }
.chip-tl { top: 14px; left: 26px; background: var(--lav); color: var(--lav-ink); border: 1px solid #fff; transform: rotate(-5deg); }
.chip-tr {
  top: 0; right: 4px; padding: 13px 16px; border-radius: 20px;
  background: #eeebff; border: 1px solid #fff; color: var(--ink);
  transform: rotate(4deg);
}
.chip-tr .chip-icon {
  width: 30px; height: 30px; border-radius: 10px; background: #fff; color: var(--lav-ink);
  display: grid; place-items: center; flex: none;
}
.chip-tr strong { display: block; font-size: 13px; line-height: 1.25; }
.chip-tr small { display: block; font-size: 11px; font-weight: 500; color: var(--ink2); margin-top: 2px; }
.chip-mr {
  right: -14px; top: 58%; padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 12.5px;
  transform: rotate(4deg);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .25); }
.chip-bl { bottom: 10px; left: 12px; background: var(--yellow-soft); color: var(--yellow-ink); border: 1px solid #fff; transform: rotate(-3deg); }
.chip-bl:hover { transform: rotate(-1deg) translateY(-2px); }
.chip-br { bottom: 4px; right: 24px; background: var(--blue-soft); color: var(--blue-hover); border: 1px solid #fff; transform: rotate(3deg); }
.chip-br code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 800; }
.chip-br:hover { transform: rotate(1deg) translateY(-2px); }

/* 通用板块与卡片 */
.surface-card {
  margin-top: 32px; padding: 38px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .90);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
}
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 28px;
}
.section-head .eyebrow { color: var(--lav-ink); }
.section-head h2 {
  margin-top: 8px; font-size: clamp(24px, 2.3vw, 32px);
  line-height: 1.28; font-weight: 800; letter-spacing: -.025em; color: var(--ink);
}
.section-desc { margin-top: 8px; color: var(--ink2); font-size: 14px; line-height: 1.7; }
.section-link {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 9px 15px; border-radius: 999px;
  background: var(--surface-soft); border: 1px solid var(--line);
  color: var(--ink); font-size: 13px; font-weight: 600;
  white-space: nowrap; transition: background .18s, border-color .18s, color .18s;
}
.section-link:hover { background: var(--lav); border-color: var(--lav-strong); color: var(--lav-ink); }
.section-link .icon { width: 14px; height: 14px; }

/* 快捷配置面板（无缝承接 setup.js 生成 DOM） */
#ydata-setup { min-width: 0; overflow-wrap: anywhere; }
.setup-loading { color: var(--ink3); font-size: 14px; }
.setup-clients {
  display: flex; width: fit-content; max-width: 100%; flex-wrap: wrap; align-items: center;
  gap: 6px; padding: 5px; border-radius: 14px;
  background: var(--surface-soft); border: 1px solid var(--line);
}
.setup-client {
  min-height: 38px; padding: 7px 16px; border: 1px solid transparent; border-radius: 10px;
  font-size: 13.5px; font-weight: 650; color: var(--ink2); background: transparent;
  transition: background .16s, color .16s, box-shadow .16s;
}
.setup-client:hover { color: var(--blue); }
.setup-client[aria-pressed="true"],
.setup-client[aria-selected="true"] {
  color: var(--lav-ink); background: var(--surface);
  border-color: var(--lav-strong);
  box-shadow: 0 6px 14px -8px rgba(75, 57, 198, .28);
}

.setup-box, #ydata-setup [data-provision-box] {
  margin-top: 20px; padding: 24px;
  background: linear-gradient(180deg, #fafbff 0%, #f5f6fe 100%);
  border: 1px solid var(--line); border-radius: var(--radius-md);
}
#ydata-setup h3, #ydata-setup [data-client-name] { margin: 0 0 4px; font-size: 19px; font-weight: 780; letter-spacing: -.02em; color: var(--ink); }
#ydata-setup p { line-height: 1.7; }
.setup-desc, .setup-note, .setup-status { color: var(--ink2); font-size: 13.5px; }
.setup-box p, .setup-actions, .setup-note, .setup-status:not(:empty) { margin-top: 10px; }
.setup-note { font-size: 12px; color: var(--ink3); }
.setup-status:empty { display: none; }
.setup-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.setup-primary, .setup-secondary, .setup-copy {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 40px; padding: 8px 16px; border-radius: 11px;
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); font-size: 13.5px; font-weight: 650; line-height: 1.4;
  transition: background .16s, border-color .16s, color .16s;
}
.setup-primary, .setup-primary.setup-copy {
  background: var(--blue); color: #fff; border-color: var(--blue);
  box-shadow: 0 10px 22px -12px rgba(51, 84, 244, .6);
}
.setup-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.setup-secondary:hover, .setup-copy:hover { border-color: var(--lav-strong); background: var(--lav); color: var(--lav-ink); }
.setup-secondary[data-system] { min-height: 34px; padding: 5px 12px; font-size: 12.5px; }
.setup-secondary[aria-pressed="true"] { color: var(--blue-hover); background: var(--blue-soft); border-color: #b7c8ff; }

#ydata-setup select, #ydata-setup input:not([type="radio"]):not([type="checkbox"]) {
  max-width: 100%; min-height: 40px; padding: 7px 12px;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 10px;
}
#ydata-setup [data-routes] { margin: 14px 0; }
#ydata-setup [data-routes] label {
  display: flex; flex: 1 1 180px; max-width: 360px; min-width: 0;
  flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink2);
}
#ydata-setup [data-routes] select { width: 100%; }
#ydata-setup pre, .setup-command {
  display: block; max-width: 100%; padding: 16px 18px;
  white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word;
  color: #e6ebff; background: var(--ink); border-radius: 14px;
  font-size: 12.5px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
#ydata-setup a:not(.setup-primary):not(.setup-secondary):not(.setup-copy) {
  color: var(--blue); text-decoration: underline; text-underline-offset: 3px;
}
#ydata-setup [hidden] { display: none !important; }

.setup-import {
  margin-top: 16px; padding: 0 18px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--surface);
}
.setup-import summary {
  min-height: 46px; display: list-item; padding: 11px 0;
  font-size: 13.5px; font-weight: 650; color: var(--ink2); cursor: pointer;
}
.setup-import[open] { padding-bottom: 18px; }
.setup-import label {
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  min-width: 0; font-size: 12.5px; color: var(--ink2);
}
.setup-import input, .setup-import select { width: min(27em, 100%); }
.setup-import .setup-actions { align-items: flex-end; }
.setup-import .setup-actions label { flex: 1 1 195px; }
.setup-import p { font-size: 12.5px; color: var(--ink2); }

/* 三步指南 */
.guide-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px; list-style: none; padding: 0;
}
.guide-grid li {
  display: flex; flex-direction: column; padding: 24px;
  border-radius: var(--radius-md); background: var(--surface-soft);
  border: 1px solid var(--line);
}
.step-num {
  display: inline-grid; place-items: center; width: 34px; height: 34px;
  border-radius: 10px; background: var(--lav); color: var(--lav-ink);
  font: 800 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.guide-grid h3 { margin: 14px 0 8px; font-size: 17px; font-weight: 760; }
.guide-grid p { color: var(--ink2); font-size: 13.5px; line-height: 1.75; }
.guide-clients { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.guide-clients a {
  padding: 5px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong);
  color: var(--ink); font-size: 12px; font-weight: 600;
  transition: background .16s, border-color .16s, color .16s;
}
.guide-clients a:hover { background: var(--blue-soft); border-color: #b7c8ff; color: var(--blue-hover); }
.step-link {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: auto; padding-top: 16px;
  color: var(--blue); font-size: 13px; font-weight: 650;
}
.step-link .icon { width: 14px; height: 14px; }
.step-link:hover { color: var(--blue-hover); }

/* 创作矩阵承接板块 */
.creative-section { margin-top: 56px; }
.creative-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.creative-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 22px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.creative-card:hover {
  transform: translateY(-4px); border-color: var(--lav-strong);
  box-shadow: var(--shadow-lg);
}
.creative-thumb {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--surface-soft);
}
.creative-thumb img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
  transition: transform .35s ease;
}
.creative-card:hover .creative-thumb img { transform: scale(1.04); }
.creative-pill {
  position: absolute; left: 14px; top: 14px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--blue-hover);
  font-size: 10.5px; font-weight: 750; letter-spacing: .08em;
  box-shadow: 0 6px 14px -8px rgba(21, 22, 51, .35);
}
.creative-pill.lav { color: var(--lav-ink); background: rgba(236, 232, 255, .94); }
.creative-pill.warm { color: var(--yellow-ink); background: rgba(255, 241, 199, .95); }
.creative-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.creative-body h3 { font-size: 19px; font-weight: 780; color: var(--ink); }
.creative-body p { margin-top: 8px; color: var(--ink2); font-size: 13.5px; line-height: 1.72; }
.card-go {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: auto; padding-top: 16px;
  color: var(--blue); font-size: 13px; font-weight: 650;
}
.card-go .icon { width: 14px; height: 14px; }

/* 模型价格与 API 端点 */
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.resource-grid > a {
  display: flex; align-items: center; gap: 14px; padding: 20px;
  border-radius: var(--radius-md); background: var(--surface-soft);
  border: 1px solid var(--line); transition: border-color .18s, background .18s, transform .18s;
}
.resource-grid > a:hover { border-color: var(--lav-strong); background: #f2efff; transform: translateY(-2px); }
.resource-icon {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px;
}
.resource-icon.blue { background: var(--blue-soft); color: var(--blue); }
.resource-icon.lav { background: var(--lav); color: var(--lav-ink); }
.resource-icon.warm { background: var(--yellow-soft); color: var(--yellow-ink); }
.resource-grid h3 { font-size: 15px; font-weight: 740; color: var(--ink); }
.resource-grid p { margin-top: 3px; color: var(--ink2); font-size: 12.5px; line-height: 1.5; }
.corner { width: 15px; height: 15px; margin-left: auto; color: var(--ink3); }

.developer-details {
  margin-top: 20px; border-top: 1px solid var(--line);
}
.developer-details > summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 4px 0; cursor: pointer; list-style: none;
  color: var(--ink2); font-size: 13px; font-weight: 600;
  transition: color .16s;
}
.developer-details > summary::-webkit-details-marker { display: none; }
.developer-details > summary:hover { color: var(--blue); }
.developer-details > summary .icon { width: 15px; height: 15px; transition: transform .2s; }
.developer-details[open] > summary .icon { transform: rotate(180deg); }

.endpoint {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px;
  margin-top: 16px; padding: 18px 20px;
  border-radius: 16px; background: var(--ink); color: #fff;
}
.endpoint-meta .eyebrow { display: block; color: #b9c3ff; font-size: 10px; }
.endpoint-meta strong { font-size: 14px; font-weight: 700; }
.endpoint code {
  margin-left: auto; padding: 6px 12px; border-radius: 9px;
  background: rgba(255, 255, 255, .10); color: #eef1ff;
  font: 500 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  user-select: all; overflow-wrap: anywhere;
}
.endpoint button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border: 0; border-radius: 10px;
  background: var(--blue); color: #fff; font-size: 13px; font-weight: 650;
  transition: background .16s;
}
.endpoint button:hover { background: var(--blue-hover); }
.endpoint button .icon { width: 14px; height: 14px; }

/* 页脚与开源版权署名 */
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  margin-top: 64px; padding: 32px 0 24px;
  border-top: 1px solid var(--line);
}
.footer-brand p { margin-top: 10px; color: var(--ink2); font-size: 13px; }
.footer-inner nav { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.footer-inner nav a {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--ink2); font-size: 13px; font-weight: 550;
}
.footer-inner nav a:hover { color: var(--blue); }
.footer-inner nav .icon { width: 13px; height: 13px; }
.footer-legal {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
  padding: 16px 0 38px; border-top: 1px solid rgba(228, 231, 246, .75);
  color: var(--ink2); font-size: 12.5px; line-height: 1.6;
}
.footer-legal a {
  color: var(--blue-hover); font-weight: 650;
  text-decoration: underline; text-decoration-color: rgba(36, 67, 217, .35);
  text-underline-offset: 3px;
}
.footer-legal a:hover { color: var(--blue); text-decoration-color: var(--blue); }
.legal-sep { color: var(--ink3); }

/* 响应式适配：1024px 窄桌面 */
@media (max-width: 1120px) {
  .nav-inner, .wrap { padding-inline: 24px; }
  .topnav { gap: 2px; }
  .topnav a { padding: 8px 11px; font-size: 13px; }
  .header-plain { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(370px, .92fr); gap: 28px; min-height: 600px; }
  .hero h1 { font-size: clamp(38px, 4.3vw, 52px); }
  .stage-card { padding: 22px; }
  .chip-mr { right: -6px; top: 59%; padding: 8px 13px; font-size: 11.5px; }
}

/* 响应式适配：平板及以下 */
@media (max-width: 900px) {
  html { scroll-padding-top: 80px; }
  .nav-inner { height: 68px; padding-inline: 20px; gap: 12px; }
  .topnav, .header-plain { display: none; }
  .header-tools { margin-left: auto; gap: 10px; }
  .menu-toggle, .mobile-menu .menu-toggle { display: grid; }
  .mobile-menu:popover-open {
    display: block; position: fixed; inset: 10px 10px auto auto; margin: 0;
    width: min(360px, calc(100vw - 20px)); max-height: calc(100dvh - 20px);
    padding: 18px; overflow: auto;
  }
  .mobile-menu::backdrop { background: rgba(21, 22, 51, .34); backdrop-filter: blur(4px); }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
  .drawer-search {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 6px 6px 12px; margin-bottom: 14px;
    border-radius: 12px; background: var(--surface-soft); border: 1px solid var(--line);
  }
  .drawer-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 13.5px; color: var(--ink); }
  .drawer-search button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 9px; background: var(--blue); color: #fff; }
  .drawer-search .icon { width: 15px; height: 15px; }
  .mobile-menu nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .mobile-menu nav a {
    display: flex; align-items: center; gap: 8px; padding: 11px 12px;
    border-radius: 12px; background: var(--surface-soft); border: 1px solid var(--line);
    color: var(--ink); font-size: 13px; font-weight: 600;
  }
  .mobile-menu nav a[aria-current] { background: var(--lav); border-color: var(--lav-strong); color: var(--lav-ink); }
  .mobile-menu nav .icon { width: 16px; height: 16px; }

  .wrap { padding-inline: 20px; }
  .hero { grid-template-columns: 1fr; gap: 36px; min-height: 0; padding: 32px 0 44px; }
  .hero h1 { max-width: none; }
  .hero-stage { min-height: 430px; padding: 34px 12px; }
  .guide-grid, .creative-grid, .resource-grid { grid-template-columns: 1fr; }
  .surface-card { padding: 26px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* 响应式适配：手机 390px 精调（0 遮挡、0 折行、0 溢出） */
@media (max-width: 600px) {
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 16px; }
  .account { min-height: 38px; padding: 7px 14px; font-size: 13px; }
  .account .icon { display: none; }
  .hero { padding-top: 22px; gap: 28px; }
  .hero h1 { font-size: clamp(34px, 9.5vw, 44px); line-height: 1.18; }
  .hero-intro { font-size: 14.5px; line-height: 1.75; }
  .hero-search { padding: 6px 6px 6px 14px; border-radius: 16px; }
  .hero-search input { font-size: 14px; }
  .hero-search button { padding: 10px 14px; font-size: 13px; }
  .hero-actions { gap: 10px; }
  .btn-primary, .btn-outline { flex: 1 1 auto; font-size: 14px; padding: 11px 16px; }
  .hero-proof { font-size: 12.5px; gap: 8px 14px; }

  /* 手机端浮标改为整齐的 2 列网格，彻底避免遮挡主卡正文 */
  .hero-stage {
    min-height: 0; padding: 0;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  }
  .spark { display: none; }
  .stage-card { order: -1; grid-column: 1 / -1; width: 100%; padding: 20px; border-radius: 22px; }
  .stage-head h2 { font-size: 19px; }
  .float-chip {
    position: static; transform: none !important;
    white-space: normal; justify-content: flex-start;
    padding: 10px 12px; border-radius: 14px; font-size: 12px;
    box-shadow: var(--shadow-sm);
  }
  .chip-tr { grid-column: 1 / -1; padding: 11px 13px; }
  .chip-mr { border-radius: 14px; }

  .surface-card { margin-top: 22px; padding: 20px; border-radius: 20px; }
  .setup-clients { width: 100%; }
  .setup-client { flex: 1 1 auto; padding: 7px 10px; font-size: 12.5px; text-align: center; }
  .setup-box, #ydata-setup [data-provision-box] { padding: 16px; }
  .endpoint { padding: 16px; }
  .endpoint code { margin-left: 0; width: 100%; font-size: 12px; }
  .endpoint button { width: 100%; justify-content: center; }
}

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