.page-home {
  --home-skew: -4deg;
  --home-hover: #16202D;
}

/* ===================== 首屏 Hero ===================== */
.page-home .home-hero {
  position: relative;
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--c-bg);
  overflow: hidden;
  border-bottom: 4px solid var(--c-accent);
}

.page-home .home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .home-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(40%) contrast(120%) brightness(0.62);
  transform: scale(1.04);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(110deg, rgba(10, 14, 20, 0.96) 0%, rgba(10, 14, 20, 0.78) 52%, rgba(10, 14, 20, 0.36) 82%, rgba(0, 255, 136, 0.1) 100%);
  pointer-events: none;
}

.page-home .home-hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 18px;
}

.page-home .home-hero-tag {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 20px;
}

.page-home .home-hero-title {
  font-family: var(--f-display);
  font-size: clamp(40px, 8vw, 92px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 14px;
  max-width: 860px;
  color: var(--c-text);
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.42);
}

.page-home .home-hero-lead {
  font-size: clamp(16px, 2vw, 22px);
  color: var(--c-dim);
  max-width: 720px;
  margin: 0 0 30px;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

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

.page-home .home-hero-toc {
  display: none;
}

/* ===================== 章节预览 ===================== */
.page-home .home-chapter-preview {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-bottom: 36px;
  padding-top: 4px;
}

.page-home .home-preview-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  background: rgba(18, 26, 36, 0.94);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid var(--c-accent);
  padding: 16px 18px;
  text-decoration: none;
  color: var(--c-text);
  transition: border-color 0.22s, transform 0.22s, background 0.22s;
}

.page-home .home-preview-card:hover {
  border-color: var(--c-blue);
  border-left-color: var(--c-blue);
  background: var(--home-hover);
  transform: translateY(-4px);
}

.page-home .home-preview-index {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--c-accent);
}

.page-home .home-preview-label {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page-home .home-preview-link {
  font-size: 13px;
  color: var(--c-dim);
  white-space: nowrap;
}

/* ===================== V4 升级区 ===================== */
.page-home .home-v4-upgrade {
  padding-top: 72px;
  padding-bottom: 72px;
}

.page-home .home-v4-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 40px;
}

.page-home .home-v4-media {
  margin: 0;
}

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

.page-home .home-v4-features .card {
  border-left-width: 4px;
}

.page-home .home-v4-features .card-head {
  padding-bottom: 8px;
}

.page-home .home-v4-features .card-title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-text);
}

.page-home .home-v4-features .card-body p {
  margin: 0 0 0;
  color: var(--c-dim);
  line-height: 1.7;
  font-size: 15px;
}

.page-home .home-v4-features .card--accent .card-body p {
  color: rgba(232, 238, 242, 0.86);
}

/* ===================== 赛事数据区 ===================== */
.page-home .home-match-data {
  padding-top: 72px;
  padding-bottom: 72px;
}

.page-home .home-match-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 40px;
}

.page-home .home-match-browser {
  min-width: 0;
}

.page-home .home-match-toolbar {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-blue);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.page-home .home-match-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--c-bg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 10px 14px;
  transition: border-color 0.2s;
}

.page-home .home-match-search:focus-within {
  border-color: var(--c-accent);
}

.page-home .home-match-search-icon {
  color: var(--c-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.page-home .home-match-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--c-text);
  width: 100%;
  font-family: var(--f-body);
  font-size: 15px;
}

.page-home .home-match-search input::placeholder {
  color: var(--c-dim);
}

.page-home .home-match-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.page-home .home-match-item {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-line);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s, background 0.2s;
}

.page-home .home-match-item:hover {
  border-left-color: var(--c-accent);
  background: var(--home-hover);
}

.page-home .home-match-item-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-home .home-match-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--c-text);
}

.page-home .home-match-meta {
  margin: 0;
  font-size: 13px;
  color: var(--c-dim);
  line-height: 1.6;
}

.page-home .home-match-link {
  font-size: 13px;
  color: var(--c-blue);
  text-decoration: none;
  align-self: flex-start;
  transition: color 0.2s;
}

.page-home .home-match-link:hover {
  color: var(--c-accent);
  text-decoration: underline;
}

.page-home .home-match-item[hidden],
.page-home .home-review-table tr[hidden] {
  display: none !important;
}

