/* ============================================================
   page-home —— 首页专属样式
   所有选择器限定在 .page-home 作用域内
   ============================================================ */

.page-home {
  --home-cut: 14px;
  --home-edge: var(--line-cyan);
  --home-edge-hot: var(--line-cyan-strong);
  display: block;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

.page-home .mono {
  font-family: var(--font-mono);
}

.page-home a {
  color: inherit;
}

.page-home a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

/* ---------- 通用面板与章节 ---------- */

.page-home .panel {
  background: var(--panel);
  border: 1px solid var(--home-edge);
  clip-path: polygon(
    0 0,
    calc(100% - var(--home-cut)) 0,
    100% var(--home-cut),
    100% 100%,
    var(--home-cut) 100%,
    0 calc(100% - var(--home-cut))
  );
}

.page-home .section {
  padding: 58px 0;
}

.page-home .section-head {
  max-width: 68ch;
  margin-bottom: 30px;
}

.page-home .section-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-home .section-title {
  margin: 0;
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.page-home .section-rule {
  width: 68px;
  height: 2px;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--cyan), var(--coral));
}

.page-home .section-intro {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .divider-slant {
  height: 10px;
  max-width: var(--content-max);
  margin: 0 auto;
  background: linear-gradient(90deg, var(--line-cyan-strong), rgba(255, 107, 74, 0.35));
  clip-path: polygon(0 60%, 100% 0, 100% 40%, 0 100%);
  opacity: 0.72;
}

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

.page-home .hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 54px;
  border-bottom: 1px solid var(--line);
}

.page-home .hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-home .hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0.15;
}

.page-home .hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(47, 227, 208, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(47, 227, 208, 0.055) 1px, transparent 1px);
  background-size: 120px 120px;
}

.page-home .hero-glow {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
}

.page-home .hero-glow--cyan {
  width: 360px;
  height: 360px;
  top: -150px;
  left: -120px;
  background: rgba(47, 227, 208, 0.18);
}

.page-home .hero-glow--coral {
  width: 300px;
  height: 300px;
  right: -110px;
  bottom: -140px;
  background: rgba(255, 107, 74, 0.14);
}

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

.page-home .page-context {
  margin: 0 0 20px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.page-home .hero h1 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(29px, 4.6vw, 46px);
  line-height: 1.22;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.page-home .hero .lead {
  margin: 22px 0 0;
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.78;
  color: var(--muted);
}

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

/* ---------- 首屏路径卡 ---------- */

.page-home .path-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 36px;
}

.page-home .path-card {
  display: block;
  padding: 22px 20px 24px;
  text-decoration: none;
  color: inherit;
  transition:
    transform var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.page-home .path-card:hover {
  transform: translateY(-2px);
  border-color: var(--home-edge-hot);
  background: var(--panel-deep);
}

.page-home .path-num {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  background: var(--cyan-wash);
}

.page-home .path-title {
  display: block;
  margin-top: 14px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.page-home .path-card .panel-text {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted);
}

.page-home .path-go {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--cyan);
  border-bottom: 1px solid var(--line-cyan-strong);
}

/* ---------- 首屏板块带 ---------- */

