/* Growth 能力目录 · 减压液态玻璃版（v73-relief r2）
 * 保留外太空地球云海 + 真正液态玻璃折射与高光 + 机器人贴合面板升起 +
 * Paper Mesh Gradient（VI蓝白）+ 无锁高/无内滚动 + 紧凑响应式 + 真瀑布流翻页（9篇/页）
 */

:root {
  --tb-classic-blue: #0F4C81;
  --tb-light-blue: #307FE2;
  --tb-pale-blue: #EAF1FA;
  --tb-fill: #EDF0F3;
  --tb-fill-2: #F5F7F9;
  --tb-ink: #173047;
  --tb-body: #344E66;
  --tb-muted: #5C7083;
  --tb-subtle: #788B9D;
  --tb-line: rgba(15, 76, 129, 0.11);
  --tb-line-strong: rgba(15, 76, 129, 0.22);
}

/* 1. 恢复外太空背景图，仅做轻提亮柔化（保留太空云海层次，缓和右上暗角） */
html, body {
  overflow-x: hidden;
  background-color: #DCE7F4;
}

:root[data-scene-study="orbit"] body,
body {
  background-color: #DCE7F4 !important;
  background-image:
    linear-gradient(180deg, rgba(244, 249, 255, 0.26) 0%, rgba(235, 243, 252, 0.14) 44%, rgba(240, 246, 253, 0.24) 100%),
    radial-gradient(ellipse 68% 62% at 94% 0%, rgba(28, 42, 66, 0.42), rgba(74, 96, 128, 0.14) 44%, transparent 78%),
    url("../v51-assets/hero-space-orbit.jpg") !important;
  background-position: center top, center top, center 46% !important;
  background-size: cover, cover, cover !important;
  background-attachment: fixed, fixed, fixed !important;
  background-repeat: no-repeat !important;
  color: var(--tb-ink);
}

.page {
  position: relative;
  z-index: 1;
  width: min(1140px, calc(100% - 48px));
  padding-bottom: 56px;
}

/* 2. 顶部导航栏：通透液态玻璃 + 全断点零挤压 */
:root .top.glass.liquid {
  margin-top: 16px;
  height: 62px;
  padding: 0 22px;
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0.28) 52%, rgba(255, 255, 255, 0.40)) !important;
  -webkit-backdrop-filter: blur(14px) saturate(155%) brightness(1.05) !important;
  backdrop-filter: blur(14px) saturate(155%) brightness(1.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 1px 0 0 rgba(255, 255, 255, 0.45),
    0 8px 24px rgba(15, 42, 74, 0.08) !important;
  gap: 12px;
}

.top .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 1;
}

.top .brand img {
  width: 128px;
  height: auto;
  flex-shrink: 0;
}

.top .brand span {
  display: inline-block !important;
  border-left: 1px solid rgba(15, 76, 129, 0.22);
  padding-left: 12px;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--tb-body);
  white-space: nowrap;
}

.top .access-nav {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.top .user-entry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.68);
  font-size: 13px;
  color: var(--tb-ink);
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.top .user-entry svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.top .user-entry:hover {
  background: rgba(255, 255, 255, 0.82);
  color: var(--tb-classic-blue);
}

/* 顶栏保持唯一深蓝实底主 CTA */
:root .top .growth-cta.trial-action {
  min-height: 38px !important;
  height: 38px !important;
  padding: 4px 6px 4px 15px !important;
  background: var(--tb-classic-blue) !important;
  border: 1px solid var(--tb-classic-blue) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(15, 76, 129, 0.22) !important;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

:root .top .growth-cta.trial-action:hover {
  background: #175C96 !important;
}

:root .top .growth-cta .cta-arrow {
  inline-size: 24px;
  block-size: 24px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--tb-classic-blue);
}

/* 3. Hero：外太空星点 + Paper VI Mesh Gradient + 机器人严丝合缝贴合玻璃框 */
.hero {
  position: relative;
  height: 382px !important;
  margin-top: 2px;
  overflow: visible !important;
  isolation: isolate;
}

/* 保留原外太空星点，仅关掉旧暗影色块让 Paper Mesh 接管氛围 */
.hero-atmosphere {
  display: block !important;
}
.hero-atmosphere::before,
.hero-atmosphere::after,
.hero-shade {
  display: none !important;
}

.hero-mesh-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-mesh-canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.92;
}

