/* ============ 首页专用样式 ============ */

/* Hero 主视觉 */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/景区首页顶部banner图.png') center center / cover no-repeat;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(212, 165, 72, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(74, 125, 94, 0.4) 0%, transparent 60%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(31, 64, 48, 0.8) 100%);
  pointer-events: none;
}

/* 山形剪影 */
.hero-bg .mountain-silhouette {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 240px;
  background:
    polygon;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 24px;
  max-width: 1200px;
}

.hero-badge {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-badge .badge {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
}

.hero-badge .badge-accent {
  background: rgba(184, 132, 46, 0.3);
  border-color: rgba(212, 165, 72, 0.5);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 6px;
  margin-bottom: 16px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 8px;
  margin-bottom: 24px;
  opacity: 0.95;
  color: var(--accent-light);
}

.hero-desc {
  font-size: 15px;
  line-height: 1.9;
  max-width: 560px;
  margin-bottom: 36px;
  opacity: 0.88;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero { min-height: 480px; }
  .hero-title { font-size: 42px; letter-spacing: 3px; }
  .hero-subtitle { font-size: 16px; letter-spacing: 4px; }
  .hero-content { padding: 56px 24px; }
}

/* 事故警示横幅 */
.accident-banner {
  margin-top: -40px;
  position: relative;
  z-index: 3;
  padding: 0 0 32px;
}

.accident-banner .alert {
  background: #fff;
  border-left-width: 5px;
  box-shadow: var(--shadow-md);
  padding: 24px 28px;
}

.banner-content {
  flex: 1;
}

.banner-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.banner-text {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 16px;
}

.banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* 卡片图标 */
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
}

.card-icon.primary {
  background: var(--primary-bg);
  color: var(--primary);
}

.card-icon.accent {
  background: var(--accent-bg);
  color: var(--accent);
}

.card-icon.danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.card-link {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.card-hover:hover .card-link {
  color: var(--primary-dark);
}

/* 景区介绍 */
.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
}

.intro-para {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-body);
  margin-bottom: 16px;
}

.intro-stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-num span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-light);
  margin-left: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 6px;
}

/* 山景艺术图 */
.intro-visual {
  position: relative;
}

.intro-image {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

.intro-caption {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-light);
  font-style: italic;
}

/* 时间线 */
.timeline {
  position: relative;
  padding-left: 40px;
  margin-top: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 50%, var(--danger) 100%);
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-year {
  position: absolute;
  left: -40px;
  top: -4px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-page);
  padding: 0 8px;
  z-index: 1;
}

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg-page);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-dot.danger {
  background: var(--danger);
  box-shadow: 0 0 0 2px var(--danger);
  animation: pulse-danger 2s infinite;
}

@keyframes pulse-danger {
  0%, 100% { box-shadow: 0 0 0 2px var(--danger), 0 0 0 0 rgba(168, 50, 74, 0.4); }
  50%      { box-shadow: 0 0 0 2px var(--danger), 0 0 0 8px rgba(168, 50, 74, 0); }
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}

.timeline-content h4 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* CTA 区域 */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #143024 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(184, 132, 46, 0.1) 0%, transparent 60%);
}

.cta-section .container {
  position: relative;
  z-index: 1;
}
