.page-home{
  --home-cut: 18px;
  --home-gap: clamp(14px, 1.6vw, 20px);
  --home-pad-y: clamp(44px, 6vw, 88px);
  background: var(--cream);
  color: var(--text-ink);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.75;
  overflow-x: hidden;
}

.page-home h1,
.page-home h2,
.page-home h3{
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.page-home p{ margin: 0; }
.page-home a{ color: inherit; }
.page-home img{ max-width: 100%; height: auto; display: block; }

.page-home .chapter__num{
  display: inline-block;
  position: relative;
  padding-left: 36px;
  font-family: var(--font-mono);
  font-size: var(--step-index);
  letter-spacing: 0.24em;
  color: var(--vermilion);
  line-height: 1.4;
}

.page-home .chapter__num::before{
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 26px;
  height: 2px;
  background: currentColor;
  transform: translateY(-50%);
}

/* ---------- 站点上下文条 ---------- */
.page-home .home-context{
  background: var(--cream);
  border-bottom: 1px solid var(--line-gold);
}

.page-home .home-context__inner{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  padding: 11px 0;
  font-size: var(--step-index);
  color: var(--muted);
}

.page-home .home-context__text.mono{
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--vermilion);
}

/* ---------- 首屏拼贴 ---------- */
.page-home .home-hero{
  background: var(--ink);
  color: var(--cream);
  padding: clamp(28px, 4.5vw, 62px) 0 clamp(34px, 5vw, 72px);
  background-image:
    radial-gradient(circle at 88% 12%, rgba(217, 162, 74, 0.16), transparent 58%),
    repeating-linear-gradient(90deg, rgba(244, 235, 220, 0.035) 0 1px, transparent 1px 96px);
}

.page-home .home-hero__grid{
  display: grid;
  gap: var(--home-gap);
  grid-template-areas:
    "lead"
    "red"
    "art"
    "d1"
    "d2";
}

.page-home .home-hero__lead{
  grid-area: lead;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.page-home .eyebrow{
  font-family: var(--font-mono);
  font-size: var(--step-index);
  letter-spacing: 0.2em;
  color: var(--gold);
}

.page-home .eyebrow--on-ink{ color: var(--gold-lite); }

.page-home .home-hero__title{
  font-size: clamp(2rem, 5.4vw, 4.3rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--cream);
}

.page-home .home-hero__title em{
  font-style: normal;
  color: var(--gold-lite);
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-size: 100% 4px;
  background-position: 0 calc(100% - 0.04em);
  padding-bottom: 0.1em;
}

.page-home .home-hero__lede{
  max-width: 34em;
  color: var(--on-ink);
  font-size: var(--step-body);
}

.page-home .home-hero__meta{
  font-family: var(--font-mono);
  font-size: var(--step-index);
  letter-spacing: 0.06em;
  color: var(--gold);
  border-left: 2px solid var(--vermilion);
  padding-left: 12px;
}

.page-home .home-tile{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px 20px;
  background: var(--ink-2);
  color: var(--cream);
  text-decoration: none;
  clip-path: polygon(
    0 0,
    calc(100% - var(--home-cut)) 0,
    100% var(--home-cut),
    100% 100%,
    var(--home-cut) 100%,
    0 calc(100% - var(--home-cut))
  );
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background-color 0.18s var(--ease);
}

.page-home .home-tile:hover{
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.page-home .home-tile:focus-visible{
  outline: none;
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 2px var(--vermilion-hot);
}

.page-home .home-tile--red{
  grid-area: red;
  background: var(--vermilion);
  min-height: 150px;
  justify-content: center;
}

.page-home .home-tile--red:hover{ background: var(--vermilion-hot); }

.page-home .home-tile--dark{ background: var(--ink-2); }
.page-home .home-tile:nth-of-type(3){ grid-area: d1; }
.page-home .home-tile:nth-of-type(4){ grid-area: d2; }

.page-home .home-tile__kicker{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold-lite);
}

.page-home .home-tile--red .home-tile__kicker{ color: rgba(244, 235, 220, 0.82); }

.page-home .home-tile__title{
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
}

.page-home .home-tile__note{
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--on-ink-dim);
}

