/* ========================================
   page-home 专属样式
   作用域：.page-home
   移动端优先 + 桌面增强
   ======================================== */

.page-home {
  --hero-min-height: 92vh;
  --wave-height: 60px;
  --card-radius: var(--radius-md);
  --timeline-node-size: 72px;
  color: var(--clr-text);
  background-color: var(--clr-cream);
  overflow-x: hidden;
}

/* ---------- 1. Hero 全景海报 ---------- */
.page-home .hero {
  position: relative;
  min-height: var(--hero-min-height);
  display: flex;
  align-items: center;
  color: var(--clr-white);
  overflow: hidden;
}

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

.page-home .hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.page-home .hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,119,182,0.72) 0%, rgba(2,62,138,0.85) 60%, rgba(43,45,66,0.60) 100%);
  mix-blend-mode: multiply;
}

.page-home .hero__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--wave-height);
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30Q180 0 360 30T720 30T1080 30T1440 30V60H0Z' fill='%23F8F9FA' opacity='0.95'/%3E%3C/svg%3E") repeat-x bottom / 1440px var(--wave-height);
  animation: hero-wave 8s ease-in-out infinite alternate;
  z-index: 2;
}

@keyframes hero-wave {
  0% { background-position-x: 0; }
  100% { background-position-x: -72px; }
}

.page-home .hero__content {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--space-2xl) + var(--space-lg));
  padding-bottom: calc(var(--space-xl) + var(--wave-height) * 0.6);
  max-width: 720px;
}

.page-home .hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-md);
}

.page-home .hero__crumb-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.page-home .hero__crumb-link:hover {
  color: var(--clr-accent);
}

.page-home .hero__crumb-sep {
  opacity: 0.5;
}

.page-home .hero__crumb-current {
  color: var(--clr-white);
  font-weight: 600;
}

.page-home .hero__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.8rem, 12vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-sm);
  background: linear-gradient(135deg, var(--clr-white) 40%, var(--clr-water) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-home .hero__sub {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  font-weight: 400;
  color: rgba(255,255,255,0.92);
  margin: 0 0 var(--space-sm);
  letter-spacing: 0.02em;
}

.page-home .hero__desc {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  max-width: 540px;
  margin: 0 0 var(--space-lg);
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.page-home .hero__actions .btn--outline {
  border-color: rgba(255,255,255,0.6);
  color: var(--clr-white);
  background: transparent;
}

.page-home .hero__actions .btn--outline:hover {
  border-color: var(--clr-white);
  background: rgba(255,255,255,0.10);
}

/* 浮动气泡装饰 */
.page-home .hero__bubbles {
  position: absolute;
  top: 10%;
  right: 5%;
  z-index: 1;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 0.25;
}

.page-home .hero__bubble {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--clr-water), var(--clr-primary));
  animation: bubble-float 6s ease-in-out infinite alternate;
}

.page-home .hero__bubble:nth-child(2) {
  width: 28px;
  height: 28px;
  animation-delay: 2s;
  opacity: 0.6;
}

.page-home .hero__bubble:nth-child(3) {
  width: 52px;
  height: 52px;
  animation-delay: 4s;
  opacity: 0.3;
}

@keyframes bubble-float {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-30px) scale(1.08); }
}

/* ---------- 2. 最新战报 ---------- */
.page-home .reports {
  padding: var(--space-2xl) 0;
  background: var(--clr-cream);
}

.page-home .reports__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.page-home .reports__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--clr-primary-dark);
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.01em;
}

.page-home .reports__intro {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--clr-text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

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

/* 战报卡片 */
.page-home .report-card {
  background: var(--clr-white);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--clr-border);
}

.page-home .report-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-md);
}

.page-home .report-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--clr-cream);
}

.page-home .report-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.page-home .report-card:hover .report-card__img {
  transform: scale(1.05);
}

.page-home .report-card__tag {
  position: absolute;
  top: var(--space-xs);
  left: var(--space-xs);
  z-index: 1;
}

.page-home .report-card__body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-home .report-card__heading {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--clr-deep);
  margin: 0 0 var(--space-xs);
}

.page-home .report-card__meta {
  font-size: 0.875rem;
  color: var(--clr-primary);
  font-weight: 500;
  margin-bottom: var(--space-xs);
  font-family: var(--font-body);
}

.page-home .report-card__excerpt {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--clr-text-light);
  line-height: 1.5;
  margin: 0 0 var(--space-sm);
  flex: 1;
}

.page-home .report-card__link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}

.page-home .report-card__link:hover {
  gap: 8px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- 3. 转会动态时间轴 ---------- */
.page-home .timeline {
  padding: var(--space-2xl) 0;
  background: var(--clr-deep);
  color: var(--clr-white);
}

.page-home .timeline__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.page-home .timeline__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--clr-water);
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.01em;
}

.page-home .timeline__intro {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

.page-home .timeline__track {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 720px;
  margin: 0 auto var(--space-xl);
}

.page-home .timeline__node {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,180,216,0.20);
  overflow: hidden;
  transition: border-color var(--transition);
}

.page-home .timeline__node[open] {
  border-color: var(--clr-water);
}

