/* ===== 首页 · 深夜战术室 ===== */

.page-home {
  --home-radius: 2px;
  display: block;
  overflow-x: hidden;
}

/* ---------- 首屏 ---------- */

.page-home .hero {
  position: relative;
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  background:
    radial-gradient(70% 60% at 84% 12%, rgba(255, 94, 26, 0.20), transparent 68%),
    radial-gradient(52% 50% at 6% 90%, rgba(53, 199, 184, 0.14), transparent 70%),
    linear-gradient(180deg, var(--pitch) 0%, var(--ink) 100%);
  border-bottom: 1px solid var(--line);
}

.page-home .hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

.page-home .hero-context {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.15rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 58, 42, 0.65);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.page-home .hero h1 {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 10vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--white);
}

.page-home .hero h1 em {
  display: block;
  font-style: normal;
  color: var(--heat);
  text-shadow: 0 0 36px rgba(255, 94, 26, 0.35);
}

.page-home .hero .lead {
  max-width: 36ch;
  margin: 0 0 1.75rem;
  font-size: clamp(1rem, 2.4vw, 1.1rem);
  line-height: 1.7;
  color: rgba(234, 242, 238, 0.82);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-home .hero-visual {
  position: relative;
  margin: 0;
  background: var(--stand);
  border: var(--edge) solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% 82%, 82% 100%, 0 100%);
  box-shadow: 0 24px 60px rgba(4, 17, 11, 0.6);
}

.page-home .hero-visual img,
.page-home .tags-visual img,
.page-home .status-visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.page-home .hero-visual img {
  filter: saturate(0.92) contrast(1.06);
}

.page-home .hero-ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 2.25rem;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.page-home .hero-ticker b {
  margin-right: 0.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--signal);
}

/* ---------- 章节索引条 ---------- */

.page-home .home-index {
  background: rgba(15, 58, 42, 0.55);
  border-bottom: 1px solid var(--line);
}

.page-home .home-index ul {
  display: flex;
  gap: 0.35rem 1.6rem;
  margin: 0;
  padding: 0.7rem 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-home .home-index ul::-webkit-scrollbar {
  display: none;
}

.page-home .home-index a {
  display: inline-block;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.page-home .home-index a:hover {
  color: var(--white);
}

.page-home .home-index a[aria-current="true"] {
  color: var(--signal);
  border-bottom-color: var(--heat);
}

/* ---------- 章节通用头部 ---------- */

.page-home .section-head {
  max-width: 60ch;
}

.page-home .section-index {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--heat);
}

.page-home .section-label {
  margin: 0.15rem 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--signal);
}

.page-home .section-head h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4.4vw, 2.6rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--white);
}

.page-home .section-head .lead {
  margin: 0;
  line-height: 1.75;
  color: rgba(234, 242, 238, 0.78);
}

/* ---------- 01 入口 ---------- */

.page-home .entry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.25rem;
}

.page-home .entry-steps {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .entry-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.25rem;
  background: var(--stand);
  border-left: 3px solid var(--heat);
  border-radius: var(--home-radius);
}

.page-home .entry-steps li:nth-child(2) {
  border-left-color: var(--signal);
}

.page-home .entry-steps li:nth-child(3) {
  border-left-color: var(--cyan);
}

.page-home .entry-steps .num {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  background: var(--heat);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 2px;
}

.page-home .entry-steps p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.7;
  color: rgba(234, 242, 238, 0.86);
}

.page-home .entry-aside {
  align-self: start;
  padding: 1.5rem 1.4rem;
  background: linear-gradient(150deg, var(--stand), var(--pitch));
  border: var(--edge) solid var(--line);
  border-radius: var(--home-radius);
  box-shadow: 0 18px 40px rgba(4, 17, 11, 0.5);
}

.page-home .entry-aside h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
}

.page-home .entry-aside p {
  margin: 0 0 1.15rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .entry-aside .copy-btn {
  width: 100%;
  padding: 0.72rem 1rem;
  border: none;
  border-radius: 2px;
  background: var(--heat);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.18s ease;
}

.page-home .entry-aside .copy-btn:hover {
  background: var(--signal);
}

/* ---------- 02 联赛标签 ---------- */

.page-home .tags-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 2.25rem;
  align-items: center;
}

