/* ===== 品牌首页 · page-home ===== */
.page-home {
  --home-gap: clamp(14px, 1.6vw, 20px);
  --home-pad: clamp(52px, 8vw, 104px);
  background: var(--paper);
  color: var(--ink);
}

.page-home h2 {
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.16;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  margin: 0 0 14px;
}

.page-home h3 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 10px;
}

.page-home p {
  margin: 0 0 12px;
}

.page-home .home-open .btn--ghost,
.page-home .home-diff .btn--ghost {
  border: 2px solid var(--mist);
  background: transparent;
  color: var(--paper);
}

.page-home .home-open .btn--ghost:hover,
.page-home .home-diff .btn--ghost:hover {
  background: var(--mist);
  color: var(--ink);
}

.page-home .home-open .btn:focus-visible,
.page-home .home-board a:focus-visible,
.page-home .home-return a:focus-visible,
.page-home .home-column a:focus-visible,
.page-home .home-contact a:focus-visible,
.page-home .home-bento__link:focus-visible {
  outline: 2px solid var(--lake);
  outline-offset: 3px;
}

/* ---------- 首屏 ---------- */
.page-home .home-open {
  position: relative;
  overflow: hidden;
  background: var(--dusk);
  color: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.page-home .home-open__bg {
  position: absolute;
  inset: 0;
}

.page-home .home-open__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.page-home .home-open::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(102deg, rgba(42, 27, 69, 0.95) 0%, rgba(42, 27, 69, 0.84) 48%, rgba(30, 111, 106, 0.55) 100%);
  pointer-events: none;
}

.page-home .home-open__inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(54px, 9vw, 118px);
  padding-bottom: clamp(42px, 6vw, 78px);
}

.page-home .home-open__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.4rem, 6.4vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 14px 0 18px;
}

.page-home .home-open__title-sub {
  display: block;
  margin-top: 14px;
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.page-home .home-open__lead {
  max-width: 36em;
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.85;
  color: rgba(245, 240, 230, 0.9);
}

.page-home .home-open__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 40px;
}

.page-home .home-open__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .home-open__stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 14px;
  border-left: 2px solid rgba(169, 214, 208, 0.5);
}

.page-home .home-open__num {
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.page-home .home-open__lbl {
  font-size: 13px;
  color: rgba(245, 240, 230, 0.78);
}

.page-home .home-open__note {
  position: absolute;
  right: clamp(10px, 2vw, 26px);
  bottom: clamp(22px, 5vw, 64px);
  z-index: 1;
  color: var(--mist);
  font-size: 12px;
  letter-spacing: 4px;
}

/* ---------- 目录板 ---------- */
.page-home .home-board {
  background: var(--paper);
  padding-top: var(--home-pad);
  padding-bottom: var(--home-pad);
}

.page-home .home-board__head {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.page-home .home-board__hint {
  color: var(--rock);
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

.page-home .home-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.page-home .home-filter__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

.page-home .home-filter__btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 140ms var(--ease), box-shadow 140ms var(--ease), background 140ms var(--ease);
  user-select: none;
}

.page-home .home-filter__btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow);
}

.page-home .home-filter__input:checked + .home-filter__btn {
  background: var(--ink);
  color: var(--gold);
}

.page-home .home-filter__input:focus-visible + .home-filter__btn {
  outline: 2px solid var(--lake);
  outline-offset: 3px;
}

.page-home .home-board:has(#who-new:checked) .home-bento__item[data-role="back"],
.page-home .home-board:has(#who-back:checked) .home-bento__item[data-role="new"] {
  display: none;
}

.page-home .home-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .home-bento__item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(18px, 2vw, 26px);
  border: var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease);
}

.page-home .home-bento__item:hover,
.page-home .home-bento__item:focus-within {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-lg);
}

.page-home .home-bento__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--lake);
  margin: 0 0 12px;
}

.page-home .home-bento__title {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
}

.page-home .home-bento__text {
  font-size: 15px;
  line-height: 1.78;
  color: #38343f;
  margin: 0;
}

.page-home .home-bento__item--main {
  border-left: 8px solid var(--lake);
  background: linear-gradient(158deg, #fff 0%, #fff 60%, var(--mist) 100%);
  padding: clamp(22px, 2.6vw, 34px);
}

.page-home .home-bento__item--main .home-bento__title {
  font-size: clamp(1.3rem, 2.2vw, 1.95rem);
}

.page-home .home-bento__steps {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .home-bento__steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15px;
  line-height: 1.7;
}

.page-home .home-bento__steps .idx-num {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  padding-top: 4px;
}

.page-home .home-bento__note {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--rock);
  border-top: 2px dashed rgba(108, 104, 117, 0.45);
  padding-top: 12px;
}

