.page-home {
  --home-bg: #F5F0E8;
  --home-ink: #1A1A1A;
  --home-sub: #3A3A3A;
  --home-soft: #E0DCD3;
  --home-red: #E63946;
  --home-blue: #2A6F97;
  --home-gold: #C9A227;
  --home-line: 4px solid var(--home-ink);
  --home-shadow: 8px 8px 0 rgba(26, 26, 26, 0.14);
  --home-font-display: var(--font-display);
  background-color: var(--home-bg);
  color: var(--home-ink);
  font-family: var(--font-body);
  overflow-x: clip;
}

.page-home .eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  border: 2px solid var(--home-ink);
  padding: 5px 12px;
  background: var(--home-bg);
  box-shadow: 3px 3px 0 var(--home-ink);
  color: var(--home-ink);
  margin-bottom: 0.75rem;
}

.page-home .display-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.3rem, 6.6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0.5rem 0 1rem;
  text-wrap: balance;
}

.page-home .section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.55rem, 3.8vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
  margin: 0.5rem 0 0.75rem;
  text-wrap: balance;
}

.page-home .section-desc {
  max-width: 56ch;
  line-height: 1.72;
  font-size: 0.95rem;
  margin: 0.75rem 0 0;
  color: var(--home-sub);
}

.page-home .btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.4;
  padding: 12px 24px;
  border-radius: var(--rad);
  border: 3px solid var(--home-ink);
  box-shadow: 4px 4px 0 var(--home-ink);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.page-home .btn:hover,
.page-home .btn:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--home-ink);
}

.page-home .btn-primary {
  background: var(--home-red);
  color: #ffffff;
  border-color: var(--home-ink);
}

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

.page-home .btn-light {
  background: var(--home-bg);
  color: var(--home-ink);
  border-color: var(--home-bg);
  box-shadow: 4px 4px 0 rgba(245, 240, 232, 0.35);
}

.page-home .btn-light:hover,
.page-home .btn-light:focus-visible {
  box-shadow: 2px 2px 0 rgba(245, 240, 232, 0.35);
}

/* 统一内容宽度约束 */
.page-home .hero-inner,
.page-home .home-toc,
.page-home .register-section .section-head,
.page-home .register-section .section-footer,
.page-home .skill-tree,
.page-home .register-media,
.page-home .catalog-inner,
.page-home .user-section .section-head,
.page-home .user-section .section-footer,
.page-home .user-preview,
.page-home .cycle-inner,
.page-home .home-explore .section-head,
.page-home .explore-grid,
.page-home .explore-note {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--content-gutter);
}

/* 公告栏 */
.page-home .home-alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  background: var(--home-ink);
  color: var(--home-bg);
  padding: 14px var(--content-gutter);
  border-bottom: var(--home-line);
  font-size: 0.92rem;
}

.page-home .alert-tag {
  background: var(--home-red);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.page-home .alert-msg {
  margin: 0;
  flex: 1 1 240px;
  line-height: 1.6;
}

.page-home .alert-link {
  color: var(--home-bg);
  font-weight: 700;
  border-bottom: 2px solid var(--home-gold);
  text-decoration: none;
  font-size: 0.88rem;
  flex: 0 0 auto;
}

.page-home .alert-link:hover {
  color: var(--home-gold);
}

/* 首屏 Hero */
.page-home .hero {
  position: relative;
  border-bottom: var(--home-line);
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0,
      transparent 14px,
      rgba(26, 26, 26, 0.06) 14px,
      rgba(26, 26, 26, 0.06) 16px
    );
}

.page-home .hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  height: 18px;
  background: repeating-linear-gradient(
    -45deg,
    var(--home-ink) 0,
    var(--home-ink) 12px,
    transparent 12px,
    transparent 22px
  );
  border-top: 3px solid var(--home-ink);
  z-index: 2;
  pointer-events: none;
}

.page-home .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 0;
}

.page-home .hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  padding-top: clamp(2.4rem, 6vw, 6rem);
  padding-bottom: clamp(3rem, 7vw, 7rem);
}

