:root {
  --ink: #17201b;
  --muted: #66736d;
  --line: #dfe5df;
  --paper: #f7f6f1;
  --white: #ffffff;
  --green: #315c46;
  --green-dark: #173a2b;
  --copper: #b46b37;
  --gold: #d9a441;
  --shadow: 0 22px 60px rgba(23, 32, 27, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(18, 29, 23, 0.72);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.brand-name {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  font-size: 0.94rem;
  font-weight: 600;
}

.site-nav a,
.lang-switch a {
  opacity: 0.82;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.lang-switch a:hover,
.lang-switch a.active {
  color: #ffe2a7;
  opacity: 1;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 700;
}

.lang-switch a + a {
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  padding-left: 10px;
}

.hero {
  position: relative;
  display: flex;
  min-height: 92vh;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(135deg, rgba(10, 20, 16, 0.5), rgba(10, 20, 16, 0.18) 46%, rgba(10, 20, 16, 0.08)),
    url("/images/hero.jpg") center / cover no-repeat,
    #173a2b;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 22, 18, 0.92), rgba(12, 22, 18, 0.5) 46%, rgba(12, 22, 18, 0.08)),
    linear-gradient(0deg, rgba(12, 22, 18, 0.74), rgba(12, 22, 18, 0.02) 62%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 150px 0 54px;
}

.eyebrow,
.section-kicker,
.product-card span,
.process-grid span {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.8rem, 8vw, 6.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.04rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 20px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--gold);
  color: #1f1a10;
}

.btn.secondary {
  border-color: rgba(255, 255, 255, 0.46);
  color: var(--white);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(680px, 100%);
  margin-top: 54px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.hero-stats div {
  padding: 18px;
  background: rgba(10, 20, 16, 0.36);
}

.hero-stats strong {
  display: block;
  font-size: 1.35rem;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
  scroll-margin-top: 92px;
}

.intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 8px;
}

.intro::before {
  position: absolute;
  inset: 22px 0;
  z-index: -1;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(247, 246, 241, 0.96), rgba(247, 246, 241, 0.84) 44%, rgba(247, 246, 241, 0.98)),
    url("/images/hero.jpg") right center / cover no-repeat;
  content: "";
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 70px;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.85rem, 2.85vw, 2.85rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.intro h2 {
  max-width: 560px;
  font-size: clamp(1.75rem, 2.5vw, 2.6rem);
  font-weight: 650;
  line-height: 1.18;
}

.rich-text p,
.contact-panel p,
.product-card p,
.process-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.rich-text p + p {
  margin-top: 18px;
}

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

.product-section,
.capability-section {
  border-top: 1px solid var(--line);
}

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

.product-card {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #fbfaf6 58%, #f0eadf 100%);
  box-shadow: 0 10px 24px rgba(23, 32, 27, 0.07);
}

.product-category-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(23, 32, 27, 0.13);
}

.product-card-media {
  position: relative;
  display: block;
  height: 190px;
  min-height: 190px;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #f8f6ef 0%, #ece7db 100%);
}

.product-card-media::after {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(23, 32, 27, 0.12);
  border-radius: 6px;
  content: "";
}

.product-card-media img {
  position: absolute;
  inset: 10px;
  z-index: 1;
  box-sizing: border-box;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  padding: 10px;
  object-fit: contain;
  object-position: center center;
  border-radius: 6px;
  background: transparent;
  filter: drop-shadow(0 10px 14px rgba(15, 22, 18, 0.14));
  transition: transform 0.2s ease;
}

.product-card-copy {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 16px 18px 18px;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-transform: none;
}

.product-category-card .product-count,
.product-category-card h3,
.product-category-card p {
  margin-right: 0;
  margin-left: 0;
}

.product-category-card .product-count {
  margin-bottom: 0;
}

.product-category-card p {
  margin-bottom: 0;
}

.product-card h3,
.process-grid h3 {
  margin: 0 0 12px;
  font-size: 1.24rem;
  line-height: 1.25;
}

.product-card h3 {
  margin-bottom: 0;
  font-size: 0.96rem;
  font-weight: 700;
}

.product-card p {
  font-size: 0.88rem;
  line-height: 1.45;
}

.product-card.product-category-card h3 {
  margin-right: 0;
  margin-left: 0;
}

.category-page {
  padding-top: 132px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--green);
  font-weight: 800;
}

.category-bottom-action {
  display: flex;
  justify-content: center;
  margin-top: 46px;
}

.back-link-bottom {
  align-items: center;
  justify-content: center;
  min-width: 92px;
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(23, 32, 27, 0.08);
  font-size: 0.9rem;
}

.category-heading {
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 30px;
}

.category-heading h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.category-heading p {
  max-width: 650px;
  margin: 16px 0 0;
  color: var(--muted);
}

.category-heading strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--white);
  color: var(--green-dark);
}

