/* 首页页面专属样式 - 限定在 .page-home 作用域内 */
.page-home {
  --hero-padding: 2rem 1rem;
  --card-min-height: 320px;
  --dashboard-gap: 1.5rem;
  --feedback-gap: 2rem;
  --section-number-size: 3rem;
}

/* 首屏：四季轮播 */
.page-home .hero-section {
  padding: var(--hero-padding);
  background: var(--winter-white);
  position: relative;
  overflow: hidden;
}

.page-home .page-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--slate);
  margin-bottom: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .page-home .page-title {
    text-align: left;
    font-size: 3rem;
  }
}

.page-home .season-carousel {
  position: relative;
  margin-bottom: 2rem;
}

.page-home .carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 1rem;
}

.page-home .carousel-track::-webkit-scrollbar {
  display: none;
}

.page-home .season-card {
  flex: 0 0 85%;
  min-height: var(--card-min-height);
  scroll-snap-align: start;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--season-color, var(--spring-green));
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.page-home .season-card:hover,
.page-home .season-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

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

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

.page-home .card-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, rgba(44,62,80,0.7) 0%, transparent 60%);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

.page-home .season-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--china-red);
  margin-bottom: 0.25rem;
}

.page-home .season-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.page-home .season-desc {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  margin-bottom: 1rem;
  opacity: 0.9;
}

.page-home .season-btn {
  align-self: flex-start;
  padding: 0.5rem 1.5rem;
  background: var(--china-red);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  transition: background 0.3s;
  text-decoration: none;
}

.page-home .season-btn:hover {
  background: #b71c1c;
}

.page-home .carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.page-home .carousel-prev,
.page-home .carousel-next {
  background: var(--slate);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.3s;
}

.page-home .carousel-prev:hover,
.page-home .carousel-next:hover {
  background: var(--china-red);
}

/* 区域选择 */
.page-home .region-selector {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-top: 2rem;
}

.page-home .region-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.page-home .section-label {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate);
  writing-mode: horizontal-tb;
  transform: none;
}

.page-home .region-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-home .region-tag {
  padding: 0.35rem 0.85rem;
  border: 2px solid var(--clay);
  border-radius: 20px;
  background: transparent;
  font-family: var(--font-body);
  color: var(--slate);
  cursor: pointer;
  transition: all 0.3s;
  font-size: var(--font-size-small);
}

.page-home .region-tag.active,
.page-home .region-tag:hover {
  background: var(--slate);
  color: #fff;
  border-color: var(--slate);
}

.page-home .region-tag[aria-pressed="true"] {
  background: var(--china-red);
  color: #fff;
  border-color: var(--china-red);
}

.page-home .region-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.page-home .region-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-home .region-info {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  color: var(--rock-gray);
  line-height: 1.6;
}

.page-home .region-btn {
  padding: 0.5rem 1.5rem;
  background: var(--summer-blue);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s;
}

.page-home .region-btn:hover {
  background: #1a5a8a;
}

/* 第二屏：价格比对 */
.page-home .price-comparison {
  padding: 3rem 1rem;
  background: var(--slate);
  color: #fff;
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
}

.page-home .section-header {
  text-align: left;
  margin-bottom: 2rem;
}

.page-home .section-number {
  font-family: var(--font-heading);
  font-size: var(--section-number-size);
  font-weight: 800;
  color: var(--china-red);
  display: block;
  line-height: 1;
}

.page-home .section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0.5rem 0;
  color: #fff;
}

.page-home .section-desc {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  line-height: 1.6;
}

.page-home .price-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--dashboard-gap);
}

.page-home .dashboard-card {
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  transition: transform 0.3s, background 0.3s;
  border: 1px solid transparent;
}

.page-home .dashboard-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.2);
  border-color: var(--china-red);
}

.page-home .dashboard-card.accent {
  background: var(--china-red);
}

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

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

.page-home .dashboard-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.page-home .dashboard-price {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.5rem;
}

.page-home .dashboard-status {
  font-family: var(--font-heading);
  font-size: var(--font-size-small);
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  display: inline-block;
}

.page-home .price-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  background: var(--china-red);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s;
}

.page-home .price-btn:hover {
  background: #b71c1c;
}

/* 第三屏：评价反馈 */
.page-home .feedback-section {
  padding: 3rem 1rem;
  background: var(--winter-white);
}

.page-home .feedback-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--feedback-gap);
  align-items: center;
}

.page-home .feedback-text .section-number {
  color: var(--autumn-orange);
}

.page-home .feedback-text .section-title {
  color: var(--slate);
}

.page-home .feedback-text .section-desc {
  color: var(--rock-gray);
}

.page-home .feedback-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
}

.page-home .feedback-item {
  background: #fff;
  padding: 1.25rem;
  border-left: 4px solid var(--autumn-orange);
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.page-home .feedback-item p {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  line-height: 1.6;
  color: var(--slate);
  margin-bottom: 0.5rem;
}

.page-home .feedback-item cite {
  font-family: var(--font-heading);
  font-size: var(--font-size-small);
  color: var(--rock-gray);
  font-style: normal;
}

.page-home .feedback-btn {
  padding: 0.75rem 2rem;
  background: var(--autumn-orange);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s;
}

.page-home .feedback-btn:hover {
  background: #cf711f;
}

.page-home .feedback-image {
  display: flex;
  justify-content: center;
}

.page-home .feedback-img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 移动端优先媒体查询：桌面端 */
@media (min-width: 768px) {
  .page-home {
    --hero-padding: 3rem 2rem;
  }

  .page-home .carousel-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    overflow: visible;
    scroll-snap-type: none;
  }

  .page-home .season-card {
    flex: 1;
    min-height: 400px;
  }

  .page-home .carousel-controls {
    display: none;
  }

  .page-home .region-selector {
    padding: 2rem;
  }

  .page-home .region-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .page-home .region-content {
    flex-direction: row;
    align-items: center;
  }

  .page-home .region-img {
    width: 50%;
    max-width: none;
  }

  .page-home .price-dashboard {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .page-home .feedback-list {
    gap: 2rem;
  }

  .page-home .container {
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* 支持 reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .page-home .season-card,
  .page-home .dashboard-card,
  .page-home .btn {
    transition: none;
  }
}

.page-home {
  --season-color: transparent;
}