.page-home .hero-copy {
  max-width: 700px;
}

.page-home .hero-lead {
  font-size: 1.06rem;
  line-height: 1.75;
  margin: 1rem 0 1.7rem;
  max-width: 56ch;
  color: var(--home-sub);
  font-weight: 450;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-home .hero-trust {
  margin: 1.5rem 0 0;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--home-sub);
  border-left: 4px solid var(--home-gold);
  padding-left: 14px;
  max-width: 46ch;
}

.page-home .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 760px;
}

.page-home .stat-block {
  border: var(--home-line);
  background: #ffffff;
  padding: 18px 12px;
  box-shadow: var(--home-shadow);
  text-align: center;
}

.page-home .stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--home-red);
}

.page-home .stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--home-sub);
}

/* 页内索引目录 */
.page-home .home-toc {
  position: sticky;
  top: var(--header-h);
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  padding-bottom: 12px;
  background: var(--home-bg);
  border-bottom: 3px solid var(--home-ink);
  box-shadow: 0 6px 0 rgba(26, 26, 26, 0.08);
}

.page-home .toc-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--home-blue);
  margin-right: 6px;
}

.page-home .toc-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--home-ink);
  text-decoration: none;
  padding: 5px 12px;
  border: 2px solid transparent;
  transition: all 0.2s var(--ease);
}

.page-home .toc-link:hover,
.page-home .toc-link:focus-visible {
  border-color: var(--home-ink);
  background: var(--home-gold);
  box-shadow: 2px 2px 0 var(--home-ink);
}

/* 三步注册 */
.page-home .register-section,
.page-home .user-section {
  padding-top: clamp(2.6rem, 6vw, 5rem);
  padding-bottom: clamp(2.6rem, 6vw, 5rem);
  border-bottom: var(--home-line);
}

.page-home .register-section {
  display: grid;
  gap: 2rem;
}

.page-home .skill-tree {
  display: grid;
  gap: 18px;
  margin-top: 0.5rem;
}

.page-home .skill-step {
  border: var(--home-line);
  background: #ffffff;
  padding: 20px;
  box-shadow: var(--home-shadow);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .skill-step:hover {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--home-ink);
  border-color: var(--home-blue);
}

.page-home .skill-step-index {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--home-red);
  min-width: 58px;
  border-right: 3px solid var(--home-ink);
  padding-right: 14px;
}

.page-home .skill-step-body h3 {
  font-size: 1.08rem;
  margin: 0 0 6px;
  font-weight: 800;
}

.page-home .skill-step-body p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--home-sub);
}

.page-home .register-media,
.page-home .catalog-media,
.page-home .cycle-media {
  border: var(--home-line);
  background: var(--home-soft);
  box-shadow: var(--home-shadow);
  overflow: hidden;
}

.page-home .register-media {
  max-width: 720px;
}

.page-home .register-media img,
.page-home .catalog-media img,
.page-home .cycle-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .register-media img {
  aspect-ratio: 4 / 3;
}

.page-home .section-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 0.5rem;
}

/* 内容目录专区（暗色） */
.page-home .catalog-section {
  background: var(--home-ink);
  color: var(--home-bg);
  padding-top: clamp(2.6rem, 6vw, 5rem);
  padding-bottom: clamp(2.6rem, 6vw, 5rem);
  border-bottom: var(--home-line);
  position: relative;
  overflow: hidden;
}

.page-home .catalog-section::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(190, 80, 244, 0.4), transparent 70%);
  pointer-events: none;
}

.page-home .catalog-section::after {
  content: "";
  position: absolute;
  left: -60px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.3), transparent 70%);
  pointer-events: none;
}

.page-home .catalog-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
}

.page-home .catalog-section .eyebrow {
  background: transparent;
  border-color: var(--home-bg);
  color: var(--home-bg);
  box-shadow: 3px 3px 0 rgba(245, 240, 232, 0.35);
}

.page-home .catalog-section .section-title {
  color: var(--home-bg);
}

