:root {
  --bg: #f7f3eb;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --ink: #26211d;
  --muted: #71665e;
  --line: rgba(38, 33, 29, 0.12);
  --brand: #136f63;
  --brand-strong: #0d574e;
  --accent: #d7a24f;
  --accent-soft: #f3e2c4;
  --danger: #b44a3d;
  --shadow: 0 24px 60px rgba(28, 20, 15, 0.12);
  --radius: 24px;
  --radius-sm: 16px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.75;
  overflow-x: hidden;
  background-color: #f7f3eb;
  background:
    radial-gradient(circle at top left, rgba(215, 162, 79, 0.2), transparent 30%),
    linear-gradient(180deg, #fffaf1 0%, #f7f3eb 55%, #f3efe7 100%);
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

img {
  display: block;
  max-width: 100%;
}

iframe {
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 250, 241, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(19, 111, 99, 0.08);
}

.header-inner,
.container {
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
  min-width: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 190px;
  height: auto;
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--surface-strong);
  color: var(--brand);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: var(--shadow);
  font-size: 24px;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--brand);
}

.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
}

.page-shell {
  padding-bottom: 96px;
}

.hero {
  padding: 88px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 36px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(19, 111, 99, 0.09);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero p,
.page-hero p {
  margin: 0 0 24px;
  max-width: 58ch;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  text-align: center;
  white-space: normal;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 16px 32px rgba(19, 111, 99, 0.24);
}

.button-secondary {
  background: var(--accent-soft);
  color: #5d4316;
}

.button-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.button:hover,
.button-secondary:hover,
.button-ghost:hover {
  transform: translateY(-2px);
}

.hero-media,
.card,
.feature,
.panel,
.article,
.news-card,
.gallery-card,
.contact-card,
.stat,
.service-size {
  background: var(--surface-strong);
  border: 1px solid rgba(38, 33, 29, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-media {
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.stat {
  padding: 18px 20px;
}

.stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: 24px;
  color: var(--brand);
}

.section {
  padding: 36px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading > * {
  min-width: 0;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

.section-heading p {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 20px;
}

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

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

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

.card,
.feature,
.panel,
.news-card,
.gallery-card,
.contact-card,
.service-size {
  padding: 26px;
}

.card h3,
.feature h3,
.service-size h3,
.news-card h3,
.contact-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.card p,
.feature p,
.panel p,
.news-card p,
.service-size p,
.contact-card p,
.list li,
.meta-list li,
.article p,
.article li {
  color: var(--muted);
}

.feature-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(19, 111, 99, 0.1);
  color: var(--brand);
  font-size: 24px;
}

.list,
.meta-list {
  margin: 0;
  padding-left: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f5efe6;
  color: #7d5c22;
  font-size: 13px;
  font-weight: 700;
}

.page-hero {
  padding: 74px 0 28px;
}

.breadcrumbs {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.service-size strong {
  display: block;
  margin-top: 12px;
  font-size: 26px;
  color: var(--brand);
}

.news-list {
  display: grid;
  gap: 18px;
}

.news-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.news-card > * {
  min-width: 0;
}

.news-card img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  border-radius: 18px;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}

.news-card p,
.news-card h3 {
  margin-top: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-card {
  padding: 0;
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-card figcaption {
  padding: 14px 16px 18px;
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.article {
  padding: 34px;
}

.article img.cover {
  width: 100%;
  max-height: 520px;
  margin-bottom: 24px;
  object-fit: cover;
  border-radius: 18px;
}

.article h2,
.article h3 {
  margin: 28px 0 10px;
  line-height: 1.25;
}

.article blockquote {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: #fbf6ed;
  border-radius: 0 18px 18px 0;
  color: #5d5148;
}

.article-note {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(19, 111, 99, 0.08);
  color: var(--brand-strong);
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 22px;
}

.map-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  width: 100%;
  min-height: 420px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: #f6f1e8;
  color: var(--ink);
  font-weight: 700;
  max-width: 100%;
}

.social-link img {
  width: 20px;
  height: 20px;
}

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid rgba(38, 33, 29, 0.08);
  background: rgba(255, 253, 248, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.footer-brand img {
  width: 170px;
  margin-bottom: 14px;
}

.footer-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--brand);
}

.footer-list {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.footer-bottom {
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    inset: 84px 20px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 253, 248, 0.98);
    box-shadow: var(--shadow);
    max-height: calc(100vh - 104px);
    overflow-y: auto;
  }

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

  .site-nav a {
    padding: 12px 10px;
    border-radius: 14px;
  }

  .site-nav a.is-active::after {
    display: none;
  }

  .hero-grid,
  .split,
  .contact-grid,
  .footer-grid,
  .news-card {
    grid-template-columns: 1fr;
  }

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

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

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

  .hero {
    padding-top: 60px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .container {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .hero-actions,
  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions > *,
  .button-row > * {
    width: 100%;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .hero p,
  .page-hero p {
    font-size: 16px;
  }

  .eyebrow {
    letter-spacing: 0.04em;
  }

  .card,
  .feature,
  .panel,
  .news-card,
  .gallery-card,
  .contact-card,
  .service-size,
  .article {
    padding: 22px;
  }

  .grid-4,
  .grid-3,
  .gallery {
    grid-template-columns: 1fr;
  }

  .hero-media img {
    min-height: 280px;
  }

  .map-wrap iframe {
    min-height: 320px;
  }

  .social-link {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .header-inner {
    min-height: 74px;
    gap: 14px;
  }

  .brand img {
    width: 156px;
  }

  .site-nav {
    inset: 74px 14px auto;
    padding: 14px;
    border-radius: 18px;
    max-height: calc(100vh - 88px);
  }

  .page-hero {
    padding-top: 54px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 30px;
    line-height: 1.14;
  }

  .hero-badges {
    grid-template-columns: 1fr;
  }

  .news-card img {
    min-height: 200px;
  }

  .article {
    padding: 20px;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: #fffaf1;
  }
}
