/* 联系我们页面样式 */

/* 联系我们区域 */
.contact-hero {
  background: transparent;
  padding: 100px 0 60px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 80% 20%, var(--accent-cyan-glow) 0%, transparent 50%);
  opacity: 0.8;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-title {
  font-size: 3rem;
  color: rgb(34, 152, 227);
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: var(--text-shadow);
  line-height: 1.2;
  font-family: 'Orbitron', 'Rajdhani', monospace;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgb(34, 152, 227);
  margin-bottom: 40px;
  font-weight: 400;
  text-shadow: var(--text-shadow);
}

/* 修改css/connect.css文件 */

/* 联系方式卡片容器 */
.contact-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 60px 0;
  position: relative;
  z-index: 10;
  align-items: stretch; /* 确保卡片高度一致 */
}

/* 联系方式卡片 */
.contact-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  width: calc(50% - 20px); /* 改为两列布局，使卡片更宽 */
  max-width: 600px; /* 增加最大宽度限制，防止在超宽屏幕上太宽 */
  text-align: left;
  display: flex;
  flex-direction: column; /* 内部垂直布局 */
}

/* 调整响应式设计 */
@media (max-width: 1024px) {
  .contact-cards {
    gap: 25px;
  }

  .contact-card {
    width: calc(100% - 40px); /* 中等屏幕下改为单列布局 */
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .contact-cards {
    flex-direction: column; /* 小屏幕下垂直排列 */
    align-items: center;
    gap: 20px;
    margin: 40px 0;
  }

  .contact-card {
    width: 100%; /* 小屏幕下占满宽度 */
    max-width: 100%;
    padding: 25px 20px;
  }
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgb(255, 255, 255, 0.1), transparent);
  transition: left 0.8s ease;
}

.contact-card:hover::before {
  left: 100%;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 48px rgba(0, 184, 217, 0.2);
  border-color: var(--primary-blue);
}

.card-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: white;
  box-shadow: 0 0 30px rgba(0, 184, 217, 0.5);
}

.card-title {
  font-size: 1.5rem;
  color: var(--primary-cyan);
  margin-bottom: 20px;
  font-weight: 600;
  text-shadow: var(--text-shadow);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.detail-icon {
  color: var(--primary-blue);
  font-size: 1.2rem;
  min-width: 24px;
  margin-top: 3px;
  text-shadow: var(--text-shadow);
}

.detail-content {
  flex: 1;
}

.detail-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 3px;
  text-shadow: var(--text-shadow);
}

.detail-value {
  color: white;
  font-weight: 500;
  word-break: break-all;
  text-shadow: var(--text-shadow);
}

/* 改进的联系方式分组 */
.contact-group {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 184, 217, 0.1);
}

.contact-group-title {
  font-size: 1rem;
  color: var(--primary-cyan);
  margin-bottom: 10px;
  font-weight: 600;
  text-shadow: var(--text-shadow);
}

.contact-group-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-group-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-group-item .detail-icon {
  min-width: 20px;
  font-size: 1rem;
  margin-top: 0;
}

.contact-group-item .detail-value {
  font-size: 0.95rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: var(--text-shadow);
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Orbitron', 'Rajdhani', monospace;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  text-shadow: var(--text-shadow);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .contact-cards {
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 80px 0 40px 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .contact-cards {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
  }

  .contact-card {
    max-width: 100%;
    padding: 25px 20px;
  }

  .card-icon {
    width: 65px;
    height: 65px;
    font-size: 1.6rem;
  }

  .card-title {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    margin-bottom: 30px;
    font-size: 0.95rem;
  }

  .contact-card {
    padding: 20px 15px;
  }

  .card-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .card-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }

  .detail-item {
    gap: 10px;
  }

  .detail-icon {
    font-size: 1.1rem;
    min-width: 20px;
  }

  .detail-label {
    font-size: 0.85rem;
  }

  .detail-value {
    font-size: 0.9rem;
  }

  .contact-group-title {
    font-size: 0.95rem;
  }

  .contact-group-item .detail-value {
    font-size: 0.9rem;
  }
}
