.page-home {
  --home-section-pad: clamp(56px, 7vw, 100px);
  --home-gap: clamp(16px, 2.2vw, 26px);
  background: var(--ink-900);
  color: var(--paper);
  overflow-x: hidden;
}

/* ---------- 通用章节骨架 ---------- */
.page-home .home-sec-head,
.page-home .home-matrix-head,
.page-home .home-weekly-head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(26px, 4vw, 42px);
  max-width: 66ch;
}

.page-home .home-sec-head h2,
.page-home .home-matrix-head h2,
.page-home .home-weekly-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.14;
  letter-spacing: -.02em;
  font-weight: 800;
}

.page-home .home-sec-head p,
.page-home .home-weekly-head p {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mist);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  padding: calc(var(--header-h) + 18px) 0 clamp(48px, 6vw, 92px);
  background:
    radial-gradient(120% 90% at 88% -4%, rgba(71, 227, 193, .18), transparent 58%),
    radial-gradient(90% 70% at 0% 8%, rgba(182, 255, 60, .10), transparent 55%),
    var(--ink-900);
  overflow: hidden;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(155, 181, 168, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(155, 181, 168, .07) 1px, transparent 1px);
  background-size: 90px 90px;
  -webkit-mask-image: radial-gradient(78% 70% at 72% 18%, #000, transparent 76%);
  mask-image: radial-gradient(78% 70% at 72% 18%, #000, transparent 76%);
  pointer-events: none;
}

.page-home .home-hero > .container {
  position: relative;
  z-index: 1;
}

.page-home .home-context {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(22px, 3.4vw, 40px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mist);
}

.page-home .home-context-sep {
  color: var(--orange);
}

.page-home .home-hero-inner {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

.page-home .home-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 800;
}

.page-home .home-hero .display-accent {
  color: var(--lime);
}

.page-home .home-hero .lede {
  margin: 20px 0 0;
  max-width: 36em;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.82;
  color: var(--mist);
}

.page-home .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.page-home .home-quickstats {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.page-home .home-quickstats li {
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(16, 58, 48, .38);
}

.page-home .qs-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--lime);
}

.page-home .qs-label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--mist);
}

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

.page-home .home-hero-frame {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--ink-700), var(--ink-900));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
}

.page-home .home-hero-frame img {
  display: block;
  width: 100%;
  height: clamp(220px, 34vw, 380px);
  object-fit: cover;
}

.page-home .home-clock {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 34px;
  margin: 14px 0 0;
}

.page-home .home-hero-board {
  position: relative;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(182, 255, 60, .26);
  background: rgba(6, 26, 21, .88);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .42);
  font-family: var(--font-mono);
}

.page-home .home-board-title {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-home .home-board-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--paper);
}

.page-home .home-board-state {
  color: var(--lime);
  letter-spacing: .04em;
}

/* ---------- 新手三步 ---------- */
.page-home .home-start {
  padding: var(--home-section-pad) 0;
  background: var(--ink-800);
}

.page-home .home-start-grid {
  display: grid;
  gap: var(--home-gap);
  align-items: stretch;
}

.page-home .home-start-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--ink-700), var(--ink-900));
  min-height: 210px;
}

.page-home .home-start-figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

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

.page-home .home-step {
  position: relative;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: linear-gradient(145deg, rgba(16, 58, 48, .72), rgba(11, 42, 34, .34));
  transition: border-color .2s ease, transform .2s ease;
}

.page-home .home-step:hover,
.page-home .home-step:focus-within {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.page-home .home-step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--lime);
}

.page-home .home-step h3 {
  margin: 8px 0 6px;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.page-home .home-step p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--mist);
}

.page-home .home-step-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(71, 227, 193, .4);
}

.page-home .home-step-link:hover,
.page-home .home-step-link:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--lime);
}

/* ---------- 赛事矩阵 ---------- */
.page-home .home-matrix {
  padding: var(--home-section-pad) 0;
  background: linear-gradient(180deg, var(--ink-900), var(--ink-800) 55%, var(--ink-900));
}

.page-home .home-matrix-head {
  max-width: none;
}

.page-home .home-matrix-note {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--mist);
  padding-left: 14px;
  border-left: 2px solid var(--lime);
}

.page-home .home-matrix-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.page-home .home-proj {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(155deg, rgba(16, 58, 48, .78), rgba(6, 26, 21, .92));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
  min-width: 0;
}

.page-home .home-proj-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .home-proj-name {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.page-home .home-proj p {
  margin: 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .home-proj-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--mist);
}

.page-home .home-proj-link {
  color: var(--lime);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .1em;
}

.page-home .home-proj-link:hover,
.page-home .home-proj-link:focus-visible {
  color: var(--paper);
}

.page-home .home-matrix-figure {
  margin: 16px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-700);
}

