.page-home {
  --home-fade: var(--paper-50);
  --home-rule: rgba(11, 31, 51, 0.14);
  display: block;
}

/* ---------- 首屏 ---------- */

.home-hero {
  position: relative;
  padding: 32px 0 44px;
  background-color: var(--paper-50);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(11, 31, 51, 0.11) 1px, transparent 1.7px);
  background-size: 20px 20px;
  border-bottom: 2px solid var(--ink-900);
}

.home-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 12px;
  border: 2px solid var(--ink-900);
  border-radius: var(--radius-pill);
  background: var(--apricot-100);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--ink-900);
}

.home-hero__title {
  margin: 16px 0 0;
  font-size: clamp(2.2rem, 7.4vw, 3.9rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  max-width: 14ch;
}

.home-hero__lede {
  margin: 18px 0 0;
  max-width: 56ch;
  font-size: var(--fs-body);
  line-height: 1.78;
  color: var(--ink-500);
}

.home-hero__cues {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.home-hero__cues li {
  position: relative;
  padding: 5px 11px 5px 22px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 2px solid var(--ink-900);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--ink-900);
}

.home-hero__cues li::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--brand-orange-500);
}

.home-preview {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  counter-reset: none;
}

.home-preview__item:last-child {
  grid-column: 1 / -1;
}

.home-preview__link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  height: 100%;
  padding: 14px 15px 16px;
  background: var(--white);
  border: 2px solid var(--ink-900);
  border-radius: 14px;
  box-shadow: 4px 4px 0 rgba(11, 31, 51, 0.12);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease);
}

.home-preview__link:hover,
.home-preview__link:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard);
  background: var(--apricot-100);
}

.home-preview__num {
  flex: none;
  margin-top: 1px;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--brand-orange-500);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  transition: background-color 0.18s var(--ease);
}

.home-preview__link:hover .home-preview__num,
.home-preview__link:focus-visible .home-preview__num {
  background: var(--brand-orange-600);
}

.home-preview__body {
  display: block;
}

.home-preview__name {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.35;
}

.home-preview__desc {
  display: block;
  margin-top: 5px;
  font-size: 0.83rem;
  line-height: 1.6;
  color: var(--ink-500);
}

.home-brand-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 2px solid var(--ink-900);
  border-radius: 18px;
  background: var(--ink-900);
  color: var(--white);
  box-shadow: 6px 6px 0 var(--brand-orange-500);
}

.home-brand-card__media {
  position: relative;
  background: var(--ink-700);
}

.home-brand-card__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.home-brand-card__body {
  padding: 22px 20px 26px;
}

.home-brand-card__kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-orange-500);
}

.home-brand-card__title {
  margin: 10px 0 0;
  font-size: clamp(1.35rem, 3.4vw, 1.75rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--white);
}

.home-brand-card__text {
  margin: 12px 0 0;
  font-size: 0.94rem;
  line-height: 1.75;
  color: #C8D5E1;
}

.home-brand-card__list {
  margin: 16px 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.home-brand-card__list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.89rem;
  line-height: 1.6;
  color: var(--white);
}

.home-brand-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 2px;
  background: var(--brand-orange-500);
}

.home-brand-card .btn {
  align-self: flex-start;
}

/* ---------- 服务清单 ---------- */

.home-services {
  padding-bottom: 56px;
}

.home-board-media {
  margin: 26px 0 22px;
}

.home-board-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border: 2px solid var(--ink-900);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard);
}

.home-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 4px 0 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.home-filters .filter-chip {
  flex: none;
  white-space: nowrap;
}

.home-service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.home-svc-card {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 20px;
}

.home-svc-card[hidden] {
  display: none;
}

.home-svc-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.home-svc-card__cat {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--grey-500);
}

.home-svc-card .card-title {
  margin: 0;
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-900);
}

.home-svc-card .card-text {
  margin: 9px 0 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink-500);
}

.home-svc-card__meta {
  margin: 16px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--grey-200);
  display: grid;
  gap: 8px;
}

.home-svc-card__meta > div {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 10px;
}

.home-svc-card__meta dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--grey-500);
  line-height: 1.6;
}

.home-svc-card__meta dd {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-900);
}

.home-svc-card__link {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand-orange-600);
  text-decoration: none;
  align-self: flex-start;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s var(--ease);
}

.home-svc-card__link:hover,
.home-svc-card__link:focus-visible {
  border-bottom-color: var(--brand-orange-600);
}

.home-service-empty {
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 2px dashed var(--grey-200);
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--ink-500);
}

.home-services__foot {
  margin-top: 26px;
}

