/* ============================================================
   专属定制 /custom/ —— 页面专属样式
   所有选择器限定在 .page-custom 作用域内
   ============================================================ */

.page-custom {
  --custom-slash: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-primary) 34%,
    var(--color-accent) 66%,
    transparent 100%
  );
  --custom-soft-panel: linear-gradient(
    150deg,
    var(--color-primary-soft) 0%,
    var(--color-surface-alt) 58%,
    var(--color-surface) 100%
  );
  --custom-deep-panel: linear-gradient(
    155deg,
    var(--color-contrast-surface) 0%,
    color-mix(in srgb, var(--color-accent) 30%, var(--color-contrast-surface)) 100%
  );
}

/* ---------- 面包屑 ---------- */
.page-custom .custom-crumb {
  padding-top: var(--space-6);
  padding-bottom: var(--space-1);
}

/* ---------- 首屏 ---------- */
.page-custom .custom-hero {
  position: relative;
  overflow: hidden;
  background: var(--custom-deep-panel);
  padding-top: var(--space-6);
  padding-bottom: var(--section-y);
}

.page-custom .custom-hero::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -34%;
  width: 62%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--color-accent) 38%, transparent) 0%,
    transparent 68%
  );
  pointer-events: none;
}

.page-custom .custom-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
}

.page-custom .custom-hero__eyebrow {
  color: var(--color-contrast-accent);
}

.page-custom .custom-hero__title {
  margin: var(--space-3) 0 var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--text-display);
  font-weight: var(--weight-heading);
  line-height: 1.04;
  letter-spacing: var(--tracking-heading);
  color: var(--color-contrast-ink);
}

.page-custom .custom-hero__lead {
  max-width: 48ch;
  margin: 0;
  font-size: var(--text-lg);
  line-height: var(--leading-body);
  color: color-mix(in srgb, var(--color-contrast-ink) 84%, transparent);
}

.page-custom .custom-hero__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
}

.page-custom .custom-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 14 / 9;
  object-fit: cover;
}

.page-custom .custom-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 52%,
    color-mix(in srgb, var(--color-contrast-surface) 82%, transparent) 100%
  );
  pointer-events: none;
}

/* 首屏数字 */
.page-custom .custom-hero__stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  margin: 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-contrast-line);
}

.page-custom .custom-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.page-custom .custom-stat dd {
  order: -1;
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-figure);
  font-weight: var(--weight-heading);
  line-height: 1;
  color: var(--color-contrast-ink);
}

.page-custom .custom-stat__label {
  font-size: var(--text-sm);
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: color-mix(in srgb, var(--color-contrast-ink) 66%, transparent);
}

.page-custom .custom-stat__unit {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-contrast-accent);
}

/* ---------- 斜向引导线 ---------- */
.page-custom .custom-slash {
  width: min(620px, 76%);
  height: 2px;
  margin: var(--space-6) auto;
  border-radius: var(--radius-pill);
  background: var(--custom-slash);
  transform: rotate(-1.6deg);
  opacity: 0.72;
}

/* ---------- 业务陈列通用 ---------- */
.page-custom .custom-biz {
  position: relative;
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.page-custom .custom-biz::before {
  content: "";
  position: absolute;
  top: 0;
  left: 4%;
  width: 58%;
  height: 2px;
  background: var(--custom-slash);
  transform: rotate(-1.1deg);
  transform-origin: 0 50%;
  opacity: 0.6;
  pointer-events: none;
}

.page-custom .custom-biz__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  align-items: center;
}

.page-custom .custom-biz__index {
  display: inline-block;
  margin: 0;
  padding-bottom: var(--space-1);
  border-bottom: 2px solid var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-primary);
}

.page-custom .custom-biz__title {
  margin: var(--space-3) 0 var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-heading);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  color: var(--color-ink);
}

.page-custom .custom-biz__lede {
  max-width: 52ch;
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-ink);
}

.page-custom .custom-biz__lede--tight {
  max-width: 44ch;
}

