/* ========== 全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Arial', sans-serif;
    line-height: 1.98;
    color: #333;
    overflow-x: hidden; /* 防止出现横向滚动条 */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 主体内容样式 */
main {
    margin-top: 0; /* 英雄区域紧贴导航栏 */
}

/* ========== 导航栏 ========== */
.nav-wrap {
  position: sticky; /* 页面滚动时导航固定在顶部 */
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #7f1d1d, #991b1b, #b91c1c); /* 深红渐变背景 */
  box-shadow: 0 2px 12px rgba(0,0,0,0.35); /* 阴影 */
  overflow-x: auto;  /* 超出时可横向滚动（移动端兼容） */
  white-space: nowrap;
  scrollbar-width: none; /* 隐藏滚动条（Firefox） */
}
.nav-wrap::-webkit-scrollbar {
  display: none; /* 隐藏滚动条（Chrome/Safari） */
}

/* 导航链接容器 */
.nav {
  display: flex;
  align-items: center;
  justify-content: center;  /* 居中显示 */
  position: relative;
  padding: 0 16px;
}

/* 导航链接基础样式 */
.nav a {
  position: relative;  /* 便于添加 ::after 指示条 */
  display: inline-block;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 500;
  color: #fcd34d; /* 默认金色 */
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* 悬停时效果 */
.nav a:hover {
  color: #fde68a; /* 更亮的金色 */
  text-shadow: 0 0 8px rgba(252, 211, 77, 0.8);
}

/* 当前页面高亮 */
.nav a[aria-current="page"] {
  color: #fff8dc;  /* 乳白偏金 */
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.9);
}

/* 指示条（伪元素实现） */
.nav a::after {
  content: "";
  position: absolute;
  bottom: 6px; /* 距离文字底部 */
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b, #d97706); /* 金色渐变 */
  border-radius: 2px;
  transition: width 0.3s ease, left 0.3s ease;
}

/* 悬停或选中时指示条展开 */
.nav a:hover::after,
.nav a[aria-current="page"]::after {
  width: 100%;
  left: 0;
}

/* ========== 英雄区域 ========== */
.hero {
    background: linear-gradient(rgba(230, 57, 70, 0.8), rgba(230, 57, 70, 0.9)), 
                url('hero-bg.jpg') no-repeat center center/cover;
    min-height: 100vh; /* 占满屏幕高度 */
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
    min-height: 500px; /* 保留最小高度 */
}

.hero-content {
    width: 100%;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
}

.hero-image {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
}

/* ========== 页脚 ========== */
footer {
    background: linear-gradient(90deg, #7f1d1d, #991b1b, #b91c1c); /* 深红渐变，呼应导航 */
    color: #fcd34d;  /* 金色文字 */
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    position: relative;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.35);
}

/* 页脚里的链接样式 */
footer a {
    color: #fde68a; /* 更亮的金色 */
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

footer a:hover {
    color: #fff8dc; /* 乳白偏金 */
    text-shadow: 0 0 8px rgba(252, 211, 77, 0.8);
}

/* ========== 动画效果 ========== */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content p { font-size: 1.0rem; }
}