.hero-mesh-stage.hero-mesh-fallback {
  background:
    radial-gradient(ellipse 65% 55% at 50% 24%, rgba(48, 127, 226, 0.30), transparent 72%),
    radial-gradient(ellipse 52% 48% at 24% 38%, rgba(15, 76, 129, 0.20), transparent 72%),
    radial-gradient(ellipse 58% 52% at 78% 66%, rgba(103, 168, 242, 0.26), transparent 74%);
  filter: blur(28px);
}

.hero h1 {
  position: absolute !important;
  inset: 142px 46px auto !important;
  z-index: 1;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: clamp(72px, 8.2vw, 114px) !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.055em !important;
  margin: 0 !important;
  background-image:
    linear-gradient(104deg, transparent 43%, rgba(255, 255, 255, 0.45) 49%, rgba(234, 241, 250, 0.72) 51%, rgba(255, 255, 255, 0.25) 56%, transparent 60%),
    linear-gradient(102deg, #0C3F6E 0%, #0F4C81 36%, #1D61AD 68%, #2E7BE0 100%) !important;
  filter: drop-shadow(0 2px 6px rgba(15, 42, 74, 0.16)) !important;
}

/* 关键：robot-root 严格贴着 Hero 底部裁切，且全断点确保 margin-top + robot-width > hero-height + 55px，零间隙 */
.robot-root {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  overflow: hidden !important;
  overflow: clip !important;
  pointer-events: none;
}

.hero .agent {
  --robot-width: 460px !important;
  width: var(--robot-width) !important;
  margin: 10px auto 0 !important;
}

.hero .agent img {
  width: var(--robot-width) !important;
  height: var(--robot-width) !important;
  object-fit: contain;
}

.hero .agent .motion-subject {
  filter: drop-shadow(0 12px 22px rgba(15, 42, 74, 0.18)) !important;
}

/* 4. 恢复真·液态玻璃（低白度透明 + 锐利高光边 + lens.js 15px 边缘折射），同时去锁高去内滚动 */
:root .capability-section.liquid,
:root .inspiration.liquid,
:root[data-scene-study="orbit"][data-theme="light"] :is(.capability-section.liquid, .inspiration) {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  border-radius: 26px !important;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.14) 44%, rgba(255, 255, 255, 0.24)) !important;
  -webkit-backdrop-filter: blur(7.5px) saturate(1.55) brightness(1.06) !important;
  backdrop-filter: var(--lg53b-lens, ) blur(7.5px) saturate(1.55) brightness(1.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.52) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 1px 0 0 rgba(255, 255, 255, 0.52),
    inset 0 -1px 0 rgba(255, 255, 255, 0.30),
    inset -1px 0 0 rgba(255, 255, 255, 0.24),
    inset 0 0 24px rgba(255, 255, 255, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.34),
    0 14px 36px rgba(15, 42, 74, 0.12) !important;
}

/* 玻璃面板顶沿的柔和接触光，托住机器人底座 */
:root .capability-section::before {
  opacity: 0.9;
  z-index: 4;
}

/* 内部内容区加一层轻透冷白柔雾，既透出外太空与液态玻璃折射，又让文字清晰无压迫 */
:root .capability-section > #features {
  flex: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  margin: 0 !important;
  padding: 26px 32px 30px !important;
  background: linear-gradient(180deg, rgba(250, 253, 255, 0.62) 0%, rgba(246, 250, 255, 0.52) 100%) !important;
  border-radius: 0 0 25px 25px;
}

:root .inspiration.liquid {
  margin-top: 32px !important;
  padding: 28px 32px 30px !important;
}

.inspiration-content-scroll {
  overflow: visible !important;
  padding-right: 0 !important;
}

/* 5. Tab 导航栏：透明玻璃托盘 + 「试用与接入」轻胶囊（不与顶栏主 CTA 对打） */
:root .capability-section > .workspace-switch {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between;
  gap: 14px !important;
  height: auto !important;
  min-height: 66px !important;
  padding: 10px 20px 0 !important;
  background: rgba(255, 255, 255, 0.18) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.56) !important;
  border-radius: 25px 25px 0 0 !important;
}

:root .capability-section .categories-group {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  align-items: end;
  flex: 1 1 auto;
  min-width: 0;
  gap: 4px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

:root .capability-section .categories-group .workspace-tab {
  height: 54px;
  min-height: 54px;
  margin-bottom: -1px;
  padding: 6px 6px 8px !important;
  border-radius: 12px 12px 0 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--tb-body);
  gap: 4px;
  transition: color 0.16s ease, background-color 0.16s ease;
}

