/**
 * 导潮广州 - 首页专属样式
 * @author Kou (寇豆码)
 */

/* ===== Hero区域 ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding: var(--space-2xl) var(--space-lg);
}

.hero__tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.hero__tag {
  padding: 4px 16px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--color-white);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: var(--fs-4xl);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-white);
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero__subtitle {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero__desc {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  animation: fadeInUp 0.8s ease 0.8s both;
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-xs);
  z-index: 2;
  animation: bounce 2s ease-in-out infinite;
}

/* ===== 通用区块 ===== */
.section {
  padding: var(--space-3xl) 0;
}

.section--alt {
  background: var(--gradient-bg);
}

.section__header {
  margin-bottom: var(--space-2xl);
}

.section__title {
  font-size: var(--fs-3xl);
  margin-bottom: var(--space-sm);
}

.section__subtitle {
  font-size: var(--fs-md);
  color: var(--color-text-light);
}

/* ===== 功能卡片箭头 ===== */
.feature-card__arrow {
  position: absolute;
  bottom: var(--space-lg);
  right: var(--space-lg);
  color: var(--color-primary);
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition-normal);
}

.feature-card:hover .feature-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ===== 城市特色展示 ===== */
.city-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.city-showcase__item {
  text-align: center;
  padding: var(--space-xl);
}

.city-showcase__icon {
  font-size: 56px;
  margin-bottom: var(--space-md);
}

.city-showcase__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.city-showcase__desc {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  line-height: var(--lh-relaxed);
  max-width: 280px;
  margin: 0 auto;
}

/* ===== 资讯卡片 ===== */
.news-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-card__image {
  width: 100%;
  height: 180px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.news-card__body {
  padding: var(--space-lg);
}

.news-card__category {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.news-card__category--policy {
  background: rgba(26, 107, 142, 0.1);
  color: var(--color-primary);
}

.news-card__category--life {
  background: rgba(194, 59, 34, 0.1);
  color: var(--color-accent);
}

.news-card__category--culture {
  background: rgba(46, 148, 176, 0.1);
  color: var(--color-primary-light);
}

.news-card__category--event {
  background: rgba(127, 179, 213, 0.15);
  color: var(--color-link);
}

.news-card__title {
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  line-height: var(--lh-tight);
}

.news-card__summary {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-md);
}

.news-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--color-text-light);
}

/* ===== CTA区域 ===== */
.cta-section {
  background: var(--gradient-hero);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.cta-section__title {
  font-size: var(--fs-3xl);
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.cta-section__desc {
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .city-showcase {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .hero__title {
    font-size: var(--fs-3xl);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 90vh;
  }

  .hero__title {
    font-size: var(--fs-2xl);
  }

  .hero__subtitle {
    font-size: var(--fs-md);
  }

  .hero__desc {
    font-size: var(--fs-sm);
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .section__title {
    font-size: var(--fs-xl);
  }

  .hero__scroll-hint {
    display: none;
  }
}
