:root {
  --bg: #f0f3f6;
  --bg-alt: #e8edf2;
  --card: #ffffff;
  --ink: #0f1722;
  --muted: #4a5a66;
  --navy: #0d2137;
  --navy-soft: #152a45;
  --accent: #0d8f6a;
  --accent-hover: #0a7556;
  --gold: #b8972e;
  --gold-soft: rgba(184, 151, 46, 0.22);
  --line: rgba(13, 33, 55, 0.12);
  --shadow: 0 12px 40px rgba(13, 33, 55, 0.08);
  --shadow-hover: 0 18px 48px rgba(13, 33, 55, 0.12);
  --radius: 14px;
  --font-max: 1.5rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft JhengHei", "PingFang TC", "Heiti TC", "Noto Sans TC",
    "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* Top bar — navy + gold accent (HK corporate style) */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid var(--accent);
  box-shadow: 0 6px 20px rgba(13, 33, 55, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
}

.brand img {
  width: min(360px, 62vw);
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: flex-end;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
  border-radius: 999px;
}

.nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 1.08rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav a:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--gold);
}

.nav a.is-active,
.nav a[aria-current="page"] {
  color: var(--accent-hover);
  border-bottom-color: var(--accent);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown__trigger::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-top: 2px;
}

.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 148px;
  padding: 10px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 40;
}

.nav-dropdown__menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.nav-dropdown__menu a {
  display: block;
  padding: 8px 12px;
  border-bottom: 0;
  border-radius: 8px;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-dropdown__menu a:hover,
.nav-dropdown__menu a:focus-visible {
  background: rgba(13, 143, 106, 0.1);
  color: var(--accent-hover);
  border-bottom-color: transparent;
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu,
.nav-dropdown.is-open .nav-dropdown__menu {
  display: flex;
}

/* Banner — ./banner.jpg + text overlay in HTML */
.site-banner {
  position: relative;
  min-height: clamp(220px, 30vw, 380px);
  display: block;
  background: #fff;
  margin: 10px 0;
}

.site-banner__bg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(1140px, 92%);
  transform: translateX(-50%);
  background-color: transparent;
  background-image: url("../images/banner.jpg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: var(--radius);
}

.site-banner__shade {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(1140px, 92%);
  transform: translateX(-50%);
  background: transparent;
  pointer-events: none;
  border-radius: var(--radius);
}

.site-banner__inner {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 0;
  bottom: 0;
  width: min(1140px, 92%);
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  box-sizing: border-box;
  padding: 0 0 clamp(28px, 4vw, 48px) clamp(12px, 1.8vw, 22px);
}

.site-banner__panel {
  width: max-content;
  max-width: 95%;
  margin: 0;
  padding: 0;
}

.site-banner__line1,
.site-banner__line2 {
  margin: 0;
  font-weight: 600;
  color: #ffffff;
  font-size: clamp(0.78rem, 0.55vw + 0.62rem, 0.98rem);
  line-height: 1.45;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.55);
}

.site-banner__line2 {
  margin-top: 3px;
  font-weight: 600;
}

@media (min-width: 901px) {
  .site-banner__line1,
  .site-banner__line2 {
    white-space: nowrap;
  }
}

.hero {
  padding: 10px 0;
  background: transparent;
  border-bottom: 0;
}

.hero .container {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 28px;
  align-items: center;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  line-height: 1.35;
  color: var(--navy);
}

h1 {
  font-size: var(--font-max);
  letter-spacing: 0.03em;
}

.hero h1 {
  white-space: nowrap;
  font-size: var(--font-max);
}

.hero-service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.hero-service-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.hero-service-link:hover,
.hero-service-link:focus-visible {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}

h2 {
  font-size: clamp(1.2rem, 2vw, var(--font-max));
}

.hero p,
.section-desc {
  color: var(--muted);
}

.hero-side {
  text-align: center;
  padding: 8px 8px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  max-width: 160px;
  margin-left: auto;
  margin-right: clamp(28px, 6vw, 80px);
}

.hero-side img {
  width: 118px;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.hero-side p {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-side {
  position: relative;
  overflow: hidden;
}

.hero-side::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(13, 143, 106, 0.95), transparent);
  box-shadow: 0 0 10px rgba(13, 143, 106, 0.7);
  animation: scan-line 2.2s linear infinite;
  pointer-events: none;
}

@keyframes scan-line {
  0% { top: 16px; }
  100% { top: calc(100% - 18px); }
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  border: 1px solid var(--accent);
  color: var(--accent-hover);
  background: #fff;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.btn.primary,
button.btn.primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.btn.primary:hover,
button.btn.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* Section titles */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}

.section-head--left {
  text-align: left;
  margin-left: 0;
  margin-bottom: 16px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 8px;
}

.section-head h2 {
  margin-bottom: 8px;
}

.section-head .section-desc {
  margin: 0;
  font-size: 0.98rem;
}

.section {
  padding: 40px 0;
  background: #fff;
}

.hero + .section {
  padding-top: 10px;
}

.page-about .section.alt {
  padding-bottom: 12px;
}

.page-about .section.alt + .section {
  padding-top: 12px;
}

.section.alt {
  background: #fff;
}

/* 退港貨物處理服務 */
.retreat-service {
  background: rgba(255, 255, 255, 0.86);
  padding-top: 20px;
}

.retreat-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.retreat-image-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.retreat-copy {
  margin-top: 0;
}

.retreat-side-image {
  margin: 0;
  position: relative;
  min-height: 0;
  align-self: stretch;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.retreat-side-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: block;
}

@media (max-width: 900px) {
  .retreat-side-image {
    aspect-ratio: 16 / 10;
    width: 100%;
  }
}

.retreat-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 14px;
}

