/* layouts.css — 详情页版式（仅区块顺序与栅格组合，不重复基础组件样式）
   页面级类名挂在 <body>：.page--layout-p-a ~ .page--layout-p-d、.layout-s-a ~ .layout-s-d */

/* ============ 通用部品 ============ */

/* 锚点导航（P-A / 长页面通用） */
.anchor-nav {
  margin-bottom: 20px;
}

.anchor-nav__toggle {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-1);
}

.anchor-nav__toggle::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--brand-600);
  border-bottom: 1.5px solid var(--brand-600);
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease-out);
}

.anchor-nav__toggle[aria-expanded="true"]::after {
  transform: rotate(-135deg);
}

.anchor-nav__list {
  display: none;
  padding: 8px 0 0;
}

.anchor-nav__list.is-open {
  display: block;
}

.anchor-nav__list a {
  display: block;
  padding: 11px 16px;
  font-size: 14.5px;
  color: var(--text-2);
  border-left: 2px solid var(--line);
}

.anchor-nav__list a:hover,
.anchor-nav__list a.is-active {
  color: var(--brand-600);
  border-left-color: var(--brand-600);
  background: var(--brand-50);
}

@media (min-width: 1200px) {
  .anchor-nav__toggle {
    display: none;
  }

  .anchor-nav__list {
    display: block;
    padding: 0;
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

  .anchor-nav__list a {
    border-left: 2px solid var(--line);
    padding: 9px 14px;
  }
}

/* 图文交替行 */
.feature-row {
  display: grid;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.feature-row:last-child {
  border-bottom: 0;
}

@media (min-width: 768px) {
  .feature-row {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 34px 0;
  }

  .feature-row--flip .feature-row__media,
  .feature-row--flip .feature-row__aside {
    order: -1;
  }
}

.feature-row__aside {
  min-width: 0;
}

.feature-row__no {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--brand-600);
  font-weight: 500;
  margin-bottom: 6px;
}

.feature-row h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.feature-row p {
  font-size: 15px;
  color: var(--text-2);
}

.feature-row__media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-300);
  font-size: 13px;
  overflow: hidden;
}

.feature-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 能力卡片网格（P-B） */
.cap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .cap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .cap-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 大图展示（P-B） */
.showcase {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow-md);
}

.showcase__bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.showcase__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.showcase__body {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-300);
  font-size: 13px;
}

/* 关键词词组（P-B） */
.word-row {
  display: grid;
  gap: 12px;
}

@media (min-width: 768px) {
  .word-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.word-row strong {
  display: block;
  font-size: clamp(20px, 2.6vw, 26px);
  color: var(--brand-700);
  margin-bottom: 6px;
  font-weight: 500;
}

.word-row span {
  font-size: 14.5px;
  color: var(--text-2);
}

/* 场景标签条（P-C） */
.scene-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  margin-bottom: 24px;
  scrollbar-width: thin;
}

.scene-nav a {
  flex: 0 0 auto;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-2);
  white-space: nowrap;
}

.scene-nav a:hover {
  border-color: var(--brand-600);
  color: var(--brand-600);
}

/* 场景区块（P-C） */
.scene {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.scene:last-child {
  border-bottom: 0;
}

.scene__who {
  font-size: 14px;
  color: var(--brand-600);
  margin-bottom: 6px;
}

.scene__grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

@media (min-width: 768px) {
  .scene__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.scene__col {
  padding: 18px;
  background: var(--bg-soft);
  border-radius: var(--radius);
}

.scene__col h4 {
  font-size: 14px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  font-weight: 500;
}

.scene__col li {
  position: relative;
  padding-left: 16px;
  font-size: 14.5px;
  color: var(--text-2);
  margin-bottom: 8px;
  line-height: 1.6;
}

.scene__col li:last-child {
  margin-bottom: 0;
}

.scene__col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-300);
}

/* 链路图（P-D） */
.chain {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0 12px;
  margin-bottom: 24px;
}