:root .capability-section .categories-group .workspace-tab span {
  font-size: 12px;
  font-weight: 500;
  color: inherit;
  white-space: nowrap;
}

:root .capability-section .categories-group .workspace-tab svg {
  width: 18px;
  height: 18px;
}

:root .capability-section .categories-group .workspace-tab:hover:not([aria-selected="true"]) {
  background: rgba(255, 255, 255, 0.34);
  color: var(--tb-classic-blue);
}

:root .capability-section .categories-group .workspace-tab[aria-selected="true"] {
  height: 56px;
  min-height: 56px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(250, 253, 255, 0.64)) !important;
  border-color: rgba(255, 255, 255, 0.72) !important;
  border-bottom-color: rgba(250, 253, 255, 0.65) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 -3px 12px rgba(15, 76, 129, 0.06) !important;
  color: var(--tb-classic-blue) !important;
}

:root .capability-section .categories-group .workspace-tab[aria-selected="true"] span {
  font-weight: 600;
}

:root .capability-section .actions-group {
  align-self: center;
  flex: 0 0 auto !important;
  height: auto !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: 0 !important;
}

:root .capability-section .actions-group .workspace-tab.growth-cta.trial-action {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: fit-content !important;
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 11px 0 14px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.62) !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  color: var(--tb-classic-blue) !important;
  box-shadow: inset 0 1px 0 #fff, 0 2px 8px rgba(15, 42, 74, 0.06) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

:root .capability-section .actions-group .growth-cta > span:first-child {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: inherit !important;
}

:root .capability-section .actions-group .growth-cta .cta-arrow {
  inline-size: 20px;
  block-size: 20px;
  background: var(--tb-pale-blue);
  color: var(--tb-classic-blue);
}

:root .capability-section .actions-group .growth-cta .cta-arrow svg {
  width: 12px;
  height: 12px;
}

:root .capability-section .actions-group .workspace-tab.growth-cta.trial-action:hover {
  background: rgba(255, 255, 255, 0.90) !important;
  border-color: rgba(48, 127, 226, 0.42) !important;
}

:root .capability-section .actions-group .workspace-tab.growth-cta.trial-action[aria-selected="true"] {
  background: var(--tb-classic-blue) !important;
  border-color: var(--tb-classic-blue) !important;
  color: #fff !important;
}

:root .capability-section .actions-group .workspace-tab.growth-cta.trial-action[aria-selected="true"] .cta-arrow {
  background: rgba(255, 255, 255, 0.95);
  color: var(--tb-classic-blue);
}

/* 6. 目录标题栏：标题与「查看使用示例 ↓」始终紧凑同行，不拉大空洞 */
.directory-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.directory-title {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-start !important;
  gap: 12px;
  flex-wrap: wrap;
}

.workspace-title {
  font-size: 21px !important;
  font-weight: 600 !important;
  color: var(--tb-ink) !important;
  letter-spacing: -0.02em;
}

.examples-jump {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 0 !important;
  border-radius: 8px;
  background: transparent !important;
  color: var(--tb-light-blue) !important;
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.examples-jump:hover {
  background: rgba(255, 255, 255, 0.65) !important;
  color: var(--tb-classic-blue) !important;
}

:root .catalog-search {
  width: 248px;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.66) !important;
  border: 1px solid rgba(15, 76, 129, 0.13) !important;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

:root .catalog-search:focus-within {
  background: #ffffff !important;
  border-color: var(--tb-light-blue) !important;
  box-shadow: 0 0 0 3px rgba(48, 127, 226, 0.14);
}

:root .catalog-search input {
  font-size: 13px;
  color: var(--tb-ink);
}

:root .catalog-search input::placeholder {
  color: var(--tb-subtle);
}

:root .catalog-search svg {
  width: 15px;
  height: 15px;
  stroke: var(--tb-subtle);
}

/* 7. 接口列表：清晰梯度 + 轻量悬停反馈 */
:root .catalog-columns {
  display: grid;
  grid-template-columns: minmax(170px, 1.08fr) minmax(200px, 1.25fr) 126px 96px;
  gap: 20px;
  padding: 0 0 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--tb-muted) !important;
  border-bottom: 1px solid var(--tb-line) !important;
}

:root .catalog-columns > span:nth-child(3) {
  text-align: right;
}

:root .api-catalog {
  margin: 0;
  padding: 0;
  list-style: none;
}