/* ---------- 栏目对照 ---------- */

.home-merge {
  --home-fade: var(--apricot-100);
  padding-bottom: 56px;
}

.home-merge__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  margin-top: 26px;
}

.home-merge__figure {
  margin: 0;
}

.home-merge-svg {
  display: block;
  width: 100%;
  height: auto;
  padding: 14px;
  background: var(--white);
  border: 2px solid var(--ink-900);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard);
}

.home-merge-svg__label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  fill: var(--ink-500);
}

.home-merge-svg__box {
  fill: var(--paper-50);
  stroke: var(--ink-900);
  stroke-width: 2;
}

.home-merge-svg__box--new {
  fill: var(--apricot-100);
  stroke: var(--brand-orange-600);
}

.home-merge-svg__line {
  stroke: var(--brand-orange-500);
  stroke-width: 4;
  stroke-linecap: round;
}

.home-merge-svg__mid {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  fill: var(--brand-orange-600);
  text-anchor: middle;
}

.home-merge__detail {
  min-width: 0;
}

.home-merge__detail .acc-trigger {
  text-align: left;
  line-height: 1.5;
}

.home-merge__shot {
  margin: 34px 0 24px;
}

.home-merge__shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 2px solid var(--ink-900);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard);
}

/* ---------- 案例横滑 ---------- */

.home-cases {
  --home-fade: var(--paper-50);
  padding-bottom: 56px;
}

.home-cases__rail {
  margin-top: 26px;
}

.home-cases .rail > li {
  flex: 0 0 262px;
}

.home-case-card {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 20px;
  height: auto;
}

.home-case-card__topic {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--brand-orange-600);
}

.home-case-card .card-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink-900);
}

.home-case-card .card-text {
  margin: 10px 0 18px;
  font-size: 0.86rem;
  line-height: 1.72;
  color: var(--ink-500);
}

.home-case-card .tag {
  margin-top: auto;
  align-self: flex-start;
}

.home-cases > .wrap > .btn {
  margin-top: 8px;
}

/* ---------- 帮助文档 ---------- */

.home-docs {
  --home-fade: var(--apricot-100);
  padding-bottom: 56px;
}

.home-docs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  margin-top: 26px;
}

.home-docs__cover {
  margin: 0;
}

.home-docs__cover img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 2px solid var(--ink-900);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard);
}

.home-docs__list {
  min-width: 0;
}

.home-docs__list > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.home-doc-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 6px 14px;
  padding: 16px 18px;
  background: var(--white);
  border: 2px solid var(--ink-900);
  border-radius: 14px;
  box-shadow: 4px 4px 0 rgba(11, 31, 51, 0.12);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.home-doc-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hard);
}

.home-doc-item__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink-900);
}

.home-doc-item__use {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--ink-500);
}

.home-doc-item .tag {
  justify-self: end;
}

.home-docs__local {
  margin: 22px 0 24px;
  padding: 18px 20px;
  background: var(--ink-900);
  border-radius: var(--radius-card);
  border-left: 8px solid var(--brand-orange-500);
}

.home-docs__local-title {
  margin: 0 0 10px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--white);
}

.home-docs__local p {
  margin: 0;
  font-size: 0.89rem;
  line-height: 1.8;
  color: #C8D5E1;
}

/* ---------- 咨询出口 ---------- */

.home-consult {
  padding: 52px 0 64px;
}

.home-consult__inner {
  display: grid;
  gap: 26px;
}

.home-consult .section-head {
  margin: 0;
}

.home-consult .section-summary {
  color: #C8D5E1;
}

.home-consult__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 媒体查询 ---------- */

@media (max-width: 639px) {
  .home-board-media img {
    aspect-ratio: 16 / 10;
  }

  .home-cases .rail > li {
    flex-basis: 78%;
  }
}

@media (min-width: 600px) {
  .home-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .home-hero {
    padding: 44px 0 62px;
  }

  .home-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 40px;
    align-items: start;
  }

  .home-filters {
    flex-wrap: wrap;
    overflow: visible;
  }

  .home-service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-merge__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: 34px;
  }

  .home-docs__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 34px;
    align-items: start;
  }

  .home-consult__inner {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    align-items: end;
    gap: 34px;
  }

  .home-consult__actions {
    justify-content: flex-end;
  }
}

@media (min-width: 1100px) {
  .home-cases .rail > li {
    flex-basis: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-preview__link,
  .page-home .home-svc-card__link,
  .page-home .home-doc-item {
    transition: none;
  }

  .page-home .home-preview__link:hover,
  .page-home .home-doc-item:hover {
    transform: none;
  }
}