.page-home .catalog-section .section-desc {
  color: rgba(245, 240, 232, 0.82);
}

.page-home .catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .cat-card {
  border: 2px solid var(--home-bg);
  background: rgba(255, 255, 255, 0.06);
  padding: 18px;
  transition: all 0.2s var(--ease);
}

.page-home .cat-card:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: var(--home-gold);
  transform: translateX(5px);
}

.page-home .cat-card h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  margin: 0 0 8px;
  color: var(--home-bg);
  letter-spacing: 0.04em;
}

.page-home .cat-card p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(245, 240, 232, 0.78);
  margin: 0 0 12px;
}

.page-home .cat-meta {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--home-gold);
  border: 1px solid var(--home-gold);
  padding: 3px 10px;
}

.page-home .monthly-entry {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  border: 2px solid rgba(245, 240, 232, 0.35);
  background: rgba(255, 255, 255, 0.08);
  padding: 18px;
}

.page-home .entry-mark {
  width: 12px;
  height: 48px;
  background: var(--home-gold);
  flex: 0 0 auto;
}

.page-home .entry-text {
  flex: 1 1 220px;
}

.page-home .entry-text strong {
  display: block;
  font-size: 1rem;
  color: var(--home-bg);
  margin-bottom: 4px;
}

.page-home .entry-text p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(245, 240, 232, 0.78);
}

.page-home .catalog-more {
  border: 2px solid rgba(245, 240, 232, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.page-home .catalog-more summary {
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--home-bg);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.page-home .catalog-more summary::-webkit-details-marker {
  display: none;
}

.page-home .catalog-more summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--home-gold);
  margin-left: 12px;
}

.page-home .catalog-more[open] summary::after {
  content: "−";
}

.page-home .cat-sub-list {
  margin: 0;
  padding: 0 18px 14px;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  border-top: 1px solid rgba(245, 240, 232, 0.2);
  padding-top: 14px;
}

.page-home .cat-sub-list li {
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(245, 240, 232, 0.8);
  padding-left: 12px;
  border-left: 3px solid var(--home-blue);
}

.page-home .catalog-note {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 0.78rem;
  color: rgba(245, 240, 232, 0.6);
  line-height: 1.6;
}

.page-home .catalog-media img {
  aspect-ratio: 3 / 2;
}

/* 个人中心 */
.page-home .user-section {
  display: grid;
  gap: 1.6rem;
}

.page-home .user-preview {
  border: var(--home-line);
  background: #ffffff;
  box-shadow: var(--home-shadow);
  padding: 22px;
}

.page-home .preview-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 3px solid var(--home-ink);
  margin-bottom: 16px;
}

.page-home .preview-tab {
  display: inline-block;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  border-right: 2px solid var(--home-ink);
  color: var(--home-sub);
  background: transparent;
}

.page-home .preview-tab.is-active {
  background: var(--home-blue);
  color: #ffffff;
}

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

.page-home .feature-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--home-soft);
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--home-sub);
}

.page-home .feature-list li:last-child {
  border-bottom: none;
}

.page-home .feature-list strong {
  color: var(--home-ink);
  font-weight: 800;
}

/* 活动周期 */
.page-home .cycle-section {
  background:
    linear-gradient(135deg, #0D0B14 0%, #2B2038 55%, #1A1A1A 100%);
  color: var(--home-bg);
  padding-top: clamp(2.6rem, 6vw, 5rem);
  padding-bottom: clamp(2.6rem, 6vw, 5rem);
  border-bottom: var(--home-line);
  position: relative;
  overflow: hidden;
}

.page-home .cycle-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  height: 14px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(245, 240, 232, 0.3) 0,
    rgba(245, 240, 232, 0.3) 10px,
    transparent 10px,
    transparent 18px
  );
  pointer-events: none;
}

.page-home .cycle-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
}

.page-home .cycle-section .eyebrow {
  background: transparent;
  border-color: var(--home-bg);
  color: var(--home-bg);
  box-shadow: 3px 3px 0 rgba(245, 240, 232, 0.35);
}