:root .api-catalog .catalog-card {
  display: grid;
  grid-template-columns: minmax(170px, 1.08fr) minmax(200px, 1.25fr) 126px 96px;
  gap: 20px;
  padding: 18px 10px;
  margin: 0 -10px;
  border: 0 !important;
  border-bottom: 1px solid var(--tb-line) !important;
  border-radius: 12px;
  background: transparent !important;
  box-shadow: none !important;
  align-items: center;
  transition: background-color 0.16s ease;
}

:root .api-catalog .catalog-card:hover {
  background: rgba(255, 255, 255, 0.44) !important;
}

:root .api-catalog .catalog-card:last-child {
  border-bottom: 0 !important;
}

:root .catalog-detail h3 {
  font-size: 15.5px !important;
  font-weight: 600 !important;
  color: var(--tb-ink) !important;
  margin: 0 0 4px !important;
  line-height: 1.45;
}

:root .catalog-detail .catalog-note {
  font-size: 12.5px !important;
  color: var(--tb-muted) !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

:root .catalog-result p {
  font-size: 13px !important;
  color: var(--tb-body) !important;
  line-height: 1.65;
  margin: 0;
}

:root .catalog-result p + p {
  margin-top: 4px;
}

:root .catalog-result p > span {
  display: inline-block;
  min-width: 30px;
  font-size: 11.5px !important;
  color: var(--tb-subtle) !important;
  margin-right: 6px;
}

:root .api-catalog .catalog-price {
  text-align: right !important;
  justify-self: end !important;
}

:root .catalog-price strong {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--tb-classic-blue) !important;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

:root .catalog-price strong.price-tbd {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--tb-subtle) !important;
}

:root .api-catalog .catalog-card .catalog-prompt.prompt-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-height: 34px;
  padding: 0 10px;
  border: 0 !important;
  border-radius: 999px;
  background: transparent !important;
  color: var(--tb-classic-blue) !important;
  font-size: 13px;
  font-weight: 500 !important;
  box-shadow: none !important;
  transition: background-color 0.16s ease, color 0.16s ease;
}

:root .api-catalog .catalog-card .catalog-prompt.prompt-link:hover {
  background: rgba(255, 255, 255, 0.78) !important;
  color: var(--tb-light-blue) !important;
  box-shadow: none !important;
}

:root .coming-soon {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--tb-muted);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--tb-line);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 6px;
  vertical-align: 1px;
}

.catalog-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 18px auto 0;
  padding: 8px 22px;
  border-radius: 999px;
  border: 1px solid rgba(15, 76, 129, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: var(--tb-classic-blue);
  font-size: 13px;
  font-weight: 500;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.14s ease;
}

.catalog-expand-wrap {
  display: flex;
  justify-content: center;
}

.catalog-expand:hover {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(48, 127, 226, 0.42);
}

.catalog-summary-line {
  font-size: 12.5px;
  color: var(--tb-muted);
  margin: -8px 0 14px;
}

.cat-pill-mini {
  display: inline-flex;
  align-items: center;
  margin-left: 7px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(234, 241, 250, 0.85);
  color: var(--tb-classic-blue);
  font-size: 11px;
  font-weight: 500;
  vertical-align: 1px;
  white-space: nowrap;
}

.catalog-group-head {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 2px 8px;
  margin-top: 6px;
  border-bottom: 1px solid rgba(15, 76, 129, 0.14);
}

.catalog-group-head:first-child {
  padding-top: 6px;
  margin-top: 0;
}

.catalog-group-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tb-classic-blue);
}

.catalog-group-title svg {
  width: 15px;
  height: 15px;
  opacity: 0.85;
}

.catalog-group-count {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--tb-subtle);
}

.catalog-group-jump {
  font-size: 12px;
  color: var(--tb-light-blue);
  padding: 2px 6px;
  border-radius: 6px;
}

.catalog-group-jump:hover {
  background: rgba(48, 127, 226, 0.09);
  color: var(--tb-classic-blue);
}

/* 8. 「灵感与动态」：真瀑布流（自然高低错落，无 2 行硬裁切）+ 每页 9 篇翻页 + 轻透玻璃卡 */
.inspiration .carousel-heading {
  margin-bottom: 14px;
}

.inspiration .carousel-heading .kicker {
  font-size: 11px;
  letter-spacing: 1.8px;
  color: var(--tb-body);
  opacity: 0.78;
  margin-bottom: 4px;
}

.inspiration #inspiration-title {
  font-size: 21px !important;
  font-weight: 600;
  color: var(--tb-ink) !important;
}

