.page-home {
  --home-gap: clamp(1rem, 2.4vw, 1.6rem);
  background: var(--warm);
  color: var(--deep);
  overflow-x: hidden;
}

.page-home img {
  display: block;
  max-width: 100%;
  height: auto;
}

.page-home .home-hero,
.page-home .rounds,
.page-home .updates,
.page-home .entries,
.page-home .rules,
.page-home .checklist,
.page-home .services {
  padding: clamp(2.6rem, 6vw, 4.5rem) 0;
}

.page-home .breadcrumb {
  margin: 0 0 1.1rem;
}

.page-home .breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .8rem;
  color: #5b6f66;
}

.page-home .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-right: .4rem;
  color: var(--metal);
}

.page-home .breadcrumb-link {
  color: var(--ink-stand);
  text-decoration: none;
}

.page-home .breadcrumb-link:hover {
  color: var(--flame);
}

.page-home .block-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.6vw, 2.5rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: .01em;
  margin: .4rem 0 .7rem;
  color: var(--deep);
}

.page-home .block-lede {
  max-width: 68ch;
  margin: 0 0 1.6rem;
  font-size: clamp(.95rem, 2vw, 1.05rem);
  line-height: 1.85;
  color: #3c514a;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  padding-top: clamp(1.25rem, 3vw, 2.5rem);
  background:
    radial-gradient(120% 90% at 88% 6%, rgba(255, 106, 42, .16) 0%, rgba(255, 106, 42, 0) 55%),
    linear-gradient(165deg, var(--warm) 0%, var(--milk) 62%, #e9efe4 100%);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 6px;
  background: repeating-linear-gradient(115deg, var(--flame) 0 18px, transparent 18px 36px);
  opacity: .45;
}

.page-home .hero-shell {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.page-home .hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 7vw, 3.55rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: .01em;
  margin: .4rem 0 1rem;
  color: var(--ink-night);
}

.page-home .hero-lede {
  margin: 0;
  max-width: 56ch;
  font-size: clamp(1rem, 2.3vw, 1.08rem);
  line-height: 1.85;
  color: var(--ink-stand);
}

.page-home .hero-points {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: .6rem;
}

.page-home .hero-points li {
  display: flex;
  gap: .65rem;
  font-size: .94rem;
  line-height: 1.7;
  color: #33473f;
}

.page-home .hero-points li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: .55rem;
  background: var(--flame);
  border-radius: 2px;
  transform: rotate(45deg);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

.page-home .hero-note {
  margin: 1.2rem 0 0;
  padding-left: .85rem;
  border-left: 3px solid var(--metal);
  font-size: .85rem;
  line-height: 1.75;
  color: #4a5d55;
}

.page-home .hero-visual {
  min-width: 0;
}

.page-home .hero-figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-night);
  box-shadow: var(--shadow-card);
}

.page-home .hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-home .scoreboard {
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: .9rem;
  padding: clamp(.9rem, 2.4vw, 1.35rem);
  background: rgba(11, 46, 36, .93);
  border: 1px solid rgba(61, 220, 151, .28);
  border-radius: var(--radius-md);
  color: var(--warm);
}

.page-home .score-label {
  margin: 0;
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--metal);
}

.page-home .score-top {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  margin: .25rem 0 0;
}

.page-home .score-num {
  font-family: var(--font-mono);
  font-size: clamp(2.6rem, 9vw, 4rem);
  line-height: 1;
  font-weight: 700;
  color: var(--flame);
}

.page-home .score-unit {
  font-size: .85rem;
  letter-spacing: .08em;
  color: var(--mist);
}

.page-home .score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
  margin-top: .9rem;
  padding-top: .8rem;
  border-top: 1px solid rgba(140, 148, 148, .38);
}

.page-home .score-grid div {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.page-home .score-grid b {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--amber);
}

.page-home .score-grid span {
  font-size: .72rem;
  color: var(--mist);
}

.page-home .score-foot {
  margin: .8rem 0 0;
  font-size: .72rem;
  color: var(--metal);
}

/* ---------- 轮次 ---------- */
.page-home .rounds {
  background: var(--ink-night);
  color: var(--warm);
}