.chain__node {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chain__node a {
  display: block;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 14px;
  color: var(--text-1);
  white-space: nowrap;
}

.chain__node a:hover {
  border-color: var(--brand-600);
  color: var(--brand-600);
}

.chain__node:not(:last-child)::after {
  content: "→";
  color: var(--line-strong);
  font-size: 13px;
}

@media (min-width: 1200px) {
  .chain {
    flex-wrap: wrap;
  }
}

/* ============ 版式 P-A · 功能矩阵型 ============ */
.page--layout-p-a .product-body {
  display: grid;
  gap: 28px;
}

@media (min-width: 1200px) {
  .page--layout-p-a .product-body {
    grid-template-columns: 232px 1fr;
    gap: 56px;
    align-items: start;
  }
}

/* ============ 版式 P-B · 视觉概念型 ============ */
.page--layout-p-b .hero-visual {
  padding: 64px 0 56px;
  background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-600) 100%);
  color: #fff;
}

@media (min-width: 1200px) {
  .page--layout-p-b .hero-visual {
    padding: 96px 0 84px;
  }
}

.page--layout-p-b .hero-visual h1,
.page--layout-p-b .hero-visual h2 {
  color: #fff;
}

.page--layout-p-b .hero-visual p {
  color: rgba(255, 255, 255, 0.78);
}

.page--layout-p-b .trust-inline {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

/* 深色首屏内的元素适配 */
.page--layout-p-b .hero-visual .word-row strong {
  color: #fff;
}

.page--layout-p-b .hero-visual .word-row span {
  color: rgba(255, 255, 255, 0.72);
}

.page--layout-p-b .hero-visual .cta-note {
  color: rgba(255, 255, 255, 0.55);
}

.page--layout-p-b .hero-visual .hero__points li {
  color: rgba(255, 255, 255, 0.78);
}

.page--layout-p-b .hero-visual .hero__points li::before {
  background: rgba(143, 178, 230, 0.7);
}

.page--layout-p-b .hero-visual .showcase {
  max-width: 1060px;
  margin: 42px auto 0;
}

.page--layout-p-b .hero-visual .showcase__body {
  aspect-ratio: 16 / 8.5;
}

.page--layout-p-b .hero-visual .page-hero__lead {
  color: rgba(255, 255, 255, 0.78);
}

.page--layout-p-b .hero-visual .eyebrow {
  color: var(--brand-300);
}

/* ============ 版式 S-B · 场景旅程型 ============ */
.journey {
  display: grid;
  gap: 8px;
  counter-reset: stage;
}

@media (min-width: 768px) {
  .journey {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 0;
  }
}

.journey__step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--text-2);
}

@media (min-width: 768px) {
  .journey__step {
    border-radius: 0;
    border-right: 0;
    justify-content: center;
  }

  .journey__step:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  }

  .journey__step:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    border-right: 1px solid var(--line);
  }

  .journey__step.is-active {
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: #fff;
  }
}

.stage {
  display: grid;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.stage:last-child {
  border-bottom: 0;
}

.stage__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.stage__no {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--brand-600);
  font-weight: 500;
}

.stage h3 {
  margin: 0;
  font-size: 20px;
}

.stage__goal {
  font-size: 14.5px;
  color: var(--text-3);
  width: 100%;
}

.stage__grid {
  display: grid;
  gap: 18px;
}

/* 阶段配图（P-D） */
.stage__media {
  margin-top: 22px;
  aspect-ratio: 3 / 1;
}

@media (max-width: 767px) {
  .stage__media {
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 768px) {
  .stage__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

.stage__col {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.stage__col h4 {
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.stage__col li {
  position: relative;
  padding-left: 16px;
  font-size: 14.5px;
  color: var(--text-2);
  margin-bottom: 8px;
  line-height: 1.6;
}

.stage__col li:last-child {
  margin-bottom: 0;
}

.stage__col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-300);
}

/* ============ 版式 S-D · 成效案例型 ============ */
.metric-hero {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

@media (min-width: 768px) {
  .metric-hero {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }
}

.metric-hero__item strong {
  display: block;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--brand-700);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.metric-hero__item span {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--text-2);
}