.inspiration .inspiration-filters {
  margin: 0 auto 14px !important;
  background: rgba(255, 255, 255, 0.42) !important;
  border: 1px solid rgba(255, 255, 255, 0.68) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

.inspiration .inspiration-filter {
  color: var(--tb-body) !important;
  border-color: transparent !important;
  background: transparent !important;
}

.inspiration .inspiration-filter[aria-pressed="true"] {
  color: var(--tb-classic-blue) !important;
  font-weight: 600;
}

.inspiration-results {
  font-size: 12.5px !important;
  color: var(--tb-body) !important;
  opacity: 0.85;
  margin-bottom: 16px !important;
}

/* 真瀑布流：3列 -> 2列 -> 1列 */
.inspiration .masonry {
  display: block !important;
  column-count: 3 !important;
  column-gap: 16px !important;
}

.inspiration .masonry .news-card {
  display: inline-block !important;
  vertical-align: top;
  width: 100% !important;
  break-inside: avoid !important;
  -webkit-column-break-inside: avoid;
  margin: 0 0 16px !important;
  padding: 0 !important;
  border-radius: 18px !important;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.56)) !important;
  border: 1px solid rgba(255, 255, 255, 0.82) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 6px 18px rgba(15, 42, 74, 0.06) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.inspiration .masonry .news-card[hidden] {
  display: none !important;
}

.inspiration .masonry .news-card:hover {
  transform: translateY(-2px);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.76)) !important;
  border-color: rgba(255, 255, 255, 0.98) !important;
  box-shadow:
    inset 0 1px 0 #fff,
    0 12px 26px rgba(15, 42, 74, 0.10) !important;
}

/* 保留轻盈去厚重原则：隐藏 58px 英文灰顶栏，靠自然内容高度展现瀑布流节奏 */
.inspiration .masonry .news-card .news-art {
  display: none !important;
}

.inspiration .masonry .news-card .news-copy {
  padding: 18px 20px 18px !important;
}

.inspiration .masonry .news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11.5px;
  color: var(--tb-subtle) !important;
  margin-bottom: 9px;
}

.inspiration .masonry .news-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(234, 241, 250, 0.92);
  color: var(--tb-classic-blue) !important;
  font-size: 11px;
  font-weight: 500;
}

.inspiration .masonry .news-copy h3 {
  font-size: 15.5px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  color: var(--tb-ink) !important;
  margin: 0 0 9px !important;
  min-height: 0 !important;
}

/* 取消 2 行硬裁切，让长短摘要自然错落成瀑布流 */
.inspiration .masonry .news-summary {
  display: block !important;
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
  color: var(--tb-body) !important;
  margin: 0 0 14px !important;
}

.inspiration .masonry .news-source {
  font-size: 12px !important;
  color: var(--tb-subtle) !important;
  margin: 0 !important;
}

.inspiration-pagination {
  border-top: 1px solid rgba(255, 255, 255, 0.56) !important;
  margin-top: 10px !important;
  padding-top: 18px !important;
}

.inspiration-pagination button {
  background: rgba(255, 255, 255, 0.58) !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  color: var(--tb-ink) !important;
}

.inspiration-pagination button[aria-current="page"] {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: var(--tb-light-blue) !important;
  color: var(--tb-classic-blue) !important;
}

/* 9. 交互式「接口说明」弹窗（紧凑一屏直达复制按钮） */
dialog#detail-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: min(90vh, 860px);
  padding: 22px 26px 24px;
  border-radius: 22px;
  background: rgba(252, 254, 255, 0.97) !important;
  border: 1px solid rgba(15, 76, 129, 0.14) !important;
  box-shadow: 0 24px 64px rgba(15, 42, 74, 0.20) !important;
  color: var(--tb-ink);
}

dialog#detail-dialog::backdrop {
  background: rgba(15, 34, 56, 0.30);
  backdrop-filter: blur(6px);
}

.dialog-head-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

dialog#detail-dialog h2#dialog-title {
  margin: 0 0 10px !important;
  font-size: 20px !important;
}

.api-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 8px;
}

.api-facts > div {
  background: var(--tb-fill-2);
  border: 1px solid var(--tb-line);
  border-radius: 10px;
  padding: 8px 11px;
}

.api-facts span {
  display: block;
  font-size: 11px !important;
  color: var(--tb-subtle) !important;
}

.api-facts p {
  font-size: 12.5px !important;
  color: var(--tb-ink) !important;
  margin-top: 2px !important;
  line-height: 1.45;
}