.page-home .home-bento__cta {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--lake);
  transition: transform 160ms var(--ease), color 160ms var(--ease);
}

.page-home .home-bento__item:hover .home-bento__cta {
  transform: translateX(5px);
  color: var(--ink);
}

.page-home .home-bento__link {
  margin-top: auto;
  padding-top: 16px;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--lake);
  text-decoration: none;
  border-bottom: 2px solid rgba(30, 111, 106, 0.3);
  transition: border-color 160ms var(--ease), color 160ms var(--ease);
}

.page-home .home-bento__link:hover {
  color: var(--ink);
  border-bottom-color: var(--gold);
}

/* ---------- 版本对照 ---------- */
.page-home .home-diff {
  padding-top: var(--home-pad);
  padding-bottom: var(--home-pad);
  background: var(--ink);
  color: var(--paper);
}

.page-home .home-diff__head {
  max-width: 760px;
  margin-bottom: 32px;
}

.page-home .home-diff__lead {
  color: rgba(245, 240, 230, 0.82);
  font-size: 16px;
  line-height: 1.85;
  margin: 0;
}

.page-home .home-diff__cols {
  display: grid;
  gap: 0;
  border: 2px solid var(--mist);
  box-shadow: var(--shadow-lg);
}

.page-home .home-diff__col {
  padding: clamp(18px, 2.4vw, 30px);
  background: rgba(245, 240, 230, 0.05);
}

.page-home .home-diff__col--chg { order: 1; }
.page-home .home-diff__ruler { order: 2; }
.page-home .home-diff__col--eff { order: 3; }

.page-home .home-diff__cols:has(.home-diff__check:checked) .home-diff__col--chg { order: 3; }
.page-home .home-diff__cols:has(.home-diff__check:checked) .home-diff__col--eff { order: 1; }

.page-home .home-diff__coltag {
  margin: 0 0 16px;
}

.page-home .home-diff__ruler {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lake);
  padding: 10px;
}

.page-home .home-diff__ruler span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 6px;
  color: var(--paper);
}

.page-home .home-diff__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .home-diff__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15px;
  line-height: 1.72;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(169, 214, 208, 0.28);
}

.page-home .home-diff__list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-home .home-diff__no {
  font-size: 12px;
  letter-spacing: 2px;
  padding-top: 4px;
  color: var(--gold);
}

.page-home .home-diff__col--eff .home-diff__no {
  color: var(--mist);
}

.page-home .home-diff__foot {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.page-home .home-diff__swap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.page-home .home-diff__check {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

.page-home .home-diff__swapbtn {
  cursor: pointer;
}

.page-home .home-diff__check:focus-visible + .home-diff__swapbtn {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.page-home .home-diff__swaphint {
  font-size: 13px;
  line-height: 1.7;
  color: var(--rock);
  margin: 0;
}

.page-home .home-diff__media {
  border: 2px solid var(--mist);
  box-shadow: var(--shadow);
}

/* ---------- 回访通道 ---------- */
.page-home .home-return {
  background: var(--paper);
  border-top: 2px solid var(--ink);
  padding-top: var(--home-pad);
  padding-bottom: var(--home-pad);
}

.page-home .home-return__grid {
  display: grid;
  gap: 30px;
}

.page-home .home-return__lead {
  font-size: 16px;
  line-height: 1.85;
  color: #38343f;
}

.page-home .home-return__cards {
  display: grid;
  gap: 14px;
  margin: 22px 0 26px;
}

.page-home .home-return__card {
  border: var(--line);
  border-top: 6px solid var(--lake);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
}

.page-home .home-return__card--alt {
  border-top-color: var(--gold);
}

.page-home .home-return__card h3 {
  font-size: 1.05rem;
}

.page-home .home-return__card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: #38343f;
}

.page-home .home-return__media {
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-lg);
  margin: 0;
}

/* ---------- 品牌专栏 ---------- */
.page-home .home-column {
  position: relative;
  background: var(--dusk);
  color: var(--paper);
  padding-top: var(--home-pad);
  padding-bottom: var(--home-pad);
}

.page-home .home-column::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 26px, transparent 26px 52px);
}

