/* ===== 首页专属样式 ===== */
.page-home {
  --home-gap: clamp(16px, 2vw, 28px);
  --home-radius: 20px;
  --home-tile-pad: clamp(20px, 3vw, 36px);
  --home-tile-bg: linear-gradient(145deg, rgba(22, 33, 62, 0.72), rgba(26, 26, 46, 0.96));
  padding-block: 24px 48px;
}

.page-home .container-home {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.page-home .home-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .home-tile {
  position: relative;
  border-radius: var(--home-radius);
  border: 1px solid var(--line);
  background: var(--home-tile-bg);
  padding: var(--home-tile-pad);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.page-home .home-tile:hover {
  border-color: rgba(15, 255, 80, 0.35);
  box-shadow: 0 0 24px rgba(15, 255, 80, 0.08), 0 8px 30px rgba(0, 0, 0, 0.35);
}

.page-home .section-label {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--green);
  text-transform: uppercase;
  margin: 0 0 8px;
}

.page-home .panel-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--text-main);
}

.page-home .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--text-dim);
}

.page-home .breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-home .breadcrumb a:hover {
  color: var(--green);
}

.page-home .breadcrumb-sep {
  color: var(--line);
}

/* ===== 实时开服状态 ===== */
.page-home .server-card {
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  border-color: rgba(58, 58, 92, 0.9);
}

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

.page-home .server-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.15) 0%, rgba(22, 33, 62, 0.78) 62%, rgba(22, 33, 62, 0.98) 100%);
}

.page-home .server-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-home .server-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  z-index: 1;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.28), transparent 68%);
  pointer-events: none;
}

.page-home .server-card .section-label::after {
  content: "";
  display: inline-block;
  width: 42px;
  height: 2px;
  margin-left: 12px;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--green), transparent);
  transform: skewX(-24deg);
}

.page-home .server-lead {
  max-width: 720px;
  margin: 12px 0 0;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-main);
}

.page-home .server-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
}

