.page-home {
  --home-gold-glow: rgba(245, 197, 24, 0.14);
  --home-red-glow: rgba(139, 0, 0, 0.28);
  --home-line: rgba(224, 224, 224, 0.1);
  overflow-x: hidden;
  background: var(--c-bg);
}

/* ===== 首屏品牌区 ===== */
.page-home .home-hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 56px 0 64px;
  background:
    radial-gradient(circle at 85% 18%, var(--home-red-glow), transparent 42%),
    linear-gradient(145deg, var(--c-bg) 0%, var(--c-bg-alt) 72%, var(--c-purple) 150%);
  overflow: hidden;
}

.page-home .hero-clip {
  position: absolute;
  top: -6%;
  right: -18%;
  width: 72%;
  height: 112%;
  background:
    repeating-linear-gradient(135deg, rgba(245, 197, 24, 0.05) 0 2px, transparent 2px 18px),
    linear-gradient(115deg, transparent 32%, rgba(245, 197, 24, 0.08) 62%, var(--home-gold-glow) 100%);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
  pointer-events: none;
}

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

.page-home .hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-home .hero-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--c-gold);
  text-transform: uppercase;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-home .hero-kicker::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--c-gold);
  display: inline-block;
  flex-shrink: 0;
}

.page-home .hero-update-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139, 0, 0, 0.5);
  border: 1px solid var(--c-red);
  color: var(--c-text);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 5px 14px;
  margin-bottom: 20px;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.3s, border-color 0.3s;
}

.page-home .hero-update-tag:hover {
  background: rgba(139, 0, 0, 0.72);
  border-color: var(--c-gold);
}

.page-home .update-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--c-gold);
  box-shadow: 0 0 10px var(--c-gold);
  animation: homePulse 1.8s ease-in-out infinite;
}

@keyframes homePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}

.page-home .hero-copy h1 {
  font-family: var(--font-title);
  font-size: clamp(34px, 5.4vw, 58px);
  line-height: 1.16;
  color: var(--c-text);
  margin: 0 0 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-home .hero-desc {
  color: var(--c-text-dim);
  font-size: 16px;
  line-height: 1.78;
  max-width: 540px;
  margin: 0 0 28px;
}

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

.page-home .btn-gold {
  background: var(--c-gold);
  color: var(--c-bg);
  border: none;
  font-weight: 600;
}

.page-home .btn-gold:hover {
  background: #ffd94d;
  box-shadow: 0 8px 24px rgba(245, 197, 24, 0.24);
}

.page-home .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 24px;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--home-line);
  max-width: 480px;
}

.page-home .hero-stat dt {
  font-size: 12px;
  color: var(--c-text-dim);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}

.page-home .hero-stat dd {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--c-gold);
  margin: 0;
  font-weight: 600;
}

.page-home .hero-chart {
  background: rgba(43, 43, 74, 0.68);
  border: 1px solid var(--home-line);
  padding: 20px;
  border-radius: var(--radius);
  position: relative;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
}

.page-home .hero-chart-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.page-home .chart-live-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--c-gold);
  box-shadow: 0 0 12px var(--c-gold);
}

.page-home .hero-svg {
  width: 100%;
  height: auto;
  display: block;
}

.page-home .svg-grid line {
  stroke: rgba(224, 224, 224, 0.08);
  stroke-width: 1;
}