.page-home .home-column__head {
  max-width: 740px;
}

.page-home .home-column__lead {
  color: rgba(245, 240, 230, 0.82);
  font-size: 16px;
  line-height: 1.85;
}

.page-home .home-column__grid {
  display: grid;
  gap: 16px;
  margin: 28px 0 30px;
}

.page-home .home-column__card {
  border: 2px solid var(--mist);
  background: rgba(245, 240, 230, 0.07);
  box-shadow: 6px 6px 0 rgba(21, 19, 27, 0.6);
  padding: 22px;
  transition: transform 160ms var(--ease);
}

.page-home .home-column__card:hover {
  transform: translateY(-4px);
}

.page-home .home-column__tag {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gold);
  margin: 0 0 12px;
}

.page-home .home-column__card h3 {
  font-size: 1.08rem;
  color: var(--paper);
}

.page-home .home-column__card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: rgba(245, 240, 230, 0.82);
}

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

/* ---------- 服务与属地 ---------- */
.page-home .home-contact {
  position: relative;
  overflow: hidden;
  background: linear-gradient(152deg, var(--dusk) 0%, var(--lake) 100%);
  color: var(--paper);
  padding-top: var(--home-pad);
  padding-bottom: clamp(40px, 5vw, 68px);
}

.page-home .home-contact__bg {
  position: absolute;
  inset: 0;
}

.page-home .home-contact__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.page-home .home-contact__inner {
  position: relative;
  z-index: 1;
}

.page-home .home-contact__head {
  max-width: 680px;
  margin-bottom: 26px;
}

.page-home .home-contact__lead {
  color: rgba(245, 240, 230, 0.88);
  font-size: 16px;
  line-height: 1.85;
  margin: 0;
}

.page-home .home-contact__list {
  display: grid;
  gap: 0;
  margin: 0 0 24px;
  border-top: 2px solid rgba(245, 240, 230, 0.4);
}

.page-home .home-contact__row {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(245, 240, 230, 0.24);
}

.page-home .home-contact__row dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gold);
}

.page-home .home-contact__row dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  word-break: break-word;
}

.page-home .home-contact__note {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  color: rgba(245, 240, 230, 0.74);
}

.page-home .home-contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0 0 20px;
}

.page-home .home-contact__links a {
  color: var(--paper);
  font-size: 14px;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}

.page-home .home-top {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--mist);
  text-decoration: none;
  border-bottom: 2px solid rgba(169, 214, 208, 0.5);
  padding-bottom: 4px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home .home-bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .home-bento__item--main {
    grid-column: span 2;
  }

  .page-home .home-return__cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 720px) {
  .page-home .home-board__head {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: end;
    gap: 26px;
  }

  .page-home .home-column__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .home-contact__row {
    grid-template-columns: 168px 1fr;
    gap: 20px;
    align-items: baseline;
  }
}

@media (min-width: 900px) {
  .page-home .home-diff__cols {
    grid-template-columns: 1fr 56px 1fr;
  }

  .page-home .home-diff__ruler span {
    writing-mode: vertical-rl;
    letter-spacing: 8px;
  }

  .page-home .home-diff__foot {
    grid-template-columns: 240px 1fr;
    align-items: start;
    gap: 30px;
  }
}

@media (min-width: 960px) {
  .page-home .home-return__grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 46px;
  }

  .page-home .home-return__media {
    order: -1;
  }
}

@media (min-width: 1024px) {
  .page-home .home-bento {
    grid-template-columns: repeat(6, 1fr);
  }

  .page-home .home-bento__item--main {
    grid-column: span 3;
    grid-row: span 2;
  }

  .page-home .home-bento__item--diff {
    grid-column: span 3;
  }

  .page-home .home-bento__item--hist {
    grid-column: span 3;
  }

  .page-home .home-bento__item--app,
  .page-home .home-bento__item--col,
  .page-home .home-bento__item--sup {
    grid-column: span 2;
  }

  .page-home .home-bento__item--reach,
  .page-home .home-bento__item--rit {
    grid-column: span 3;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .page-home .home-bento__item,
  .page-home .home-filter__btn,
  .page-home .home-column__card,
  .page-home .home-bento__cta,
  .page-home .home-bento__link {
    transition: none;
  }

  .page-home .home-bento__item:hover,
  .page-home .home-column__card:hover {
    transform: none;
  }
}
