/* ========================================
   è”ç³»æˆ‘ä»¬é¡µé¢æ ·å¼
======================================== */

/* HeroåŒºåŸŸ */
.zs-contact-hero {
  position: relative;
  height: 36rem;
  overflow: hidden;
}

.zs-contact-hero-bg {
  position: absolute;
  inset: 0;
}

.zs-contact-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.zs-contact-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zs-contact-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 36rem;
  display: flex;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  color: var(--zs-white);
}

.zs-contact-hero-text h1 {
  font-size: 3rem;
  color: var(--zs-white);
  margin-bottom: 0.7rem;
}

.zs-contact-hero-text p {
  margin: 0;
  font-size: 1.2rem;
  max-width: 600px;
  opacity: 0.95;
}

/* è”ç³»ä¿¡æ¯åŒºåŸŸ */
.zs-contact-section {
  position: relative;
  overflow: hidden;
  padding: 5rem 2rem;
  background: #fff;
  z-index: 2;
}

.zs-contact-section::before {
  content: "";
  position: absolute;
  left: -16rem;
  top: -16rem;
  width: 35rem;
  height: 35rem;
  border-radius: 50%;
  background: #edf4f6;
}

.zs-contact-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 10rem;
  background: #f5f6f7;
  clip-path: polygon(0 56%, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
}

.zs-contact-container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 3rem;
  max-width: 1180px;
  margin: 0 auto;
  align-items: flex-start;
}

/* å·¦ä¾§è”ç³»ä¿¡æ¯ */
.zs-contact-info {
  flex: 0 0 390px;
}

.zs-contact-info-inner {
  padding: 1rem 0 0;
}

.zs-contact-info h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

.zs-contact-office {
  margin-bottom: 2rem;
}

.zs-contact-office h3 {
  font-size: 1.65rem;
  margin-bottom: 1.15rem;
  color: var(--zs-primary);
}

.zs-contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.zs-contact-item img {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.3rem;
  opacity: 1;
}

.zs-contact-item p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--zs-primary);
}

.zs-contact-qr {
  margin-top: 1.5rem;
  max-width: 220px;
}

.zs-contact-qr__title {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--zs-primary);
}

.zs-contact-qr img {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* å³ä¾§è¡¨å• */
.zs-contact-form-wrapper {
  flex: 0 1 620px;
}

.zs-contact-form {
  background: #173e75;
  border-radius: 16px;
  padding: 2rem 1.8rem 2.2rem;
  box-shadow: 0 22px 40px -28px rgba(17, 51, 102, 0.4);
}

.zs-contact-form h2 {
  font-size: 2rem;
  margin-bottom: 1.6rem;
  color: var(--zs-white);
}

.zs-form-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.zs-form-group {
  flex: 1;
}

.zs-form-group label {
  display: block;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.5rem;
}

.zs-form-group input,
.zs-form-group select,
.zs-form-group textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: none;
  border-radius: 9px;
  font-size: 1rem;
  color: var(--zs-primary);
  background: var(--zs-white);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.zs-form-group input:focus,
.zs-form-group select:focus,
.zs-form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16);
  outline: none;
}

.zs-form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.zs-form-group input::placeholder,
.zs-form-group textarea::placeholder {
  color: var(--zs-gray);
  opacity: 0.6;
}

.zs-form-submit {
  margin-top: 1.2rem;
  display: flex;
  justify-content: flex-end;
}

.zs-form-submit button {
  width: auto;
  min-width: 8.5rem;
  background: #22afc4;
  border-color: #22afc4;
  color: var(--zs-white);
}

.zs-form-submit button:hover {
  background: #1b9aaa;
  border-color: #1b9aaa;
}

/* åˆ†é”€å•†ç‰ˆå— */
.zs-contact-distributors-section {
  position: relative;
  margin-top: -2.75rem;
  padding: 5.25rem 0 5rem;
  background: #f5f6f7;
  overflow: hidden;
}

.zs-contact-distributors-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #f5f6f7;
  clip-path: polygon(0 22%, 100% 0, 100% 100%, 0 100%);
}