.content-page {
  padding-top: 132px;
}

.content-shell {
  max-width: 860px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 46px;
  background: var(--white);
  box-shadow: 0 18px 46px rgba(23, 32, 27, 0.08);
}

.content-shell h1 {
  margin: 8px 0 14px;
  color: var(--green-dark);
  font-size: clamp(2.15rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.content-lead {
  max-width: 720px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 1.08rem;
}

.content-body {
  display: grid;
  gap: 22px;
}

.content-body h2 {
  margin: 0 0 -10px;
  color: var(--green-dark);
  font-size: 1.24rem;
  line-height: 1.25;
}

.content-body p {
  margin: 0;
  color: var(--ink);
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.grouped-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 38px;
  margin-top: 26px;
}

.product-group {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}

.product-group h2 {
  border-bottom: 1px solid var(--line);
  margin: 0 0 16px;
  padding-bottom: 10px;
  color: var(--green-dark);
  font-size: 1.35rem;
  line-height: 1.2;
}

.product-group .product-gallery {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-top: 0;
}

.gallery-item {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 30px rgba(23, 32, 27, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(23, 32, 27, 0.13);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 220px;
  padding: 16px;
  object-fit: contain;
  object-position: center center;
  background: var(--white);
}

.gallery-meta {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px 14px 14px;
}

.gallery-meta strong,
.gallery-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-meta strong {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.25;
}

.gallery-meta small {
  color: var(--muted);
  font-size: 0.78rem;
}

.product-specs {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding-top: 4px;
}

.product-specs em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.process-grid > div {
  min-height: 245px;
  padding: 28px;
}

.process-grid > div + div {
  border-left: 1px solid var(--line);
}

.contact-section {
  padding-top: 42px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: center;
  border-radius: 8px;
  padding: 44px;
  background:
    linear-gradient(90deg, rgba(12, 22, 18, 0.92), rgba(12, 22, 18, 0.72) 48%, rgba(12, 22, 18, 0.82)),
    linear-gradient(0deg, rgba(12, 22, 18, 0.45), rgba(12, 22, 18, 0.12)),
    url("/images/hero.jpg") center / cover no-repeat,
    var(--green-dark);
  color: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contact-panel p {
  max-width: 720px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.contact-link {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-address {
  display: grid;
  gap: 4px;
}

.contact-address span {
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.contact-address address {
  margin: 0;
  font-style: normal;
  line-height: 1.45;
}

.contact-qr {
  width: min(220px, 100%);
  justify-self: start;
  border-radius: 8px;
  padding: 10px;
  background: var(--white);
}

.contact-qr img {
  display: block;
  width: 100%;
  height: auto;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 66px;
  }

  .site-nav {
    display: none;
  }

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

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

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

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

  .process-grid > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .process-grid > div:nth-child(2) {
    border-top: 0;
  }
}

@media (max-width: 640px) {
  .header-inner {
    width: min(100% - 28px, 1180px);
    gap: 12px;
  }

  .brand-name {
    display: none;
  }

  .lang-switch {
    font-size: 0.78rem;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-inner,
  .section,
  .footer-inner {
    width: min(100% - 28px, 1180px);
  }

  .hero h1 {
    font-size: clamp(2.15rem, 10vw, 3.35rem);
    line-height: 1.08;
  }

  .hero-stats,
  .product-grid,
  .product-gallery,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .grouped-gallery {
    grid-template-columns: 1fr;
  }

  .process-grid > div:nth-child(2) {
    border-top: 1px solid var(--line);
  }

  .hero-stats div,
  .product-card,
  .process-grid > div {
    min-height: auto;
  }

  .product-category-card {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .product-card-media {
    height: 170px;
    min-height: 170px;
  }

  .gallery-item img {
    height: 260px;
  }

  .section {
    padding: 70px 0;
  }

  .section-heading {
    display: block;
  }

  .contact-panel {
    padding: 28px 22px;
  }

  .content-shell {
    padding: 30px 22px;
  }

  .footer-inner {
    display: block;
  }

  .footer-inner span {
    display: block;
  }
}
