/* ===== 首页专属样式 .page-home ===== */
.page-home {
  --home-gold: var(--accent-gold);
  --home-red: var(--primary-red);
  --home-blue: var(--primary-blue);
  --home-green: var(--accent-green);
  --home-bg: var(--bg-light);
  --home-text: var(--text-dark);
  --home-font-heading: var(--font-heading);
  --home-font-body: var(--font-body);
  --home-max-w: var(--max-width);
  --home-space-sm: var(--space-sm);
  --home-space-md: var(--space-md);
  --home-space-lg: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--home-bg);
  font-family: var(--home-font-body);
  color: var(--home-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 页面上下文 */
.page-home .page-context {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: #666;
  background: #f0f2f5;
  border-bottom: 1px solid var(--border-subtle);
  letter-spacing: 0.03em;
}
.page-home .page-context__item {
  white-space: nowrap;
}
.page-home .page-context__item--current {
  color: var(--home-blue);
  font-weight: 600;
}
.page-home .page-context__sep {
  color: #ccc;
}

/* 通用 section label */
.page-home .section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--home-space-md);
  font-family: var(--home-font-heading);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--home-text);
}
.page-home .section-label__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--home-red);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  flex-shrink: 0;
}
.page-home .section-label__text {
  text-transform: uppercase;
  font-size: 1.1rem;
}

/* ===== 框景首屏 ===== */
.page-home .hero-frame {
  position: relative;
  width: 100%;
  min-height: 70vh;
  max-height: 90vh;
  overflow: hidden;
  background: var(--home-blue);
  isolation: isolate;
}
/* 边框装饰 */
.page-home .hero-frame__border {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  border: 3px solid var(--home-blue);
  outline: 2px solid var(--home-gold);
  outline-offset: -8px;
}
.page-home .hero-frame__corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--home-gold);
  border-style: solid;
  z-index: 4;
}
.page-home .hero-frame__corner--tl {
  top: 6px;
  left: 6px;
  border-width: 3px 0 0 3px;
}
.page-home .hero-frame__corner--tr {
  top: 6px;
  right: 6px;
  border-width: 3px 3px 0 0;
}
.page-home .hero-frame__corner--bl {
  bottom: 6px;
  left: 6px;
  border-width: 0 0 3px 3px;
}
.page-home .hero-frame__corner--br {
  bottom: 6px;
  right: 6px;
  border-width: 0 3px 3px 0;
}
/* 刻度装饰 */
.page-home .hero-frame__scale {
  position: absolute;
  background: var(--home-gold);
  opacity: 0.5;
  z-index: 4;
}
.page-home .hero-frame__scale--top {
  top: 12px;
  left: 15%;
  right: 15%;
  height: 1px;
}
.page-home .hero-frame__scale--bottom {
  bottom: 12px;
  left: 15%;
  right: 15%;
  height: 1px;
}
.page-home .hero-frame__scale--right {
  right: 12px;
  top: 15%;
  bottom: 15%;
  width: 1px;
}
.page-home .hero-frame__scale--left {
  left: 12px;
  top: 15%;
  bottom: 15%;
  width: 1px;
}

/* 背景 */
.page-home .hero-frame__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-home .hero-frame__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.page-home .hero-frame__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(30,91,158,0.75) 0%, rgba(212,63,54,0.4) 100%);
}
.page-home .hero-frame__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 70vh;
  padding: 5rem 1rem 2.5rem;
  text-align: center;
  color: #fff;
}

/* 品牌 */
.page-home .hero-brand {
  margin-bottom: 2rem;
}
.page-home .hero-brand__title {
  font-family: var(--home-font-heading);
  font-size: clamp(2.2rem, 10vw, 4.5rem);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 0.25rem;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.25);
  color: #fff;
}
.page-home .hero-brand__tagline {
  font-size: clamp(0.9rem, 3.5vw, 1.4rem);
  letter-spacing: 0.08em;
  opacity: 0.9;
  font-weight: 400;
  margin: 0;
  color: var(--home-gold);
  text-shadow: 1px 1px 0 rgba(0,0,0,0.2);
}