.retreat-list li {
  position: relative;
  padding-left: 36px;
  color: #2d3d49;
}

.retreat-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #17c172;
  font-weight: 700;
  font-size: 0.86rem;
}

.retreat-image-wrap img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.retreat-destruction {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.section-head--tight {
  margin-bottom: 14px;
}

.section-head--tight .retreat-destruction__heading {
  margin: 0 0 6px;
  font-size: clamp(1.2rem, 2vw, var(--font-max));
  color: var(--navy);
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.gallery-tabs__btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.gallery-tabs__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.gallery-tabs__btn.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}

.gallery-tabs__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.gallery-tab-panel[hidden] {
  display: none;
}

.gallery-tab-empty {
  margin: 18px 0 8px;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

.destruction-carousel:has(.destruction-carousel__track:empty) .gallery-tab-empty,
.destruction-carousel:not(:has(.destruction-carousel__slide)) .gallery-tab-empty {
  display: block;
}

.destruction-carousel {
  position: relative;
  display: block;
  overflow: hidden;
}

.destruction-carousel__viewport {
  overflow: hidden;
  width: 100%;
}

.destruction-carousel__track {
  display: flex;
  gap: 0;
  width: max-content;
  padding: 4px 0 8px;
  animation: destruction-marquee 25s linear infinite;
  will-change: transform;
}

#destroyTrack {
  animation-duration: 100s;
}

.destruction-carousel:hover .destruction-carousel__track {
  animation-play-state: paused;
}

@keyframes destruction-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .destruction-carousel__track {
    animation: none;
  }
}

.destruction-carousel__slide {
  flex: 0 0 168px;
  min-width: 0;
  margin: 0 16px 0 0 !important;
  box-sizing: border-box;
}

.destruction-carousel__slide img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid var(--line);
  transition: transform 0.2s;
  display: block;
}

.destruction-carousel__slide img:hover {
  transform: scale(1.02);
}

@media (max-width: 900px) {
  .destruction-carousel__slide {
    flex-basis: 140px;
  }

  .destruction-carousel__track {
    animation-duration: 22s;
  }

  #destroyTrack {
    animation-duration: 85s;
  }
}