.page-home .server-fact-item {
  display: grid;
  gap: 2px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.page-home .fact-label {
  font-size: 12px;
  color: var(--text-dim);
}

.page-home .fact-value {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.page-home .gradient-text {
  background: linear-gradient(90deg, var(--orange), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.page-home .server-actions .btn {
  pointer-events: auto;
}

.page-home .server-actions .btn-primary {
  box-shadow: 0 0 18px rgba(15, 255, 80, 0.18);
}

/* ===== 全站快速目录 ===== */
.page-home .search-rail {
  background:
    radial-gradient(130% 100% at 100% 0%, rgba(15, 255, 80, 0.08), transparent 46%),
    linear-gradient(145deg, rgba(22, 33, 62, 0.82), rgba(26, 26, 46, 0.96));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-home .rail-desc {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.65;
}

.page-home .rail-actions {
  margin-top: 6px;
}

.page-home .rail-search-btn {
  width: 100%;
  justify-content: center;
}

.page-home .rail-quicklinks {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
}

.page-home .rail-quicklinks a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.page-home .rail-quicklinks a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.7;
  flex: 0 0 auto;
}

.page-home .rail-quicklinks a:hover {
  color: var(--green);
  border-color: rgba(15, 255, 80, 0.4);
  background: rgba(15, 255, 80, 0.06);
}

.page-home .rail-tip {
  margin: 8px 0 0;
  padding: 12px 14px;
  border-left: 2px solid var(--orange);
  border-radius: 0 10px 10px 0;
  background: linear-gradient(90deg, rgba(255, 107, 53, 0.08), transparent);
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===== 通用砖块设置 ===== */
.page-home .tile-num {
  position: absolute;
  top: 12px;
  right: 18px;
  z-index: 3;
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  color: rgba(245, 245, 245, 0.12);
  pointer-events: none;
}

.page-home .tile-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-home .tile-heading {
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-main);
}

.page-home .tile-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dim);
}

.page-home .tile-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
  transition: text-shadow 0.2s ease, letter-spacing 0.2s ease;
}

.page-home .tile-link:hover {
  text-shadow: 0 0 12px rgba(15, 255, 80, 0.6);
  letter-spacing: 0.03em;
}

/* ===== 历史版本通道 ===== */
.page-home .archive-tile {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-home .archive-thumb {
  width: 100%;
  max-width: 168px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(15, 255, 80, 0.12);
}

/* ===== 配置要求对照 ===== */
.page-home .spec-tile .tile-body {
  align-items: stretch;
}

.page-home .spec-mini {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--green);
  border-radius: 0 12px 12px 0;
  background: rgba(15, 255, 80, 0.06);
}

.page-home .spec-mini-label {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.page-home .spec-mini-value {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

/* ===== 使用记录查询 ===== */
.page-home .record-tile .tile-body {
  align-items: stretch;
}

.page-home .record-visual {
  position: relative;
  max-width: 220px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 16px;
  aspect-ratio: 1 / 1;
}

.page-home .record-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .record-step {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--green);
  text-shadow: 0 0 24px rgba(15, 255, 80, 0.7), 0 0 8px rgba(15, 255, 80, 0.5);
}

/* ===== 最新动态 ===== */
.page-home .news-panel .panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.page-home .panel-more {
  flex: 0 0 auto;
}

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

.page-home .news-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 16px 2px;
  border-bottom: 1px solid rgba(58, 58, 92, 0.65);
}

.page-home .news-tag {
  justify-self: start;
  font-size: 12px;
  color: var(--green);
  background: rgba(15, 255, 80, 0.08);
  border-radius: 999px;
  padding: 4px 10px;
}

.page-home .news-headline {
  color: var(--text-main);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.page-home .news-headline:hover {
  color: var(--green);
  text-shadow: 0 0 12px rgba(15, 255, 80, 0.35);
}

.page-home .news-meta {
  font-size: 13px;
  color: var(--text-dim);
}

/* ===== 帮助中心热点 ===== */
.page-home .help-panel .panel-head {
  margin-bottom: 14px;
}

.page-home .help-media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin: 0 0 14px;
}

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

.page-home .help-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .help-q {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.page-home .help-q::before {
  content: "Q ";
  color: var(--orange);
  font-family: var(--font-head);
  font-weight: 800;
}

.page-home .help-q:hover {
  color: var(--green);
  border-color: rgba(15, 255, 80, 0.45);
  background: rgba(15, 255, 80, 0.05);
}

.page-home .help-more {
  width: 100%;
  justify-content: center;
}

/* ===== 联系与支持 ===== */
.page-home .support-card {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
}

.page-home .support-copy {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.page-home .support-desc {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.7;
}

.page-home .support-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  flex: 1 1 420px;
}

.page-home .support-item {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.page-home .support-item dt {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.page-home .support-item dd {
  margin: 0;
  font-weight: 600;
  color: var(--text-main);
  overflow-wrap: anywhere;
}

/* ===== 侧边轨道导航 ===== */
.page-home .home-rail {
  display: none;
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  gap: 6px;
}

.page-home .home-rail a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.page-home .home-rail .rail-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 11px;
  color: var(--green);
}

.page-home .home-rail a:hover {
  color: var(--green);
  border-color: rgba(15, 255, 80, 0.4);
  background: rgba(15, 255, 80, 0.05);
}

/* ===== 平板适配 ===== */
@media (min-width: 680px) {
  .page-home .archive-tile {
    flex-direction: row;
    align-items: flex-start;
  }

  .page-home .archive-thumb {
    max-width: 140px;
  }

  .page-home .news-item {
    grid-template-columns: 92px 1fr auto;
    align-items: center;
    gap: 14px;
  }

  .page-home .news-tag {
    justify-self: start;
  }

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

/* ===== 桌面 Bento 网格 ===== */
@media (min-width: 1024px) {
  .page-home .home-grid {
    grid-template-columns: repeat(12, 1fr);
    grid-template-areas:
      "server server server server server server server search search search search search"
      "archive archive archive archive archive spec spec spec spec record record record"
      "news news news news news news news help help help help help"
      "support support support support support support support support support support support support";
  }

  .page-home .server-card { grid-area: server; }
  .page-home .search-rail { grid-area: search; }
  .page-home .archive-tile { grid-area: archive; }
  .page-home .spec-tile { grid-area: spec; }
  .page-home .record-tile { grid-area: record; }
  .page-home .news-panel { grid-area: news; }
  .page-home .help-panel { grid-area: help; }
  .page-home .support-card { grid-area: support; }

  .page-home .record-visual {
    max-width: 100%;
  }

  .page-home .record-step {
    font-size: clamp(2.4rem, 3.6vw, 3.2rem);
  }

  .page-home .server-card {
    min-height: 460px;
  }
}

/* ===== 宽屏可显示侧边轨道 ===== */
@media (min-width: 1280px) {
  .page-home .container-home {
    padding-left: 108px;
  }

  .page-home .home-rail {
    display: grid;
  }
}
