.page-home {
  --home-hair: rgba(12, 42, 35, .14);
  --home-hair-light: rgba(255, 255, 255, .16);
  --home-card: var(--surface-raised);
  background: var(--paper-cream);
  color: var(--ink);
  font-family: var(--font-body);
}

.page-home a:focus-visible,
.page-home button:focus-visible,
.page-home summary:focus-visible {
  outline: 2px solid var(--warm-gold-600);
  outline-offset: 2px;
}

/* 上下文提示 */
.home-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 18px;
  padding-top: 16px;
  border-bottom: 1px solid var(--home-hair);
  padding-bottom: 12px;
}
.home-context__note {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--muted);
}

/* 首屏拼贴 */
.home-hero {
  padding-block: clamp(24px, 4vw, 46px) clamp(32px, 5vw, 62px);
}
.home-hero__intro {
  max-width: 860px;
}
.home-h1 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 6.4vw, 62px);
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--ink-green-900);
}
.home-lede {
  margin: 18px 0 0;
  max-width: 64ch;
  font-size: clamp(15.5px, 1.6vw, 18px);
  line-height: 1.85;
  color: var(--ink-soft);
}

.home-hero__grid {
  display: grid;
  gap: 16px;
  margin-top: clamp(22px, 3.4vw, 38px);
}

/* 日历主块 */
.home-cal {
  background: var(--ink-green-900);
  color: #fff;
  border: 1px solid rgba(242, 209, 139, .32);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-2);
  padding: clamp(14px, 2vw, 22px);
}
.home-cal__media {
  margin: 0 0 16px;
  border: 1px solid rgba(242, 209, 139, .26);
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--ink-green-700);
}
.home-cal__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.home-cal__tag {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--warm-gold-300);
}
.home-cal__title {
  margin: 6px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.4vw, 24px);
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff;
}
.home-cal__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--home-hair-light);
}
.home-cal__row {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 8px 10px 12px;
  border-bottom: 1px solid var(--home-hair-light);
  transition: background var(--dur) var(--ease);
}
.home-cal__row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 3px;
  background: var(--ember-orange);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform var(--dur) var(--ease);
}
.home-cal__row:hover,
.home-cal__row:focus-within {
  background: rgba(242, 209, 139, .08);
}
.home-cal__row:hover::before,
.home-cal__row:focus-within::before {
  transform: scaleY(1);
}
.home-cal__time {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--warm-gold-300);
}
.home-cal__what {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .9);
}
.home-cal__pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  color: var(--warm-gold-300);
  white-space: nowrap;
}
.home-cal__pill--ember {
  background: var(--ember-orange);
  border-color: var(--ember-orange);
  color: #2B0F06;
  font-weight: 700;
}
.home-cal__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}
.home-cal__foot span {
  font-size: 11.5px;
  color: rgba(255, 255, 255, .62);
}
.page-home .home-cal .btn--solid {
  background: var(--warm-gold-600);
  border-color: var(--warm-gold-600);
  color: var(--ink-green-900);
}

/* 侧栏瀑布 */
.home-side {
  display: grid;
  gap: 12px;
}
.home-tile {
  background: var(--home-card);
  border: 1px solid var(--home-hair);
  border-radius: var(--radius-m);
  padding: 16px 18px;
  box-shadow: var(--shadow-1);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.home-tile:hover {
  border-color: var(--warm-gold-600);
  box-shadow: var(--shadow-2);
}
.home-tile__kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.home-tile__title {
  margin: 7px 0 6px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-green-900);
}
.home-tile__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.home-tile__link {
  display: inline-block;
  margin-top: 10px;
  padding-bottom: 1px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-green-900);
  text-decoration: none;
  border-bottom: 1px solid var(--warm-gold-600);
  transition: color var(--dur) var(--ease);
}
.home-tile__link:hover {
  color: var(--warm-gold-600);
}
.home-tile--gift {
  border-left: 3px solid var(--ember-orange);
  background: var(--paper-deep);
}
.home-tile--gift:hover {
  border-color: var(--ember-orange);
}
.home-tile--index {
  background: var(--cool-slate-050);
  border-color: rgba(94, 110, 126, .29);
}
.home-index-num {
  margin: 8px 0 6px;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-green-700);
}

