/* ===== 全局重置 ===== */
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;
  }
  .logo a,
  .logo a:hover {
    text-decoration: none;
    color: white;
  }
  
  .nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
  }
  .nav-links a {
    color: white;
    text-decoration: none;
  }
  /* ★ 导航悬停完全无反应 ★ */
  .nav-links a:hover {
    color: inherit;
    text-decoration: none;
    background: none;
    transform: none;
  }
  
  /* ===== 联系表单区块（居中 + 加框） ===== */
  .contact-section {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2.5rem 2rem 2.8rem;
    background: #ffffff;
    border-radius: 2.5rem;
    /* ★ 新增：清晰的框框（边框） ★ */
    border: 3px solid gray;
    box-shadow: 0 20px 40px -12px rgba(0, 20, 30, 0.25),
                0 8px 24px -6px rgba(0, 0, 0, 0.05);
    text-align: center;
  }
  
  .contact-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0b1e2b;
    margin-bottom: 0.3rem;
  }
  
  .contact-section h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #2fb36d;
    margin: 0.5rem auto 0;
    border-radius: 2px;
  }
  
  .contact-sub {
    color: #4a5a6a;
    font-weight: 300;
    margin-bottom: 2rem;
    font-size: 1.1rem;
  }
  
  /* ===== 表单（在框内居中） ===== */
  .contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;    /* ★ 让所有子项（表单组）在框内居中对齐 ★ */
    gap: 1.2rem;
    width: 100%;
  }
  
  /* ===== 每个表单项（宽度限制，居中） ===== */
  .form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
    width: 100%;
    max-width: 600px;       /* ★ 限制最大宽度，让输入框在框内自然居中 ★ */
  }
  
  .form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #1f3a4f;
    margin-bottom: 0.3rem;
    letter-spacing: 0.3px;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 0.9rem 1.2rem;
    border: 2px solid #e2edf5;
    border-radius: 60px;
    font-size: 1rem;
    font-family: inherit;
    background: #fafcfe;
    transition: border-color 0.2s;
    outline: none;
    width: 100%;            /* ★ 填满父级宽度（最大600px） ★ */
    box-sizing: border-box;
  }
  
  .form-group input:focus,
  .form-group textarea:focus {
    border-color: #1f2f4a;
    background: #ffffff;
  }
  
  .form-group textarea {
    border-radius: 1.5rem;
    resize: vertical;
    min-height: 140px;
  }
  
  /* ===== 提交按钮（居中） ===== */
  .submit-btn {
    background: #1e3f57;
    color: white;
    border: none;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 60px;
    font-size: 1.2rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 4px 12px rgba(20, 50, 70, 0.2);
    margin-top: 0.5rem;
    min-width: 200px;
  }
  
  .submit-btn:hover {
    background: #14303f;
    transform: scale(1.02);
  }
  
  .submit-btn:active {
    transform: scale(0.96);
  }
  
  /* ===== 页脚 ===== */
  .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;
  }
  a:hover {
    text-decoration: underline;
  }
  
  /* ===== 响应式适配 ===== */
  @media (max-width: 768px) {
    .navbar {
      flex-direction: column;
      padding: 15px 20px;
      gap: 10px;
    }
    .nav-links {
      flex-wrap: wrap;
      justify-content: center;
      gap: 15px;
    }
    .contact-section {
      margin: 1.5rem 1rem;
      padding: 1.8rem 1.2rem;
      border-width: 2px;   /* ★ 小屏上边框稍微细一点 ★ */
    }
    .contact-section h1 {
      font-size: 2rem;
    }
    .form-group {
      max-width: 100%;     /* ★ 小屏上让输入框占满框内宽度 ★ */
    }
    .footer-container {
      flex-direction: column;
      text-align: center;
    }
    .footer-left,
    .footer-right {
      width: 100%;
    }
  }
  
  @media (max-width: 460px) {
    .contact-section {
      padding: 1.5rem 1rem;
      border-width: 2px;
    }
    .contact-section h1 {
      font-size: 1.6rem;
    }
    .form-group input,
    .form-group textarea {
      padding: 0.7rem 1rem;
      font-size: 0.9rem;
    }
    .submit-btn {
      padding: 0.8rem 1.8rem;
      font-size: 1rem;
      min-width: 150px;
    }
  }