@media (max-width: 520px) {
  .destruction-carousel__slide {
    flex-basis: 120px;
  }

  .destruction-carousel__track {
    animation-duration: 20s;
  }

  #destroyTrack {
    animation-duration: 75s;
  }
}

/* Service cards — code + SVG icons */
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.service-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-cards--showcase .service-card-link {
  height: 100%;
}

.service-cards--showcase .service-card {
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  padding: 30px 24px 28px;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-cards--showcase .service-card::before {
  display: none;
}

.service-cards--showcase .service-card:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--accent);
}

.service-cards--showcase .service-card__icon,
.service-cards--showcase .service-card__icon--alt {
  margin: 0 auto 14px;
  width: auto;
  height: auto;
  background: transparent;
  color: #10a77c;
  border-radius: 0;
  display: block;
}

.service-cards--showcase .service-card__title {
  margin-bottom: 6px;
  font-weight: 500;
}

.service-cards--showcase .service-card__lead {
  margin: 0 0 8px;
  font-size: 1.12rem;
  color: var(--navy);
  font-weight: 500;
}

.service-cards--showcase .service-card__text {
  font-size: 1rem;
  line-height: 1.5;
}

@media (min-width: 901px) {
  .service-cards--showcase {
    align-items: stretch;
  }
}

.service-cards--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.25s;
}

.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), var(--accent));
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--navy);
  margin-bottom: 14px;
}

.service-card__icon--alt {
  background: rgba(13, 143, 106, 0.15);
  color: var(--accent-hover);
}

.service-card__title {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.service-card__lead {
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.98rem;
}

.service-card__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.recycle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.recycle-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 4px 16px rgba(13, 33, 55, 0.05);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.recycle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(13, 33, 55, 0.12);
  border-color: rgba(13, 143, 106, 0.35);
}

.recycle-card h3 {
  margin: 0;
  font-size: 1.02rem;
  color: var(--navy);
}

.recycle-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.58;
}

.recycle-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

@keyframes recycle-icon-loop {
  0%,
  100% {
    transform: scale(1) translateY(0);
    box-shadow: 0 0 0 0 rgba(23, 142, 95, 0);
  }
  50% {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 5px 14px rgba(23, 142, 95, 0.22);
  }
}

.recycle-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #e8f6ee;
  color: #178e5f;
  font-size: 1rem;
  flex: 0 0 30px;
  transition: background 0.25s ease, color 0.25s ease;
  animation: recycle-icon-loop 2.2s ease-in-out infinite;
  will-change: transform;
}

.recycle-grid .recycle-card:nth-child(1) .recycle-icon {
  animation-delay: 0s;
}

.recycle-grid .recycle-card:nth-child(2) .recycle-icon {
  animation-delay: 0.15s;
}

.recycle-grid .recycle-card:nth-child(3) .recycle-icon {
  animation-delay: 0.3s;
}

.recycle-grid .recycle-card:nth-child(4) .recycle-icon {
  animation-delay: 0.45s;
}

.recycle-grid .recycle-card:nth-child(5) .recycle-icon {
  animation-delay: 0.6s;
}

.recycle-grid .recycle-card:nth-child(6) .recycle-icon {
  animation-delay: 0.75s;
}

.recycle-grid .recycle-card:nth-child(7) .recycle-icon {
  animation-delay: 0.9s;
}

.recycle-grid .recycle-card:nth-child(8) .recycle-icon {
  animation-delay: 1.05s;
}

.recycle-card:hover .recycle-icon {
  background: #d7f2e4;
  color: #0f7d53;
}

@media (prefers-reduced-motion: reduce) {
  .recycle-icon {
    animation: none;
    transform: none;
    box-shadow: none;
  }
}

.cards {
  display: grid;
  gap: 16px;
}

.cards.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.qualifications-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 32px;
  align-items: start;
  width: 75%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 4px 20px rgba(13, 33, 55, 0.05);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(13, 143, 106, 0.35);
}

