/* ===== 全站App 首页专属样式 ===== */
.page-home {
  position: relative;
  background-color: var(--c-bg);
  background-image:
    linear-gradient(var(--c-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-line) 1px, transparent 1px);
  background-size: 36px 36px;
  background-attachment: fixed;
  overflow-x: hidden;
}

.page-home .container {
  width: min(100%, var(--container-w));
  margin-inline: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

/* ---------- 页面顶部定位条 ---------- */
.page-home .home-frame {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-line);
  background: rgba(10, 31, 60, 0.55);
}

.page-home .home-frame .breadcrumb {
  font-size: 12px;
  color: var(--c-sub);
  letter-spacing: 0.05em;
}

.page-home .home-frame__coords {
  display: none;
  font-size: 11px;
  color: var(--c-sub);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.page-home .home-frame__coords span + span::before {
  content: "·";
  margin: 0 6px;
  color: var(--c-green);
}

/* ---------- 01 核心数据总览 ---------- */
.page-home .home-overview {
  padding: 40px 0 24px;
  position: relative;
}

.page-home .home-overview::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 0;
  width: 64px;
  height: 2px;
  background: var(--c-green);
}

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

.page-home .home-overview__headline {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 900;
  margin: 18px 0 14px;
  letter-spacing: 0.02em;
  color: var(--c-text);
  border-left: 4px solid var(--c-green);
  padding-left: 14px;
}

.page-home .home-overview__desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-sub);
  margin-bottom: 24px;
  max-width: 60ch;
}

.page-home .home-overview__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.page-home .home-stat-card {
  background: var(--c-panel);
  border: 1px solid var(--c-line);
  padding: 14px 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
  position: relative;
}

.page-home .home-stat-card::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--c-green);
  border-right: 2px solid var(--c-green);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.page-home .home-stat-card:hover {
  border-color: var(--c-green);
  background-color: var(--c-data);
  transform: translate(-1px, -1px);
}

.page-home .home-stat-card:hover::after {
  opacity: 1;
}

.page-home .home-stat-card__num {
  display: block;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--c-green);
  margin-bottom: 4px;
}

.page-home .home-stat-card__label {
  font-size: 12px;
  color: var(--c-sub);
  letter-spacing: 0.03em;
}

/* 数据可视化图片 */
.page-home .home-overview__visual {
  display: block;
}

.page-home .home-overview__frame {
  border: 2px solid var(--c-line);
  padding: 6px;
  background: var(--c-panel);
  box-shadow: var(--shadow-md);
  position: relative;
}

.page-home .home-overview__frame::before {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--c-green);
  border-left: 2px solid var(--c-green);
}

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

.page-home .home-overview__frame-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--c-sub);
  letter-spacing: 0.06em;
}

.page-home .home-overview__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 0 3px rgba(57, 255, 136, 0.2);
  margin-left: auto;
  animation: home-pulse 2s ease-in-out infinite;
}

@keyframes home-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ---------- 斜切分隔带 ---------- */
.page-home .home-slash {
  height: 56px;
  margin: 24px 0;
  position: relative;
  background: linear-gradient(
    120deg,
    transparent 0%,
    transparent 20%,
    var(--c-green) 22%,
    var(--c-green) 26%,
    transparent 28%,
    transparent 72%,
    var(--c-line) 74%,
    var(--c-line) 78%,
    transparent 80%,
    transparent 100%
  );
  opacity: 0.45;
}

/* ---------- 02 快捷查询入口 ---------- */
.page-home .home-query {
  padding: 32px 0 48px;
  position: relative;
}

.page-home .home-query::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--c-line), transparent 70%);
}

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

.page-home .home-query__panel {
  background: var(--c-panel);
  border: 2px solid var(--c-line);
  box-shadow: var(--shadow-md);
  padding: 20px 16px;
  position: relative;
}

.page-home .home-query__panel::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-bottom: 2px solid var(--c-green);
  border-right: 2px solid var(--c-green);
}

