.contact-form-main {
    max-width: 1200px;
    margin: calc(var(--nav-height)) auto 0;
    flex: 1; /* 撑满剩余空间 */
    transition: margin-top 0.3s ease;
}

.section-title {
    margin: 50px 0 30px;
}

/* 表单容器样式 */
:root {
  --nav-height: 70px;
  --section-title-height: 122px;
  --footer-height: 60px;
}


.contact-form-container {
    width: 100%;
    min-height: calc(100vh - var(--nav-height) - var(--section-title-height) - var(--footer-height));
    display: flex;
    justify-content: center;
    align-items: center;
}
.form-container {
    min-width: 800px;
    padding: 40px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
    width: 100%;
}

/* 表单行布局 */
.form-row {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}

.form-group {
    flex: 1;
    gap: 30px;
    margin-bottom: 25px;
}

/* 输入框样式 */
input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    border-color: #0066cc;
    box-shadow: 0 0 8px rgba(0,102,204,0.2);
    outline: none;
}

/* 必填项标识 */
.required {
    color: #ff4444;
    font-size: 0.9em;
}

/* 提交按钮 */
.submit-btn {
    background: #0066cc;
    color: white;
    padding: 12px 35px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #0052a3;
}

/* 响应式设计 */
@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
    --section-title-height: 122px;
    --footer-height: 60px;
  }

  .contact-form-container {
    width: 100%;
    min-height: calc(100vh - var(--nav-height) - var(--section-title-height) - var(--footer-height));
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .form-container {
    width: 100%;
    min-width: unset;
    padding: 20px;
    margin: auto;
  }

  .form-row {
    flex-direction: column;
    gap: 15px;
    margin-bottom: auto;
  }

  .form-group {
    margin-bottom: 15px;
  }

  input, textarea {
    padding: 10px;
    font-size: 0.95rem;
  }

  .submit-btn {
    width: 100%;
    padding: 14px 25px;
    font-size: 1rem;
  }
}