.page-custom .custom-biz__lede a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-custom .custom-biz__facts {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-4) 0;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.page-custom .custom-biz__facts dt {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  color: var(--color-ink-muted);
}

.page-custom .custom-biz__facts dd {
  margin: 0.35em 0 0;
  font-size: var(--text-base);
  line-height: 1.68;
  color: var(--color-ink);
}

.page-custom .custom-biz__sub {
  margin: var(--space-4) 0 var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-heading);
  line-height: var(--leading-heading);
  color: var(--color-ink);
}

.page-custom .custom-biz__list {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-custom .custom-biz__list li {
  position: relative;
  padding-left: var(--space-4);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-ink);
}

.page-custom .custom-biz__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 14px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--custom-slash);
}

.page-custom .custom-biz__start {
  margin: var(--space-4) 0 0;
  padding-left: var(--space-3);
  border-left: 3px solid var(--color-accent);
  font-size: var(--text-base);
  line-height: 1.68;
  color: var(--color-ink);
}

.page-custom .custom-biz__start a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-custom .custom-biz__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
}

.page-custom .custom-biz__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 10 / 7;
  object-fit: cover;
}

.page-custom .custom-biz__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-2);
}

/* 02 渐变面板 */
.page-custom .custom-biz--board .custom-biz__copy {
  padding: var(--space-6) var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--custom-soft-panel);
  box-shadow: var(--shadow-1);
}

/* 03 深色区块 */
.page-custom .custom-biz--migrate {
  --custom-slash: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-contrast-accent) 34%,
    var(--color-primary) 66%,
    transparent 100%
  );
  background: var(--custom-deep-panel);
}

.page-custom .custom-biz--migrate::before {
  background: var(--custom-slash);
}

.page-custom .custom-biz--migrate .custom-biz__index {
  color: var(--color-contrast-accent);
  border-bottom-color: var(--color-contrast-accent);
}

.page-custom .custom-biz--migrate .custom-biz__title,
.page-custom .custom-biz--migrate .custom-biz__sub {
  color: var(--color-contrast-ink);
}

.page-custom .custom-biz--migrate .custom-biz__lede,
.page-custom .custom-biz--migrate .custom-biz__list li,
.page-custom .custom-biz--migrate .custom-biz__facts dd,
.page-custom .custom-biz--migrate .custom-biz__start {
  color: color-mix(in srgb, var(--color-contrast-ink) 88%, transparent);
}

.page-custom .custom-biz--migrate .custom-biz__facts {
  border-color: var(--color-contrast-line);
}

.page-custom .custom-biz--migrate .custom-biz__facts dt {
  color: color-mix(in srgb, var(--color-contrast-ink) 60%, transparent);
}

.page-custom .custom-biz--migrate .custom-biz__start {
  border-left-color: var(--color-contrast-accent);
}

.page-custom .custom-biz--migrate .custom-biz__lede a {
  color: var(--color-contrast-accent);
}

.page-custom .custom-biz__banner {
  max-width: var(--measure);
}

.page-custom .custom-biz__wide {
  position: relative;
  margin: var(--space-6) 0 0;
  overflow: hidden;
  border-radius: 0;
}

.page-custom .custom-biz__wide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* 04 区域色块 */
.page-custom .custom-region__wrap {
  margin-top: var(--space-8);
}

.page-custom .custom-region__wrap .custom-biz__sub {
  margin-top: 0;
}

.page-custom .custom-region__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-custom .custom-region__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-line);
  background: var(--color-surface-deep);
}

.page-custom .custom-region__name {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-heading);
  color: var(--color-ink);
}

.page-custom .custom-region__note {
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--color-ink-muted);
}

/* ---------- 选择路径 ---------- */
.page-custom .custom-choose {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.page-custom .custom-choose__title {
  margin: var(--space-2) 0 var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-heading);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  color: var(--color-ink);
}

.page-custom .custom-choose__lead {
  max-width: 56ch;
  margin: 0;
}

.page-custom .custom-choose__tabs {
  margin-top: var(--space-6);
}

.page-custom .custom-choose__list {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  -webkit-overflow-scrolling: touch;
}