.zs-contact-distributors-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 2.5rem 2rem 0;
  text-align: center;
  background: transparent;
}

.zs-contact-distributors-inner .zs-subtitle {
  margin-bottom: 0.6rem;
}

.zs-contact-distributors-inner h2 {
  margin-bottom: 2rem;
  font-size: 2.5rem;
  color: var(--zs-primary);
}

.zs-contact-distributors-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 9rem) / 7);
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.2rem 0 0.9rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.zs-contact-distributors-track::-webkit-scrollbar {
  display: none;
}

.zs-contact-distributors-track.is-pointer-down,
.zs-contact-distributors-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.zs-contact-distributor-card {
  height: 8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(17, 51, 102, 0.08);
  background: var(--zs-white);
  box-shadow: 0 12px 24px -24px rgba(17, 51, 102, 0.4);
  scroll-snap-align: start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.zs-contact-distributor-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 28px -22px rgba(17, 51, 102, 0.32);
}

.zs-contact-distributor-card img {
  width: 100%;
  max-width: 100%;
  max-height: 5rem;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}

.zs-contact-distributors-actions {
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.zs-contact-distributors-actions .zs-btn {
  min-width: 14rem;
}

/* è”ç³»é¡µ FAQ */
.zs-contact-faq-section {
  padding: 5rem 2rem 6rem;
  background: #fff;
}

.zs-contact-faq-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.zs-contact-faq-inner .zs-subtitle {
  text-align: center;
  margin-bottom: 0.75rem;
}

.zs-contact-faq-inner h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 3rem;
  color: var(--zs-primary);
}

.zs-contact-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.zs-contact-faq-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.7rem;
}

.zs-contact-faq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9rem;
  min-height: 3rem;
  padding: 0.95rem 2rem;
  border: 1px solid rgba(17, 51, 102, 0.4);
  border-radius: 999px;
  background: var(--zs-white);
  color: var(--zs-primary);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 8px 18px -18px rgba(17, 51, 102, 0.25);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.zs-contact-faq-btn:hover {
  background: var(--zs-primary);
  color: var(--zs-white);
  border-color: var(--zs-primary);
}

.zs-contact-faq-item {
  background: var(--zs-white);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(17, 51, 102, 0.06);
  box-shadow: 0 8px 24px -22px rgba(17, 51, 102, 0.24);
}

.zs-contact-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 2rem 2rem 1.9rem;
  cursor: pointer;
}

.zs-contact-faq-question h3 {
  margin: 0;
  flex: 1;
  padding-right: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--zs-primary);
}

.zs-contact-faq-item.active .zs-contact-faq-question h3 {
  color: #22afc4;
}

.zs-contact-faq-question .zs-arrow {
  width: 1rem;
  height: 1rem;
  opacity: 0.8;
  transition: transform 0.3s ease;
}

.zs-contact-faq-item.active .zs-contact-faq-question .zs-arrow {
  transform: rotate(90deg);
}

.zs-contact-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.zs-contact-faq-item.active .zs-contact-faq-answer {
  max-height: 18rem;
}

.zs-contact-faq-answer-inner {
  padding: 0 2rem 2rem;
}

.zs-contact-faq-answer-inner p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--zs-primary);
}

/* Detail CTA */
.zs-detail-cta-section {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 2rem 2.5rem;
  background: #f5f6f7;
}

.zs-detail-cta-section::before {
  content: "";
  position: absolute;
  left: -15rem;
  bottom: -15rem;
  width: 35rem;
  height: 35rem;
  border-radius: 50%;
  background: #eaf2f4;
}

.zs-detail-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
  background: transparent;
  text-align: center;
}

.zs-detail-cta-inner h2 {
  margin-bottom: 1.15rem;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.12;
  color: #22afc4;
}

.zs-detail-cta-inner p {
  max-width: 40rem;
  margin: 0 auto 1.7rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #627089;
}

.zs-detail-cta-inner .zs-btn {
  min-width: 9rem;
}