.page-home .cycle-section .section-title {
  color: var(--home-bg);
}

.page-home .cycle-section .section-desc {
  color: rgba(245, 240, 232, 0.82);
}

.page-home .cycle-visual {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.page-home .cycle-ring {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.page-home .cycle-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.page-home .ring-track {
  stroke: rgba(245, 240, 232, 0.18);
}

.page-home .ring-progress {
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(201, 162, 39, 0.55));
}

.page-home .ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--home-bg);
  line-height: 1;
}

.page-home .ring-label small {
  font-size: 0.78rem;
  color: var(--home-gold);
  margin-top: 5px;
  letter-spacing: 0.1em;
}

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

.page-home .cycle-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(245, 240, 232, 0.85);
}

.page-home .point-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--home-bg);
  flex: 0 0 auto;
}

.page-home .point-dot.is-done {
  background: var(--home-gold);
  border-color: var(--home-gold);
}

.page-home .point-dot.is-current {
  background: var(--home-blue);
  border-color: var(--home-bg);
  box-shadow: 0 0 0 5px rgba(42, 111, 151, 0.35);
}

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

/* 底部探索 */
.page-home .home-explore {
  padding-top: clamp(2.6rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.6rem, 6vw, 4.5rem);
  background: var(--home-bg);
}

.page-home .explore-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 1.6rem;
  margin-bottom: 1.6rem;
}

.page-home .explore-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: center;
  border: var(--home-line);
  background: #ffffff;
  padding: 18px;
  color: var(--home-ink);
  text-decoration: none;
  box-shadow: var(--home-shadow);
  transition: all 0.2s var(--ease);
}

.page-home .explore-card:hover,
.page-home .explore-card:focus-visible {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--home-ink);
  border-color: var(--home-blue);
}

.page-home .explore-index {
  grid-row: 1 / 3;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--home-red);
  border-right: 3px solid var(--home-ink);
  padding-right: 14px;
  line-height: 1;
  min-width: 54px;
}

.page-home .explore-card strong {
  align-self: end;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--home-ink);
}

.page-home .explore-card > span:last-child {
  align-self: start;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--home-sub);
  margin-top: 4px;
}

.page-home .explore-note {
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--home-sub);
  border-top: 2px solid var(--home-soft);
  padding-top: 18px;
  max-width: 60ch;
  margin-bottom: 0;
}

/* 媒体查询 */
@media (min-width: 700px) {
  .page-home .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .cat-sub-list {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .page-home .cycle-visual {
    grid-template-columns: 220px 1fr;
    gap: 2.4rem;
  }

  .page-home .cycle-ring {
    margin: 0;
  }

  .page-home .hero-stats {
    max-width: none;
    width: 100%;
  }
}

@media (min-width: 960px) {
  .page-home .hero-inner {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 2rem 4rem;
    align-items: stretch;
  }

  .page-home .hero-copy {
    align-self: center;
  }

  .page-home .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 340px;
    align-self: stretch;
    justify-self: end;
    width: 100%;
  }

  .page-home .stat-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .page-home .skill-tree {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .page-home .skill-step {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .page-home .skill-step-index {
    min-width: 0;
    border-right: 0;
    border-bottom: 3px solid var(--home-ink);
    padding-right: 0;
    padding-bottom: 10px;
    font-size: 2.8rem;
  }

  .page-home .register-media {
    margin-left: 0;
    margin-right: auto;
  }

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

  .page-home .home-toc {
    padding-top: 14px;
    padding-bottom: 14px;
  }
}

@media (min-width: 1200px) {
  .page-home .hero-inner {
    padding-top: 5.5rem;
    padding-bottom: 6.5rem;
  }

  .page-home .hero-lead {
    font-size: 1.14rem;
  }

  .page-home .cycle-visual {
    grid-template-columns: 260px 1fr;
  }

  .page-home .cycle-ring {
    width: 240px;
    height: 240px;
  }

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