.page-custom .custom-choose__list .tab {
  flex: 0 0 auto;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-line);
  background: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-custom .custom-choose__list .tab:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.page-custom .custom-choose__list .tab[aria-selected="true"],
.page-custom .custom-choose__list .tab.is-active {
  border-color: transparent;
  background: linear-gradient(120deg, var(--color-primary), var(--color-accent));
  color: var(--color-primary-ink);
  box-shadow: var(--shadow-1);
}

.page-custom .custom-choose__list .tab:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.page-custom .custom-choose__panels {
  margin-top: var(--space-4);
}

.page-custom .custom-choose__panel + .custom-choose__panel {
  margin-top: var(--space-4);
}

.page-custom .custom-choose__rec {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-6) var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
  background: var(--custom-soft-panel);
  box-shadow: var(--shadow-1);
}

.page-custom .custom-choose__name {
  margin: var(--space-3) 0 var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-heading);
  line-height: var(--leading-heading);
  color: var(--color-ink);
}

.page-custom .custom-choose__desc {
  max-width: 48ch;
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-ink);
}

.page-custom .custom-choose__meta {
  display: grid;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
}

.page-custom .custom-choose__meta div {
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-line);
}

.page-custom .custom-choose__meta dt {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--color-ink-muted);
}

.page-custom .custom-choose__meta dd {
  margin: var(--space-1) 0 0;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-ink);
}

/* ---------- 收尾出口 ---------- */
.page-custom .custom-cta {
  padding-top: var(--space-6);
  padding-bottom: var(--section-y);
}

.page-custom .custom-cta__inner {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-8) var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
  background: var(--custom-soft-panel);
}

.page-custom .custom-cta__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-heading);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
  color: var(--color-ink);
}

.page-custom .custom-cta__text {
  max-width: var(--measure);
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-ink);
}

.page-custom .custom-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

/* ============================================================
   响应式
   ============================================================ */

@media (min-width: 640px) {
  .page-custom .custom-hero__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
  }

  .page-custom .custom-biz__split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-6);
  }

  .page-custom .custom-region__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-custom .custom-choose__rec,
  .page-custom .custom-cta__inner {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

@media (min-width: 900px) {
  .page-custom .custom-hero {
    padding-top: var(--space-8);
    padding-bottom: var(--section-y-lg);
  }

  .page-custom .custom-hero__inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
    row-gap: var(--space-8);
  }

  .page-custom .custom-hero__copy {
    grid-column: 1 / span 6;
  }

  .page-custom .custom-hero__media {
    grid-column: 8 / span 5;
    margin-top: var(--space-8);
  }

  .page-custom .custom-hero__stats {
    grid-column: 1 / span 12;
  }

  .page-custom .custom-biz__inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gutter);
  }

  .page-custom .custom-biz--onsite .custom-biz__copy {
    grid-column: 1 / span 5;
  }

  .page-custom .custom-biz--onsite .custom-biz__media {
    grid-column: 7 / span 6;
    margin-top: var(--space-6);
  }

  .page-custom .custom-biz--board .custom-biz__media {
    grid-column: 1 / span 6;
  }

  .page-custom .custom-biz--board .custom-biz__copy {
    grid-column: 8 / span 5;
  }

  .page-custom .custom-biz--region .custom-biz__copy {
    grid-column: 1 / span 6;
  }

  .page-custom .custom-biz--region .custom-biz__media {
    grid-column: 8 / span 5;
    margin-bottom: var(--space-6);
  }

  .page-custom .custom-biz__wide {
    width: 84%;
    margin-left: auto;
  }

  .page-custom .custom-choose__rec {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    column-gap: var(--space-8);
    align-items: start;
    padding: var(--space-8);
  }

  .page-custom .custom-cta__inner {
    padding: var(--space-8);
  }
}

@media (min-width: 1024px) {
  .page-custom .custom-region__list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-custom .custom-slash,
  .page-custom .custom-biz::before {
    transform: none;
  }

  .page-custom .custom-choose__list .tab {
    transition: none;
  }
}
