:root {
  --color-brand-700: #006e96;
  --color-brand-800: #005672;
  --color-brand-400: #52c0e2;
  --color-signal: #1fd1ca;
  --color-ink: #10252e;
  --color-ink-muted: #52636a;
  --color-surface: #ffffff;
  --color-surface-cool: #f4f8f9;
  --color-surface-deep: #082f3e;
  --color-line: #d6e1e5;
  --color-success: #167a5a;
  --color-success-bg: #e8f7f1;
  --color-error: #b42318;
  --color-error-bg: #fff0ee;
  --color-focus: #006e96;
  --font-sans: "IBM Plex Sans", "Noto Sans TC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container-max: 1280px;
  --content-max: 760px;
  --grid-gap: 24px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

main section[id] {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-surface);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  color: var(--color-surface);
  background: var(--color-surface-deep);
  transform: translateY(-160%);
  transition: transform 180ms ease-out;
}

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

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

.section {
  padding-block: var(--space-24);
}

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

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

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 var(--space-6);
  color: var(--color-brand-700);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-label::after {
  width: 64px;
  height: 1px;
  background: currentColor;
  content: "";
}

.section--deep .section-label,
.footer .section-label {
  color: var(--color-signal);
}

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

h1,
h2,
h3 {
  letter-spacing: -0.02em;
}

h1 {
  margin-bottom: var(--space-6);
  font-size: clamp(2.15rem, 4.4vw, 3.5rem);
  font-weight: 350;
  line-height: 1.1;
}

h2 {
  margin-bottom: var(--space-8);
  font-size: clamp(1.75rem, 3.3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
}

h3 {
  margin-bottom: var(--space-4);
  font-size: clamp(1.25rem, 2.1vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
}

.lead {
  max-width: 760px;
  color: var(--color-ink-muted);
  font-size: clamp(1.06rem, 1.8vw, 1.25rem);
  line-height: 1.65;
}

.section--deep .lead {
  color: #c5d9e0;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid var(--color-line);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  height: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.brand {
  display: inline-flex;
  min-width: 160px;
  min-height: 44px;
  align-items: center;
}

.brand img {
  width: 180px;
  filter: brightness(0) saturate(100%) invert(29%) sepia(75%) saturate(1254%)
    hue-rotate(159deg) brightness(91%) contrast(101%);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 600;
}

.desktop-nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
}

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

.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.language-switch {
  display: inline-flex;
  border: 1px solid var(--color-line);
}

.language-switch a {
  min-width: 44px;
  justify-content: center;
  padding-inline: 10px;
}

.language-switch a + a {
  border-left: 1px solid var(--color-line);
}

.language-switch a[aria-current="page"],
html[lang="zh-Hant"] .language-switch a:first-child,
html[lang="en"] .language-switch a:last-child {
  color: var(--color-surface);
  background: var(--color-brand-700);
}

.menu-toggle {
  display: none;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--color-line);
  color: var(--color-ink);
  background: var(--color-surface);
  cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 22px;
  height: 2px;
  margin: auto;
  background: currentColor;
  content: "";
  transition: transform 180ms ease-out;
}

.menu-toggle-lines::before {
  transform: translateY(-7px);
}

.menu-toggle-lines::after {
  transform: translateY(5px);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
  background: var(--color-ink);
  transform: translateY(2px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
  background: var(--color-ink);
  transform: rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  z-index: 90;
  top: var(--header-height);
  right: 0;
  bottom: 0;
  left: 0;
  padding: var(--space-6) 20px;
  background: var(--color-surface);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition:
    opacity 180ms ease-out,
    transform 180ms ease-out,
    visibility 180ms;
}

.mobile-nav[data-open="true"] {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav a {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-line);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}

.mobile-nav a::after {
  color: var(--color-brand-700);
  content: "↗";
}

.mobile-nav .language-switch {
  margin-top: var(--space-8);
}

.mobile-nav .language-switch a {
  width: 88px;
  min-height: 48px;
  justify-content: center;
  border-bottom: 0;
  font-size: 1rem;
}

.mobile-nav .language-switch a::after {
  content: none;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(to right, rgb(8 47 62 / 97%) 0%, rgb(8 47 62 / 90%) 46%, rgb(8 47 62 / 38%) 72%, rgb(8 47 62 / 10%) 100%),
    url("../images/og-image_1.jpg") center / cover no-repeat;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-signal), transparent);
  content: "";
  animation: scan-in 800ms ease-out both;
}

.hero-inner {
  display: grid;
  min-height: 650px;
  align-items: center;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  grid-column: 1 / span 7;
  color: var(--color-surface);
}

.hero h1 {
  max-width: 820px;
  overflow-wrap: anywhere;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
}

.hero .lead {
  max-width: 650px;
  color: #d9e7eb;
}

.signal-wave {
  width: min(560px, 100%);
  height: 72px;
  margin-block: var(--space-8);
  color: var(--color-signal);
}

.signal-wave path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 2;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 22px;
  border: 1px solid var(--color-brand-700);
  color: var(--color-surface);
  background: var(--color-brand-700);
  font-weight: 700;
  text-decoration: none;
  transition:
    color 180ms ease-out,
    background 180ms ease-out,
    border-color 180ms ease-out;
}