.page-home .home-tile--red .home-tile__note{ color: rgba(244, 235, 220, 0.86); }

.page-home .home-tile--art{
  grid-area: art;
  padding: 0;
  min-height: 210px;
  overflow: hidden;
  background: var(--ink-2);
}

.page-home .home-tile--art img{
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.page-home .home-tile__cap{
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 9px 14px;
  background: rgba(20, 16, 14, 0.78);
  color: var(--gold-lite);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* ---------- 栏目速览 ---------- */
.page-home .home-sections{
  background: var(--cream);
  padding: var(--home-pad-y) 0;
}

.page-home .home-head{
  display: grid;
  gap: 8px;
  margin-bottom: clamp(24px, 3vw, 38px);
}

.page-home .home-head__title{
  font-size: var(--step-chapter);
  font-weight: 900;
}

.page-home .home-head__desc{
  max-width: 46em;
  color: var(--muted);
  font-size: 0.9375rem;
}

.page-home .home-head--on-ink .chapter__num{ color: var(--gold); }
.page-home .home-head--on-ink .home-head__title{ color: var(--cream); }
.page-home .home-head--on-ink .home-head__desc{ color: var(--on-ink-dim); }

.page-home .home-sections__grid{
  display: grid;
  gap: var(--home-gap);
}

.page-home .home-card{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--cream-2);
  border-top: 3px solid var(--gold);
}

.page-home .home-card h3{
  font-size: var(--step-sub);
  font-weight: 700;
}

.page-home .home-card p{
  font-size: 0.9375rem;
  color: #4A3E34;
}

.page-home .home-card .tag{
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  padding: 3px 9px;
  border: 1px solid currentColor;
}

.page-home .tag--gold{ color: #8A5C14; }
.page-home .tag--jade{ color: var(--jade); }
.page-home .tag--red{ color: var(--vermilion); }

.page-home .home-card--wide{
  background: var(--ink);
  color: var(--on-ink);
  border-top-color: var(--vermilion);
}

.page-home .home-card--wide h3{ color: var(--cream); }
.page-home .home-card--wide p{ color: var(--on-ink); }
.page-home .home-card--wide .tag--gold{ color: var(--gold-lite); }

.page-home .home-card__link a{
  display: inline-block;
  color: var(--gold-lite);
  text-decoration: none;
  border-bottom: 1px solid var(--line-gold);
  padding-bottom: 1px;
  font-size: 0.9375rem;
}

.page-home .home-card__link a:hover{ color: var(--cream); }

.page-home .home-card__figure{
  margin: 8px 0 0;
  display: grid;
  gap: 8px;
}

.page-home .home-card__figure img{
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border: 1px solid var(--line-gold);
}

.page-home .home-card__cap{
  font-size: var(--step-index);
  color: var(--on-ink-dim);
  letter-spacing: 0.02em;
}

/* ---------- 最新内容带 ---------- */
.page-home .home-latest{
  background: var(--ink);
  color: var(--on-ink);
  padding: var(--home-pad-y) 0;
  background-image: repeating-linear-gradient(0deg, rgba(244, 235, 220, 0.03) 0 1px, transparent 1px 72px);
}

.page-home .home-band{
  background: var(--ink-2);
  border-left: 3px solid var(--vermilion);
  padding: clamp(16px, 2vw, 24px) clamp(16px, 2vw, 26px);
}

.page-home .home-band + .home-band{ margin-top: var(--home-gap); }

.page-home .home-band__head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-gold);
  margin-bottom: 6px;
}

.page-home .home-band__head h3{
  font-family: var(--font-mono);
  font-size: var(--step-index);
  letter-spacing: 0.2em;
  color: var(--gold-lite);
  font-weight: 500;
}

