/* pages/sitemap.css — 網站地圖 (2026-10 改版) */
/* ===== 共用：頁首 ===== */
:root {
  --brand: #0a5bb5;
  --brand-ink: #0b2545;
  --accent: #f08a24;
  --green: #4f8f1f;
  --line: #e2e8f0;
  --text: #334155;
  --muted: #64748b;
}

.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: 280px;
  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);
}

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

.sitemap-container {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  align-items: start;
  gap: 1.5rem;
  max-width: 1200px;
  box-sizing: border-box;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

/* 產品服務在左，其餘三區在右 */
.sitemap-section:first-child {
  grid-row: span 3;
}

.sitemap-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem 1.8rem;
  margin: 0;
  box-shadow: 0 4px 18px rgba(15, 40, 80, 0.06);
}

.sitemap-section h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--brand-ink);
  font-size: 1.25rem;
  margin: 0 0 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.sitemap-section h2 a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
}

.sitemap-section h2 a:hover {
  color: var(--brand);
}

.sitemap-section h2 i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 10px;
  font-size: 1.15rem;
  color: #fff;
  background: linear-gradient(135deg, #3fa2f5, var(--brand));
}

.sitemap-section:nth-child(2) h2 i { background: linear-gradient(135deg, #a4d65e, var(--green)); }
.sitemap-section:nth-child(3) h2 i { background: linear-gradient(135deg, #ffb062, var(--accent)); }
.sitemap-section:nth-child(4) h2 i { background: linear-gradient(135deg, #5fd6df, #1593a6); }

.sitemap-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap-section ul li {
  margin: 0;
  padding: 0.2rem 0;
  line-height: 1.6;
}

/* 第一層分類 (無連結文字) */
.sitemap-section > ul > li {
  font-weight: 600;
  color: var(--brand-ink);
}

.sitemap-section > ul > li + li {
  margin-top: 0.4rem;
}

.sitemap-section ul li a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.5rem;
  margin-left: -0.5rem;
  border-radius: 6px;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.sitemap-section ul li a:hover {
  color: var(--brand);
  background: #eef5fd;
}

.sitemap-section ul li i {
  color: #94a3b8;
  font-size: 0.8rem;
}

.submenu-list {
  margin: 0.3rem 0 0.4rem 0.4rem !important;
  padding: 0 0 0 1rem !important;
  border-left: 2px solid #e2ebf5;
}

.submenu-list li {
  font-weight: 500;
  color: var(--brand-ink);
}

.submenu-list.secondary {
  margin: 0.2rem 0 0.5rem 0.3rem !important;
  border-left-color: #edf2f8;
}

.submenu-list.secondary a {
  font-size: 0.93em;
  color: var(--muted);
}

.submenu-list.secondary i {
  font-size: 0.75em;
}

@media (max-width: 1200px) {
  .sitemap-container {
    grid-template-columns: 1fr;
  }

  .sitemap-section:first-child {
    grid-row: auto;
  }

  .sitemap-container {
    grid-template-rows: none;
  }
}

@media (max-width: 768px) {
  .breadcrumb {
    padding: 0.7rem 1rem;
  }

  .banner-container {
    height: 210px;
  }

  .sitemap-container {
    margin: 2rem auto;
    padding: 0 0.8rem;
  }

  .sitemap-section {
    padding: 1.3rem 1.2rem;
  }
}

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