.page-home .board-strip {
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.page-home .strip-label {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.page-home .strip-list {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 2px 2px 10px;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-home .strip-list li {
  flex: 0 0 auto;
}

.page-home .strip-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 14px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  background: var(--panel-deep);
  border: 1px solid var(--home-edge);
  white-space: nowrap;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition:
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.page-home .strip-item:hover {
  border-color: var(--home-edge-hot);
  color: var(--cyan);
  transform: translateY(-2px);
}

.page-home .strip-item .mono {
  font-size: 12px;
  color: var(--cyan);
}

/* ---------- 入口清单 ---------- */

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

.page-home .entry-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-home .entry-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 14px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.page-home .entry-item:hover {
  background: var(--panel);
  border-left-color: var(--coral);
  transform: translateX(2px);
}

.page-home .entry-num {
  grid-column: 1;
  justify-self: start;
  align-self: start;
  padding: 2px 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cyan);
  background: var(--cyan-wash);
  white-space: nowrap;
}

.page-home .entry-body {
  grid-column: 2;
  min-width: 0;
}

.page-home .entry-key {
  display: inline;
  padding: 0 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: var(--cyan-faint);
  box-shadow: inset 0 -1px 0 var(--cyan);
}

.page-home .entry-use {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.66;
  color: var(--muted);
}

.page-home .entry-tag {
  grid-column: 2;
  justify-self: start;
  padding: 2px 8px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.page-home .ia-more {
  margin: 20px 0 0;
}

/* ---------- 媒体容器 ---------- */

.page-home .figure {
  margin: 0;
}

.page-home .media-frame {
  position: relative;
  overflow: hidden;
  background: var(--panel-deep);
  border: 1px solid var(--home-edge);
  clip-path: polygon(
    0 0,
    calc(100% - var(--home-cut)) 0,
    100% var(--home-cut),
    100% 100%,
    0 100%
  );
}

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

.page-home .media-caption {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.62;
  color: var(--muted);
}

/* ---------- 栏目板块速览 ---------- */

.page-home .boards-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.page-home .board-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-home .board-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 6px 10px;
  padding: 16px 18px 18px;
  scroll-margin-top: 96px;
  transition:
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.page-home .board-card:hover {
  border-color: var(--home-edge-hot);
  transform: translateY(-2px);
}

.page-home .board-num {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.page-home .board-name {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.page-home .board-count {
  font-size: 12px;
  color: var(--coral);
  white-space: nowrap;
}

.page-home .board-text {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13px;
  line-height: 1.68;
  color: var(--muted);
}

/* ---------- 会员中心 ---------- */

.page-home .member-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.page-home .crowd-grid {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-home .crowd-card {
  padding: 18px 18px 20px;
}

.page-home .crowd-tab {
  display: inline-block;
  padding: 3px 9px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--coral-wash);
  border: 1px solid rgba(255, 107, 74, 0.42);
}

.page-home .crowd-name {
  margin: 14px 0 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.page-home .crowd-text {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .crowd-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-home .crowd-list li {
  position: relative;
  padding: 9px 0 9px 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.page-home .crowd-list li:last-child {
  border-bottom: 0;
}

.page-home .crowd-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 9px;
  height: 1px;
  background: var(--cyan);
}

.page-home .member-more {
  margin: 24px 0 0;
}

/* ---------- 更新节奏 ---------- */

.page-home .cadence-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

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

.page-home .stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px 20px;
}

.page-home .stat-num {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--cyan);
}

.page-home .stat-label {
  font-size: 13px;
  line-height: 1.62;
  color: var(--muted);
}

.page-home .cadence-notes p {
  max-width: 62ch;
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.page-home .cadence-notes p:last-child {
  margin-bottom: 0;
}

.page-home .cadence-link {
  margin-top: 20px;
}

/* ---------- 访问支持 ---------- */

.page-home .support-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-home .support-ways {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.page-home .support-card {
  display: block;
  padding: 20px 18px 22px;
  text-decoration: none;
  color: inherit;
  transition:
    border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.page-home .support-card:hover {
  border-color: var(--home-edge-hot);
  background: var(--panel-deep);
  transform: translateY(-2px);
}

.page-home .support-card-k {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.page-home .support-card-t {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--muted);
}

.page-home .support-go {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--cyan);
  border-bottom: 1px solid var(--line-cyan-strong);
}

.page-home .support-direct {
  padding: 20px 18px 22px;
  background: var(--panel-deep);
  border: 1px solid var(--line);
  border-top: 2px solid var(--amber);
}

.page-home .support-direct-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}

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

.page-home .contact-list .contact-item {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 10px 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.page-home .contact-list .contact-item:last-child {
  border-bottom: 0;
}

.page-home .contact-list .contact-label {
  min-width: 64px;
  font-size: 12px;
  color: var(--muted);
}

.page-home .support-note {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.68;
  color: var(--muted);
}

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

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

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

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

@media (min-width: 768px) {
  .page-home .hero {
    padding: 62px 0 68px;
  }

  .page-home .path-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .page-home .section {
    padding: 72px 0;
  }

  .page-home .entry-item {
    grid-template-columns: 96px minmax(0, 1fr) auto;
    align-items: baseline;
  }

  .page-home .entry-tag {
    grid-column: 3;
    align-self: center;
  }
}

@media (min-width: 1024px) {
  .page-home .split {
    grid-template-columns: 7fr 5fr;
    align-items: start;
    gap: 32px;
  }

  .page-home .split-side {
    position: sticky;
    top: 96px;
  }

  .page-home .boards-body {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: 28px;
  }

  .page-home .board-art {
    position: sticky;
    top: 96px;
  }

  .page-home .member-body {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 28px;
  }

  .page-home .member-art {
    position: sticky;
    top: 96px;
  }

  .page-home .cadence-body {
    grid-template-columns: 5fr 7fr;
    align-items: start;
    gap: 36px;
  }

  .page-home .support-body {
    grid-template-columns: 7fr 5fr;
    align-items: start;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .page-home .hero {
    padding: 32px 0 40px;
  }

  .page-home .section {
    padding: 44px 0;
  }

  .page-home .path-card {
    padding: 18px 16px 20px;
  }

  .page-home .stat-item {
    padding: 15px 13px 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .path-card,
  .page-home .strip-item,
  .page-home .entry-item,
  .page-home .board-card,
  .page-home .support-card {
    transition: none;
  }

  .page-home .path-card:hover,
  .page-home .strip-item:hover,
  .page-home .entry-item:hover,
  .page-home .board-card:hover,
  .page-home .support-card:hover {
    transform: none;
  }
}
