.contact-page {
  padding: 80px 0 40px 0;
}

.contact-page .contact-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-page .contact-header {
  text-align: center;
  padding: 20px;
}

.contact-page .contact-title {
  font-size: 32px;
  color: var(--title-color);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.contact-page .contact-subtitle {
  font-size: 17px;
  color: var(--text-color);
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.contact-page .contact-body {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 30px;
}

/* 联系方式卡片 */
.contact-page .contact-info-container {
  width: 100%;
  margin: 0 auto;
  background-color: white;
}

.contact-page .info-title {
  font-size: 22px;
  color: var(--title-color);
  font-weight: 600;
  padding-bottom: 20px;
  text-align: left;
  margin-bottom: 30px;
  position: relative;
}

.contact-page .info-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;           /* 只占一半宽度 */
  height: 2px;          /* 线条粗细 */
  background: var(--secondary-color); /* 或自定义颜色 */
}

.contact-page .info-items-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.contact-page .contact-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 15px;
  border: 1px solid var(--border-color);
}

.contact-page .info-icon {
  width: 60px;
  height: 60px;
  background-color: #f0f4f8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  font-size: 24px;
  margin-bottom: 15px;
}

.contact-page .info-content {
  flex-grow: 1;
}

.contact-page .info-heading {
  font-size: 18px;
  color: var(--title-color);
  margin-bottom: 8px;
  font-weight: 600;
}

.contact-page .info-text {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 5px;
}

.contact-page .info-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
}

.contact-page .info-link:hover {
  color: var(--secondary-hover-color);
  text-decoration: underline;
}

/* 表单区域 */
.contact-page .contact-form-container {
  background-color: white;
  width: 100%;
  margin: 0 auto;
}

.contact-page .form-title {
  font-size: 22px;
  color: var(--title-color);
  margin-bottom: 25px;
  font-weight: 600;
  padding-bottom: 15px;
  position: relative;
}

.contact-page .form-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;           /* 只占一半宽度 */
  height: 2px;          /* 线条粗细 */
  background: var(--secondary-color); /* 或自定义颜色 */
}

.contact-page .contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-page .form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
}

.contact-page .form-row.full-width {
  grid-template-columns: 1fr;
}

.contact-page .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.contact-page .form-label {
  font-size: 15px;
  color: #333;
  font-weight: 500;
}

.contact-page .required {
  color: #e74c3c;
}

.contact-page .form-input, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 15px;
  color: #333;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.contact-page .form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

.contact-page .form-input.error {
  border: 1px solid #ff4d4f;
  background-color: #fff1f0;
}

.contact-page .form-textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-page .form-submit-btn {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
}

.contact-page .form-submit-btn:hover {
  background-color: var(--secondary-hover-color);
}

.contact-page .form-submit-btn:active {
  transform: translateY(0);
}

/* 成功提示 */
.contact-page .form-success-message {
  background-color: #e8f5e9;
  color: #2e7d32;
  padding: 18px;
  border-radius: 6px;
  text-align: center;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.contact-page .hidden {
  display: none;
}

.contact-page .success-icon {
  font-size: 22px;
}

/* ==============================================
   响应式断点（手机/平板完美适配）
================================================= */
@media (max-width: 768px) {
  .contact-page {
    padding: 80px 0 30px 0;
  }

  .contact-page .contact-title {
    font-size: 26px;
  }

  .contact-page .contact-subtitle {
    font-size: 16px;
  }

  .contact-page .contact-info-container,
  .contact-page .contact-form-container {
    padding: 25px 20px;
  }

  .contact-page .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .contact-page .contact-wrapper {
    padding: 0 15px;
  }

  .contact-page .contact-title {
    font-size: 24px;
  }

  .contact-page .info-title,
  .contact-page .form-title {
    font-size: 20px;
  }

  .contact-page .form-submit-btn {
    max-width: 100%;
  }
}