.page-home .trend-line-main {
  fill: none;
  stroke: var(--c-gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: homeTrendDraw 2.4s var(--ease) forwards;
}

.page-home .trend-line-sub {
  fill: none;
  stroke: var(--c-purple);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: homeTrendDraw 3s var(--ease) 0.5s forwards;
}

@keyframes homeTrendDraw {
  to { stroke-dashoffset: 0; }
}

.page-home .trend-dot {
  fill: var(--c-red-bright);
  opacity: 0;
  animation: homeDotIn 0.4s var(--ease) forwards;
}

.page-home .dot-1 { animation-delay: 1.1s; }
.page-home .dot-2 { animation-delay: 1.5s; }
.page-home .dot-3 { animation-delay: 1.9s; }

@keyframes homeDotIn {
  from { opacity: 0; transform: scale(0.4); }
  to { opacity: 1; transform: scale(1); }
}

.page-home .hero-chart-note {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.page-home .note-up { color: var(--c-red-bright); }
.page-home .note-down { color: var(--c-green); }
.page-home .note-rule { color: var(--c-text-dim); }

/* ===== 通用 Section ===== */
.page-home .section {
  padding: 64px 0;
  position: relative;
}

.page-home .section-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.page-home .section-number {
  font-family: var(--font-mono);
  font-size: 46px;
  font-weight: 700;
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px var(--c-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.page-home .section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin: 0 0 6px;
}

.page-home .section-head h2 {
  font-family: var(--font-title);
  font-size: clamp(26px, 3.6vw, 38px);
  margin: 0;
  color: var(--c-text);
  line-height: 1.2;
}

.page-home .section-lead {
  color: var(--c-text-dim);
  font-size: 15px;
  line-height: 1.75;
  max-width: 640px;
  margin: 0 0 36px;
}

/* ===== 最新更新日志 ===== */
.page-home .home-log {
  background: var(--c-bg-alt);
}

.page-home .home-log::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--c-gold) 0%, var(--c-red) 40%, transparent 100%);
  opacity: 0.5;
}

.page-home .log-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.page-home .log-timeline {
  display: none;
}

.page-home .log-card {
  background: var(--c-blue);
  border-left: 3px solid var(--c-gold);
  padding: 28px 24px;
  position: relative;
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease), border-left-color 0.4s;
}

.page-home .log-card:hover {
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.42);
  transform: translateY(-3px);
  border-left-color: var(--c-gold);
}

.page-home .log-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.page-home .log-tag {
  background: var(--c-gold);
  color: var(--c-bg);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
}

.page-home .log-version {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--c-text);
  font-weight: 700;
}

.page-home .log-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-text-dim);
  margin-left: auto;
}

.page-home .log-card h3 {
  font-family: var(--font-title);
  font-size: 21px;
  color: var(--c-text);
  margin: 0 0 10px;
  line-height: 1.4;
}

.page-home .log-summary {
  color: var(--c-text-dim);
  line-height: 1.75;
  margin-bottom: 22px;
  font-size: 14px;
}

.page-home .log-details {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .log-detail-item {
  display: flex;
  gap: 14px;
}

.page-home .log-detail-num {
  font-family: var(--font-mono);
  color: var(--c-gold);
  font-size: 13px;
  flex-shrink: 0;
  line-height: 1.7;
}

.page-home .log-detail-item p {
  margin: 0;
  color: var(--c-text-dim);
  font-size: 14px;
  line-height: 1.65;
}

.page-home .log-thumb {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--home-line);
  display: block;
}

/* ===== 核心功能入口 ===== */
.page-home .home-features {
  background: var(--c-bg);
  overflow: hidden;
}

.page-home .feature-grid {
  display: grid;
  gap: 20px;
}

.page-home .feature-card {
  background: var(--c-bg-alt);
  border: 1px solid var(--home-line);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--c-text);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.page-home .feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.page-home .feature-card:hover::after,
.page-home .feature-card:focus-visible::after {
  transform: scaleX(1);
}

.page-home .feature-card:hover {
  border-color: rgba(245, 197, 24, 0.4);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.38);
}

.page-home .feature-card-lg {
  background: linear-gradient(148deg, var(--c-bg-alt) 0%, var(--c-purple) 130%);
}

.page-home .feature-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.page-home .feature-number {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--c-gold);
  line-height: 1;
}

.page-home .feature-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-text-dim);
}

.page-home .feature-card h3 {
  font-family: var(--font-title);
  font-size: 22px;
  color: var(--c-text);
  margin: 0 0 10px;
}

.page-home .feature-card p {
  color: var(--c-text-dim);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 24px;
  flex-grow: 1;
}

.page-home .feature-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--home-line);
}

.page-home .feature-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-gold);
  font-weight: 600;
}