.page-home .home-match-footnote {
  margin-top: 18px;
  font-size: 13px;
  color: var(--c-dim);
  padding-top: 12px;
  border-top: 1px dashed var(--c-line);
  line-height: 1.7;
}

.page-home .home-match-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

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

.page-home .home-match-visual-copy {
  font-size: 14px;
  color: var(--c-dim);
  margin: 0;
  line-height: 1.7;
}

/* ===================== 复盘区 ===================== */
.page-home .home-review-library {
  padding-top: 72px;
  padding-bottom: 72px;
}

.page-home .home-review-filters {
  margin-bottom: 20px;
  margin-top: 36px;
  justify-content: flex-start;
}

.page-home .home-review-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  border-top: 3px solid var(--c-accent);
}

.page-home .home-review-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.page-home .home-review-table th {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-dim);
  text-align: left;
  padding: 14px 16px;
  border-bottom: 2px solid var(--c-line);
  background: var(--c-bg);
}

.page-home .home-review-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-line);
  font-size: 14px;
  white-space: nowrap;
  color: var(--c-dim);
}

.page-home .home-review-table tbody tr:last-child td {
  border-bottom: none;
}

.page-home .home-review-table tbody tr:hover {
  background: var(--home-hover);
}

.page-home .home-review-table a {
  color: var(--c-accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.page-home .home-review-table a:hover {
  text-decoration: underline;
  color: var(--c-blue);
}

.page-home .home-review-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 18px 0 0;
}

.page-home .home-review-footer p {
  margin: 0;
  color: var(--c-dim);
  font-size: 14px;
  max-width: 720px;
  line-height: 1.7;
}

/* ===================== 社区区 ===================== */
.page-home .home-community-guide {
  padding-top: 72px;
  padding-bottom: 72px;
}

.page-home .home-community-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 40px;
}

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

.page-home .home-community-list .card {
  display: flex;
  flex-direction: column;
}

.page-home .home-community-list .card-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-home .home-community-list .card-body {
  flex: 1;
}

.page-home .home-community-list .card-body p {
  margin: 0;
  color: var(--c-dim);
  line-height: 1.7;
  font-size: 15px;
}

.page-home .home-community-list .card-title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-text);
  margin: 0;
}

.page-home .home-community-tag {
  align-self: flex-start;
}

.page-home .home-community-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  flex-wrap: wrap;
}

.page-home .home-community-count {
  font-size: 13px;
  color: var(--c-dim);
}

.page-home .home-community-link {
  font-size: 13px;
  color: var(--c-blue);
  text-decoration: none;
  white-space: nowrap;
}

.page-home .home-community-link:hover {
  text-decoration: underline;
  color: var(--c-accent);
}

.page-home .home-community-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

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

.page-home .home-community-note {
  font-size: 14px;
  color: var(--c-dim);
  margin: 0;
  line-height: 1.7;
}

/* ===================== 媒体查询：平板与桌面 ===================== */
@media (min-width: 768px) {
  .page-home .home-chapter-preview {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .home-preview-card {
    transform: skewX(var(--home-skew));
  }

  .page-home .home-preview-card > * {
    transform: skewX(4deg);
  }

  .page-home .home-preview-card:hover {
    transform: skewX(var(--home-skew)) translateY(-4px);
  }

  .page-home .home-v4-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 32px;
  }

  .page-home .home-match-layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 32px;
  }

  .page-home .home-match-toolbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .page-home .home-match-search {
    flex: 1;
    max-width: 320px;
  }

  .page-home .home-match-filters {
    justify-content: flex-end;
  }

  .page-home .home-review-table td {
    white-space: normal;
  }

  .page-home .home-review-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .page-home .home-community-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
  }
}

@media (min-width: 1024px) {
  .page-home .home-chapter-preview {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .home-hero-toc {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: absolute;
    right: 3%;
    top: 28%;
    z-index: 2;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.1em;
    color: var(--c-dim);
    text-transform: uppercase;
    border-left: 2px solid var(--c-line);
    padding-left: 18px;
    pointer-events: none;
  }

  .page-home .home-hero-toc span {
    display: block;
    line-height: 1.5;
  }

  .page-home .home-hero {
    min-height: 760px;
  }

  .page-home .home-v4-features {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .home-v4-features .card:first-child {
    grid-column: 1 / -1;
  }

  .page-home .home-community-list {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}
