/* ============================================================
   财神8平台 · 品牌首页（page-home）
   ============================================================ */

.page-home {
  --home-gap: clamp(1rem, 3vw, 1.75rem);
  --home-band: clamp(3rem, 8vw, 5.5rem);
  --home-line: rgba(27, 25, 23, .14);
  display: block;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(3rem, 8vw, 5rem);
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(235, 211, 160, .55) 0%, rgba(235, 211, 160, 0) 62%),
    var(--paper);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--red-deep) 0 12%, var(--red) 12% 26%, var(--gold) 26% 100%);
}

.page-home .hero__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: .35rem;
  margin: clamp(1.5rem, 4vw, 2.75rem) 0 clamp(1.75rem, 4vw, 3rem);
  max-width: 62rem;
}

.page-home .hero__vert {
  writing-mode: vertical-rl;
  margin: 0 0 .5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .34em;
  color: var(--gold-deep);
}

.page-home .hero__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 5.6vw, 4rem);
  line-height: 1.18;
  letter-spacing: .01em;
  color: var(--ink);
}

.page-home .hero__lead {
  margin: .9rem 0 0;
  max-width: 40em;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.85;
  color: var(--gray);
}

@media (min-width: 880px) {
  .page-home .hero__head {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    column-gap: 1.5rem;
  }
  .page-home .hero__vert {
    grid-column: 1;
    grid-row: 1 / 4;
    margin: 0;
  }
  .page-home .hero__title,
  .page-home .hero__lead {
    grid-column: 2;
  }
}

/* 章节预览面板 */
.page-home .hero__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1rem, 3vw, 1.75rem);
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-print);
}

@media (min-width: 980px) {
  .page-home .hero__panel {
    grid-template-columns: 7fr 5fr;
    align-items: start;
  }
}

.page-home .chapters {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.page-home .chapters__cell {
  border-bottom: 1px solid var(--home-line);
}

.page-home .chapters__cell:last-child {
  border-bottom: 0;
}

.page-home .chapter {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 1rem;
  gap: .65rem;
  align-items: start;
  padding: 1rem .6rem 1rem .5rem;
  border-left: 3px solid transparent;
  color: inherit;
  text-decoration: none;
  transition: background-color .28s ease, border-color .28s ease;
}

.page-home .chapter:hover,
.page-home .chapter:focus-visible {
  background: var(--rice);
  border-left-color: var(--gold);
}

.page-home .chapter__num {
  font-family: var(--font-mono);
  font-size: var(--fs-20);
  line-height: 1.15;
  color: var(--gold-deep);
}

.page-home .chapter__body {
  display: block;
  min-width: 0;
}

.page-home .chapter__title {
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-20);
  line-height: 1.4;
  color: var(--ink);
}

.page-home .chapter__desc {
  display: block;
  margin-top: .35rem;
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--gray);
}

.page-home .chapter__extra {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: var(--fs-12);
  line-height: 1.6;
  color: var(--teal);
  transition: max-height .35s ease, opacity .35s ease, margin-top .35s ease;
}

.page-home .chapter:hover .chapter__extra,
.page-home .chapter:focus-visible .chapter__extra {
  max-height: 4rem;
  opacity: 1;
  margin-top: .4rem;
}

.page-home .chapter__arrow {
  align-self: center;
  font-family: var(--font-mono);
  font-size: var(--fs-20);
  color: var(--gold);
  transition: transform .25s ease;
}

.page-home .chapter:hover .chapter__arrow,
.page-home .chapter:focus-visible .chapter__arrow {
  transform: translateX(4px);
}

.page-home .hero__figure {
  margin: 0;
}

.page-home .hero__figure .media {
  aspect-ratio: 16 / 9;
}

/* ---------- 通用媒体 ---------- */
.page-home .media {
  position: relative;
  overflow: hidden;
  background: var(--rice);
}

.page-home .media__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .mobile-grid__figure .media,
.page-home .network__figure .media,
.page-home .repair__figure .media {
  aspect-ratio: 4 / 3;
}

.page-home .repair__figure .media {
  aspect-ratio: 1 / 1;
}

.page-home .media__cap {
  display: block;
  margin-top: .5rem;
  font-size: var(--fs-12);
  line-height: 1.6;
  color: var(--gray);
}

/* ---------- 区块外框 ---------- */
.page-home .home-band {
  padding: var(--home-band) 0;
}

.page-home .home-band--rice {
  background: var(--rice);
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.page-home .home-band--ink {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  background-image:
    linear-gradient(135deg, rgba(200, 150, 62, .16) 0 22%, rgba(200, 150, 62, 0) 22%),
    linear-gradient(315deg, rgba(184, 50, 44, .18) 0 18%, rgba(184, 50, 44, 0) 18%);
}

/* ---------- 区块头部 ---------- */
.page-home .head {
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 48rem;
}

.page-home .head__idx {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 .8rem;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .24em;
  color: var(--gold-deep);
}

.page-home .head__idx::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--gold);
}

