:root {
  --ink: #17211d;
  --muted: #66746e;
  --line: #dce7df;
  --paper: #fbfcf8;
  --mist: #eef7f1;
  --green: #1f8a4c;
  --green-dark: #0f6032;
  --green-soft: #dff1e6;
  --red: #e50012;
  --red-dark: #9f0010;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(18, 66, 41, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(229, 0, 18, 0.035) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(31, 138, 76, 0.035) 0 1px, transparent 1px 100%),
    var(--paper);
  background-size: 44px 44px;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(220, 231, 223, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
}

.brand-logo {
  width: 86px;
  height: 54px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  line-height: 1.2;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.6vw, 34px);
  color: #3f4a52;
  font-weight: 650;
  white-space: nowrap;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  content: "";
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--green-dark);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: var(--green-soft);
  border: 1px solid rgba(31, 138, 76, 0.18);
  border-radius: 999px;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 32px;
  padding: 0 10px;
  color: var(--green-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}

.lang-switch a.active {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 8px 18px rgba(31, 138, 76, 0.18);
}

.header-call,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 750;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.header-call,
.button.primary {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 12px 24px rgba(31, 138, 76, 0.22);
  white-space: nowrap;
}

.button.secondary {
  color: var(--red-dark);
  background: var(--white);
  border: 1px solid var(--line);
}

.header-call:hover,
.button:hover,
.header-call:focus-visible,
.button:focus-visible {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(42px, 7vw, 90px) clamp(18px, 5vw, 72px) 44px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.94), rgba(238, 247, 241, 0.88)),
    linear-gradient(90deg, rgba(229, 0, 18, 0.08), transparent 38%);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  right: -180px;
  top: 8%;
  width: 380px;
  height: 380px;
  content: "";
  border: 72px solid rgba(31, 138, 76, 0.09);
  border-radius: 50%;
}

.hero::after {
  position: absolute;
  left: -80px;
  bottom: 54px;
  width: 220px;
  height: 12px;
  content: "";
  background: var(--red);
  transform: skewX(-28deg);
  opacity: 0.9;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(48px, 7vw, 90px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.25;
}

.lead {
  max-width: 640px;
  color: #43515b;
  font-size: clamp(17px, 2vw, 21px);
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 600px;
  margin: 0;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  padding: 18px 18px 0 0;
}

.hero-stats dt {
  color: var(--green-dark);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 850;
  line-height: 1;
}

.hero-stats dd {
  margin: 6px 0 0;
  color: var(--muted);
}

.hero-media {
  position: relative;
  z-index: 1;
  min-height: 460px;
  margin: 0;
}

.hero-media > img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media figcaption {
  position: absolute;
  right: 18px;
  bottom: 16px;
  padding: 7px 12px;
  color: var(--white);
  background: rgba(15, 96, 50, 0.86);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(380px, 0.75fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 241, 0.92)),
    linear-gradient(90deg, rgba(229, 0, 18, 0.08), transparent 42%);
  border-bottom: 1px solid var(--line);
}

.page-hero img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.company,
.product-summary,
.certifications,
.contact {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  margin: -36px auto 0;
  padding: 0 clamp(18px, 5vw, 72px);
  position: relative;
  z-index: 3;
}

.quick-links a {
  display: grid;
  gap: 4px;
  min-height: 136px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(18, 66, 41, 0.1);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.quick-links a:hover,
.quick-links a:focus-visible {
  border-color: rgba(31, 138, 76, 0.42);
  box-shadow: 0 22px 50px rgba(18, 66, 41, 0.16);
  transform: translateY(-4px);
}

.quick-links span {
  color: var(--red);
  font-size: 13px;
  font-weight: 850;
}

.quick-links strong {
  font-size: 22px;
}

.quick-links small {
  color: var(--muted);
  font-size: 14px;
}

.category-nav {
  position: sticky;
  top: 76px;
  z-index: 10;
  display: flex;
  gap: 10px;
  padding: 14px clamp(18px, 5vw, 72px);
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.category-nav a {
  flex: 0 0 auto;
  padding: 10px 14px;
  color: var(--green-dark);
  background: var(--green-soft);
  border: 1px solid rgba(31, 138, 76, 0.18);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease;
}

.category-nav a:hover,
.category-nav a:focus-visible {
  color: var(--white);
  background: var(--green);
  transform: translateY(-2px);
}

.company,
.certifications {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.product-summary {
  background: linear-gradient(180deg, var(--mist), #ffffff);
}

.product-category {
  padding: clamp(58px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 150px;
}

.product-category:nth-of-type(odd) {
  background: linear-gradient(180deg, #ffffff, var(--mist));
}

.category-heading {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto 28px;
}

.category-heading > span {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: var(--white);
  background: var(--red);
  border-radius: 8px;
  font-size: 22px;
  font-weight: 900;
}

.category-heading p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.catalog-card {
  display: grid;
  grid-template-columns: minmax(160px, 0.55fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  min-height: 240px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(18, 66, 41, 0.08);
}

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

.product-item {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 14px;
}

.catalog-card img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--mist);
}

.product-item img {
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.catalog-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.25;
}

.product-item strong {
  margin-top: 14px;
  font-size: 17px;
}

.catalog-card p {
  color: var(--muted);
}

.product-item p {
  margin: 0;
  font-size: 14px;
}

.product-tag {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 12px;
  padding: 5px 9px;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.catalog-card a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 12px;
  padding: 0 14px;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
  font-weight: 800;
}

.placeholder-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px dashed rgba(31, 138, 76, 0.45);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(223, 241, 230, 0.55)),
    var(--white);
}

.placeholder-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 12px;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 34px;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 18px;
}

.section-heading.compact {
  display: block;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.timeline article {
  min-height: 250px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 241, 0.68)),
    var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(18, 66, 41, 0.07);
}

.timeline span,
.product-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 40px;
  margin-bottom: 26px;
  color: var(--white);
  background: var(--green);
  border-radius: 8px;
  font-weight: 850;
}

