/* ===== 首页专属样式 [作用域 .page-home] ===== */
.page-home {
  /* 可选背景加强 */
  background-color: var(--bg-primary);
}

/* ---------- 数据看板框景 ---------- */
.page-home .hero-window {
  margin-bottom: 3rem;
}

.page-home .window-frame {
  position: relative;
  background: var(--bg-content);
  border-radius: var(--radius-large);
  padding: 2rem 1.5rem;
  /* 通过 box-shadow 模拟窗框深度 */
  box-shadow:
    inset 0 0 0 2px var(--accent),
    0 4px 12px rgba(0,0,0,0.08);
  /* 留出空间给刻度边 */
  margin: 12px;
}

/* 刻度边通用 */
.page-home .scale-top,
.page-home .scale-right,
.page-home .scale-bottom,
.page-home .scale-left {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  background-repeat: repeat;
}

.page-home .scale-top {
  top: -10px;
  left: -10px;
  right: -10px;
  height: 10px;
  background-image: repeating-linear-gradient(
    to right,
    var(--accent) 0 2px,
    transparent 2px 16px
  );
  border-radius: 6px 6px 0 0;
}

.page-home .scale-bottom {
  bottom: -10px;
  left: -10px;
  right: -10px;
  height: 10px;
  background-image: repeating-linear-gradient(
    to right,
    var(--accent) 0 2px,
    transparent 2px 16px
  );
  border-radius: 0 0 6px 6px;
}

.page-home .scale-left {
  top: -10px;
  bottom: -10px;
  left: -10px;
  width: 10px;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--accent) 0 2px,
    transparent 2px 16px
  );
  border-radius: 6px 0 0 6px;
}

.page-home .scale-right {
  top: -10px;
  bottom: -10px;
  right: -10px;
  width: 10px;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--accent) 0 2px,
    transparent 2px 16px
  );
  border-radius: 0 6px 6px 0;
}

/* 数据看板内容 */
.page-home .dashboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.page-home .dashboard-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--text-primary);
  margin: 0;
  text-align: center;
}

.page-home .stat-cards {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
}

.page-home .stat-card {
  flex: 1 1 140px;
  max-width: 180px;
  background: var(--bg-white);
  border-radius: var(--radius-medium);
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  text-align: center;
}

.page-home .stat-icon {
  font-size: 2rem;
  line-height: 1;
}

.page-home .stat-label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-home .stat-value {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--accent);
  font-weight: bold;
}

.page-home .dashboard-cta {
  align-self: center;
  margin-top: 0.5rem;
}

/* ---------- 赛季分类 ---------- */
.page-home .season-section {
  margin-bottom: 3rem;
}

.page-home .section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.5rem;
}

.page-home .section-header h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 0;
}

.page-home .link-more {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

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

.page-home .season-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* 赛季卡片 —— 继承共享 .card */
.page-home .season-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-content);
  border-radius: var(--radius-medium);
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.page-home .season-card:hover,
.page-home .season-card:focus-visible {
  transform: scale(1.02);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.page-home .season-thumb {
  flex-shrink: 0;
  width: 150px;
  height: 100px;
  border-radius: var(--radius-small);
  overflow: hidden;
  background: var(--bg-secondary);
}

.page-home .season-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .season-info {
  flex: 1;
  min-width: 0;
}

.page-home .season-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
  color: var(--text-primary);
}

.page-home .season-summary {
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ---------- 平台特色 ---------- */
.page-home .features-section {
  margin-bottom: 2rem;
}

.page-home .features-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.page-home .feature-visual {
  flex: 0 0 auto;
  width: 300px;
  max-width: 100%;
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

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

.page-home .feature-cards {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.page-home .feature-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg-content);
  border-radius: var(--radius-medium);
  padding: 1.25rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}

.page-home .feature-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.page-home .feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  color: var(--accent);
}

.page-home .feature-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  color: var(--text-primary);
}

.page-home .feature-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.page-home .features-cta {
  margin-top: 1.5rem;
  text-align: center;
}

/* ---------- 移动端适配 ---------- */
@media (max-width: 767px) {
  .page-home .window-frame {
    margin: 8px;
    padding: 1.5rem 1rem;
  }

  .page-home .scale-top,
  .page-home .scale-bottom {
    height: 6px;
    top: -6px;
    bottom: -6px;
    left: -6px;
    right: -6px;
    background-image: repeating-linear-gradient(
      to right,
      var(--accent) 0 1.5px,
      transparent 1.5px 12px
    );
  }

  .page-home .scale-left,
  .page-home .scale-right {
    width: 6px;
    top: -6px;
    bottom: -6px;
    left: -6px;
    right: -6px;
    background-image: repeating-linear-gradient(
      to bottom,
      var(--accent) 0 1.5px,
      transparent 1.5px 12px
    );
  }

  .page-home .stat-cards {
    flex-direction: column;
    align-items: center;
  }

  .page-home .stat-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 260px;
  }

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

  .page-home .season-card {
    flex-direction: column;
    align-items: stretch;
  }

  .page-home .season-thumb {
    width: 100%;
    height: 140px;
  }

  .page-home .season-thumb img {
    object-fit: cover;
    height: 100%;
    width: 100%;
  }

  .page-home .features-content {
    flex-direction: column;
  }

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