/* ===== 实时战报滚动 ===== */
.page-home .live-ticker {
  width: 100%;
  max-width: 780px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0;
  padding: 0.5rem 0.75rem;
  margin-top: 0.5rem;
}
.page-home .live-ticker__label {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--home-gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.page-home .live-ticker__track {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 1.6em;
}
.page-home .live-ticker__list {
  display: flex;
  gap: 2.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-scroll 18s linear infinite;
}
.page-home .live-ticker__list--clone {
  position: absolute;
  top: 0;
  left: 100%;
  animation: ticker-scroll-clone 18s linear infinite;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
@keyframes ticker-scroll-clone {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
/* 悬停暂停 */
.page-home .live-ticker__track:hover .live-ticker__list,
.page-home .live-ticker__track:hover .live-ticker__list--clone {
  animation-play-state: paused;
}
.page-home .live-ticker__item {
  display: inline-flex;
  align-items: center;
}
.page-home .live-ticker__link {
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.15em 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.page-home .live-ticker__link:hover {
  border-bottom-color: var(--home-gold);
  opacity: 0.9;
}
.page-home .live-ticker__cta {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--home-gold);
  text-decoration: none;
  border: 1px solid var(--home-gold);
  padding: 0.2rem 0.6rem;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.page-home .live-ticker__cta:hover {
  background: var(--home-gold);
  color: #1a1a2e;
}

/* ===== 赛事中心 ===== */
.page-home .match-center {
  padding: var(--home-space-md) 1rem;
}
.page-home .match-center__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-space-md);
}

/* 倒计时卡片 */
.page-home .countdown-card {
  background: #fff;
  border: 2px solid var(--home-blue);
  padding: var(--home-space-md);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}
.page-home .countdown-card:hover {
  box-shadow: 0 8px 30px rgba(212,63,54,0.12);
}
.page-home .countdown-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.page-home .countdown-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(212,63,54,0.08);
  border-radius: 0;
}
.page-home .countdown-card__title {
  font-family: var(--home-font-heading);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--home-blue);
}
.page-home .countdown-card__badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--home-red);
  color: #fff;
  padding: 0.2rem 0.6rem;
}
.page-home .countdown-card__display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 1rem 0;
  background: #f7f9fc;
  border: 1px solid #eef0f4;
}
.page-home .countdown-card__unit {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.page-home .countdown-card__digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 3.2rem;
  background: var(--home-blue);
  color: #fff;
  font-family: var(--home-font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  animation: digit-flip 1.2s ease-in-out infinite alternate;
}
.page-home .countdown-card__digit:nth-child(2) {
  animation-delay: 0.15s;
}
@keyframes digit-flip {
  0% { transform: translateY(0); background: var(--home-blue); }
  50% { transform: translateY(-2px); background: #1a4a7a; }
  100% { transform: translateY(0); background: var(--home-blue); }
}
.page-home .countdown-card__label {
  font-size: 0.65rem;
  font-weight: 600;
  color: #888;
  text-align: center;
  display: block;
  margin-top: 0.2rem;
  letter-spacing: 0.04em;
}
.page-home .countdown-card__sep {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--home-red);
  margin: 0 0.1rem;
  line-height: 1;
}
.page-home .countdown-card__desc {
  font-size: 0.9rem;
  color: #444;
  margin: 0;
  line-height: 1.5;
}
.page-home .countdown-card__btn {
  align-self: flex-start;
}

/* 动态卡片 */
.page-home .flash-card {
  background: #fff;
  border: 2px solid var(--home-gold);
  padding: var(--home-space-md);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.page-home .flash-card__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.page-home .flash-card__icon {
  font-size: 1.25rem;
}
.page-home .flash-card__title {
  font-family: var(--home-font-heading);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--home-text);
}
.page-home .flash-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.page-home .flash-card__item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.page-home .flash-card__dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: var(--home-red);
  border-radius: 0;
  margin-top: 0.6em;
}
.page-home .flash-card__link {
  color: var(--home-blue);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.page-home .flash-card__link:hover {
  border-bottom-color: var(--home-blue);
}
.page-home .flash-card__more {
  align-self: flex-end;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--home-red);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.page-home .flash-card__more:hover {
  border-bottom-color: var(--home-red);
}

/* ===== 核心功能网格 ===== */
.page-home .core-features {
  padding: var(--home-space-md) 1rem;
}
.page-home .features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-space-sm);
}