.page-home .timeline__node-summary {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  cursor: pointer;
  list-style: none;
  transition: background var(--transition);
}

.page-home .timeline__node-summary::-webkit-details-marker {
  display: none;
}

.page-home .timeline__node-summary:hover {
  background: rgba(0,180,216,0.08);
}

.page-home .timeline__node-icon {
  flex-shrink: 0;
  width: var(--timeline-node-size);
  height: var(--timeline-node-size);
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--clr-water);
  background: var(--clr-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-home .timeline__node-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.page-home .timeline__node-label {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--clr-white);
  flex: 1;
}

.page-home .timeline__node-arrow {
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--clr-water);
  border-bottom: 2px solid var(--clr-water);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.page-home .timeline__node[open] .timeline__node-arrow {
  transform: rotate(-135deg);
}

.page-home .timeline__node-detail {
  padding: 0 var(--space-md) var(--space-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  border-top: 1px solid rgba(0,180,216,0.12);
  margin-top: 0;
  padding-top: var(--space-sm);
}

.page-home .timeline__node-detail p {
  margin: 0;
}

.page-home .timeline__cta {
  text-align: center;
}

.page-home .timeline__cta .btn--primary {
  background: var(--clr-water);
  border-color: var(--clr-water);
  color: var(--clr-deep);
}

.page-home .timeline__cta .btn--primary:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: var(--clr-white);
}

/* ---------- 4. 使用指南下载 ---------- */
.page-home .guide {
  padding: var(--space-2xl) 0;
  background: var(--clr-cream);
}

.page-home .guide__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  align-items: center;
}

.page-home .guide__content {
  text-align: center;
  max-width: 600px;
}

.page-home .guide__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--clr-primary-dark);
  margin: 0 0 var(--space-sm);
}

.page-home .guide__desc {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--clr-text-light);
  line-height: 1.6;
  margin: 0 0 var(--space-md);
}

.page-home .guide__list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.page-home .guide__item {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--clr-deep);
  padding-left: var(--space-md);
  position: relative;
  line-height: 1.5;
}

.page-home .guide__item::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--clr-accent);
  font-weight: 700;
}

.page-home .guide__btn {
  display: inline-block;
}

.page-home .guide__visual {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--clr-border);
}

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

/* ---------- 5. 品牌信任声明 ---------- */
.page-home .trust {
  padding: var(--space-lg) 0;
  background: var(--clr-primary-dark);
  color: rgba(255,255,255,0.85);
}

.page-home .trust__inner {
  text-align: center;
}

.page-home .trust__statement {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 var(--space-sm);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.page-home .trust__contact {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}

.page-home .trust__contact a {
  color: var(--clr-accent-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-home .trust__contact a:hover {
  color: var(--clr-accent);
}

/* ========================================
   桌面增强 (min-width: 768px)
   ======================================== */
@media (min-width: 768px) {
  .page-home .hero__content {
    padding-top: calc(var(--space-2xl) * 1.5);
    padding-bottom: calc(var(--space-2xl) + var(--wave-height));
  }

  .page-home .hero__bubbles {
    opacity: 0.35;
    right: 8%;
  }

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

  .page-home .report-card--tall {
    grid-row: span 2;
  }

  .page-home .report-card--wide {
    grid-column: span 1;
  }

  .page-home .report-card--square {
    grid-column: span 1;
  }

  .page-home .timeline__track {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
  }

  .page-home .timeline__node {
    flex: 0 0 calc(50% - var(--space-sm) * 0.5);
    max-width: 320px;
  }

  .page-home .guide__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .page-home .guide__content {
    text-align: left;
    flex: 1;
  }

  .page-home .guide__list {
    margin-left: 0;
    margin-right: 0;
  }

  .page-home .guide__visual {
    flex: 0 0 400px;
  }
}

/* ========================================
   桌面增强 (min-width: 1024px)
   ======================================== */
@media (min-width: 1024px) {
  .page-home {
    --hero-min-height: 88vh;
  }

  .page-home .reports__grid {
    grid-template-columns: 2fr 1.2fr 1.2fr;
    grid-template-rows: auto auto;
  }

  .page-home .report-card--tall {
    grid-row: 1 / 3;
  }

  .page-home .report-card--wide {
    grid-column: 2 / 4;
  }

  .page-home .report-card--square {
    grid-column: 2;
    grid-row: 2;
  }

  /* 时间轴在桌面变成横向一排 */
  .page-home .timeline__track {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: var(--space-md);
    max-width: 100%;
  }

  .page-home .timeline__node {
    flex: 1;
    max-width: 260px;
  }

  .page-home .timeline__node-summary {
    flex-direction: column;
    text-align: center;
    padding: var(--space-md) var(--space-sm);
  }

  .page-home .timeline__node-icon {
    width: 80px;
    height: 80px;
  }

  .page-home .timeline__node-arrow {
    transform: rotate(135deg);
  }

  .page-home .timeline__node[open] .timeline__node-arrow {
    transform: rotate(-45deg);
  }

  .page-home .timeline__node-detail {
    text-align: center;
  }

  .page-home .trust__statement {
    font-size: 1.05rem;
  }
}
