/* ========== 联系页面样式 ========== */

/* Banner */
.page-banner {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  padding: 80px 20px 60px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.banner-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.page-banner h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-banner h1 i {
  margin-right: 12px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.page-banner p {
  font-size: 1.2rem;
  margin-bottom: 24px;
  opacity: 0.95;
}

.banner-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  opacity: 0.9;
}

.banner-breadcrumb a {
  color: white;
  text-decoration: none;
  transition: all 0.3s;
}

.banner-breadcrumb a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* 主内容区 */
main {
  flex: 1;
  padding-top: 60px;
  padding-bottom: 80px;
}

section {
  margin-bottom: 80px;
}

/* ========== 页面标题 ========== */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--ai-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.section-header h2 i {
  font-size: 1.8rem;
}

.section-header p {
  color: var(--text-gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ========== 联系卡片 ========== */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--ai-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(37, 99, 235, 0.15);
  border-color: var(--ai-blue);
}

.card-icon {
  width: 70px;
  height: 70px;
  background: var(--ai-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.card p {
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.card a {
  color: var(--ai-blue);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.card a:hover {
  color: var(--ai-purple);
  text-decoration: underline;
}

.card-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  font-size: 0.9rem;
  color: var(--text-gray);
  font-style: italic;
}

/* ========== 合作类型 ========== */
.cooperation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.cooperation-item {
  background: white;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  text-align: center;
}

.cooperation-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.12);
}

.coop-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--ai-blue);
  font-size: 1.6rem;
}

.cooperation-item h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.cooperation-item p {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========== 在线留言 ========== */
.message-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.message-form .form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.message-form .form-control,
.message-form .form-select {
  border: 2px solid var(--border);
  padding: 12px 16px;
  font-size: 1rem;
  border-radius: 10px;
  transition: all 0.3s;
}

.message-form .form-control:focus,
.message-form .form-select:focus {
  border-color: var(--ai-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
  outline: none;
}

.message-form textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.message-form .btn-primary {
  background: var(--ai-gradient);
  border: none;
  padding: 14px 40px;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  transition: all 0.3s;
}

.message-form .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* ========== FAQ ========== */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-left: 4px solid var(--ai-blue);
  transition: all 0.3s;
}

.faq-item:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.12);
}

.faq-item h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-item h5 i {
  color: var(--ai-blue);
  font-size: 0.9rem;
}

.faq-item p {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
  .contact-cards {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  
  .cooperation {
    padding: 30px 20px;
  }
}