/* 功能卡片 (details/summary) */
.page-home .feature-card {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--home-blue);
  transition: border-color 0.3s, box-shadow 0.3s;
  list-style: none;
}
.page-home .feature-card[open] {
  border-left-color: var(--home-red);
  box-shadow: 0 6px 24px rgba(212,63,54,0.08);
}
.page-home .feature-card::-webkit-details-marker {
  display: none;
}
.page-home .feature-card__summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.page-home .feature-card__summary::-webkit-details-marker {
  display: none;
}
.page-home .feature-card__summary::marker {
  display: none;
  content: '';
}
.page-home .feature-card__icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 0;
  background: #f5f7fa;
  padding: 4px;
}
.page-home .feature-card__info {
  flex: 1;
  min-width: 0;
}
.page-home .feature-card__title {
  font-family: var(--home-font-heading);
  font-size: 1rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.15rem;
  color: var(--home-blue);
}
.page-home .feature-card__brief {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}
.page-home .feature-card__expand {
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--home-red);
  transition: transform 0.3s;
  line-height: 1;
}
.page-home .feature-card[open] .feature-card__expand {
  transform: rotate(45deg);
}
.page-home .feature-card__detail {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px dashed var(--border-subtle);
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.page-home .feature-card__detail p {
  font-size: 0.85rem;
  color: #444;
  margin: 0;
  line-height: 1.6;
}
.page-home .feature-card__link {
  align-self: flex-start;
  font-size: 0.8rem;
}

/* ===== 回访对照 ===== */
.page-home .history-compare {
  padding: var(--home-space-md) 1rem;
}
.page-home .compare-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-space-md);
  background: #fff;
  border: 2px solid var(--home-green);
  padding: var(--home-space-md);
  box-shadow: 0 4px 20px rgba(39,174,96,0.06);
}
.page-home .compare-card__visual {
  overflow: hidden;
  border: 1px solid #eef0f4;
}
.page-home .compare-card__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 280px;
}
.page-home .compare-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.page-home .compare-card__title {
  font-family: var(--home-font-heading);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--home-green);
}
.page-home .compare-card__desc {
  font-size: 0.9rem;
  color: #444;
  margin: 0;
  line-height: 1.6;
}
.page-home .compare-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.page-home .compare-card__list-item {
  font-size: 0.85rem;
  color: #333;
  padding-left: 1.2rem;
  position: relative;
}
.page-home .compare-card__list-item::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--home-green);
  font-size: 0.6rem;
  top: 0.2em;
}
.page-home .compare-card__btn {
  align-self: flex-start;
}

/* ===== 下载引导 ===== */
.page-home .download-cta {
  background: var(--home-blue);
  color: #fff;
  padding: var(--home-space-lg) 0;
  margin-top: var(--home-space-md);
}
.page-home .download-cta__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-space-md);
  padding: 0 1rem;
  align-items: center;
}
.page-home .download-cta__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.page-home .download-cta__title {
  font-family: var(--home-font-heading);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0;
  color: #fff;
}
.page-home .download-cta__tagline {
  font-size: 1rem;
  font-weight: 600;
  color: var(--home-gold);
  margin: 0;
  letter-spacing: 0.04em;
}
.page-home .download-cta__desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  margin: 0;
  line-height: 1.6;
  max-width: 520px;
}
.page-home .download-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.page-home .download-cta__btn {
  font-size: 0.9rem;
  padding: 0.6rem 1.4rem;
}
.page-home .download-cta__mockup {
  display: flex;
  justify-content: center;
}
.page-home .download-cta__img {
  width: 180px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 0;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  border: 2px solid rgba(255,255,255,0.15);
}