.api-boundary {
  font-size: 12px !important;
  color: var(--tb-muted) !important;
  margin: 0 0 12px !important;
}

.api-soon-banner {
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--tb-pale-blue);
  color: var(--tb-classic-blue);
  font-size: 12px;
  line-height: 1.55;
}

.prompt-builder-box {
  padding: 14px 16px 16px;
  border-radius: 14px;
  background: #F7FAFD;
  border: 1px solid rgba(15, 76, 129, 0.10);
}

.prompt-builder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.prompt-builder-head .prompt-heading {
  margin: 0 !important;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--tb-ink);
}

.prompt-quick-fill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.prompt-quick-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(48, 127, 226, 0.28);
  background: #fff;
  color: var(--tb-classic-blue);
  font-size: 11.5px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.prompt-quick-btn:hover {
  background: var(--tb-pale-blue);
  border-color: var(--tb-light-blue);
}

.prompt-quick-btn.is-reset {
  border-color: var(--tb-line);
  color: var(--tb-muted);
}

.prompt-builder-sub {
  font-size: 12.5px !important;
  color: var(--tb-muted) !important;
  margin: 0 0 12px !important;
}

.prompt-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 0 0 14px !important;
}

.prompt-input-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  color: var(--tb-body);
  min-width: 0;
}

.prompt-input-field.is-full {
  grid-column: 1 / -1;
}

.prompt-input-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.prompt-input-label em {
  font-style: normal;
  font-size: 11px;
  color: var(--tb-subtle);
}

.prompt-input-field input,
.prompt-input-field select {
  box-sizing: border-box;
  width: 100%;
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 76, 129, 0.18);
  background: #ffffff;
  color: var(--tb-ink);
  font: inherit;
  font-size: 13.5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.prompt-input-field input:focus,
.prompt-input-field select:focus {
  outline: none;
  border-color: var(--tb-light-blue);
  box-shadow: 0 0 0 3px rgba(48, 127, 226, 0.14);
}

.prompt-option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.prompt-option-pill {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 76, 129, 0.16);
  background: #ffffff;
  color: var(--tb-body);
  font-size: 12.5px;
  transition: all 0.15s ease;
}

.prompt-option-pill:hover {
  border-color: var(--tb-light-blue);
  color: var(--tb-classic-blue);
}

.prompt-option-pill[aria-pressed="true"] {
  background: var(--tb-classic-blue);
  border-color: var(--tb-classic-blue);
  color: #ffffff;
  font-weight: 500;
}

.prompt-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 6px;
}

.prompt-preview-heading {
  margin: 0 !important;
  font-size: 12px;
  font-weight: 600;
  color: var(--tb-body);
}

.prompt-live-badge {
  font-size: 11px;
  color: var(--tb-light-blue);
  background: var(--tb-pale-blue);
  padding: 2px 8px;
  border-radius: 999px;
}

#detail-dialog .prompt-preview {
  margin: 0 0 12px !important;
  padding: 12px 14px !important;
  border-radius: 12px;
  background: #ffffff !important;
  border: 1px solid rgba(15, 76, 129, 0.14) !important;
  color: var(--tb-ink) !important;
  font-family: inherit !important;
  font-size: 13.5px !important;
  line-height: 1.8 !important;
  white-space: pre-wrap;
  max-height: 200px;
  overflow: auto;
}

.prompt-token {
  display: inline;
  padding: 1px 6px;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.prompt-token.is-empty {
  background: rgba(15, 76, 129, 0.06);
  border: 1px dashed rgba(15, 76, 129, 0.28);
  color: var(--tb-muted);
}

.prompt-token.is-filled {
  background: var(--tb-pale-blue);
  color: var(--tb-classic-blue);
  font-weight: 600;
}

.prompt-copy-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.public-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--tb-classic-blue) !important;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.16s ease, opacity 0.16s ease;
}

.public-copy:hover:not(:disabled) {
  background: #175C96 !important;
}

.public-copy:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.prompt-copy-row .public-copy-feedback {
  font-size: 12.5px;
  color: var(--tb-muted);
}

.prompt-copy-row .public-copy-feedback.is-ok {
  color: #1B7A54;
  font-weight: 500;
}

/* ============================================================
 * 10. 全断点响应式：零间隙机器人 + 消灭窄屏拉伸空洞 + 瀑布流自适应
 * ============================================================ */