.page-home .home-query__label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.page-home .home-query__row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-home .home-query__field {
  position: relative;
  flex: 1;
}

.page-home .home-query__radar {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--c-orange);
  pointer-events: none;
  transition: color 0.2s ease;
}

.page-home .home-query__field:focus-within .home-query__radar {
  color: var(--c-green);
}

.page-home .home-query__input {
  width: 100%;
  box-sizing: border-box;
  background: var(--c-bg);
  border: 2px solid var(--c-orange);
  border-radius: 0;
  padding: 12px 12px 12px 38px;
  font-size: 16px;
  font-family: var(--font-mono);
  color: var(--c-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.page-home .home-query__input::placeholder {
  color: rgba(154, 184, 208, 0.6);
}

.page-home .home-query__input:focus {
  border-color: var(--c-green);
  box-shadow: 0 0 0 3px rgba(57, 255, 136, 0.12);
}

.page-home .home-query__submit {
  width: 100%;
  text-align: center;
}

.page-home .home-query__hint {
  margin-top: 10px;
  font-size: 12px;
  color: var(--c-sub);
}

.page-home .home-query__hint a {
  color: var(--c-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-home .home-query__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--c-line);
}

.page-home .home-query__meta-text {
  font-size: 12px;
  color: var(--c-sub);
}

.page-home .home-query__tips {
  margin-top: 16px;
  padding-left: 0;
  list-style: none;
}

.page-home .home-query__tips li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-sub);
}

.page-home .home-query__tips li + li {
  margin-top: 6px;
}

.page-home .home-query__tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--c-green);
  transform: rotate(45deg);
}

.page-home .home-query__visual {
  position: relative;
}

.page-home .home-query__visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--c-line);
  box-shadow: var(--shadow-md);
}

.page-home .home-query__visual-note {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--c-sub);
  letter-spacing: 0.06em;
}

/* ---------- 03 最新赛事更新 ---------- */
.page-home .home-matches {
  padding: 32px 0 48px;
  background: rgba(13, 42, 79, 0.28);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.page-home .home-matches__banner {
  position: relative;
  margin-bottom: 24px;
  border: 2px solid var(--c-line);
  box-shadow: var(--shadow-md);
  background: var(--c-panel);
}

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

.page-home .home-matches__banner-info {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-home .home-matches__banner-text {
  color: var(--c-text);
  font-size: 13px;
  font-weight: 700;
  background: rgba(10, 31, 60, 0.85);
  padding: 4px 10px;
  border: 1px solid var(--c-line);
}

.page-home .home-matches__list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 2px 14px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.page-home .home-match-card {
  flex: 0 0 240px;
  min-width: 240px;
  background: var(--c-panel);
  border: 2px solid var(--c-line);
  padding: 14px 14px 12px;
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.page-home .home-match-card:hover {
  border-color: var(--c-green);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-md);
}

.page-home .home-match-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.page-home .home-match-card__league {
  font-size: 12px;
  color: var(--c-green);
  letter-spacing: 0.08em;
  font-weight: 700;
}

.page-home .home-match-card__teams {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.page-home .home-match-card__team {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.3;
}

.page-home .home-match-card__team:last-child {
  text-align: right;
}

.page-home .home-match-card__score {
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 700;
  color: var(--c-green);
  background: var(--c-bg);
  padding: 2px 8px;
  border: 1px solid var(--c-line);
}

.page-home .home-match-card__extra {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--c-sub);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.page-home .home-match-card:hover .home-match-card__extra {
  opacity: 1;
}

.page-home .home-matches__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.page-home .home-matches__more-note {
  font-size: 11px;
  color: var(--c-sub);
  letter-spacing: 0.05em;
}

/* ---------- 04 产品理念 ---------- */
.page-home .home-philosophy {
  position: relative;
  padding: 56px 0 64px;
  overflow: hidden;
}

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

.page-home .home-philosophy__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
}

.page-home .home-philosophy__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--c-bg) 0%, rgba(10, 31, 60, 0.55) 40%, var(--c-bg) 100%);
}

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