.page-home .feature-arrow {
  color: var(--c-gold);
  font-size: 18px;
  transition: transform 0.35s var(--ease);
}

.page-home .feature-card:hover .feature-arrow {
  transform: translateX(6px);
}

.page-home .feature-ball {
  display: none;
}

/* ===== 动态速览 ===== */
.page-home .home-news {
  background: var(--c-bg-alt);
}

.page-home .home-news::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--c-red) 0%, var(--c-purple) 55%, transparent 100%);
  opacity: 0.4;
}

.page-home .news-grid {
  display: grid;
  gap: 18px;
}

.page-home .news-item {
  background: var(--c-bg);
  padding: 26px 24px;
  text-decoration: none;
  color: var(--c-text);
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--c-red);
  transition: box-shadow 0.35s, border-top-color 0.35s;
  position: relative;
}

.page-home .news-item:hover {
  box-shadow: 0 14px 46px rgba(0, 0, 0, 0.4);
  border-top-color: var(--c-gold);
}

.page-home .news-cat {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.page-home .news-item h3 {
  font-family: var(--font-title);
  font-size: 18px;
  line-height: 1.45;
  color: var(--c-text);
  margin: 0 0 10px;
}

.page-home .news-item p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-text-dim);
  margin: 0 0 16px;
  flex-grow: 1;
}

.page-home .news-more {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-gold);
}

/* ===== 区域装饰带 ===== */
.page-home .home-region {
  background: var(--c-bg);
  padding: 48px 0 56px;
  text-align: center;
}

.page-home .region-img {
  max-width: 100%;
  height: auto;
  opacity: 0.55;
  display: inline-block;
}

.page-home .region-caption {
  font-size: 13px;
  color: var(--c-text-dim);
  margin-top: 16px;
  letter-spacing: 0.02em;
}

/* ===== 桌面端升级 ===== */
@media (min-width: 900px) {
  .page-home .home-hero {
    padding: 76px 0 96px;
    min-height: 620px;
  }

  .page-home .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
  }

  .page-home .hero-copy h1 {
    font-size: 54px;
  }

  .page-home .hero-desc {
    font-size: 17px;
    margin-bottom: 34px;
  }

  .page-home .hero-stats {
    gap: 32px;
  }

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

  .page-home .section-lead {
    font-size: 16px;
  }

  .page-home .log-layout {
    grid-template-columns: 52px 1fr;
    gap: 28px;
  }

  .page-home .log-timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
  }

  .page-home .timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--c-gold);
    box-shadow: 0 0 16px rgba(245, 197, 24, 0.5);
    flex-shrink: 0;
  }

  .page-home .timeline-line {
    flex: 1;
    width: 2px;
    background: linear-gradient(180deg, var(--c-gold) 0%, transparent 100%);
    margin-top: 8px;
  }

  .page-home .log-card {
    padding: 34px 36px;
  }

  .page-home .log-details {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .page-home .log-detail-item {
    flex-direction: column;
    gap: 8px;
  }

  .page-home .log-thumb {
    max-width: 420px;
  }

  .page-home .feature-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 24px;
    align-items: stretch;
  }

  .page-home .feature-card {
    padding: 32px 28px;
  }

  .page-home .feature-card-lg {
    grid-row: span 1;
  }

  .page-home .feature-ball {
    display: block;
    position: absolute;
    right: 16px;
    bottom: -30px;
    width: 220px;
    height: 220px;
    object-fit: cover;
    opacity: 0.32;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
  }

  .page-home .news-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .page-home .news-item {
    padding: 30px 28px;
  }

  .page-home .home-region {
    padding: 64px 0 72px;
  }

  .page-home .region-img {
    max-width: 800px;
  }
}

/* ===== 窄屏保护 ===== */
@media (max-width: 480px) {
  .page-home .hero-stat dd {
    font-size: 18px;
  }

  .page-home .hero-actions .btn,
  .page-home .hero-actions .btn-outline {
    width: 100%;
    text-align: center;
  }

  .page-home .section-head {
    gap: 12px;
  }

  .page-home .section-number {
    font-size: 36px;
  }
}
