:root {
  --bg: #f3f7fb;
  --surface: #ffffff;
  --surface-alt: #eef3f9;
  --ink: #101828;
  --muted: #4f6075;
  --line: #d6e2f0;
  --brand: #0b7a93;
  --brand-strong: #055569;
  --accent: #ff7a3d;
  --shadow-soft: 0 10px 28px rgba(16, 24, 40, 0.08);
  --shadow-card: 0 18px 38px rgba(16, 24, 40, 0.12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --max: 1180px;
  --ease: 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", "Noto Sans TC", "PingFang SC", sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background:
    radial-gradient(circle at 8% -10%, rgba(11, 122, 147, 0.18), transparent 35%),
    radial-gradient(circle at 92% 8%, rgba(255, 122, 61, 0.13), transparent 30%),
    var(--bg);
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", "Plus Jakarta Sans", "Noto Sans TC", sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(243, 247, 251, 0.88);
  border-bottom: 1px solid rgba(214, 226, 240, 0.95);
}

.topbar {
  padding: 0.55rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.top-link,
.lang-switch {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.3rem 0.62rem;
  transition: all var(--ease);
}

.top-link:hover,
.lang-switch:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
}

.nav-shell {
  padding: 0.95rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(120deg, var(--brand-strong), var(--brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 0.82rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all var(--ease);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--brand-strong);
  border-color: rgba(11, 122, 147, 0.26);
  background: rgba(11, 122, 147, 0.07);
}

.subnav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0 0 0.82rem;
}

.subnav a {
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
}

.subnav a:hover {
  color: var(--brand-strong);
  border-color: var(--brand);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  width: 42px;
  height: 38px;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--ink);
}

main {
  padding-bottom: 3.4rem;
}

.page-main {
  min-height: 55vh;
}

.section {
  padding: clamp(2.6rem, 4.5vw, 4.6rem) 0;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
  padding-top: clamp(3rem, 5vw, 4.6rem);
}

.hero-copy h1 {
  font-size: clamp(2rem, 5vw, 3.9rem);
  margin: 0.8rem 0 1rem;
}

.hero-copy p {
  color: var(--muted);
  max-width: 760px;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.35rem;
}

.actions.inline {
  margin-top: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.08rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all var(--ease);
}

.btn-primary {
  background: linear-gradient(120deg, var(--brand), #21a2bf);
  color: #fff;
  box-shadow: 0 14px 24px rgba(11, 122, 147, 0.26);
}

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

.btn-outline {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
}

.hero-stats {
  display: grid;
  gap: 0.65rem;
}

.hero-stats article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.hero-stats strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.22rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.82rem;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 1.3rem;
}

.section-heading h1,
.section-heading h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.6rem);
  margin-bottom: 0.7rem;
}

.section-heading p {
  color: var(--muted);
  font-size: 1rem;
}

.row-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.row-heading > a {
  color: var(--brand-strong);
  font-weight: 700;
  font-size: 0.9rem;
}

.pillars-grid,
.card-grid,
.split-grid,
.story-layout {
  display: grid;
  gap: 0.9rem;
}

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

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

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

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

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

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

.feature-card,
.panel,
.image-card,
.scenario-card,
.news-card,
.case-row,
.article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.feature-card,
.panel,
.news-card,
.article {
  padding: 1.05rem;
}

.feature-card .index {
  display: inline-block;
  min-width: 44px;
  text-align: center;
  border-radius: 999px;
  background: rgba(11, 122, 147, 0.12);
  color: var(--brand-strong);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.image-card,
.scenario-card {
  overflow: hidden;
}

.image-card img,
.scenario-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.image-card h2,
.image-card h3,
.scenario-card h3 {
  padding: 0.9rem 1rem 0;
  font-size: 1.08rem;
}

.image-card p,
.scenario-card p,
.scenario-card small {
  display: block;
  padding: 0.45rem 1rem 1rem;
  color: var(--muted);
}

.image-card.tall img {
  height: 220px;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.74rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.stack-grid {
  display: grid;
  gap: 0.9rem;
}

.case-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  overflow: hidden;
}

.case-row > img {
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.case-row > div {
  padding: 1rem;
}

.case-row h2 {
  margin-bottom: 0.45rem;
}

.case-row p {
  color: var(--muted);
}

.case-row ul {
  margin: 0.8rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.35rem;
}

.news-card time,
.news-line time,
.article time {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(255, 122, 61, 0.14);
  color: #8a3a15;
  padding: 0.22rem 0.56rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.news-card h2,
.news-line h2 {
  margin: 0.65rem 0 0.45rem;
  font-size: 1.15rem;
}

.news-card p,
.news-line p,
.article p,
.panel p {
  color: var(--muted);
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.news-list li {
  border-bottom: 1px dashed var(--line);
  padding-bottom: 0.6rem;
}

.news-list time {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 0.22rem;
}

.news-list.compact a {
  font-weight: 600;
}

.inline-link {
  color: var(--brand-strong);
  font-size: 0.88rem;
  font-weight: 700;
}

.inline-link:hover {
  text-decoration: underline;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 620px;
}

th,
td {
  text-align: left;
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

th {
  background: var(--surface-alt);
  color: var(--muted);
}

.form-grid {
  display: grid;
  gap: 0.8rem;
}

.form-grid fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: grid;
  gap: 0.4rem;
}

.form-grid legend {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0 0.25rem;
}

.form-grid label {
  display: grid;
  gap: 0.32rem;
}

.form-grid input,
.form-grid textarea,
.inline-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.62rem 0.74rem;
  font: inherit;
}

.form-grid input:focus,
.form-grid textarea:focus,
.inline-form input:focus {
  outline: 2px solid rgba(11, 122, 147, 0.25);
  border-color: var(--brand);
}

.inline-form {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: end;
  gap: 0.8rem;
}

.inline-form label {
  color: var(--muted);
  font-size: 0.86rem;
}

.result {
  margin: 0;
  color: var(--brand-strong);
  font-weight: 700;
}

.hidden {
  display: none;
}

.plain-list,
.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.plain-list li,
.footer-list li {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-list.compact {
  max-height: 180px;
  overflow: auto;
}

.narrow {
  max-width: 720px;
}

.muted {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1rem;
  padding: 2rem 0;
}

.footer-grid h3,
.footer-grid h4 {
  margin-bottom: 0.45rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .card-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.55rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 0.6rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .site-nav.open {
    display: flex;
  }

  .subnav {
    padding-bottom: 0.7rem;
  }

  .row-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .case-row {
    grid-template-columns: 1fr;
  }

  .case-row > img {
    max-height: 240px;
  }

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

@media (max-width: 680px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-sub {
    display: none;
  }

  .subnav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.9rem;
  }

  .subnav a {
    white-space: nowrap;
  }

  .card-grid.two,
  .card-grid.three,
  .card-grid.four,
  .split-grid,
  .story-layout,
  .pillars-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