.card img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.qualifications-grid .card {
  text-align: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.qualifications-grid .card:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.qualifications-grid .card img {
  width: min(72px, 100%);
  height: 72px;
  object-fit: contain;
  margin: 0 auto 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  transition: none;
}

.qualifications-grid .card:hover img {
  transform: none;
}

.qualifications-grid .card h3 {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #2b3945;
  font-weight: 600;
}

.qual-title-nowrap {
  white-space: nowrap;
}

.qual-cert-no {
  margin: 4px 0 0;
  font-size: 0.65rem;
  line-height: 1.35;
  color: #8b98a3;
  letter-spacing: 0.01em;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
  align-items: center;
}

.split img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.org-image {
  margin-top: 28px;
  display: block;
}

.qualification-note {
  margin: 16px 4px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  background: #f7fafc;
  color: #30414f;
  border-radius: 8px;
  font-size: 0.96rem;
}

.org-text-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 40px;
  width: 100%;
  align-items: start;
}

.org-item {
  text-align: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transition: none;
}

.org-item:hover {
  transform: none;
  box-shadow: none;
  border-color: transparent;
}

.org-item h3 {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 700;
}

.org-item img {
  width: min(180px, 100%);
  height: auto;
  max-height: 140px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  transform: none;
  transform-origin: center;
  transition: none;
}

.org-item:hover img {
  transform: none;
}

.gallery-grid {
  margin-top: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid var(--line);
  transition: transform 0.2s;
}

.gallery-grid img:hover {
  transform: scale(1.02);
}

.gallery-item {
  margin: 0;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.gallery-item .gallery-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 8px 10px;
  color: #fff;
  font-size: 0.82rem;
  line-height: 1.35;
  background: linear-gradient(180deg, transparent 0%, rgba(13, 33, 55, 0.82) 65%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.gallery-item:hover .gallery-label {
  opacity: 1;
  transform: translateY(0);
}

.gallery-more-wrap {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 20px;
  align-items: stretch;
}

.contact-grid > * {
  min-width: 0;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-card--info p {
  margin: 0.35em 0;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-card--info p strong {
  font-weight: 800;
  color: var(--navy);
}

.contact-address {
  display: flex;
  align-items: flex-start;
}

.contact-address strong {
  flex-shrink: 0;
}

.contact-address__lines {
  display: inline-block;
  line-height: 1.55;
}

.contact-card--info a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-card__title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: var(--navy);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold-soft);
}

.contact-card__title--form {
  margin-top: 22px;
}

.contact-actions {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.contact-hotline {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  line-height: 1.25;
  text-align: center;
  padding: 10px 18px;
}

.contact-hotline__label {
  font-size: 0.8rem;
  font-weight: 700;
}

.contact-hotline__num {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.contact-map-btn {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 12px;
  line-height: 1.3;
}

.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  min-height: 260px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  margin-top: 2px;
  flex: 1;
  min-width: 0;
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-actions .btn {
  max-width: 100%;
  white-space: normal;
}

.message-form {
  display: grid;
  gap: 12px;
}

.message-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}

.message-form input,
.message-form textarea {
  width: 100%;
  border: 1px solid #c5d0d8;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  background: #fafbfc;
}

.message-form input:focus,
.message-form textarea:focus {
  outline: 2px solid rgba(13, 143, 106, 0.35);
  border-color: var(--accent);
  background: #fff;
}

.tip {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-top: 10px;
}

.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  border-top: 1px solid var(--accent);
  padding: 28px 0 36px;
  text-align: center;
  font-size: 0.88rem;
}

.footer p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-contact {
  overflow-x: hidden;
}

.page-contact .topbar,
.page-contact main,
.page-contact .footer {
  overflow-x: clip;
}

@media (min-width: 901px) {
  .page-narrow main .container {
    width: min(900px, 92%);
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(5, 12, 16, 0.88);
  padding: 52px 16px 28px;
  z-index: 100;
  gap: 10px;
}

.lightbox-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: min(1020px, 96vw);
}

.lightbox-frame {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  width: min(980px, 92vw);
  max-height: min(78vh, 820px);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  display: block;
}

.lightbox-caption {
  margin: 0;
  padding: 0 48px;
  color: rgba(255, 255, 255, 0.96);
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  max-width: 92vw;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(20, 40, 55, 0.55);
  color: #fff;
  font-size: var(--font-max);
  line-height: 1;
  padding: 0;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.55);
}

.lightbox-nav:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lightbox-nav--prev {
  left: 4px;
}

.lightbox-nav--next {
  right: 4px;
}

.lightbox-nav[hidden] {
  display: none;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: var(--font-max);
  background: none;
  border: 0;
  color: var(--accent-hover);
  cursor: pointer;
  z-index: 3;
  line-height: 1;
  padding: 4px 8px;
}

@media (max-width: 640px) {
  .lightbox-caption {
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.45rem;
  }

  .lightbox-nav--prev {
    left: 0;
  }

  .lightbox-nav--next {
    right: 0;
  }

  .lightbox-img {
    max-height: 68vh;
  }
}

.floating-support {
  position: fixed;
  right: 0;
  top: 62%;
  transform: translateY(-50%);
  z-index: 90;
  display: grid;
  gap: 0;
  border-radius: 10px 0 0 10px;
  overflow: visible;
}

.floating-item {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  position: relative;
}

.floating-item svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  overflow: visible;
}