/* 章节通用 */
.home-chapter {
  padding-block: clamp(32px, 4.4vw, 58px);
}
.home-ch-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 8px 16px;
  border-top: 3px solid var(--warm-gold-600);
  padding-top: 16px;
  margin-bottom: clamp(20px, 3vw, 30px);
}
.home-ch-num {
  font-family: var(--font-mono);
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 700;
  line-height: .9;
  color: var(--warm-gold-600);
}
.home-ch-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(21px, 3.2vw, 33px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -.02em;
  color: var(--ink-green-900);
}
.home-ch-sub {
  margin: 9px 0 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* 左右分栏 + 粘性目录 */
.home-split {
  display: grid;
  gap: 20px;
}
.page-home .home-split .toc {
  display: grid;
  gap: 9px;
}
.page-home .home-split .toc__link {
  font-size: 13.5px;
}
.home-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--home-hair);
  padding-top: 12px;
}
.home-legend__label {
  flex-basis: 100%;
  margin: 0 0 2px;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-figure {
  margin: 0 0 18px;
}
.home-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--home-hair);
  border-radius: var(--radius-m);
}
.home-figure__cap {
  margin: 8px 0 0;
  font-size: 11.5px;
  color: var(--muted);
}

/* 时刻表 */
.home-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--home-hair);
  border-radius: var(--radius-m);
  background: var(--surface-raised);
}
.home-timetable {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 13.5px;
}
.home-timetable__cap {
  caption-side: top;
  text-align: left;
  padding: 12px 14px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--muted);
}
.home-timetable th,
.home-timetable td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--home-hair);
  white-space: nowrap;
}
.home-timetable thead th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--muted);
  background: var(--paper-deep);
}
.home-timetable tbody th {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-green-700);
}
.home-timetable tbody tr {
  transition: background var(--dur) var(--ease);
}
.home-timetable tbody tr:hover {
  background: rgba(200, 146, 46, .1);
}
.home-timetable tbody tr:last-child th,
.home-timetable tbody tr:last-child td {
  border-bottom: 0;
}

/* 折叠说明 */
.home-more {
  margin-top: 16px;
  border: 1px solid var(--home-hair);
  border-left: 3px solid var(--warm-gold-600);
  border-radius: var(--radius-m);
  background: var(--surface-raised);
}
.home-more summary {
  cursor: pointer;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-green-900);
  list-style: none;
}
.home-more summary::-webkit-details-marker {
  display: none;
}
.home-more summary::before {
  content: "＋";
  margin-right: 8px;
  font-weight: 700;
  color: var(--warm-gold-600);
}
.home-more[open] summary::before {
  content: "－";
}
.home-more__list {
  margin: 0;
  padding: 0 18px 16px;
  list-style: none;
  display: grid;
  gap: 8px;
}
.home-more__list li {
  padding-left: 12px;
  border-left: 1px solid var(--home-hair);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.home-more__list strong {
  color: var(--ink-green-900);
}

/* 专区入口 */
.home-entries {
  display: grid;
  gap: 14px;
}
.home-entry {
  display: block;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  background: var(--home-card);
  border: 1px solid var(--home-hair);
  border-radius: var(--radius-m);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.home-entry:hover {
  border-color: var(--warm-gold-600);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}
.home-entry--lead {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  background: var(--ink-green-700);
  border-color: rgba(242, 209, 139, .32);
  color: #fff;
}
.home-entry--lead:hover {
  transform: none;
  border-color: var(--warm-gold-300);
}
.home-entry__media {
  margin: 0;
}
.home-entry__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-entry__body {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px 22px 22px;
}
.home-entry__num {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--warm-gold-600);
}
.home-entry__title {
  margin: 6px 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink-green-900);
}
.home-entry__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.home-entry__go {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--warm-gold-600);
}
.home-entry--lead .home-entry__num {
  color: var(--warm-gold-300);
}
.home-entry--lead .home-entry__title {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.4vw, 25px);
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff;
}
.home-entry--lead .home-entry__text {
  color: rgba(255, 255, 255, .82);
}
.home-entry--lead .home-entry__go {
  color: var(--warm-gold-300);
}

/* 攻略与评测 */
.home-pair {
  display: grid;
  gap: 16px;
}
.home-panel {
  background: var(--home-card);
  border: 1px solid var(--home-hair);
  border-radius: var(--radius-m);
  padding: clamp(18px, 2.4vw, 26px);
  box-shadow: var(--shadow-1);
}
.home-panel--slate {
  background: var(--cool-slate-050);
  border-color: rgba(94, 110, 126, .28);
}
.home-panel__kicker {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.home-panel__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.3vw, 26px);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -.01em;
  color: var(--ink-green-900);
}
.home-panel p {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.home-panel__list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.home-panel__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.home-panel__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warm-gold-600);
}
.home-panel__media {
  margin: 0 0 14px;
  border: 1px solid rgba(94, 110, 126, .24);
  border-radius: var(--radius-s);
  overflow: hidden;
  background: #fff;
}
.home-panel__media img {
  display: block;
  width: 100%;
  height: auto;
}
.home-code {
  display: inline-block;
  margin: 14px 0 0;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-green-700);
  background: #fff;
  border: 1px dashed rgba(22, 70, 58, .4);
  border-radius: var(--radius-s);
}
.home-panel__foot {
  display: inline-block;
  margin-top: 16px;
  padding-bottom: 2px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-green-900);
  text-decoration: none;
  border-bottom: 1px solid var(--warm-gold-600);
  transition: color var(--dur) var(--ease);
}
.home-panel__foot:hover {
  color: var(--warm-gold-600);
}