.timeline p,
.product-card p {
  color: var(--muted);
}

.product-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto 28px;
}

.product-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 230px;
  padding: 0 26px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(21, 43, 52, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover,
.product-card:focus-visible {
  border-color: rgba(31, 138, 76, 0.45);
  box-shadow: 0 22px 56px rgba(18, 66, 41, 0.16);
  transform: translateY(-5px);
}

.product-card > img {
  width: calc(100% + 52px);
  height: 160px;
  margin: 0 -26px 22px;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.product-card .product-code {
  margin-bottom: 16px;
}

.card-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--green-dark);
  font-size: 14px;
}

.card-link::after {
  content: "→";
  margin-left: 6px;
}

.showcase {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(14px, 2vw, 22px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.showcase img,
.cert-image img {
  width: 100%;
  object-fit: contain;
}

.cert-image {
  display: block;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.image-button {
  position: relative;
  width: 100%;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: zoom-in;
  font: inherit;
}

.image-button span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 9px 13px;
  color: var(--white);
  background: rgba(15, 96, 50, 0.9);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.showcase .image-button img {
  max-height: 980px;
}

.lightbox {
  width: min(1080px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.34);
}

.lightbox::backdrop {
  background: rgba(10, 19, 16, 0.66);
  backdrop-filter: blur(4px);
}

.lightbox img {
  width: 100%;
  max-height: calc(100vh - 90px);
  object-fit: contain;
}

.qr-lightbox {
  width: min(640px, calc(100vw - 32px));
}

.dialog-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: var(--red);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.7fr);
  gap: 32px;
  align-items: center;
  color: var(--white);
  background: linear-gradient(120deg, var(--green-dark), #143c27 64%, var(--red-dark));
}

.contact-copy {
  max-width: 780px;
}

.contact-copy p:last-child {
  color: #d3e9db;
  font-size: 19px;
}

.contact-panel {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 26px;
  font-style: normal;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.contact-panel a:not(.button),
.contact-panel span {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.wechat-qr {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.wechat-qr img {
  width: 112px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: var(--white);
  border-radius: 6px;
}

.wechat-qr span {
  position: static;
  display: block;
  padding: 0;
  color: var(--white);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 16px;
  text-align: left;
}

.button.wide {
  width: 100%;
  margin-top: 8px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: #e8f2f4;
  background: #111827;
}

@media (max-width: 1060px) {
  .site-header {
    flex-wrap: wrap;
  }

  .brand {
    min-width: 0;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero,
  .page-hero,
  .section-heading,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media,
  .hero-media > img {
    min-height: 360px;
  }

  .timeline,
  .product-list,
  .product-grid,
  .quick-links {
    grid-template-columns: 1fr;
  }

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

  .quick-links {
    margin-top: 0;
  }

  .category-nav {
    top: 130px;
  }

  .catalog-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .product-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    gap: 14px;
  }

  .brand-logo {
    width: 76px;
    height: 48px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    font-size: 10px;
  }

  .header-call {
    width: 100%;
  }

  .header-actions {
    width: 100%;
    align-items: stretch;
  }

  .lang-switch {
    flex: 1;
    justify-content: center;
  }

  .hero {
    padding-top: 32px;
  }

  .category-nav {
    position: static;
  }

  .category-heading {
    grid-template-columns: 1fr;
  }

  .product-catalog {
    grid-template-columns: 1fr;
  }

  .catalog-card img {
    min-height: 170px;
  }

  h1 {
    font-size: clamp(42px, 15vw, 64px);
  }

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

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

  .quick-links {
    padding: 0 18px;
  }

  .image-button span {
    position: static;
    display: inline-flex;
    margin-top: 12px;
    color: var(--green-dark);
    background: var(--green-soft);
  }

  .timeline article,
  .product-card {
    min-height: auto;
  }

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

  .site-footer {
    flex-direction: column;
  }
}