.page-home .rounds .eyebrow {
  color: var(--amber);
}

.page-home .rounds .block-title {
  color: var(--warm);
}

.page-home .rounds .block-lede {
  color: var(--mist);
}

.page-home .round-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1.1rem;
}

.page-home .round-tab {
  font: inherit;
  font-size: .85rem;
  padding: .5rem 1rem;
  border-radius: var(--pill);
  border: 1px solid rgba(217, 222, 217, .32);
  background: transparent;
  color: var(--mist);
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.page-home .round-tab:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.page-home .round-tab[aria-selected="true"] {
  background: var(--flame);
  border-color: var(--flame);
  color: #1a1206;
  font-weight: 700;
}

.page-home .round-tab:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.page-home .round-panel + .round-panel {
  margin-top: 1rem;
}

.page-home .round-panel p {
  margin: 0;
  max-width: 62ch;
  font-size: .93rem;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .round-chips {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
  margin: 1rem 0 0;
  padding: 0;
}

.page-home .round-chip {
  border-radius: 10px;
  padding: .6rem .4rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--mist);
  background: var(--ink-stand);
  border: 1px solid rgba(140, 148, 148, .3);
}

.page-home .round-chip.is-current {
  background: #1a4a3a;
  border-color: var(--amber);
  color: var(--amber);
  box-shadow: inset 0 0 0 1px rgba(255, 179, 71, .28);
}

.page-home .rounds-foot {
  margin: 1.5rem 0 0;
}

.page-home .rounds-foot a {
  display: inline-block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--flame);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 106, 42, .5);
  padding-bottom: 2px;
}

.page-home .rounds-foot a:hover {
  color: var(--amber);
  border-color: var(--amber);
}

/* ---------- 本月更新 ---------- */
.page-home .updates {
  background: var(--milk);
}

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

.page-home .update-cell {
  min-width: 0;
  margin: 0;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  background: var(--warm);
  border: 1px solid var(--mist);
  border-radius: var(--radius-md);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.page-home .update-cell:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.page-home .update-cell h3 {
  margin: 0 0 .5rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: .01em;
  color: var(--ink-night);
}

.page-home .update-cell p {
  margin: 0;
  font-size: .93rem;
  line-height: 1.8;
  color: #3c514a;
}

.page-home .update-cell--dark {
  background: var(--ink-stand);
  border-color: transparent;
}

.page-home .update-cell--dark h3 {
  color: var(--amber);
}

.page-home .update-cell--dark p {
  color: var(--mist);
}

.page-home .update-cell--photo {
  padding: 0;
  overflow: hidden;
  min-height: 180px;
}

.page-home .update-cell--photo img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.page-home .update-link {
  display: inline-block;
  margin-top: .9rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--flame);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 106, 42, .45);
  padding-bottom: 2px;
}

.page-home .update-link:hover {
  color: var(--amber);
  border-color: var(--amber);
}

/* ---------- 入口 ---------- */
.page-home .entries {
  background: linear-gradient(180deg, var(--warm) 0%, #e9efe4 100%);
}

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

.page-home .entry-cards {
  display: grid;
  gap: var(--home-gap);
  align-content: start;
}

.page-home .cut-card {
  position: relative;
  padding: clamp(1.4rem, 3.4vw, 2rem);
  background: var(--ink-stand);
  color: var(--warm);
  border-radius: 4px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
  transition: transform .25s var(--ease);
}

.page-home .cut-card--alt {
  background: var(--moss);
}

.page-home .cut-card:hover {
  transform: translateY(-3px);
}

.page-home .cut-card h3 {
  margin: 0 0 .7rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: .01em;
  color: var(--warm);
}

.page-home .cut-card p {
  margin: 0 0 1.1rem;
  font-size: .91rem;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .cut-card .btn {
  margin-top: .2rem;
}

.page-home .card-steps {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: grid;
  gap: .5rem;
}

.page-home .card-steps li {
  display: flex;
  gap: .6rem;
  font-size: .89rem;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .card-steps b {
  flex: none;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--flame);
}

.page-home .entry-figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 220px;
}

.page-home .entry-figure img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

/* ---------- 规则案例 ---------- */
.page-home .rules {
  background: var(--milk);
}

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

.page-home .rules-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 240px;
}

