:root {
  --bg: #f4f7f2;
  --surface: #ffffff;
  --surface-alt: #eef4ef;
  --text: #16322f;
  --muted: #556964;
  --line: rgba(22, 50, 47, 0.12);
  --brand: #145d58;
  --brand-dark: #0e4a46;
  --brand-soft: rgba(20, 93, 88, 0.08);
  --shadow: 0 18px 40px rgba(9, 31, 29, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --maxw: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(20, 93, 88, 0.05), transparent 34%),
    linear-gradient(180deg, #f8faf7 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", sans-serif;
  line-height: 1.6;
}

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

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

.skip-link {
  position: absolute;
  left: 16px;
  top: 10px;
  transform: translateY(-140%);
  background: var(--brand-dark);
  color: white;
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 20;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
.site-footer,
.section {
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 8px;
}

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

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

.brand strong {
  font-size: 0.98rem;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav a {
  font-size: 0.96rem;
  color: #243937;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.lang-switch img {
  width: 20px;
  height: 20px;
  display: block;
  flex: none;
}

.section {
  padding: 92px 0;
}

.section-muted {
  background: rgba(238, 244, 239, 0.74);
  border-radius: var(--radius-xl);
  margin-top: 24px;
  margin-bottom: 24px;
}

.section-surface {
  background: var(--surface);
  border: 1px solid rgba(22, 50, 47, 0.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  margin-top: 24px;
  margin-bottom: 24px;
}

.section-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-head h2,
.hero-copy h1,
.detail-hero h1 {
  margin: 16px 0 12px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.section-head h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.card-copy,
.stats-copy,
.footer-contact {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.hero-section {
  padding-top: 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
  min-height: 620px;
}

.hero-copy {
  padding-right: 10px;
}

.hero-lead {
  max-width: 680px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.9;
}

.hero-copy h1,
.detail-hero h1 {
  font-size: clamp(3rem, 5vw, 5.2rem);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.2s ease;
}

.button-primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 12px 24px rgba(20, 93, 88, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.button-secondary {
  background: white;
  color: var(--brand-dark);
  border-color: rgba(20, 93, 88, 0.32);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.hero-visual,
.detail-hero-visual {
  position: relative;
}

.hero-visual img,
.detail-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.hero-visual::before,
.detail-hero-visual::before {
  content: "";
  position: absolute;
  inset: -16px -14px auto auto;
  width: 96%;
  height: 96%;
  border-radius: 30px;
  background: rgba(20, 93, 88, 0.08);
  z-index: -1;
}

.hero-visual {
  min-height: 470px;
}

.card-grid {
  display: grid;
  gap: 20px;
}

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

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

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

.panel-card,
.feature-card,
.app-card,
.timeline-card,
.stats-card {
  background: white;
  border: 1px solid rgba(22, 50, 47, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(9, 31, 29, 0.05);
}

.panel-card {
  padding: 24px;
}

.feature-card {
  padding: 26px;
}

.app-card img,
.timeline-card img,
.product-card img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  display: block;
}

.stats-card {
  padding: 22px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--brand-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand);
}

.card-title,
.feature-card h3,
.timeline-card h3 {
  margin: 6px 0 10px;
  line-height: 1.2;
}

.card-title {
  font-size: 1.45rem;
}

.product-grid,
.application-grid,
.feature-grid,
.timeline-grid {
  display: grid;
  gap: 22px;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(22, 50, 47, 0.1);
  border-radius: 24px;
  box-shadow: 0 14px 30px rgba(7, 27, 25, 0.05);
  min-height: 100%;
}

.product-card img {
  height: 220px;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 20px 22px;
}

.product-card-body h3,
.app-card h3 {
  margin: 0;
  font-size: 1.18rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  font-weight: 800;
  margin-top: auto;
}

.text-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: translateX(3px);
}

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

.split-copy {
  padding: 24px 8px;
}

.split-copy h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 14px 0 14px;
}

.metric-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.metric {
  min-width: 160px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(20, 93, 88, 0.06);
}

.metric strong {
  display: block;
  color: var(--brand-dark);
  font-size: 2rem;
  line-height: 1.1;
}

.metric span {
  color: var(--muted);
  font-size: 0.93rem;
}

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

.bullet-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.bullet-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand);
  margin-top: 8px;
  flex: none;
}

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

.app-card {
  overflow: hidden;
  padding: 20px 16px 18px;
  min-height: 170px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.app-card img {
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  object-fit: contain;
}

.app-card .mini-label {
  color: rgba(22, 50, 47, 0.62);
  font-size: 0.78rem;
  font-style: italic;
  letter-spacing: 0.01em;
  font-weight: 400;
}

.detail-hero {
  padding-top: 56px;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.detail-kicker {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(20, 93, 88, 0.1);
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-title {
  font-size: clamp(2.8rem, 4.5vw, 4.4rem);
}

.detail-intro-grid,
.detail-split-grid,
.detail-related-grid {
  display: grid;
  gap: 24px;
}

.detail-intro-grid,
.detail-related-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.detail-split-grid {
  grid-template-columns: 1fr 1fr;
}

.image-frame {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy {
  align-self: center;
  padding: 8px;
}

.detail-copy h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.9rem, 2.5vw, 2.8rem);
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card h3 {
  font-size: 1.04rem;
}

.spec-card {
  background: white;
  border-radius: 24px;
  border: 1px solid rgba(22, 50, 47, 0.1);
  padding: 24px;
  box-shadow: 0 12px 30px rgba(9, 31, 29, 0.05);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.spec-table th,
.spec-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(22, 50, 47, 0.08);
  text-align: left;
  vertical-align: top;
  font-size: 0.94rem;
}

.spec-table th {
  width: 34%;
  color: var(--brand-dark);
}

.spec-grid {
  display: grid;
  gap: 18px;
}

.thumb-list {
  display: grid;
  gap: 14px;
}

.thumb-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(20, 93, 88, 0.04);
}

.thumb-item img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
}

.thumb-item h4 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

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

.timeline-card {
  overflow: hidden;
  padding: 14px;
}

.timeline-card img {
  height: 180px;
  margin-bottom: 14px;
}

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

.detail-photo-card {
  overflow: hidden;
  background: white;
  border-radius: 24px;
  border: 1px solid rgba(22, 50, 47, 0.1);
  box-shadow: 0 12px 30px rgba(9, 31, 29, 0.05);
}

.detail-photo-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.detail-photo-copy {
  padding: 18px 18px 20px;
}

.detail-photo-copy h3 {
  margin: 6px 0 8px;
  font-size: 1.08rem;
}

.cta-band {
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--brand-dark), #114f4b 64%, #0b3f3c 100%);
  color: white;
  box-shadow: 0 20px 50px rgba(7, 27, 25, 0.18);
}

.cta-band p,
.cta-band .muted-on-dark {
  color: rgba(255, 255, 255, 0.82);
}

.cta-band .button-secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.36);
  background: transparent;
}

.cta-band .button-secondary:hover,
.cta-band .button-secondary:focus-visible {
  border-color: white;
}

.site-footer {
  padding: 32px 0 54px;
}

.footer-panel {
  border-radius: 28px;
  background: #145f59;
  color: rgba(255, 255, 255, 0.9);
  padding: 40px 38px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.footer-panel h3,
.footer-panel h4 {
  color: white;
  margin-top: 0;
}

.footer-desc {
  margin-top: 14px;
  max-width: 440px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
  font-size: 0.95rem;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.88);
}

.footer-contact {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.footer-meta {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1120px) {
  .hero-grid,
  .detail-hero-grid,
  .split-layout,
  .detail-intro-grid,
  .detail-related-grid,
  .detail-split-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .grid-5,
  .application-grid,
  .feature-grid,
  .timeline-grid,
  .detail-photo-grid,
  .product-grid,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header,
  .site-footer,
  .section {
    width: min(var(--maxw), calc(100% - 28px));
  }

  .hero-visual {
    min-height: 380px;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    justify-content: flex-start;
    gap: 16px;
  }

  .hero-copy h1,
  .detail-hero h1 {
    font-size: clamp(2.3rem, 12vw, 3.6rem);
  }

  .hero-grid,
  .detail-hero-grid {
    gap: 28px;
    min-height: auto;
  }

  .section {
    padding: 68px 0;
  }

  .grid-5,
  .application-grid,
  .feature-grid,
  .timeline-grid,
  .detail-photo-grid,
  .product-grid,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-panel,
  .panel-card,
  .feature-card,
  .spec-card,
  .cta-band {
    padding: 22px;
  }

  .cta-band .split-layout {
    align-items: flex-start;
  }

  .cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .cta-actions .button {
    width: 100%;
  }

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