/* ===== 原有样式（保持不变） ===== */
body {
    font-family: "Chakra Petch", sans-serif;
    margin: 0;
    text-align: center;
  }
  
  h1,
  h2,
  h3 {
    font-weight: 600;
    letter-spacing: 0.5px;
  }
  
  .navbar {
    background: #1f2f4a;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  .logo img {
    height: 55px;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
  }
  
  .nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
  }
  
  .nav-links a {
    color: white;
    text-decoration: none;
  }
  
  .footer {
    background: linear-gradient(135deg, #1f2f4a, #2fb36d);
    color: #eee;
    padding: 60px 20px 20px;
  }
  .footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
  }
  .footer-left, .footer-right {
    width: 45%;
  }
  .footer h3 {
    color: #fff;
    margin-bottom: 15px;
  }
  .footer p {
    margin: 6px 0;
    font-size: 14px;
  }
  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    text-align: center;
    margin-top: 40px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
  }
  
  a:link, a:visited {
    color: white;
    text-decoration: none;
  }
  
  /* ===== 新增画廊样式（标题 + 3列网格） ===== */
  .gallery-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
  }
  
  .gallery-section h1 {
    font-size: 2.5rem;
    color: #1f2f4a;
    margin-bottom: 0.3rem;
    position: relative;
  }
  .gallery-section h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #2fb36d;
    margin: 0.5rem auto 0;
    border-radius: 2px;
  }
  
  .gallery-sub {
    color: #4a5a6a;
    font-weight: 300;
    margin-bottom: 2rem;
    font-size: 1.1rem;
  }
  
  /* 固定 3 列网格 */
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
  
  .gallery-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(31, 47, 74, 0.12);
    background: #f0f2f5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(31, 47, 74, 0.20);
  }
  
  .gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
  }
  
  .gallery-item:hover img {
    transform: scale(1.05);
  }
  
  /* ===== 响应式适配 ===== */
  @media (max-width: 700px) {
    .navbar {
      flex-direction: column;
      padding: 15px 20px;
      gap: 10px;
    }
    .nav-links {
      flex-wrap: wrap;
      justify-content: center;
      gap: 15px;
    }
    
    /* 平板及以下变成 2 列 */
    .gallery-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
    }
    .gallery-item img {
      height: 200px;
    }
    
    .footer-container {
      flex-direction: column;
      text-align: center;
    }
    .footer-left, .footer-right {
      width: 100%;
    }
  }
  
  @media (max-width: 450px) {
    /* 小屏手机变 1 列 */
    .gallery-grid {
      grid-template-columns: 1fr;
    }
    .gallery-item img {
      height: 220px;
    }
  }