/* 礼包深色带 */
.home-chapter--ink {
  background: var(--ink-green-900);
  color: #fff;
}
.home-gift {
  display: grid;
  gap: 18px;
  align-items: start;
}
.home-gift__stamp {
  margin: 0;
  display: inline-block;
  justify-self: start;
  padding: 14px 20px;
  background: var(--ember-orange);
  color: #2B0F06;
  font-family: var(--font-display);
  font-size: clamp(22px, 3.6vw, 34px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: .02em;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-2);
}
.home-gift__num {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--warm-gold-300);
}
.home-gift__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(21px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: #fff;
}
.home-gift__body p {
  margin: 0 0 16px;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255, 255, 255, .82);
}
.home-chapter--ink .btn--solid {
  background: var(--warm-gold-600);
  border-color: var(--warm-gold-600);
  color: var(--ink-green-900);
}
.home-chapter--ink .btn--quiet {
  color: var(--warm-gold-300);
  border: 1px solid rgba(242, 209, 139, .45);
}

/* 更新日志 */
.home-log {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--home-hair);
}
.home-log__item {
  position: relative;
  display: grid;
  gap: 4px 18px;
  padding: 16px 6px 16px 12px;
  border-bottom: 1px solid var(--home-hair);
  transition: background var(--dur) var(--ease);
}
.home-log__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--electric-teal);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.home-log__item:hover {
  background: rgba(47, 185, 168, .07);
}
.home-log__item:hover::before {
  opacity: 1;
}
.home-log__when {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--warm-gold-600);
}
.home-log__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-green-900);
}
.home-log__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* 联系 */
.home-contact {
  display: grid;
  gap: 12px;
}
.home-contact__card {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 16px 18px;
  background: var(--home-card);
  border: 1px solid var(--home-hair);
  border-radius: var(--radius-m);
  transition: border-color var(--dur) var(--ease);
}
.home-contact__card:hover {
  border-color: var(--warm-gold-600);
}
.home-contact__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.home-contact__value {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  word-break: break-word;
  color: var(--ink-green-900);
}
.home-contact__card .copy-btn {
  justify-self: start;
  margin-top: 4px;
  font-size: 12px;
}
.home-copy-status {
  min-height: 1em;
  font-size: 11px;
  color: var(--ink-green-700);
}
.home-contact__text {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.home-contact__note {
  margin: 16px 0 18px;
  max-width: 70ch;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.home-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.home-foot {
  display: flex;
  justify-content: flex-end;
  padding-block: 24px 40px;
  border-top: 1px solid var(--home-hair);
}

/* 平板 */
@media (min-width: 560px) {
  .home-side {
    grid-template-columns: 1fr 1fr;
  }
  .home-entries {
    grid-template-columns: 1fr 1fr;
  }
  .home-entry--lead {
    grid-column: 1 / -1;
  }
  .home-contact {
    grid-template-columns: 1fr 1fr;
  }
}

/* 桌面：非对称双栏拼贴 */
@media (min-width: 860px) {
  .home-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 20px;
    align-items: start;
  }
  .home-side {
    grid-template-columns: 1fr;
  }
  .home-entry--lead {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: stretch;
  }
  .home-gift {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 32px;
    align-items: center;
  }
  .home-gift__stamp {
    align-self: start;
  }
}

@media (min-width: 940px) {
  .home-split {
    grid-template-columns: 216px minmax(0, 1fr);
    gap: 36px;
  }
  .home-split__aside {
    position: sticky;
    top: 92px;
    align-self: start;
    display: grid;
    gap: 18px;
  }
  .home-pair {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 18px;
    align-items: start;
  }
  .home-log__item {
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: baseline;
  }
  .home-contact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 窄屏微调 */
@media (max-width: 420px) {
  .home-cal__row {
    grid-template-columns: 52px minmax(0, 1fr);
    row-gap: 6px;
  }
  .home-cal__pill {
    grid-column: 2;
    justify-self: start;
  }
  .home-ch-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .home-ch-num {
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-entry:hover {
    transform: none;
  }
  .page-home .home-cal__row::before,
  .page-home .home-log__item::before {
    transform: none;
    transition: none;
  }
}
