/* 共享响应式阅读层：宽屏舒展、正文可读，小屏保留自然重排。 */
:root {
  --content: clamp(1200px, calc(62.5vw + 400px), 1600px);
  --reading-body: clamp(1rem, calc(.95rem + .15vw), 1.125rem);
  --reading-lead: clamp(1.0625rem, calc(1rem + .1vw), 1.125rem);
  --reading-title: clamp(1.25rem, calc(1.1rem + .2vw), 1.375rem);
  --reading-section: clamp(1.5rem, calc(1.125rem + .8vw), 2.125rem);
  --reading-page: clamp(1.75rem, calc(1.25rem + 1.2vw), 2.625rem);
  --reading-label: clamp(.875rem, calc(.8rem + .15vw), 1rem);
  --reading-control: clamp(1rem, calc(.95rem + .1vw), 1.125rem);
  --reading-nav: clamp(.8125rem, calc(.1rem + 1vw), 1.125rem);
}

.data-product { grid-template-columns: 46px minmax(0,1fr) auto; padding: clamp(20px,2vw,30px); gap: 18px; }
.data-product h3,.ai-product h3,.tech-card h3,.solution-card h3,
.change-card h3,.phase h3,.resource-card h3,.architecture-title,.dspm-core h3,
.detail-card h3,.catalog-card h3,.audience-grid .detail-card h3 { font-size: var(--reading-title); line-height: 1.55; }
.data-product p,.ai-product p,.solution-card p,.tech-card p,
.phase > p,.phase li,.resource-card p,.detail-card p,.catalog-card p,
.audience-grid dd,.change-card p,.cta-inner p,.identity-spotlight-inner p,
.detail-context,.context-layout .detail-context { font-size: var(--reading-body); line-height: 1.85; }
.data-product p { margin-top: 10px; }
.data-series { gap: 20px; }
.data-series-title { font-size: var(--reading-title); margin-top: 24px; }
.ai-product p,.tech-card p { color: #b8c9df; }
.section-head > p,.hero-copy,.detail-hero .lead { font-size: var(--reading-lead); line-height: 1.9; }
.section-title,.detail-heading,.catalog-section > h2,.cta-inner h2 { font-size: var(--reading-section); line-height: 1.4; }
.catalog-section > h3 { font-size: var(--reading-title); line-height: 1.55; }
.detail-hero h1 { font-size: var(--reading-page); line-height: 1.4; }
.hero h1 { font-size: clamp(1.375rem,calc(1rem + 1vw),2rem); line-height: 1.35; font-weight: 550; }
.hero h1 > .hero-emphasis { font-size: clamp(1.875rem,calc(1.25rem + 1.65vw),3rem); line-height: 1.3; font-weight: 700; margin-top: 12px; }
.source-chip,.output-chip,.core-capabilities > span,.dspm-core small,
.value-list > span,.solution-points > span,.solution-meta,.hero-notes,
.panel-label,.product-index,.tech-no,.change-tag,
.hero-tags > span,.section-eyebrow,.section-kicker,.eyebrow,.detail-kicker,
.related-link small,.about-evidence a,.breadcrumbs,.detail-card .card-number,
.audience-grid dt,.phase-no,.data-product-no,.resource-type,.chain-state,
.chain-item small,.footer-bottom,.node b,.identity-core small,
.hero-core strong,.visual-node { font-size: var(--reading-label); line-height: 1.65; }
/* 分词包装只控制换行，不能残留旧的小字号（例如标签内部的 11px）。 */
.text-unit,.hero-tags .text-unit { font-size: inherit; }
.chain-item strong,.node { font-size: var(--reading-body); line-height: 1.65; }
.identity-core strong { font-size: var(--reading-title); }
.hero-core { min-width: 132px; }
.hero-core strong { letter-spacing: .06em; }
.source-chip,.output-chip { min-width: 0; }
.flow-group { grid-template-columns: repeat(4,minmax(0,1fr)); }
.core-capabilities > span { padding: 8px 11px; }
.core-capabilities { gap: 10px; }
.dspm-core { padding: clamp(20px,2vw,32px); }
.dspm-flow { height: auto; }
.dspm-visual { min-height: 0; }
.btn,.card-link,.catalog-card .card-link,.section-entry a,.solution-tab,
.detail-actions .btn,.related-link strong { font-size: var(--reading-control); }
.desktop-nav .nav-primary { font-size: var(--reading-nav); }
.desktop-nav .dropdown-link,.dropdown-intro p,
.desktop-nav .mobile-home,.desktop-nav .mobile-contact { font-size: var(--reading-body); }
.dropdown-column h3 { font-size: var(--reading-label); }
.dropdown-intro strong { font-size: var(--reading-title); }
.footer-brand p,.footer-col a,.site-footer .footer-home { font-size: var(--reading-label); line-height: 1.85; }
.footer-col h3 { font-size: var(--reading-control); }
.detail-grid { gap: clamp(22px,2vw,32px); }
.detail-card,.catalog-card { padding: clamp(24px,2.2vw,38px); }

/* 标题按现有语义词组均衡换行，正文保持原有阅读字号与对齐。 */
main h1,main h2,main h3,.hero-emphasis { text-wrap: balance; }
/* 正文优先避免孤立短尾；简介均衡分行。字号、缩进和两端对齐保持原规则。 */
main p,main li,main dd { text-wrap: pretty; }
.section-head > p,.detail-hero .lead { text-wrap: balance; }

/* 标签独占第一行，主标题和右侧说明共享第二行的起点。 */
@media (min-width: 768px) {
  .context-layout {
    grid-template-areas: "label ." "heading body";
    row-gap: 0;
  }
  .context-layout > div:first-child { display: contents; }
  .context-layout > div:first-child > .section-eyebrow { grid-area: label; }
  .context-layout > div:first-child > .detail-heading { grid-area: heading; }
  .context-layout > :nth-child(2) { grid-area: body; }
  .context-layout:is(.company-introduction,.service-philosophy) { row-gap: 0; }
  .data-product { align-items: start; }
  .data-product > .data-product-no,.data-product > .arrow { align-self: center; }
}

/* 长标题需要足够的列宽；小平板直接上下阅读，避免挤成三行。 */
body:is([data-page="ai-overview"],[data-page="data-overview"]) .context-section .context-layout {
  grid-template-columns: minmax(0,1fr) minmax(0,1.5fr);
}
@media (max-width: 1023px) {
  .data-series { grid-template-columns: minmax(0,1fr); }
  body:is([data-page="ai-overview"],[data-page="data-overview"]) .context-section .context-layout {
    grid-template-columns: minmax(0,1fr);
    grid-template-areas: none;
    gap: 22px;
  }
  body:is([data-page="ai-overview"],[data-page="data-overview"]) .context-section .context-layout > div:first-child { display: block; }
  body:is([data-page="ai-overview"],[data-page="data-overview"]) .context-section .context-layout > :nth-child(2) { grid-area: auto; }
}
@media (max-width: 1120px) {
  .context-layout:is(.company-introduction,.service-philosophy) { grid-template-areas: none; row-gap: 24px; }
  .context-layout:is(.company-introduction,.service-philosophy) > div:first-child { display: block; }
  .context-layout:is(.company-introduction,.service-philosophy) > :nth-child(2) { grid-area: auto; }
}

/* 两列能力卡共享图标、标题、正文行高，只为实际换行留空间。 */
@media (min-width: 768px) and (max-width: 1120px) {
  body:is([data-page="ai-overview"],[data-page="iam"]) .capability-grid .detail-card h3 { min-height: 3.1em; }
  @supports (grid-template-rows: subgrid) {
    body:is([data-page="ai-overview"],[data-page="iam"]) .capability-grid .detail-card {
      display: grid;
      grid-row: span 3;
      grid-template-rows: subgrid;
      row-gap: 0;
    }
    body:is([data-page="ai-overview"],[data-page="iam"]) .capability-grid .detail-card h3 { min-height: 0; }
  }
}

/* 首屏只由内层承担留白，避免叠加通用 section 的上下 padding。 */
.hero { padding: 0; }
.hero::after { height: 80px; bottom: -42px; }
.hero-inner { gap: clamp(24px,3vw,56px); }
.hero .eyebrow { margin-bottom: 16px; }
.hero .hero-copy { margin-top: 22px; }
.hero-actions { margin-top: 26px; }
.hero-notes { margin-top: 26px; }
.identity-stage { width: 100%; max-width: 560px; justify-self: center; }
.identity-stage .identity-core { width: 220px; padding: 22px 18px; }
.identity-stage .core-symbol { width: 60px; height: 60px; margin-bottom: 12px; border-radius: 18px; }
.identity-stage .core-symbol svg { width: 34px; height: 34px; }
.identity-stage .node { padding: 10px 12px; }

@media (min-width: 1280px) {
  :root { --header-height: clamp(72px,calc(2vw + 46px),80px); }
  html { scroll-padding-top: calc(var(--header-height) + 16px); }
  .site-header,.header-inner { height: var(--header-height); }
  .header-inner { gap: clamp(14px,1vw,20px); }
  .brand img { width: clamp(164px,11vw,200px); }
  /* 菜单两侧共享剩余空间，避免宽屏留白全部堆在品牌右侧。 */
  .desktop-nav { margin-inline: auto; gap: clamp(10px,calc(2vw - 16px),28px); }
  .desktop-nav .nav-primary { font-weight: 550; color: #d6e2f3; }
  .header-actions .btn { min-height: 44px; }
  .nav-dropdown { top: var(--header-height); max-height: calc(100dvh - var(--header-height)); }
  .nav-scrim { top: var(--header-height); }
  .hero-inner { gap: clamp(32px,3vw,64px); }
  .hero h1 { max-width: 800px; }
  .hero-copy { max-width: 720px; }
  .hero-actions .btn { min-height: 48px; }
  .detail-hero { padding-top: calc(var(--header-height) + 46px); }
  .hero-visual { max-width: 380px; }
}

@media (min-width: 1024px) {
  /* 笔记本只收敛首页标题；正文、导航及手机字号保持不变。 */
  .hero h1 { font-size: clamp(24px,calc(.75rem + 1vw),28px); }
  .hero h1 > .hero-emphasis { font-size: clamp(32px,calc(1rem + 1.5vw),44px); margin-top: 10px; }
  .hero .eyebrow { margin-bottom: 12px; }
  .hero .hero-copy { margin-top: 18px; }
  .hero-actions { margin-top: 22px; }
  .hero-notes { margin-top: 20px; }
}

@media (min-width: 1121px) {
  /* 矮窗口减少首屏占高，内容仍可自然撑开，不裁切或强塞一屏。 */
  .hero { min-height: clamp(560px,72svh,640px); }
  .hero-inner {
    padding-top: calc(var(--header-height,72px) + clamp(24px,3svh,32px));
    padding-bottom: clamp(48px,6svh,64px);
  }
  .identity-stage { min-height: clamp(380px,24vw,425px); }
  .identity-stage > .orbit { width: clamp(300px,21vw,374px); height: clamp(300px,21vw,374px); }
  .identity-stage > .orbit-inner { width: clamp(230px,16vw,290px); height: clamp(230px,16vw,290px); }
  .identity-stage .node-human,.identity-stage .node-agent { top: 0; }
  .identity-stage .node-model,.identity-stage .node-mcp { bottom: 0; }
}

/* 单行品牌标题是已确认的排版例外；窄屏按可用宽度适配。 */
.company-introduction .detail-heading,.service-philosophy .detail-heading {
  font-size: clamp(.9375rem,4.5vw,1.75rem);
}
@media (max-width: 1120px) {
  .hero-visual { min-height: 320px; }
  .hero-visual .visual-node.n2 { top: auto; bottom: 5%; left: 0; }
  .hero-visual .visual-node.n3 { right: 0; }
}
@media (max-width: 1279px) {
  .desktop-nav .nav-primary { font-size: var(--reading-control); }
}
@media (min-width: 1280px) and (max-width: 1439px) {
  .header-actions .btn { font-size: 14px; padding: 0 12px; }
}

@media (max-width: 767px) {
  .hero-inner { padding-top: 104px; padding-bottom: 72px; }
  .hero-copy { margin-top: 20px; }
  .hero-actions { margin-top: 24px; }
  .hero-notes { margin-top: 26px; }
  .solution-tabs { flex-wrap: wrap; overflow: visible; }
  .identity-stage .node-human,.identity-stage .node-agent { top: 0; }
  .identity-stage .node-model,.identity-stage .node-mcp { bottom: 0; }
  .data-series { grid-template-columns: minmax(0,1fr); }
  .flow-group { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .data-product { padding: 20px 16px; gap: 12px; grid-template-columns: 36px minmax(0,1fr); }
  .data-product-no { width: 36px; height: 40px; }
  .data-product > .arrow { display: none; }
  .core-capabilities > span { max-width: 100%; }
}

/* 小窗口提前上下排列，避免 1024px 双栏把主口号挤满。 */
@media (max-width: 1120px) {
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: minmax(0,1fr); padding: 104px 0 56px; gap: 28px; }
  .hero .hero-copy { max-width: 720px; }
  .identity-stage {
    min-height: 180px; max-width: 720px; margin: 0; transform: none;
    grid-template-columns: minmax(0,1fr) 240px minmax(0,1fr);
    grid-template-rows: repeat(2,auto); gap: 14px 20px;
  }
  .identity-stage .identity-core { grid-column: 2; grid-row: 1 / 3; width: 240px; padding: 16px; }
  .identity-stage .node { position: relative; inset: auto; width: 100%; min-width: 0; }
  .identity-stage .node-human { grid-area: 1 / 1; }
  .identity-stage .node-model { grid-area: 2 / 1; }
  .identity-stage .node-agent { grid-area: 1 / 3; }
  .identity-stage .node-mcp { grid-area: 2 / 3; }
  .identity-stage > .orbit { width: 204px; height: 204px; left: 50%; top: 50%; transform: translate(-50%,-50%); animation: none; }
  .identity-stage > .orbit-inner { width: 160px; height: 160px; }
  .identity-stage .flow-line { display: none; }
}

@media (max-width: 767px) {
  .hero h1 > .hero-emphasis { font-size: clamp(1.75rem,calc(1.1rem + 2vw),2.125rem); }
  .identity-stage { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: auto; gap: 10px; max-width: 440px; min-height: 0; }
  .identity-stage .identity-core {
    grid-area: 1 / 1 / 2 / 3; width: 100%; max-width: 300px;
    display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 2px 12px;
    padding: 14px; text-align: left; border-radius: 18px;
  }
  .identity-stage .core-symbol { grid-row: 1 / 3; width: 48px; height: 48px; margin: 0; border-radius: 14px; }
  .identity-stage .identity-core strong { font-size: 20px; }
  .identity-stage .identity-core small { margin-top: 0; }
  .identity-stage .node-human { grid-area: 2 / 1; }
  .identity-stage .node-agent { grid-area: 2 / 2; }
  .identity-stage .node-model { grid-area: 3 / 1; }
  .identity-stage .node-mcp { grid-area: 3 / 2; }
  .identity-stage .node { padding: 8px 12px; }
  .identity-stage > .orbit { width: 230px; height: 230px; }
  .identity-stage > .orbit-inner { width: 180px; height: 180px; }
  /* 独立页面图示保留能力标签，改为横向卡片以提早呈现正文。 */
  .hero-visual { aspect-ratio: auto; min-height: 0; max-width: 380px; grid-template-columns: 108px minmax(0,1fr); gap: 8px 20px; padding: 12px 0; }
  .hero-visual .hero-core { grid-column: 1; grid-row: 1 / 4; min-width: 108px; transform: none; }
  .hero-visual .hero-core > * { transform: none; }
  .hero-visual .visual-node { position: relative; inset: auto; grid-column: 2; justify-self: stretch; padding: 7px 10px; }
  .hero-visual .visual-node.n1 { grid-row: 1; }
  .hero-visual .visual-node.n2 { grid-row: 2; }
  .hero-visual .visual-node.n3 { grid-row: 3; }
  .hero-visual .orbit { inset: 0 auto 0 -12px; width: 132px; }
  .hero-visual .orbit.inner { inset: 16px auto 16px 0; width: 108px; }
  .detail-hero { padding-bottom: 32px; }
}

/* 横屏仍允许正常滚动，压缩留白，让操作入口更早进入视野。 */
@media (max-height: 500px) and (min-width: 568px) {
  .hero { min-height: 0; }
  .hero-inner { padding-top: 88px; padding-bottom: 40px; gap: 24px; }
  .hero .eyebrow { margin-bottom: 10px; }
  .hero h1 { font-size: 22px; }
  .hero h1 > .hero-emphasis { font-size: 30px; margin-top: 6px; }
  .hero .hero-copy { margin-top: 12px; }
  .hero-actions,.hero-notes { margin-top: 16px; }
  .hero-actions { display: flex; }
  .hero-actions .btn { width: auto; min-height: 44px; padding: 0 18px; }
  .detail-hero { padding-top: 88px; padding-bottom: 32px; }
  .detail-hero .breadcrumbs { margin-bottom: 18px; }
}