.page-home .home-philosophy__content {
  max-width: 640px;
  padding: 8px 0 8px 18px;
  border-left: 3px solid var(--c-green);
}

.page-home .home-philosophy__heading {
  font-size: 22px;
  font-weight: 900;
  color: var(--c-text);
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}

.page-home .home-philosophy__text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-sub);
  margin-bottom: 12px;
}

.page-home .home-philosophy__subtext {
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-text);
  margin-bottom: 22px;
}

.page-home .home-philosophy__trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.page-home .home-trust-item {
  background: rgba(10, 31, 60, 0.72);
  border: 1px solid var(--c-line);
  padding: 12px 10px;
  text-align: center;
  transition: border-color 0.2s ease;
}

.page-home .home-trust-item:hover {
  border-color: var(--c-green);
}

.page-home .home-trust-item__num {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--c-green);
  margin-bottom: 4px;
}

.page-home .home-trust-item__label {
  font-size: 11px;
  color: var(--c-sub);
  line-height: 1.4;
}

.page-home .home-philosophy__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 底部信任声明 ---------- */
.page-home .home-cta {
  padding: 36px 0 48px;
  position: relative;
}

.page-home .home-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-green), transparent);
}

.page-home .home-cta__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}

.page-home .home-cta__tag {
  font-size: 11px;
  color: var(--c-green);
  letter-spacing: 0.12em;
  display: inline-block;
  margin-bottom: 8px;
}

.page-home .home-cta__text p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-sub);
  margin: 0;
  max-width: 56ch;
}

.page-home .home-cta__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 桌面增强 ---------- */
@media (min-width: 640px) {
  .page-home .home-overview__headline {
    font-size: 38px;
  }

  .page-home .home-query__row {
    flex-direction: row;
  }

  .page-home .home-query__submit {
    width: auto;
    white-space: nowrap;
  }

  .page-home .home-query__tips li {
    font-size: 14px;
  }

  .page-home .home-philosophy__heading {
    font-size: 28px;
  }
}

@media (min-width: 1024px) {
  .page-home .container {
    padding-left: 28px;
    padding-right: 28px;
  }

  .page-home .home-frame__coords {
    display: flex;
  }

  .page-home .home-overview {
    padding: 56px 0 40px;
  }

  .page-home .home-overview__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 48px;
  }

  .page-home .home-overview__headline {
    font-size: 44px;
  }

  .page-home .home-overview__desc {
    font-size: 15px;
  }

  .page-home .home-overview__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

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

  .page-home .home-stat-card__num {
    font-size: 34px;
  }

  .page-home .home-query {
    padding: 48px 0 64px;
  }

  .page-home .home-query__layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 36px;
  }

  .page-home .home-query__panel {
    padding: 28px 24px;
  }

  .page-home .home-query__input {
    font-size: 18px;
  }

  .page-home .home-query__visual img {
    max-height: 560px;
  }

  .page-home .home-matches__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    overflow-x: visible;
    padding: 0;
  }

  .page-home .home-match-card {
    flex: none;
    min-width: 0;
    width: auto;
  }

  .page-home .home-match-card__extra {
    opacity: 0.6;
  }

  .page-home .home-matches__banner img {
    max-height: 440px;
  }

  .page-home .home-philosophy {
    padding: 80px 0 88px;
  }

  .page-home .home-philosophy__content {
    max-width: 680px;
  }

  .page-home .home-philosophy__text,
  .page-home .home-philosophy__subtext {
    font-size: 15px;
  }

  .page-home .home-philosophy__trust {
    gap: 16px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-home .home-overview__dot {
    animation: none;
  }

  .page-home .home-stat-card,
  .page-home .home-match-card{
     transition: none;
  }
}