.page-home .rules-figure img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.page-home .rule-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.4rem, 3.6vw, 2.2rem);
  background: var(--ink-night);
  color: var(--warm);
  border-radius: var(--radius-lg);
}

.page-home .rule-panel h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: .02em;
  color: var(--amber);
}

.page-home .rule-rows {
  display: grid;
  gap: .55rem;
}

.page-home .rule-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px dashed rgba(140, 148, 148, .4);
  font-size: .89rem;
  color: var(--mist);
}

.page-home .rule-row span:last-child {
  font-family: var(--font-mono);
  color: var(--amber);
  text-align: right;
}

.page-home .rule-panel p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.page-home .project-tags a {
  font-size: .82rem;
  padding: .35rem .8rem;
  border-radius: var(--pill);
  border: 1px solid rgba(217, 222, 217, .36);
  color: var(--warm);
  text-decoration: none;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.page-home .project-tags a:hover {
  background: var(--flame);
  border-color: var(--flame);
  color: #1a1206;
}

.page-home .rule-panel .btn {
  align-self: flex-start;
}

/* ---------- 清单 ---------- */
.page-home .checklist {
  background: var(--warm);
}

.page-home .check-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .8rem;
}

.page-home .check-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .95rem 1rem;
  background: var(--milk);
  border: 1px solid var(--mist);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.page-home .check-item:hover {
  border-color: var(--amber);
}

.page-home .check-item:focus-within {
  outline: 2px solid var(--flame);
  outline-offset: 3px;
}

.page-home .check-item input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.page-home .check-mark {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  border: 2px solid var(--metal);
  border-radius: 7px;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}

.page-home .check-mark::after {
  content: "✓";
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink-night);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}

.page-home .check-item input:checked + .check-mark {
  background: var(--signal);
  border-color: var(--signal);
}

.page-home .check-item input:checked + .check-mark::after {
  opacity: 1;
  transform: scale(1);
}

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

.page-home .check-title {
  display: block;
  margin-bottom: .2rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .02em;
  color: var(--ink-night);
}

.page-home .check-desc {
  display: block;
  font-size: .85rem;
  line-height: 1.7;
  color: #42564e;
}

/* ---------- 服务 ---------- */
.page-home .services {
  background: linear-gradient(180deg, var(--milk) 0%, var(--warm) 100%);
}

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

.page-home .service-card {
  padding: clamp(1.2rem, 3vw, 1.7rem);
  background: var(--milk);
  border: 1px solid var(--mist);
  border-left: 5px solid var(--flame);
  border-radius: var(--radius-md);
}

.page-home .service-card h3 {
  margin: 0 0 .55rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: .02em;
  color: var(--ink-night);
}

.page-home .service-card p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.8;
  color: #3c514a;
}

.page-home .service-note {
  margin: 1.4rem 0 0;
  font-size: .85rem;
  line-height: 1.75;
  color: #4a5d55;
}

.page-home .service-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.1rem;
}

/* ---------- 断点 ---------- */
@media (min-width: 640px) {
  .page-home .round-chips {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

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

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

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

@media (min-width: 900px) {
  .page-home .hero-shell {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    align-items: center;
  }

  .page-home .hero-figure img {
    aspect-ratio: 5 / 5;
  }

  .page-home .entry-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, .95fr);
    align-items: stretch;
  }

  .page-home .rules-layout {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: stretch;
  }

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

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

  .page-home .update-cell--wide {
    grid-column: span 4;
  }

  .page-home .update-cell--photo {
    grid-column: span 2;
  }

  .page-home .round-chip {
    font-size: .88rem;
  }
}

@media (max-width: 639px) {
  .page-home .scoreboard {
    position: static;
    margin: .75rem;
  }

  .page-home .hero-figure img {
    aspect-ratio: 16 / 11;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .update-cell,
  .page-home .cut-card,
  .page-home .round-tab,
  .page-home .check-mark,
  .page-home .check-mark::after {
    transition: none;
  }

  .page-home .update-cell:hover,
  .page-home .cut-card:hover {
    transform: none;
  }
}