/* 笔记本 / 大平板 (880px ~ 1100px) */
@media (max-width: 1100px) and (min-width: 880px) {
  .page {
    width: calc(100% - 36px);
  }
  .hero {
    height: 336px !important;
  }
  .hero h1 {
    inset: 122px 18px auto !important;
    font-size: clamp(54px, 7.6vw, 86px) !important;
  }
  .hero .agent {
    --robot-width: 410px !important;
    margin-top: 10px !important;
  }
  :root .catalog-columns,
  :root .api-catalog .catalog-card {
    grid-template-columns: minmax(150px, 1fr) minmax(170px, 1.15fr) 110px 88px;
    gap: 14px;
  }
}

/* 瀑布流 2 列断点 */
@media (max-width: 960px) {
  .inspiration .masonry {
    column-count: 2 !important;
  }
}

/* 中窄屏 (541px ~ 879px)：紧凑双列行 + 自然宽胶囊 + 机器人严丝合缝贴合框沿 */
@media (max-width: 879px) {
  .page {
    width: calc(100% - 28px);
  }

  :root .top.glass.liquid {
    height: 56px;
    padding: 0 14px;
    margin-top: 12px;
    border-radius: 16px;
  }
  .top .brand {
    gap: 9px;
  }
  .top .brand img {
    width: 96px;
  }
  .top .brand span {
    padding-left: 9px;
    font-size: 11px;
    letter-spacing: 1.4px;
  }
  .top .access-nav {
    gap: 8px;
  }
  .top .user-entry {
    padding: 5px 9px;
    font-size: 12px;
  }
  :root .top .growth-cta.trial-action {
    height: 34px !important;
    min-height: 34px !important;
    padding: 3px 5px 3px 12px !important;
    font-size: 12px;
  }
  :root .top .growth-cta .cta-arrow {
    inline-size: 22px;
    block-size: 22px;
  }

  /* Hero：318 + 8 = 326 > 258，机器人底部稳稳埋进玻璃框 68px，绝无间隙 */
  .hero {
    height: 258px !important;
  }
  .hero h1 {
    inset: 98px 10px auto !important;
    font-size: clamp(34px, 8.2vw, 60px) !important;
  }
  .hero .agent {
    --robot-width: 318px !important;
    margin-top: 8px !important;
  }

  /* Tab 栏：上排 6 分类完整均分，下排自然宽度胶囊靠右/居中，不拉通栏长条 */
  :root .capability-section > .workspace-switch {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    padding: 10px 12px 10px !important;
    min-height: 0 !important;
  }
  :root .capability-section .categories-group {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    overflow: visible !important;
    gap: 3px !important;
    width: 100%;
  }
  :root .capability-section .categories-group .workspace-tab {
    flex: initial !important;
    width: auto !important;
    min-width: 0 !important;
    height: 50px;
    min-height: 50px;
    margin-bottom: 0 !important;
    padding: 5px 2px !important;
    border-radius: 11px !important;
  }
  :root .capability-section .categories-group .workspace-tab[aria-selected="true"] {
    height: 50px;
    min-height: 50px;
    border-bottom-color: rgba(255, 255, 255, 0.72) !important;
  }
  :root .capability-section .categories-group .workspace-tab span {
    font-size: 11.5px;
  }
  :root .capability-section .actions-group {
    width: 100% !important;
    flex: none !important;
    display: flex !important;
    justify-content: flex-end !important;
    margin: 0 !important;
    padding-top: 8px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.45) !important;
  }
  :root .capability-section .actions-group .workspace-tab.growth-cta.trial-action {
    width: fit-content !important;
    min-width: 136px;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 10px 0 14px !important;
  }

  :root .capability-section > #features {
    padding: 20px 20px 24px !important;
  }
  :root .inspiration.liquid {
    padding: 22px 20px 24px !important;
  }

  /* 目录标题栏：标题与「查看使用示例 ↓」左对齐紧挨，搜索框在右侧或自然换行，不拉大空洞 */
  .directory-heading {
    flex-wrap: wrap !important;
    align-items: center;
    gap: 10px 14px;
  }
  .directory-title {
    flex: 1 1 auto !important;
    justify-content: flex-start !important;
    gap: 10px;
  }
  :root .catalog-search {
    flex: 0 1 240px !important;
    width: 240px !important;
    max-width: 100% !important;
    min-width: 200px !important;
  }

  /* 关键修复：541~879px 改为紧凑双列（左：名称/范围/输入返回，右：价格+接口说明紧邻靠右），彻底消灭中间大空白！ */
  :root .catalog-columns {
    display: none !important;
  }
  :root .api-catalog .catalog-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    gap: 6px 20px !important;
    padding: 16px 8px !important;
    margin: 0 -8px !important;
    align-items: start !important;
  }
  :root .catalog-detail {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }
  :root .catalog-result {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }
  :root .api-catalog .catalog-price {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-self: center !important;
    text-align: right !important;
    padding-top: 2px;
  }
  :root .api-catalog .catalog-card .catalog-prompt.prompt-link {
    grid-column: 2 !important;
    grid-row: 2 !important;
    justify-self: end !important;
    align-self: end !important;
    padding: 0 8px !important;
  }

  .api-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace-access .panel-form-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* 手机窄屏 (<= 540px)：3x2 分类 + 搜索满宽 + 单列底栏左右紧贴 + 单列瀑布流 */
