/* ===== page-home 专属样式 ===== */
.page-home {
  /* 变量定义（仅本作用域有效） */
  --hero-min-height: 70vh;
  --slider-transition: 0.6s ease;
  --glass-bg: rgba(255,255,255,0.08);
  --glass-blur: 12px;
}

/* 面包屑 */
.page-home .breadcrumb {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 10;
  font-size: 0.85rem;
  color: var(--c-text-dark);
  background: rgba(0,0,0,0.4);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}

/* 首屏轮播容器 */
.page-home .hero {
  position: relative;
  min-height: var(--hero-min-height);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--c-dark);
  border-bottom: 2px solid var(--c-silver);
}

.page-home .hero__carousel {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* 隐藏 radio */
.page-home .hero__carousel input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

/* 幻灯片容器 */
.page-home .hero__slides {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.page-home .hero__slide {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}

/* 默认选中第一张 */
.page-home #hero-slide-1:checked ~ .hero__slides #hero-slide-1-content,
.page-home #hero-slide-2:checked ~ .hero__slides #hero-slide-2-content,
.page-home #hero-slide-3:checked ~ .hero__slides #hero-slide-3-content {
  display: flex;
  animation: fadeSlide var(--slider-transition) both;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: scale(1.02); }
  to   { opacity: 1; transform: scale(1); }
}

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

/* 指示器 */
.page-home .hero__indicators {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-sm);
  z-index: 5;
}

.page-home .hero__indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-light);
  opacity: 0.6;
  cursor: pointer;
  transition: var(--transition);
  text-indent: -9999px;
  overflow: hidden;
  border: 2px solid transparent;
}

.page-home .hero__indicator:hover,
.page-home .hero__indicator:focus-visible {
  opacity: 1;
  border-color: var(--c-accent);
}

.page-home #hero-slide-1:checked ~ .hero__indicators label[for="hero-slide-1"],
.page-home #hero-slide-2:checked ~ .hero__indicators label[for="hero-slide-2"],
.page-home #hero-slide-3:checked ~ .hero__indicators label[for="hero-slide-3"] {
  opacity: 1;
  background: var(--c-accent);
  border-color: var(--c-accent);
}

/* 浮动数据面板（玻璃拟态） */
.page-home .data-panel {
  position: absolute;
  bottom: var(--space-xl);
  right: var(--space-lg);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-md) var(--space-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-lg);
  max-width: 280px;
}

.page-home .data-panel__label {
  font-size: 0.75rem;
  color: var(--c-silver);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.page-home .data-panel__value {
  font-size: 1.25rem;
  font-weight: var(--fw-heading);
  line-height: 1.3;
}

.page-home .data-panel .tag {
  align-self: flex-start;
}

/* 核心服务 */
.page-home .services {
  background: var(--c-light);
  padding: var(--space-xl) 0;
}

.page-home .services .section__title {
  text-align: center;
  margin-bottom: var(--space-lg);
  font-size: 2rem;
  color: var(--c-text);
  position: relative;
}

.page-home .services .section__title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--c-grad-start), var(--c-grad-end));
  margin: var(--space-sm) auto 0;
  border-radius: 2px;
}

.page-home .services__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--c-border);
}

.page-home .services__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.page-home .card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
}

.page-home .card__title {
  font-size: 1.25rem;
  font-weight: var(--fw-heading);
  color: var(--c-text);
}

.page-home .card__desc {
  flex: 1;
  color: var(--c-text);
  opacity: 0.85;
  line-height: 1.5;
}

.page-home .card .btn {
  align-self: flex-start;
}

/* 最新更新 */
.page-home .updates {
  background: var(--c-dark);
  color: var(--c-text-dark);
  padding: var(--space-xl) 0;
}

.page-home .updates .section__title {
  color: var(--c-text-dark);
  text-align: center;
  margin-bottom: var(--space-lg);
  font-size: 2rem;
}

.page-home .updates .section__title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--c-accent);
  margin: var(--space-sm) auto 0;
  border-radius: 2px;
}

.page-home .updates__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.page-home .updates__item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  border-left: 4px solid var(--c-grad-start);
}

.page-home .updates__icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--c-border);
}

.page-home .updates__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.page-home .updates__text .tag {
  align-self: flex-start;
}

.page-home .updates__text .text-small {
  color: var(--c-silver);
}

/* 快速入口 */
.page-home .quick-links {
  padding: var(--space-xl) 0;
  background: linear-gradient(135deg, var(--c-grad-start) 0%, var(--c-grad-end) 100%);
}

.page-home .quick-links .section__title {
  text-align: center;
  color: var(--c-light);
  margin-bottom: var(--space-lg);
  font-size: 2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.page-home .quick-links__grid {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.page-home .quick-links__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--c-light);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  border: 1px solid var(--c-border);
  transition: var(--transition);
  min-width: 100px;
}

.page-home .quick-links__item:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.page-home .quick-links__icon {
  width: 48px;
  height: 48px;
}

.page-home .quick-links__label {
  font-size: 1rem;
  font-weight: var(--fw-heading);
}

/* 响应式 */
@media (max-width: 768px) {
  .page-home .hero {
    min-height: 50vh;
  }

  .page-home .data-panel {
    bottom: var(--space-md);
    right: var(--space-md);
    left: var(--space-md);
    max-width: none;
    padding: var(--space-sm) var(--space-md);
  }

  .page-home .services .grid-3 {
    grid-template-columns: 1fr;
  }

  .page-home .updates__item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .page-home .updates__icon {
    width: 48px;
    height: 48px;
  }

  .page-home .quick-links__grid {
    gap: var(--space-md);
  }

  .page-home .quick-links__item {
    min-width: 80px;
    padding: var(--space-sm) var(--space-md);
  }
}

/* 全局网格类的补充（本页不会重复定义，但确保存在） */
.page-home .grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}
