/* === contact.css === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #f0f4ff, #e6e9ff);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-title {
  text-align: center;
  font-size: 2.8rem;
  color: #5d3fd3;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  position: relative;
  font-weight: 800;
  text-shadow: 0 3px 6px rgba(93, 63, 211, 0.2);
  background: linear-gradient(90deg, #6a5acd, #8a2be2, #9370db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-title::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, #8a2be2, #6a5acd, #9370db);
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(138, 43, 226, 0.4);
}

.page-subtitle {
  text-align: center;
  color: #6b5ca5;
  font-size: 1.2rem;
  margin-bottom: 2.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.breadcrumb {
  color: #8a7dcf;
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
}

.breadcrumb a {
  color: #8a2be2;
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

.breadcrumb a:hover {
  color: #6a5acd;
  text-decoration: underline;
  text-shadow: 0 0 6px rgba(138, 43, 226, 0.3);
}

.breadcrumb span {
  color: #a59bcf;
}

.flex-layout {
  display: flex;
  gap: 3.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.flex-layout > div {
  flex: 1;
  min-width: 320px;
}

.card {
  background: white;
  padding: 2.2rem;
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(106, 90, 205, 0.2);
  margin: 0 auto;
  max-width: 620px;
  transition: all 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(138, 43, 226, 0.1);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #8a2be2, #6a5acd, #9370db);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 20px 50px rgba(106, 90, 205, 0.35);
}

.card:hover::before {
  opacity: 1;
}

.info-item {
  margin-bottom: 2.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px dashed #e6e9ff;
  position: relative;
}

.info-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.info-item .icon {
  font-size: 1.4rem;
  color: #8a2be2;
  margin-right: 0.9rem;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.info-item:hover .icon {
  transform: rotate(10deg) scale(1.1);
}

.info-item .title {
  font-size: 1.25rem;
  color: #5d3fd3;
  font-weight: 700;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
}

.info-item .content {
  color: #555;
  font-size: 1.02rem;
  line-height: 1.7;
}

.chat-btn {
  background: linear-gradient(135deg, #8a2be2, #6a5acd);
  color: white;
  border: none;
  padding: 0.7rem 1.6rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.35s ease;
  box-shadow: 0 5px 12px rgba(138, 43, 226, 0.35);
  font-weight: 600;
}

.chat-btn:hover {
  background: linear-gradient(135deg, #7a1ad2, #5a4ac0);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 18px rgba(138, 43, 226, 0.5);
}

.form-group {
  margin-bottom: 1.8rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.7rem;
  font-weight: 700;
  color: #5d3fd3;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 1.05rem;
  transition: all 0.35s;
  background-color: #fafbff;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #8a2be2;
  box-shadow: 0 0 0 4px rgba(138, 43, 226, 0.25);
  background-color: #ffffff;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.captcha-wrapper {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.captcha-img {
  width: 120px;
  height: 48px;
  border: 1px solid #e0e0ff;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}

.captcha-img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(106, 90, 205, 0.2);
}

.submit-btn {
  background: linear-gradient(135deg, #8a2be2, #6a5acd);
  color: white;
  border: none;
  padding: 1rem 2.4rem;
  border-radius: 12px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.35s ease;
  font-weight: 700;
  letter-spacing: 0.8px;
  box-shadow: 0 6px 18px rgba(138, 43, 226, 0.35);
}

.submit-btn:hover {
  background: linear-gradient(135deg, #7a1ad2, #5a4ac0);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 25px rgba(138, 43, 226, 0.5);
}

.map-container {
  background: white;
  padding: 1.8rem;
  border-radius: 20px;
  box-shadow: 0 12px 36px rgba(106, 90, 205, 0.2);
  margin: 0 auto;
  max-width: 820px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(138, 43, 226, 0.1);
}

.map-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #9370db, #6a5acd, #8a2be2);
  opacity: 0.8;
}

.map-container iframe {
  width: 100%;
  height: 480px;
  border: none;
  border-radius: 14px;
  transition: transform 0.3s ease;
}

.map-container iframe:hover {
  transform: scale(1.005);
}

.map-note {
  text-align: center;
  margin-top: 1.2rem;
  color: #7a6bbf;
  font-size: 1rem;
  font-weight: 500;
}

.qr-code {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1.8rem;
}

.qr-code img {
  width: 140px;
  height: 140px;
  border: 2px solid #e6e9ff;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(106, 90, 205, 0.25);
  transition: transform 0.35s, box-shadow 0.35s;
}

.qr-code img:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(106, 90, 205, 0.4);
}

.qr-code p {
  margin-top: 1rem;
  font-size: 1rem;
  color: #5d3fd3;
  font-weight: 600;
}

.back-to-top {
  position: fixed;
  bottom: 35px;
  right: 35px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #8a2be2, #6a5acd);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.45s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 99;
  box-shadow: 0 6px 16px rgba(138, 43, 226, 0.5);
}

.back-to-top.show {
  opacity: 1;
  transform: scale(1);
}

.back-to-top:hover {
  background: linear-gradient(135deg, #7a1ad2, #5a4ac0);
  transform: scale(1.15) translateY(-4px);
}

.footer {
  background: linear-gradient(135deg, #2c1e5f, #3a2d7a);
  color: #e0e0ff;
  text-align: center;
  padding: 2rem;
  margin-top: 5rem;
  font-size: 1rem;
  border-top: 2px solid rgba(138, 43, 226, 0.3);
}

/* ==================== 移动端响应式适配 ==================== */
@media (max-width: 768px) {
  .flex-layout {
    gap: 2rem;
  }
  .card {
    padding: 1.5rem;
  }
  .page-title {
    font-size: 2.2rem;
  }
  .page-subtitle {
    font-size: 1.05rem;
  }
  .map-container iframe {
    height: 350px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  .page-title {
    font-size: 1.8rem;
  }
  .info-item .title {
    font-size: 1.15rem;
  }
  .info-item .content {
    font-size: 0.95rem;
  }
  .captcha-wrapper {
    flex-direction: column;
    gap: 0.8rem;
  }
  .captcha-img {
    width: 100%;
    height: auto;
  }
}