.page-home .head__title {
  margin: 0 0 .8rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  line-height: 1.34;
  color: inherit;
}

.page-home .head__lead {
  margin: 0;
  max-width: 34em;
  font-size: var(--fs-16);
  line-height: 1.85;
  color: var(--gray);
}

.page-home .head--onink .head__idx {
  color: var(--champagne);
}

.page-home .head--onink .head__idx::before {
  background: var(--champagne);
}

.page-home .head--onink .head__lead {
  color: rgba(251, 246, 236, .74);
}

/* ---------- 产品系列 ---------- */
.page-home .series {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
}

@media (min-width: 780px) {
  .page-home .series {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: stretch;
  }
  .page-home .series-card:nth-child(1) { grid-column: span 7; }
  .page-home .series-card:nth-child(2) { grid-column: span 5; }
  .page-home .series-card:nth-child(3) { grid-column: span 12; }
}

.page-home .series-card {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.page-home .series-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .35rem;
}

.page-home .series-card__count {
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  color: var(--gold-deep);
  letter-spacing: .06em;
}

.page-home .series-card__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-28);
  line-height: 1.3;
  color: var(--ink);
}

.page-home .series-card__desc {
  margin: 0;
  font-size: var(--fs-14);
  line-height: 1.8;
  color: var(--gray);
}

.page-home .series-card__list {
  list-style: none;
  margin: .25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}

.page-home .series-card__list li {
  position: relative;
  padding-left: 1rem;
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--ink);
}

.page-home .series-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: .4rem;
  height: .4rem;
  background: var(--red);
}

@media (min-width: 780px) {
  .page-home .series-card--wide .series-card__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: .5rem 2.25rem;
  }
}

/* ---------- 区域授权 ---------- */
.page-home .auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

@media (min-width: 1000px) {
  .page-home .auth {
    grid-template-columns: 7fr 5fr;
    align-items: start;
  }
}

.page-home .standards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .75rem;
}

@media (min-width: 720px) {
  .page-home .standards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .875rem;
  }
}

.page-home .standard {
  padding: .9rem 1rem 1rem;
  background: var(--paper);
  border: 1px solid var(--home-line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
}

.page-home .standard__num {
  display: block;
  margin-bottom: .4rem;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .12em;
  color: var(--gold-deep);
}

.page-home .standard__title {
  margin: 0 0 .3rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-20);
  line-height: 1.35;
  color: var(--ink);
}

.page-home .standard__desc {
  margin: 0;
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--gray);
}

.page-home .auth__aside {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.page-home .auth__date {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-16);
  letter-spacing: .04em;
  color: var(--red-deep);
}

.page-home .auth__text {
  margin: 0;
  font-size: var(--fs-14);
  line-height: 1.8;
  color: var(--ink);
}

.page-home .auth__facts {
  margin: .25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  border-top: 1px dashed var(--home-line);
  padding-top: .75rem;
}

.page-home .auth__fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.page-home .auth__fact dt {
  font-size: var(--fs-14);
  color: var(--gray);
}

.page-home .auth__fact dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-16);
  color: var(--ink);
}

/* ---------- 时间轴 ---------- */
.page-home .journey {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.page-home .journey::before {
  content: "";
  position: absolute;
  left: .5625rem;
  top: .75rem;
  bottom: 1.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--red), var(--gold));
}

.page-home .journey__item {
  position: relative;
  padding: 0 0 clamp(1.5rem, 4vw, 2.25rem) 2.25rem;
}

.page-home .journey__item:last-child {
  padding-bottom: 0;
}

.page-home .journey__dot {
  position: absolute;
  left: .25rem;
  top: .55rem;
  width: .75rem;
  height: .75rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(184, 50, 44, .22);
}

.page-home .journey__date {
  display: block;
  margin-bottom: .3rem;
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  letter-spacing: .08em;
  color: var(--champagne);
}

.page-home .journey__body {
  max-width: 34em;
}

.page-home .journey__title {
  margin: 0 0 .35rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-20);
  line-height: 1.4;
  color: var(--paper);
}

.page-home .journey__body p {
  margin: 0;
  font-size: var(--fs-14);
  line-height: 1.8;
  color: rgba(251, 246, 236, .76);
}

/* ---------- 报修 ---------- */
.page-home .repair {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .875rem;
}

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

@media (min-width: 1080px) {
  .page-home .repair {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.page-home .repair__item {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1rem 1rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--champagne);
}

.page-home .repair__idx {
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: .16em;
  color: var(--gold-deep);
}

.page-home .repair__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-20);
  line-height: 1.35;
  color: var(--ink);
}