.button:hover {
  border-color: var(--color-brand-800);
  background: var(--color-brand-800);
}

.button--outline {
  border-color: rgb(255 255 255 / 55%);
  background: transparent;
}

.button--outline:hover {
  color: var(--color-surface-deep);
  border-color: var(--color-surface);
  background: var(--color-surface);
}

.stats-grid {
  display: grid;
  border-right: 1px solid var(--color-line);
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  width: 100%;
  min-width: 0;
  min-height: 220px;
  padding: var(--space-12);
  border-left: 1px solid var(--color-line);
}

.stat-value {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--color-brand-700);
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1;
}

.stat p {
  margin: 0;
  color: var(--color-ink-muted);
}

.problem-grid {
  display: grid;
  margin-top: var(--space-12);
  border-top: 1px solid #416371;
  border-left: 1px solid #416371;
  grid-template-columns: repeat(2, 1fr);
}

.problem-panel {
  min-height: 260px;
  padding: var(--space-12);
  border-right: 1px solid #416371;
  border-bottom: 1px solid #416371;
}

.problem-panel span {
  display: block;
  margin-bottom: var(--space-6);
  color: var(--color-signal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.problem-panel p {
  margin-bottom: 0;
  color: #d9e7eb;
}

.solution-intro {
  display: grid;
  align-items: end;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-12);
}

.solution-intro p {
  color: var(--color-ink-muted);
}

.solution-track {
  display: grid;
  margin-top: var(--space-16);
  border-top: 1px solid var(--color-line);
  border-left: 1px solid var(--color-line);
  grid-template-columns: repeat(3, 1fr);
}

.solution-step {
  position: relative;
  min-height: 280px;
  padding: var(--space-8);
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.solution-step::before {
  display: block;
  width: 100%;
  height: 42px;
  margin-bottom: var(--space-8);
  background:
    linear-gradient(90deg, transparent 0 5%, var(--color-brand-400) 5% 18%, transparent 18% 24%, var(--color-signal) 24% 34%, transparent 34% 38%, var(--color-brand-700) 38% 47%, transparent 47% 56%, var(--color-brand-400) 56% 76%, transparent 76%);
  clip-path: polygon(0 48%, 8% 48%, 12% 10%, 18% 88%, 24% 32%, 31% 68%, 38% 45%, 100% 45%, 100% 55%, 39% 55%, 31% 78%, 24% 42%, 18% 98%, 12% 20%, 9% 58%, 0 58%);
  content: "";
}

.solution-number {
  display: block;
  margin-bottom: var(--space-4);
  color: var(--color-brand-700);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.video-grid {
  display: grid;
  align-items: center;
  grid-template-columns: 4fr 8fr;
  gap: var(--space-16);
}

.video-frame {
  overflow: hidden;
  border: 1px solid #416371;
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: var(--space-16);
}

.contact-aside {
  position: sticky;
  top: calc(var(--header-height) + 32px);
  align-self: start;
}

.contact-aside p {
  color: var(--color-ink-muted);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.form-field {
  min-width: 0;
}

.form-field--full,
.form-actions,
.form-status,
.privacy-field {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.required {
  color: var(--color-error);
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #9db0b8;
  border-radius: 0;
  color: var(--color-ink);
  background: var(--color-surface);
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: var(--color-error);
  box-shadow: 0 0 0 1px var(--color-error);
}

.field-error {
  min-height: 24px;
  margin: var(--space-1) 0 0;
  color: var(--color-error);
  font-size: 14px;
}

.privacy-field {
  min-height: 44px;
}

.privacy-control {
  display: grid;
  width: 100%;
  min-height: 44px;
  align-items: center;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: var(--space-3);
  cursor: pointer;
}

.privacy-control input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--color-brand-700);
}

.privacy-field .field-error {
  margin-left: calc(20px + var(--space-3));
}

.form-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.submit-button {
  min-width: 180px;
  min-height: 48px;
  padding: 11px 22px;
  border: 1px solid var(--color-brand-700);
  color: var(--color-surface);
  background: var(--color-brand-700);
  font-weight: 700;
  cursor: pointer;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  display: none;
  padding: var(--space-4);
  border: 1px solid;
}

.form-status[data-state="success"] {
  display: block;
  color: var(--color-success);
  border-color: #8ac8b2;
  background: var(--color-success-bg);
}

.form-status[data-state="error"] {
  display: block;
  color: var(--color-error);
  border-color: #e6a39e;
  background: var(--color-error-bg);
}

.page-hero {
  padding-block: var(--space-24) var(--space-16);
  border-bottom: 1px solid var(--color-line);
  background:
    linear-gradient(90deg, rgb(0 110 150 / 8%) 1px, transparent 1px),
    linear-gradient(rgb(0 110 150 / 8%) 1px, transparent 1px),
    var(--color-surface-cool);
  background-size: 48px 48px;
}

.page-hero .lead {
  margin-bottom: 0;
}

.news-grid {
  display: grid;
  border-top: 1px solid var(--color-line);
  border-left: 1px solid var(--color-line);
  grid-template-columns: repeat(3, 1fr);
}

.news-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  background: var(--color-surface);
}

.news-card:hover {
  background: var(--color-surface-cool);
}

.news-card-image {
  overflow: hidden;
  border-bottom: 1px solid var(--color-line);
  aspect-ratio: 3 / 2;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease-out;
}

.news-card:hover .news-card-image img {
  transform: scale(1.025);
}

.news-card-body {
  display: flex;
  height: 100%;
  flex-direction: column;
  padding: var(--space-6);
}

.news-card time,
.article-meta {
  margin-bottom: var(--space-4);
  color: var(--color-brand-700);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.news-card h2 {
  margin-bottom: var(--space-4);
  font-size: 1.35rem;
  font-weight: 600;
}

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

.news-card-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: auto;
  color: var(--color-brand-700);
  font-weight: 700;
}

.news-card-link::after {
  margin-left: 8px;
  content: "→";
  transition: transform 180ms ease-out;
}

.news-card:hover .news-card-link::after {
  transform: translateX(4px);
}

.news-card-link::before {
  position: absolute;
  content: "";
  inset: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-8);
  padding: 0;
  color: var(--color-ink-muted);
  font-size: 14px;
  list-style: none;
}

.breadcrumb li + li::before {
  margin-right: var(--space-2);
  content: "/";
}

.article-header {
  width: min(calc(100% - 48px), var(--content-max));
  margin-inline: auto;
  padding-block: var(--space-16) var(--space-12);
}

.article-header h1 {
  font-size: clamp(2.1rem, 4.4vw, 3rem);
}

.article-body {
  width: min(calc(100% - 48px), var(--content-max));
  margin-inline: auto;
  padding-bottom: var(--space-24);
}

.article-body p {
  margin-bottom: var(--space-6);
  font-size: 1.06rem;
  line-height: 1.9;
}

.article-figure {
  margin: var(--space-8) 0 var(--space-12);
}

.article-figure img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  background: var(--color-surface-cool);
}

