/* 联系我们英雄区域 */
.contact-hero {
  position: relative;
  height: 250px;
  overflow: hidden;
  margin-top: 70px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 80px;
  color: white;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
  font-weight: 300;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 联系我们页面样式 */

/* 移除所有可能的蓝色边框 */
.contact-page * {
  border-color: transparent !important;
}

.contact-page h1,
.contact-page h2,
.contact-page h3 {
  border: none !important;
  border-bottom: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.contact-page {
  margin-top: 0;
  padding: 30px 0;
  background: white;
  position: relative;
}

.contact-page::before {
  display: none;
}

.contact-page .container {
  position: relative;
  z-index: 2;
}

/* 公司信息 */
.contact-company-info {
  text-align: left;
  margin-bottom: 20px;
}

.contact-company-info h3 {
  font-size: 1.5rem;
  color: #333;
  font-weight: bold;
}

/* 主要联系信息区域 */
.contact-main-info {
  display: flex;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: flex-start;
}

.contact-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 20px;
}

.contact-right {
  flex: 1;
  padding-right: 20px;
}

.contact-item {
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
}

.contact-item:last-child {
  border-bottom: none;
}

/* 地址内容的特殊样式 */
.contact-item.address-content {
  padding: 0 0 8px 0;
  border-bottom: none;
  margin-top: -8px;
}

.contact-item.address-content p {
  color: #333;
  font-weight: bold;
  font-size: 1.1rem;
}

/* 地址标题的特殊样式 */
.contact-item:has(+ .contact-item.address-content) h3 {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}

.contact-item h3 {
  font-size: 1rem;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}

.contact-item p {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
}

/* 二维码样式 */
.qrcode-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qrcode-item img {
  width: 80px;
  height: 80px;
  border: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.qrcode-item p {
  color: #666;
  font-size: 0.7rem;
  margin: 0;
}

/* 留言反馈区域 */
.message-section {
  padding: 30px 0;
  background: #f8f9fa;
}

.message-feedback {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.message-feedback h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 5px;
  font-weight: 300;
}

.message-feedback h3 {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.feedback-form {
  width: 100%;
  text-align: left;
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: #333;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 8px 0;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  background: transparent;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: #666;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.submit-btn {
  background: #666;
  color: white;
  border: none;
  padding: 10px 25px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 15px;
}

.submit-btn:hover {
  background: #444;
}

/* 公司简介区域 */
.company-section {
  padding: 30px 0;
  background: white;
}

.company-intro {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.company-intro h2 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 20px;
  font-weight: 300;
}

.company-intro p {
  color: #666;
  line-height: 1.6;
  font-size: 0.9rem;
  margin-bottom: 15px;
  text-align: justify;
}

/* 公司简介标题的特殊样式 */
.contact-item:has(h3:contains("公司简介")) h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 12px;
  font-weight: bold;
  margin-top: -10px;
}

/* 模态框样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content h3 {
  color: #333;
  margin-bottom: 15px;
  font-size: 1.5rem;
  font-weight: 600;
}

.modal-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 20px;
  transition: color 0.3s ease;
}

.close:hover,
.close:focus {
  color: #333;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
  .modal-content {
    margin: 20% auto;
    padding: 25px;
    width: 95%;
  }

  .modal-content h3 {
    font-size: 1.3rem;
  }

  .close {
    font-size: 24px;
    top: 10px;
    right: 15px;
  }
}