.floating-item--phone { background: #f4b20a; }
.floating-item--wa { background: #20c965; }
.floating-item--wechat { background: #109a36; }

.floating-item--phone:hover { background: #dca109; }
.floating-item--wa:hover { background: #18ad56; }
.floating-item--wechat:hover { background: #0e882f; }

.wechat-pop {
  position: absolute;
  right: 62px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(13, 33, 55, 0.16);
  padding: 8px;
  width: 132px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.wechat-pop img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.wechat-pop p {
  margin: 6px 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}

.floating-item--wechat:hover .wechat-pop {
  opacity: 1;
  visibility: visible;
}

.hidden {
  display: none;
}

@media (max-width: 900px) {
  .hero-grid,
  .retreat-grid,
  .split,
  .contact-grid,
  .service-cards,
  .cards.four {
    grid-template-columns: 1fr;
  }

  .recycle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qualifications-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 20px;
  }

  /* 手機端隱藏第一張（公司 LOGO），避免 5 張造成不對齊 */
  .qualifications-grid .qual-card:first-child {
    display: none;
  }

  .org-text-row {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    position: relative;
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .nav {
    display: none;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(13, 33, 55, 0.08);
    flex-direction: column;
    gap: 8px;
  }

  .nav.nav-open {
    display: flex;
  }

  .nav a {
    display: block;
    padding: 8px 4px;
    border-bottom: 1px solid #eef2f5;
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown__trigger {
    width: 100%;
    justify-content: space-between;
    border-bottom: 1px solid #eef2f5;
    padding: 8px 4px;
  }

  .nav-dropdown__menu {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    min-width: 0;
    width: 100%;
    margin-top: 4px;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 12px;
    display: none;
    background: transparent;
  }

  .nav-dropdown.is-open .nav-dropdown__menu {
    display: flex;
  }

  .nav-dropdown__menu a {
    border-bottom: 1px solid #eef2f5;
    border-radius: 0;
    padding: 8px 4px;
  }

  .nav-dropdown__menu a:last-child {
    border-bottom: 0;
  }

  .site-banner__inner {
    padding: 0 0 24px 12px;
  }

  .site-banner__panel {
    width: min(100%, 90%);
  }

  .site-banner__line1,
  .site-banner__line2 {
    font-size: clamp(0.72rem, 2.2vw, 0.88rem);
  }

  .hero-side {
    margin: 0 auto;
  }

  .floating-support {
    display: none;
  }
}