.article-figure figcaption {
  margin-top: var(--space-3);
  color: var(--color-ink-muted);
  font-size: 14px;
}

.article-external {
  color: var(--color-brand-700);
  font-weight: 700;
}

.back-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  margin-top: var(--space-8);
  color: var(--color-brand-700);
  font-weight: 700;
}

.back-link::before {
  margin-right: 8px;
  content: "←";
  transition: transform 180ms ease-out;
}

.back-link:hover::before {
  transform: translateX(-4px);
}

.footer {
  padding-block: var(--space-16);
  color: #d9e7eb;
  background: var(--color-surface-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 4fr 2fr 4fr 2fr;
  gap: var(--space-8);
}

.footer-logo {
  width: 190px;
  filter: brightness(0) invert(1);
}

.footer-title {
  margin-bottom: var(--space-4);
  color: var(--color-signal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.footer-address {
  font-style: normal;
}

.footer .language-switch {
  border-color: #416371;
}

.footer .language-switch a + a {
  border-left-color: #416371;
}

.footer-note {
  margin: var(--space-12) 0 0;
  padding-top: var(--space-6);
  border-top: 1px solid #416371;
  color: #9db5bf;
  font-size: 13px;
}

@keyframes scan-in {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0);
  }
}

@media (max-width: 1023px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-inner {
    min-height: 610px;
  }

  .hero-copy {
    grid-column: 1 / span 9;
  }

  .solution-intro,
  .video-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-aside {
    position: static;
  }

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

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

@media (max-width: 767px) {
  :root {
    --header-height: 64px;
  }

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

  .section {
    padding-block: var(--space-16);
  }

  .brand img {
    width: 154px;
  }

  .brand {
    min-width: 0;
  }

  .hero {
    background:
      linear-gradient(rgb(8 47 62 / 82%), rgb(8 47 62 / 92%)),
      url("../images/og-image_1.jpg") 36% center / cover no-repeat;
  }

  .hero-inner {
    display: block;
    min-height: 0;
    padding-block: 72px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 10vw, 2.7rem);
    word-break: break-word;
  }

  .signal-wave {
    height: 54px;
  }

  .stats-grid,
  .problem-grid,
  .solution-track,
  .news-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    min-height: 0;
    padding: var(--space-8);
  }

  .problem-panel,
  .solution-step {
    min-height: 0;
    padding: var(--space-8);
  }

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

  .form-field,
  .form-field--full,
  .form-actions,
  .form-status,
  .privacy-field {
    grid-column: 1;
  }

  .page-hero {
    padding-block: var(--space-16);
  }

  .article-header,
  .article-body {
    width: min(calc(100% - 40px), var(--content-max));
  }

  .article-header {
    padding-block: var(--space-12) var(--space-8);
  }

  .article-body {
    padding-bottom: var(--space-16);
  }
}

@media (max-width: 479px) {
  .hero h1 {
    font-size: 34px;
    line-height: 1.08;
  }

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

  .button,
  .submit-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