.page-home .home-matrix-figure img {
  display: block;
  width: 100%;
  height: clamp(130px, 18vw, 200px);
  object-fit: cover;
  opacity: .88;
}

.page-home .home-matrix-figure figcaption {
  padding: 12px 16px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--mist);
  border-top: 1px solid var(--line-soft);
}

/* ---------- 收藏回看 ---------- */
.page-home .home-fav {
  padding: var(--home-section-pad) 0;
  background: var(--ink-800);
}

.page-home .home-fav-inner {
  display: grid;
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
}

.page-home .home-fav-copy h2 {
  margin: 12px 0 0;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.14;
  letter-spacing: -.02em;
  font-weight: 800;
}

.page-home .home-fav-copy .lede {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.82;
  color: var(--mist);
}

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

.page-home .home-fav-points li {
  display: grid;
  gap: 3px;
  padding-left: 14px;
  border-left: 2px solid rgba(182, 255, 60, .5);
}

.page-home .home-fav-points strong {
  font-size: 15px;
  font-weight: 700;
}

.page-home .home-fav-points span {
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--mist);
}

.page-home .home-fav-stage {
  min-width: 0;
}

.page-home .home-fav-shot {
  display: block;
  width: 100%;
  height: clamp(140px, 22vw, 200px);
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  margin-bottom: 14px;
}

.page-home .home-fav-board {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(6, 26, 21, .92), rgba(11, 42, 34, .82));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.page-home .home-fav-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-fav-synced {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--mist);
}

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

.page-home .home-fav-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-fav-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-home .home-fav-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.page-home .home-fav-team {
  color: var(--paper);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .home-fav-team--right {
  text-align: right;
}

.page-home .home-fav-score {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--lime);
  white-space: nowrap;
}

.page-home .score-bar {
  display: block;
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(155, 181, 168, .16);
  overflow: hidden;
}

.page-home .score-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
}

.page-home .home-fav-next {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .05em;
  color: var(--mist);
}

/* ---------- 企业目录 ---------- */
.page-home .home-biz {
  padding: var(--home-section-pad) 0;
  background: var(--ink-900);
}

.page-home .home-biz-panel {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  padding: clamp(22px, 4vw, 44px);
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(100% 120% at 100% 0%, rgba(255, 122, 43, .14), transparent 58%),
    linear-gradient(150deg, rgba(16, 58, 48, .9), rgba(6, 26, 21, .96));
}

.page-home .home-biz-main {
  min-width: 0;
}

.page-home .home-biz-main h2 {
  margin: 12px 0 0;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.16;
  letter-spacing: -.02em;
  font-weight: 800;
}

.page-home .home-biz-main .lede {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.82;
  color: var(--mist);
}

.page-home .home-biz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-home .home-biz-side {
  min-width: 0;
}

.page-home .home-biz-version p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .home-biz-dims {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .home-biz-dims li {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(71, 227, 193, .08);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--cyan);
}

.page-home .home-biz-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}

.page-home .home-biz-stats div {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(6, 26, 21, .62);
}

.page-home .home-biz-stats dt {
  font-size: 12px;
  line-height: 1.6;
  color: var(--mist);
}

.page-home .home-biz-stats dd {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--lime);
}

/* ---------- 周末更新 ---------- */
.page-home .home-weekly {
  padding: var(--home-section-pad) 0;
  background: var(--ink-800);
}

.page-home .home-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 122, 43, .45);
  background: rgba(255, 122, 43, .12);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--amber);
}

.page-home .home-stamp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: homeStampPulse 3.2s ease-in-out infinite;
}

@keyframes homeStampPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 122, 43, .55); }
  50% { opacity: .55; box-shadow: 0 0 0 6px rgba(255, 122, 43, 0); }
}

.page-home .home-weekly-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.page-home .home-week-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: rgba(11, 42, 34, .58);
  min-width: 0;
}

.page-home .home-week-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -.01em;
}

.page-home .home-week-card p {
  margin: 0;
  flex: 1;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .home-week-link {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px solid rgba(182, 255, 60, .4);
  padding-bottom: 2px;
}

.page-home .home-week-link:hover,
.page-home .home-week-link:focus-visible {
  color: var(--paper);
  border-bottom-color: var(--paper);
}

/* ---------- 响应式 ---------- */
@media (min-width: 560px) {
  .page-home .home-quickstats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

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

@media (min-width: 860px) {
  .page-home .home-matrix-head {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    align-items: end;
    gap: 28px;
  }
}

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

  .page-home .home-start-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .page-home .home-fav-inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

@media (min-width: 940px) {
  .page-home .home-biz-panel {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: start;
  }
}

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

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

  .page-home .home-proj--wide {
    grid-column: span 3;
  }

  .page-home .home-hero-board {
    margin-top: -58px;
    margin-left: auto;
    width: min(100%, 330px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-stamp-dot {
    animation: none;
  }

  .page-home .home-step {
    transition: none;
  }
}
