:root {
  --ink: #152229;
  --ink-soft: #536168;
  --surface: #ffffff;
  --surface-soft: #f2f5f3;
  --surface-tint: #e8eeea;
  --line: #d8dfdc;
  --brand: #166052;
  --brand-dark: #103d37;
  --accent: #d59e3a;
  --accent-soft: #f5ead4;
  --shadow: 0 14px 34px rgba(15, 34, 39, 0.08);
  --max: 1200px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", Arial, sans-serif;
  line-height: 1.65;
}

body.lang-en {
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

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

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

p {
  margin: 0 0 18px;
  color: var(--ink-soft);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.22;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

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

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

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

.brand-logo {
  width: 178px;
  height: auto;
  max-height: 54px;
  object-fit: contain;
}

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

.nav-link {
  height: var(--header-height);
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.lang-switch {
  min-width: 58px;
  padding: 8px 12px;
  color: var(--brand);
  background: var(--surface-soft);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  position: relative;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  width: 20px;
  height: 2px;
  position: absolute;
  left: 11px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle::before {
  top: 14px;
}

.menu-toggle span {
  top: 20px;
}

.menu-toggle::after {
  top: 26px;
}

.menu-toggle.open::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.open span {
  opacity: 0;
}

.menu-toggle.open::after {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  min-height: min(640px, calc(100vh - var(--header-height) - 56px));
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #142532;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.78) contrast(1.04);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(21, 43, 58, 0.9) 0%, rgba(29, 55, 74, 0.72) 35%, rgba(23, 45, 62, 0.22) 66%, rgba(23, 45, 62, 0.12) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 18% 42%, rgba(255, 255, 255, 0.08), transparent 23%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 33%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
  padding: clamp(62px, 10vh, 108px) 0 clamp(62px, 11vh, 102px);
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  color: #e4bf78;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(39px, 5.8vw, 66px);
}

.hero-copy {
  max-width: 550px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 24px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 34px;
  height: 3px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.hero-dot.active {
  background: var(--accent);
}

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

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 23px;
  color: #fff;
  background: var(--brand);
  font-weight: 700;
  transition: background 160ms ease, transform 160ms ease;
}

.btn::after {
  content: "\2192";
  font-size: 18px;
}

.btn:hover {
  background: #1c7462;
  transform: translateY(-1px);
}

.btn-outline {
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.stats {
  margin-top: -1px;
  background: var(--brand-dark);
  color: #fff;
}

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

.stat {
  min-height: 130px;
  padding: 30px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.stat:last-child {
  border-right: 0;
}

.stat-number {
  color: #fff;
  font-size: 33px;
  font-weight: 700;
  line-height: 1.05;
}

.stat-label {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.section {
  padding: clamp(64px, 8vw, 100px) 0;
}

.section-soft {
  background: var(--surface-soft);
}

.section-dark {
  color: #fff;
  background: var(--ink);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-heading h2 {
  margin-bottom: 15px;
  font-size: clamp(30px, 3.4vw, 42px);
}

.section-heading p {
  font-size: 17px;
}

.section-dark .section-heading p,
.section-dark p {
  color: rgba(255, 255, 255, 0.7);
}

.intro-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: clamp(34px, 6vw, 76px);
}

.media-frame {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-tint);
}

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

.intro-copy h2 {
  margin-bottom: 20px;
  font-size: clamp(29px, 3vw, 40px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--brand);
  font-weight: 700;
}

.text-link::after {
  content: "\2192";
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-item {
  min-height: 234px;
  padding: 28px 25px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
}

.service-no {
  display: block;
  margin-bottom: 25px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.service-item h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.service-item p {
  margin-bottom: 0;
  font-size: 15px;
}

.feature-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.feature-media {
  min-height: 440px;
}

.feature-media img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 6vw, 72px);
  background: var(--brand-dark);
  color: #fff;
}

.feature-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(29px, 3vw, 40px);
}

.feature-copy p {
  color: rgba(255, 255, 255, 0.74);
}

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

.process-step {
  min-height: 168px;
  padding: 22px;
  border-left: 1px solid var(--line);
}

.process-step:last-child {
  border-right: 1px solid var(--line);
}

.process-step strong {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 14px;
}

.process-step h3 {
  font-size: 18px;
}

.page-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 22, 25, 0.76), rgba(10, 22, 25, 0.25));
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 64px 0;
  color: #fff;
}

.page-hero h1 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(36px, 4vw, 52px);
}

.breadcrumb {
  display: block;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 80px);
}

.prose h2 {
  margin: 36px 0 14px;
  font-size: 27px;
}

.prose h2:first-child {
  margin-top: 0;
}

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

.value {
  padding: 29px;
  border: 1px solid var(--line);
}

.value h3 {
  margin-bottom: 12px;
  font-size: 21px;
}

.workflow {
  border-top: 1px solid var(--line);
}

.workflow-row {
  display: grid;
  grid-template-columns: 110px 1fr 1.2fr;
  gap: 25px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.workflow-row span {
  color: var(--accent);
  font-weight: 700;
}

.workflow-row h3 {
  font-size: 21px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(28px, 6vw, 72px);
}

.contact-lines {
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.contact-line {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.contact-line span {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 13px;
}

.contact-line strong {
  color: var(--ink);
  font-size: 18px;
}

.contact-form {
  padding: clamp(28px, 4vw, 43px);
  background: var(--surface-soft);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  margin-bottom: 18px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 148px;
  resize: vertical;
}

.contact-form .btn {
  border: 0;
  cursor: pointer;
}

.notice {
  padding: 20px 24px;
  color: var(--ink-soft);
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
}

.policy {
  max-width: 870px;
}

.policy h2 {
  margin: 42px 0 12px;
  font-size: 25px;
}

.policy h2:first-child {
  margin-top: 0;
}

.cta-band {
  padding: clamp(54px, 7vw, 74px) 0;
  background: var(--brand);
  color: #fff;
}

.cta-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.cta-grid h2 {
  margin-bottom: 10px;
  font-size: clamp(27px, 3vw, 37px);
}

.cta-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  padding: 54px 0 26px;
  color: rgba(255, 255, 255, 0.72);
  background: #10191d;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.75fr 1fr;
  gap: 46px;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.footer-brand p {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.66);
}

.footer-title {
  margin-bottom: 18px;
  color: #fff;
  font-size: 16px;
}

.footer-links a {
  display: block;
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact div {
  margin-bottom: 9px;
}

.copyright {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 25px;
  font-size: 13px;
}

@media (max-width: 980px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav-link {
    height: 48px;
    border-bottom: 1px solid var(--line);
  }

  .lang-switch {
    margin-top: 14px;
  }

  .menu-toggle {
    display: block;
  }

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

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .feature-band,
  .intro-grid,
  .contact-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .feature-media {
    min-height: 360px;
  }

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

  .process-step,
  .process-step:last-child {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .workflow-row {
    grid-template-columns: 72px 1fr;
  }

  .workflow-row p {
    grid-column: 2;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 70px;
  }

  .container {
    width: min(var(--max), calc(100% - 32px));
  }

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

  .hero {
    min-height: min(570px, calc(100svh - var(--header-height) - 44px));
  }

  .hero-content {
    padding: 68px 0 72px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-dots {
    left: 16px;
    bottom: 18px;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    justify-content: space-between;
    width: 100%;
  }

  .stats-grid,
  .service-grid,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .stat {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .page-hero {
    min-height: 325px;
  }

  .page-hero-content {
    padding: 48px 0;
  }

  .cta-grid,
  .copyright {
    flex-direction: column;
    align-items: stretch;
  }
}