.page-home .home-band__all{
  font-size: 0.8125rem;
  color: var(--on-ink-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

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

.page-home .home-band__list{
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .home-band__list li + li{ border-top: 1px solid var(--line-gold-soft); }

.page-home .home-band__row{
  display: grid;
  grid-template-columns: 1fr 22px;
  gap: 2px 12px;
  padding: 13px 8px;
  text-decoration: none;
  color: var(--cream);
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease);
}

.page-home .home-band__list li:nth-child(even) .home-band__row{ background: rgba(244, 235, 220, 0.025); }

.page-home .home-band__row:hover,
.page-home .home-band__row:focus-visible{
  outline: none;
  transform: translateX(4px);
  background: rgba(217, 162, 74, 0.09);
  box-shadow: inset 2px 0 0 var(--gold);
}

.page-home .home-band__series{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.page-home .home-band__title{
  grid-column: 1 / 2;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.page-home .home-band__when{
  grid-column: 1 / 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--on-ink-dim);
}

.page-home .home-band__arrow{
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  align-self: center;
  color: var(--gold);
  opacity: 0.4;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}

.page-home .home-band__row:hover .home-band__arrow{
  opacity: 1;
  transform: translateX(2px);
}

.page-home .home-band__summary{
  grid-column: 1 / -1;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--on-ink-dim);
  transition: max-height 0.22s var(--ease), opacity 0.22s var(--ease), margin-top 0.22s var(--ease);
}

.page-home .home-band__row:hover .home-band__summary,
.page-home .home-band__row:focus-visible .home-band__summary{
  max-height: 6em;
  opacity: 1;
  margin-top: 6px;
}

/* ---------- 换机四步 ---------- */
.page-home .home-switch{
  background: var(--cream);
  padding: var(--home-pad-y) 0;
  border-top: 10px solid var(--cream-2);
}

.page-home .home-switch__grid{
  display: grid;
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}

.page-home .home-switch__title{
  margin-top: 6px;
  font-size: var(--step-chapter);
  font-weight: 900;
}

.page-home .home-switch__lede{
  margin-top: 10px;
  max-width: 40em;
  color: #4A3E34;
}

.page-home .home-steps{
  list-style: none;
  counter-reset: step;
  margin: 22px 0 26px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .home-steps li{
  position: relative;
  counter-increment: step;
  padding-left: 54px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--cream-2);
}

.page-home .home-steps li::before{
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  padding-top: 6px;
  border-top: 2px solid var(--vermilion);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--vermilion);
}

.page-home .home-steps strong{
  display: block;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
}

.page-home .home-steps span{
  display: block;
  font-size: 0.9375rem;
  color: #4A3E34;
}

.page-home .home-switch__figure{
  margin: 0;
  display: grid;
  gap: 10px;
}

.page-home .home-switch__figure img{
  width: 100%;
  border: 1px solid var(--line-gold);
  background: var(--ink-2);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

.page-home .home-switch__figure figcaption{
  font-size: var(--step-index);
  color: var(--muted);
}

/* ---------- 帮助与联系 ---------- */
.page-home .home-help{
  background: var(--ink);
  color: var(--on-ink);
  padding: var(--home-pad-y) 0;
}

.page-home .home-help__panel{
  display: grid;
  gap: clamp(22px, 3vw, 40px);
  padding: clamp(22px, 3vw, 40px);
  background: var(--ink-2);
  background-image: repeating-linear-gradient(135deg, rgba(217, 162, 74, 0.06) 0 1px, transparent 1px 14px);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
  border-top: 3px solid var(--vermilion);
}

.page-home .home-help__title{
  margin-top: 6px;
  font-size: var(--step-chapter);
  font-weight: 900;
  color: var(--cream);
}

.page-home .home-help__main > p{
  margin-top: 10px;
  max-width: 42em;
  color: var(--on-ink);
}

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

.page-home .home-help__list li{
  padding-left: 16px;
  border-left: 2px solid var(--gold);
  font-size: 0.9375rem;
  color: var(--on-ink);
}

.page-home .home-help__list strong{
  font-family: var(--font-display);
  color: var(--gold-lite);
  font-weight: 700;
}

.page-home .home-help__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-home .btn{
  display: inline-block;
  padding: 11px 22px;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.page-home .btn:hover{ transform: translateY(-4px); }
.page-home .btn:focus-visible{ outline: 2px solid var(--gold); outline-offset: 3px; }

.page-home .btn--primary{
  background: var(--vermilion);
  color: var(--cream);
}

.page-home .btn--primary:hover{ background: var(--vermilion-hot); }

.page-home .btn--gold{
  background: var(--gold);
  color: var(--ink);
}

.page-home .btn--gold:hover{ background: var(--gold-lite); }

.page-home .btn--line{
  border-color: var(--line-gold);
  color: var(--gold-lite);
}

.page-home .btn--line:hover{ border-color: var(--gold); color: var(--cream); }

.page-home .home-help__side{
  display: grid;
  gap: 6px;
  align-content: start;
  padding-top: 6px;
}

.page-home .home-help__side img{
  width: 88px;
  height: 88px;
  object-fit: cover;
  border: 1px solid var(--line-gold);
  margin-bottom: 8px;
}

.page-home .home-help__label{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.page-home .home-help__mail{
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  word-break: break-all;
}

.page-home .home-help__hours{
  font-size: 0.8125rem;
  color: var(--on-ink-dim);
}

.page-home .home-help__fine{
  margin-top: 18px;
  font-size: 0.8125rem;
  color: var(--on-ink-dim);
}

.page-home .home-help__fine a{
  color: var(--gold-lite);
  text-decoration: none;
  border-bottom: 1px solid var(--line-gold);
  margin: 0 2px;
}

.page-home .home-help__fine a:hover{ color: var(--cream); }

/* ---------- 快捷印章浮标 ---------- */
.page-home .home-seal{
  position: fixed;
  right: 10px;
  bottom: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  background: var(--ink);
  border: 1px solid var(--line-gold);
  box-shadow: 0 8px 22px rgba(20, 16, 14, 0.45);
}

.page-home .home-seal__mark{
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--vermilion);
  color: var(--gold-lite);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1;
}

.page-home .home-seal__link{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold-lite);
  text-decoration: none;
  padding: 6px 5px;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.page-home .home-seal__link:hover{
  color: var(--cream);
  background: rgba(217, 162, 74, 0.16);
}

.page-home .home-seal__link:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 620px){
  .page-home .home-band__row{
    grid-template-columns: 128px 1fr 128px 22px;
    align-items: center;
    gap: 4px 16px;
  }

  .page-home .home-band__series{ grid-column: 1 / 2; grid-row: 1 / 2; }
  .page-home .home-band__title{ grid-column: 2 / 3; grid-row: 1 / 2; }
  .page-home .home-band__when{ grid-column: 3 / 4; grid-row: 1 / 2; text-align: right; }
  .page-home .home-band__arrow{ grid-column: 4 / 5; grid-row: 1 / 2; }
}

@media (min-width: 860px){
  .page-home .home-sections__grid{
    grid-template-columns: 1.4fr 1fr;
    align-items: stretch;
  }

  .page-home .home-card--wide{ grid-row: span 2; }

  .page-home .home-switch__grid{
    grid-template-columns: 1.25fr 0.85fr;
  }

  .page-home .home-help__panel{
    grid-template-columns: 1.55fr 0.85fr;
    align-items: start;
  }
}

@media (min-width: 900px){
  .page-home .home-hero__grid{
    grid-template-columns: repeat(12, 1fr);
    grid-template-areas:
      "lead lead lead lead lead lead lead art art art art art"
      "lead lead lead lead lead lead lead red red red d1 d2";
  }

  .page-home .home-hero__lead{
    padding-right: clamp(8px, 1.6vw, 26px);
  }

  .page-home .home-hero__title{
    margin-left: calc(-1 * clamp(0px, 1.4vw, 24px));
  }

  .page-home .home-tile--art{ min-height: 100%; }
  .page-home .home-tile--art img{ min-height: 240px; }

  .page-home .home-seal{
    top: 50%;
    bottom: auto;
    right: 12px;
    transform: translateY(-50%);
    flex-direction: column;
    padding: 10px 8px;
  }

  .page-home .home-seal__link{
    writing-mode: vertical-rl;
    letter-spacing: 0.28em;
    padding: 8px 6px;
  }
}

@media (prefers-reduced-motion: reduce){
  .page-home .home-tile,
  .page-home .home-band__row,
  .page-home .home-band__summary,
  .page-home .home-band__arrow,
  .page-home .btn,
  .page-home .home-seal__link{
    transition: none;
  }

  .page-home .home-tile:hover,
  .page-home .home-band__row:hover,
  .page-home .btn:hover{
    transform: none;
  }
}
