/* pages/contact.css — 聯絡我們 (2026-10 改版) */
:root {
  --brand: #0a5bb5;
  --brand-ink: #0b2545;
  --accent: #f08a24;
  --line: #e2e8f0;
  --text: #334155;
  --muted: #64748b;
}

.contact-body {
  background: #f4f8fc;
  color: var(--text);
  padding-bottom: 1px;
}

/* 麵包屑 */
.contact-body .breadcrumb {
  max-width: 1200px;
  margin: 87px auto 0;
  box-sizing: border-box;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  padding: 0.8rem 1.5rem;
}

/* ===== 橫幅 ===== */
.banner-container {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: #062a55 url("../../images/hero/hero-network.svg") center / cover no-repeat;
}

.banner-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(4, 29, 61, 0.55) 0%, rgba(4, 29, 61, 0.88) 75%);
}

.banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  z-index: 1;
}

.banner-title {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.25em;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0, 20, 50, 0.5);
}

.banner-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 1rem auto 0;
  border-radius: 2px;
  background: var(--accent);
}

/* ===== 據點區塊 ===== */
.contact-section {
  max-width: 1200px;
  box-sizing: border-box;
  margin: 3rem auto;
  padding: 2.2rem 2.4rem 2.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(15, 40, 80, 0.07);
}

.contact-section + .contact-section {
  margin-top: -1rem;
}

.heading-wrapper {
  margin-bottom: 1.6rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.heading-wrapper h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-ink);
}

.heading-wrapper h2::before {
  content: "";
  width: 6px;
  height: 1.4em;
  border-radius: 3px;
  background: linear-gradient(180deg, #3fa2f5, var(--brand));
}

.contact-section:nth-of-type(odd) .heading-wrapper h2::before {
  background: linear-gradient(180deg, #a4d65e, #4f8f1f);
}

/* ===== 聯絡卡片 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
  margin: 0;
  max-width: none;
}

.contact-box {
  position: relative;
  background: #f8fbfe;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem 1.4rem 1.6rem;
  text-align: center;
  min-height: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.contact-box:hover {
  transform: translateY(-4px);
  background: #fff;
  border-color: #bcd6f2;
  box-shadow: 0 12px 28px rgba(15, 40, 80, 0.12);
}

.contact-box i {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  font-size: 1.6rem;
  color: #fff;
  background: linear-gradient(135deg, #3fa2f5, var(--brand));
  box-shadow: 0 8px 18px rgba(10, 91, 181, 0.3);
}

.contact-box i.bi-telephone-fill {
  background: linear-gradient(135deg, #ffb062, var(--accent));
  box-shadow: 0 8px 18px rgba(240, 138, 36, 0.3);
}

.contact-box i.bi-envelope-fill {
  background: linear-gradient(135deg, #5fd6df, #1593a6);
  box-shadow: 0 8px 18px rgba(21, 147, 166, 0.3);
}

.contact-box i.bi-printer-fill {
  background: linear-gradient(135deg, #a7b4c6, #6b7c93);
  box-shadow: 0 8px 18px rgba(107, 124, 147, 0.3);
}

.contact-box h4 {
  margin: 0 0 0.7rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-ink);
}

.contact-box p {
  margin: 0.2rem 0;
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: center;
  color: var(--text);
  word-break: break-word;
}

/* 郵遞區號 */
.contact-box h4 + p:not(:last-child) {
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ===== 響應式 ===== */
@media (max-width: 768px) {
  .contact-body .breadcrumb {
    padding: 0.7rem 1rem;
  }

  .banner-container {
    height: 220px;
  }

  .contact-section {
    margin: 1.5rem 0.8rem;
    padding: 1.5rem 1.1rem 1.6rem;
  }

  .contact-section + .contact-section {
    margin-top: 0;
  }

  .heading-wrapper h2 {
    font-size: 1.35rem;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }

  .contact-box {
    padding: 1.4rem 0.8rem 1.2rem;
  }

  .contact-box i {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .contact-box p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .contact-body .breadcrumb {
    margin-top: 70px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}