/* ===== 信任声明 ===== */
.page-home .trust-banner {
  padding: var(--home-space-md) 1rem;
}
.page-home .trust-banner__inner {
  background: #f7f9fc;
  border-left: 4px solid var(--home-gold);
  padding: 1rem 1.25rem;
}
.page-home .trust-banner__text {
  font-size: 0.8rem;
  color: #555;
  margin: 0;
  line-height: 1.7;
  max-width: 800px;
}

/* ===== 按钮样式（页面内专属） ===== */
.page-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  font-family: var(--home-font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.page-home .btn-primary {
  background: var(--home-red);
  color: #fff;
  border-color: var(--home-red);
}
.page-home .btn-primary:hover {
  background: #b8322a;
  border-color: #b8322a;
  box-shadow: 0 4px 16px rgba(212,63,54,0.25);
}
.page-home .btn-outline {
  background: transparent;
  color: var(--home-blue);
  border-color: var(--home-blue);
}
.page-home .btn-outline:hover {
  background: var(--home-blue);
  color: #fff;
}

/* ===== 响应式：桌面 ===== */
@media (min-width: 768px) {
  .page-home .hero-frame {
    min-height: 75vh;
    max-height: 85vh;
  }
  .page-home .hero-frame__content {
    min-height: 75vh;
    padding: 6rem 2rem 3rem;
  }
  .page-home .hero-brand__title {
    font-size: clamp(3rem, 6vw, 5rem);
  }
  .page-home .live-ticker {
    padding: 0.6rem 1rem;
  }
  .page-home .live-ticker__link {
    font-size: 0.9rem;
  }

  .page-home .match-center__grid {
    grid-template-columns: 2fr 1fr;
    gap: var(--home-space-lg);
    align-items: start;
  }
  .page-home .countdown-card {
    padding: var(--home-space-lg);
  }
  .page-home .countdown-card__digit {
    width: 3rem;
    height: 4rem;
    font-size: 2rem;
  }
  .page-home .flash-card {
    padding: var(--home-space-md);
  }

  .page-home .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--home-space-md);
  }
  .page-home .feature-card__summary {
    padding: 1.25rem 1.5rem;
  }
  .page-home .feature-card__icon {
    width: 60px;
    height: 60px;
  }
  .page-home .feature-card__title {
    font-size: 1.1rem;
  }

  .page-home .compare-card {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: var(--home-space-lg);
  }
  .page-home .compare-card__img {
    max-height: 320px;
  }
  .page-home .compare-card__title {
    font-size: 1.4rem;
  }

  .page-home .download-cta__inner {
    grid-template-columns: 3fr 2fr;
    gap: var(--home-space-lg);
  }
  .page-home .download-cta__mockup {
    order: 1;
  }
  .page-home .download-cta__content {
    order: 0;
  }
  .page-home .download-cta__img {
    width: 220px;
  }

  .page-home .section-label {
    font-size: 1.5rem;
  }
  .page-home .section-label__num {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1rem;
  }
}

@media (min-width: 1024px) {
  .page-home .hero-frame__content {
    padding: 6rem 4rem 3rem;
  }
  .page-home .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .page-home .feature-card {
    border-left-width: 4px;
  }
  .page-home .feature-card__summary {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  .page-home .feature-card__expand {
    align-self: center;
  }
  .page-home .feature-card__detail {
    text-align: left;
  }
  .page-home .download-cta__img {
    width: 260px;
  }
  .page-home .compare-card__img {
    max-height: 360px;
  }
}