/* é”™è¯¯æç¤º */
.zs-form-error {
  color: var(--zs-error);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

/* æˆåŠŸæç¤º */
.zs-form-success {
  background: rgba(26, 147, 111, 0.1);
  color: var(--zs-success);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* å“åº”å¼ */
@media (max-width: 1024px) {
  .zs-contact-container {
    flex-direction: column;
    align-items: stretch;
  }

  .zs-contact-info {
    flex: none;
    width: 100%;
  }

  .zs-contact-form-wrapper {
    flex: none;
    width: 100%;
  }

  .zs-contact-form {
    width: 100%;
  }

  .zs-contact-distributors-inner {
    padding: 2rem 1.5rem 0;
  }

  .zs-contact-faq-inner h2 {
    font-size: 2.4rem;
  }

  .zs-detail-cta-inner h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .zs-contact-section::after {
    height: 5rem;
    clip-path: polygon(0 62%, 100% 0, 100% 100%, 0 100%);
  }

  .zs-contact-hero {
    height: auto;
    min-height: 480px;
  }

  .zs-contact-hero-content {
    min-height: 480px;
  }

  .zs-contact-hero-text h1 {
    font-size: 2.2rem;
  }

  .zs-form-row {
    flex-direction: column;
    gap: 1rem;
  }

  .zs-contact-form {
    padding: 1.5rem;
  }

  .zs-contact-info-inner {
    padding-top: 0;
  }

  .zs-contact-info h2 {
    font-size: 1.9rem;
  }

  .zs-contact-office h3 {
    font-size: 1.4rem;
  }

  .zs-form-submit {
    justify-content: stretch;
  }

  .zs-form-submit button {
    width: 100%;
  }

  .zs-contact-distributors-section {
    margin-top: -1.5rem;
    padding: 3.8rem 0 4rem;
  }

  .zs-contact-distributors-inner {
    padding: 1.8rem 1rem 0;
  }

  .zs-contact-distributors-inner h2 {
    font-size: 2rem;
  }

  .zs-contact-distributors-track {
    grid-auto-columns: calc((100% - 3rem) / 3);
  }

  .zs-contact-faq-section {
    padding: 4rem 1rem 5rem;
  }

  .zs-contact-faq-inner h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .zs-contact-faq-question {
    padding: 1.5rem 1.2rem;
  }

  .zs-contact-faq-answer-inner {
    padding: 0 1.2rem 1.5rem;
  }

  .zs-contact-faq-actions {
    margin-top: 1.4rem;
  }

  .zs-detail-cta-section {
    padding: 1.5rem 1.5rem 4.5rem;
  }

  .zs-detail-cta-inner {
    padding: 3rem 1.5rem;
  }

  .zs-detail-cta-inner h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .zs-contact-section {
    padding: 3.5rem 1rem;
  }

  .zs-contact-section::after {
    height: 3.8rem;
    clip-path: polygon(0 68%, 100% 0, 100% 100%, 0 100%);
  }

  .zs-contact-container {
    gap: 2rem;
  }

  .zs-contact-form-wrapper {
    width: 100%;
  }

  .zs-contact-form {
    width: 100%;
    padding: 1.5rem 1.35rem 1.7rem;
  }

  .zs-contact-distributors-track {
    grid-auto-columns: calc((100% - 1rem) / 2);
    gap: 1rem;
  }

  .zs-contact-distributors-actions .zs-btn {
    width: 100%;
    min-width: 0;
  }

  .zs-contact-faq-question {
    align-items: flex-start;
    gap: 0.9rem;
  }

  .zs-contact-faq-btn {
    min-width: 8.5rem;
    min-height: 2.8rem;
    padding: 0.8rem 1.6rem;
    font-size: 0.95rem;
  }

  .zs-detail-cta-section {
    padding: 1rem 1rem 4rem;
  }

  .zs-detail-cta-section::before {
    left: -6rem;
    bottom: -6rem;
    width: 13rem;
    height: 13rem;
  }

  .zs-detail-cta-inner {
    padding: 2.4rem 1rem;
  }

  .zs-detail-cta-inner h2 {
    font-size: 1.7rem;
  }

  .zs-detail-cta-inner p {
    font-size: 0.95rem;
  }

  .zs-detail-cta-inner .zs-btn {
    width: 100%;
  }
}