.page-home .repair__desc {
  margin: 0;
  flex: 1 1 auto;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--gray);
}

.page-home .repair__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 860px) {
  .page-home .repair__foot {
    grid-template-columns: 4fr 8fr;
    align-items: start;
  }
}

.page-home .repair__figure {
  margin: 0;
  max-width: 20rem;
}

.page-home .repair__note {
  padding-top: .25rem;
}

.page-home .repair__note-title {
  margin: 0 0 .75rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-28);
  line-height: 1.35;
  color: var(--ink);
}

.page-home .repair__note p {
  margin: 0 0 .85rem;
  max-width: 34em;
  font-size: var(--fs-16);
  line-height: 1.85;
  color: var(--gray);
}

/* ---------- 移动端选型 ---------- */
.page-home .mobile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

@media (min-width: 940px) {
  .page-home .mobile-grid {
    grid-template-columns: 5fr 7fr;
    align-items: center;
  }
}

.page-home .mobile-grid__text {
  min-width: 0;
}

.page-home .spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.25rem;
  font-size: var(--fs-14);
  background: var(--paper);
}

.page-home .spec-table caption {
  text-align: left;
}

.page-home .spec-table th,
.page-home .spec-table td {
  padding: .8rem .9rem;
  border: 1px solid var(--home-line);
  text-align: left;
  vertical-align: top;
}

.page-home .spec-table thead th {
  background: var(--rice);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-14);
  color: var(--ink);
  letter-spacing: .04em;
}

.page-home .spec-table tbody th {
  width: 5.5rem;
  font-weight: 500;
  color: var(--gray);
  white-space: nowrap;
}

.page-home .spec-table tbody td {
  font-family: var(--font-mono);
  color: var(--ink);
  letter-spacing: .02em;
}

.page-home .mobile-grid__sub {
  margin: 0 0 .75rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-20);
  line-height: 1.4;
  color: var(--ink);
}

.page-home .combo {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.page-home .combo__item {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: .75rem;
  align-items: baseline;
  padding: .7rem .9rem;
  background: var(--paper);
  border-left: 3px solid var(--teal);
}

.page-home .combo__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-16);
  color: var(--ink);
}

.page-home .combo__desc {
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--gray);
}

.page-home .mobile-grid__figure {
  margin: 0;
}

/* ---------- 服务网络 ---------- */
.page-home .network {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

@media (min-width: 940px) {
  .page-home .network {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }
}

.page-home .network__figure {
  margin: 0;
}

.page-home .network__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
  margin-bottom: 1.5rem;
}

.page-home .stat {
  padding: .9rem .8rem 1rem;
  background: var(--paper);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
}

.page-home .stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  line-height: 1.1;
  color: var(--ink);
}

.page-home .stat__label {
  display: block;
  margin-top: .35rem;
  font-size: var(--fs-12);
  line-height: 1.6;
  color: var(--gray);
}

.page-home .network__block {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px dashed var(--home-line);
}

.page-home .network__block:last-of-type {
  border-bottom: 0;
}

.page-home .network__sub {
  margin: 0 0 .45rem;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-20);
  line-height: 1.4;
  color: var(--ink);
}

.page-home .network__block p {
  margin: 0;
  max-width: 34em;
  font-size: var(--fs-14);
  line-height: 1.85;
  color: var(--gray);
}

/* ---------- 区块脚注 ---------- */
.page-home .band__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.5rem;
  margin: clamp(1.5rem, 4vw, 2.25rem) 0 0;
}

.page-home .repair__note .band__foot {
  margin-top: 1rem;
}

/* ---------- 章节快捷条（窄屏） ---------- */
.page-home .quickbar {
  padding: .25rem 0 1.25rem;
  background: var(--paper);
  border-top: 1px solid var(--home-line);
}

.page-home .quickbar__inner {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: 1rem 0 .35rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.page-home .quickbar__link {
  flex: 0 0 auto;
  padding: .45rem .9rem;
  font-size: var(--fs-12);
  font-family: var(--font-mono);
  letter-spacing: .06em;
  color: var(--ink);
  text-decoration: none;
  background: var(--rice);
  border: 1px solid var(--home-line);
  border-radius: var(--radius);
}

.page-home .quickbar__link:active {
  background: var(--champagne);
}

@media (min-width: 900px) {
  .page-home .quickbar {
    display: none;
  }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .chapter,
  .page-home .chapter__arrow,
  .page-home .chapter__extra {
    transition: none;
  }
  .page-home .chapter:hover .chapter__arrow,
  .page-home .chapter:focus-visible .chapter__arrow {
    transform: none;
  }
}