.page-home .tags-main .tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.page-home .tags-main .tab-btn {
  padding: 0.45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 0.86rem;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.page-home .tags-main .tab-btn:hover {
  color: var(--white);
  border-color: var(--mist);
}

.page-home .tags-main .tab-btn[aria-selected="true"] {
  background: var(--heat);
  border-color: var(--heat);
  color: var(--ink);
  font-weight: 700;
}

.page-home .tags-main .tab-panel[hidden] {
  display: none;
}

.page-home .tags-main .tab-panel p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.78;
  color: rgba(234, 242, 238, 0.86);
}

.page-home .tags-main .chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .tags-main .chip {
  padding: 0.32rem 0.72rem;
  border: 1px dashed var(--line);
  border-radius: 2px;
  background: rgba(15, 58, 42, 0.6);
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
}

.page-home .tags-visual {
  margin: 0;
  background: var(--stand);
  border: var(--edge) solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 12% 100%, 0 88%);
}

/* ---------- 03 状态灯 ---------- */

.page-home .status-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 2.25rem;
  align-items: start;
}

.page-home .status-cards {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .status-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: var(--stand);
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
}

.page-home .status-card .status-dot {
  margin-top: 0.35rem;
}

.page-home .status-name {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--white);
}

.page-home .status-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.68;
  color: var(--mist);
}

.page-home .status-dot[title] {
  position: relative;
}

.page-home .status-dot[title]::after {
  content: attr(title);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--line);
  background: var(--ink);
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.page-home .status-dot[title]:hover::after,
.page-home .status-dot[title]:focus-visible::after {
  opacity: 1;
}

.page-home .status-visual {
  margin: 0;
  background: var(--stand);
  border: var(--edge) solid var(--line);
  clip-path: polygon(0 0, 88% 0, 100% 12%, 100% 100%, 0 100%);
}

/* ---------- 04 速度 ---------- */

.page-home .home-speed {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, var(--pitch), var(--ink) 72%);
}

.page-home .home-speed .speed-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  opacity: 0.16;
  filter: grayscale(0.3) contrast(1.12);
}

.page-home .speed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.25rem;
}

.page-home .speed-cell {
  padding: 1.5rem 1.25rem 1.35rem;
  background: rgba(15, 58, 42, 0.82);
  border: 1px solid var(--line);
  border-top: 3px solid var(--heat);
  border-radius: var(--home-radius);
}

.page-home .speed-cell:nth-child(2) {
  border-top-color: var(--signal);
}

.page-home .speed-cell:nth-child(3) {
  border-top-color: var(--cyan);
}

.page-home .speed-figure {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin: 0 0 0.65rem;
}

.page-home .speed-figure .num {
  font-family: var(--font-mono);
  font-size: clamp(2.6rem, 7vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--heat);
}

.page-home .speed-unit {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.page-home .speed-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.68;
  color: rgba(234, 242, 238, 0.78);
}

/* ---------- 05 下一步 ---------- */

.page-home .home-start {
  background: linear-gradient(180deg, var(--stand), var(--pitch));
  border-top: 1px solid var(--line);
}

.page-home .start-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.page-home .start-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.35rem 1.25rem 1.5rem;
  background: rgba(10, 42, 31, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.page-home .start-card:hover,
.page-home .start-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--heat);
  background: rgba(179, 59, 13, 0.16);
}

.page-home .start-kicker {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--signal);
}

.page-home .start-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.42;
  color: var(--white);
}

.page-home .start-text {
  font-size: 0.88rem;
  line-height: 1.66;
  color: var(--mist);
}

.page-home .trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin-top: 1.9rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.page-home .trust-strip b {
  margin-right: 0.3rem;
  font-size: 1rem;
  color: var(--white);
}

/* ---------- 响应式 ---------- */

@media (min-width: 700px) {
  .page-home .entry-steps li:nth-child(2) {
    margin-left: 2rem;
  }

  .page-home .entry-steps li:nth-child(3) {
    margin-left: 4rem;
  }

  .page-home .speed-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
  }

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

@media (min-width: 960px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  }

  .page-home .entry-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr);
    gap: 2.25rem;
  }

  .page-home .tags-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 2.75rem;
  }

  .page-home .status-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
    gap: 2.5rem;
  }
}

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

@media (max-width: 560px) {
  .page-home .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-home .hero-actions .btn {
    text-align: center;
  }

  .page-home .entry-steps li {
    padding: 1rem 1rem;
  }

  .page-home .hero h1 {
    letter-spacing: -0.02em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .start-card,
  .page-home .entry-aside .copy-btn,
  .page-home .home-index a {
    transition: none;
  }

  .page-home .start-card:hover {
    transform: none;
  }
}