@media (max-width: 540px) {
  .page {
    width: calc(100% - 20px);
  }

  :root .top.glass.liquid {
    height: 52px;
    padding: 0 10px;
    gap: 6px;
  }
  .top .brand {
    gap: 6px;
  }
  .top .brand img {
    width: 78px;
  }
  .top .brand span {
    padding-left: 6px;
    font-size: 10px;
    letter-spacing: 1px;
  }
  .top .access-nav {
    gap: 4px;
  }
  .top .user-entry {
    padding: 5px 7px;
    font-size: 11.5px;
    gap: 4px;
  }
  :root .top .growth-cta.trial-action {
    height: 32px !important;
    min-height: 32px !important;
    padding: 2px 4px 2px 10px !important;
    font-size: 11.5px;
    gap: 4px;
  }
  :root .top .growth-cta .cta-arrow {
    inline-size: 20px;
    block-size: 20px;
  }

  /* 手机 Hero：244 + 44 = 288 > 232，埋进面板 56px 零间隙；标题清爽在上 */
  .hero {
    height: 232px !important;
  }
  .hero h1 {
    inset: 14px 0 auto !important;
    justify-content: center !important;
    gap: 8px !important;
    font-size: clamp(27px, 8.5vw, 36px) !important;
    letter-spacing: -0.03em !important;
  }
  .hero .agent {
    --robot-width: 244px !important;
    margin-top: 44px !important;
  }

  /* 手机端：「全部」占顶行整宽，下方 6 个场景分类保持规整 3x2 网格，零单出尾巴 */
  :root .capability-section .categories-group {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  :root .capability-section .categories-group .workspace-tab[data-view="all"] {
    grid-column: 1 / -1 !important;
    height: 40px !important;
    min-height: 40px !important;
    justify-content: center;
  }
  :root .capability-section .categories-group .workspace-tab {
    height: 44px;
    min-height: 44px;
    flex-direction: row !important;
    gap: 5px;
    padding: 0 6px !important;
  }
  :root .capability-section .categories-group .workspace-tab[aria-selected="true"] {
    height: 44px;
    min-height: 44px;
  }
  :root .capability-section .categories-group .workspace-tab svg {
    width: 15px;
    height: 15px;
  }
  :root .capability-section .actions-group {
    justify-content: center !important;
  }

  :root .catalog-search {
    flex: 1 0 100% !important;
    width: 100% !important;
  }

  /* 手机小屏单列卡片：底部左价格、右接口说明（屏宽本身窄，紧致无大空隙） */
  :root .api-catalog .catalog-card {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto auto !important;
    gap: 8px 12px !important;
  }
  :root .catalog-detail {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
  }
  :root .catalog-result {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
  }
  :root .api-catalog .catalog-price {
    grid-column: 1 !important;
    grid-row: 3 !important;
    justify-self: start !important;
    text-align: left !important;
    padding-top: 4px;
  }
  :root .api-catalog .catalog-card .catalog-prompt.prompt-link {
    grid-column: 2 !important;
    grid-row: 3 !important;
    justify-self: end !important;
  }

  .inspiration .masonry {
    column-count: 1 !important;
  }
  .inspiration .inspiration-filters {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .inspiration .inspiration-filters::-webkit-scrollbar {
    display: none;
  }
  .inspiration .inspiration-filter {
    white-space: nowrap;
    flex-shrink: 0;
  }

  dialog#detail-dialog {
    padding: 20px 18px;
  }
  .api-facts,
  .prompt-inputs {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 380px) {
  .top .user-entry-text {
    display: none;
  }
  .top .brand img {
    width: 72px;
  }
}
