:root {
  color-scheme: dark;
  --page-bg: #03192d;
  --page-bg-deep: #011321;
  --panel-bg: rgba(2, 23, 40, 0.94);
  --text: #f8fafc;
  --text-soft: #dce6ec;
  --line: #64839a;
  --line-soft: rgba(116, 154, 180, 0.26);
  --accent: #d8ad70;
  --accent-light: #efcb95;
  --accent-deep: #ad7940;
  --focus: #fff0cc;
  --page-gutter: clamp(1.5rem, 4vw, 4rem);
  --content-width: 91rem;
  --cut: 1.7rem;
}

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

html {
  min-width: 20rem;
  background: var(--page-bg);
}

body {
  margin: 0;
  min-width: 20rem;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 38%, rgba(9, 58, 91, 0.2), transparent 36%),
    linear-gradient(135deg, var(--page-bg-deep) 0%, var(--page-bg) 48%, #041c31 100%);
  color: var(--text);
  font-family:
    "PingFang TC",
    "Noto Sans TC",
    "Microsoft JhengHei",
    "Helvetica Neue",
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(2.5rem, 5.6vh, 4.5rem) var(--page-gutter) clamp(1.5rem, 3.2vh, 2.1rem);
  overflow: hidden;
}

.page-shell::before {
  position: absolute;
  z-index: -3;
  inset: 0;
  background-image:
    linear-gradient(rgba(118, 153, 177, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 153, 177, 0.035) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 50%, #000 100%);
  content: "";
}

.engineering-backdrop {
  position: absolute;
  z-index: -2;
  top: -7rem;
  right: -7rem;
  width: min(47rem, 54vw);
  aspect-ratio: 1;
  opacity: 0.56;
  pointer-events: none;
}

.engineering-backdrop::before,
.engineering-backdrop::after {
  position: absolute;
  content: "";
}

.engineering-backdrop::before {
  inset: 0;
  background:
    linear-gradient(rgba(125, 161, 186, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 161, 186, 0.12) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  mask-image: radial-gradient(circle, #000 25%, transparent 72%);
}

.engineering-backdrop::after {
  top: 48%;
  left: 13%;
  width: 74%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-soft) 12%, var(--line-soft) 88%, transparent);
}

.blueprint-circle,
.blueprint-axis,
.blueprint-node {
  position: absolute;
  display: block;
}

.blueprint-circle {
  top: 50%;
  left: 50%;
  border: 1px solid rgba(119, 158, 184, 0.45);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.blueprint-circle--outer {
  width: 58%;
  aspect-ratio: 1;
}

.blueprint-circle--middle {
  width: 38%;
  aspect-ratio: 1;
}

.blueprint-circle--inner {
  width: 22%;
  aspect-ratio: 1;
}

.blueprint-axis--horizontal {
  top: 50%;
  left: 20%;
  width: 60%;
  height: 1px;
  background: rgba(119, 158, 184, 0.42);
}

.blueprint-axis--vertical {
  top: 20%;
  left: 50%;
  width: 1px;
  height: 60%;
  background: rgba(119, 158, 184, 0.42);
}

.blueprint-node {
  width: 6%;
  aspect-ratio: 1;
  border: 1px solid rgba(119, 158, 184, 0.55);
  border-radius: 50%;
}

.blueprint-node::before,
.blueprint-node::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(119, 158, 184, 0.45);
  content: "";
  transform: translate(-50%, -50%);
}

.blueprint-node::before {
  width: 150%;
  height: 1px;
}

.blueprint-node::after {
  width: 1px;
  height: 150%;
}

.blueprint-node--top {
  top: 22%;
  right: 21%;
}

.blueprint-node--right {
  top: 47%;
  right: 18%;
}

.blueprint-node--bottom {
  right: 53%;
  bottom: 19%;
}

.brand-header,
.page-content,
.site-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
}

.brand-header {
  display: flex;
  align-items: flex-start;
}

.brand-mark {
  display: inline-flex;
  width: clamp(20rem, 41vw, 38.5rem);
  max-width: 100%;
  border-radius: 0.2rem;
  outline: none;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.brand-mark:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 0.7rem;
}

.page-content {
  align-self: center;
  margin-block: clamp(3.7rem, 8vh, 7rem) clamp(3rem, 5.5vh, 5rem);
}

.hero {
  max-width: 68rem;
}

.hero h1,
.hero p,
.official-copy h2,
.official-copy p,
.site-footer p {
  margin: 0;
}

.hero h1 {
  color: var(--text);
  font-size: clamp(3rem, 4.75vw, 5rem);
  font-weight: 740;
  letter-spacing: 0.025em;
  line-height: 1.12;
  text-wrap: balance;
}

.hero p {
  margin-top: clamp(1.6rem, 3.1vh, 2.4rem);
  color: var(--text-soft);
  font-size: clamp(1.25rem, 1.85vw, 1.85rem);
  font-weight: 430;
  letter-spacing: 0.035em;
  line-height: 1.65;
}

.official-card {
  margin-top: clamp(3.4rem, 7vh, 5.6rem);
  padding: 2px;
  background: linear-gradient(110deg, var(--accent) 0%, var(--line) 33%, #4c6f88 70%, var(--line) 100%);
  clip-path: polygon(
    var(--cut) 0,
    calc(100% - var(--cut)) 0,
    100% var(--cut),
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    var(--cut) 100%,
    0 calc(100% - var(--cut)),
    0 var(--cut)
  );
}

.official-card__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(21rem, 0.62fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
  min-height: clamp(12.6rem, 22vh, 15rem);
  padding: clamp(2.3rem, 4.5vh, 3.4rem) clamp(2rem, 4.2vw, 4.25rem);
  background:
    linear-gradient(90deg, rgba(5, 31, 52, 0.38), transparent 65%),
    var(--panel-bg);
  clip-path: inherit;
}

.official-destination {
  display: flex;
  align-items: center;
  gap: clamp(1.6rem, 2.8vw, 3rem);
  min-width: 0;
}

.globe-icon {
  flex: 0 0 auto;
  width: clamp(4.8rem, 8vw, 7rem);
  height: auto;
  color: var(--accent-light);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.official-copy {
  min-width: 0;
}

.official-copy h2 {
  color: var(--text);
  font-size: clamp(1.75rem, 2.5vw, 2.45rem);
  font-weight: 730;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.official-copy p {
  margin-top: 1.35rem;
  color: var(--text);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.25rem, 2vw, 2.05rem);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.official-divider {
  width: 1px;
  height: 76%;
  background: linear-gradient(transparent, rgba(226, 238, 246, 0.8) 14%, rgba(226, 238, 246, 0.8) 86%, transparent);
}

.official-link {
  position: relative;
  display: flex;
  gap: 1.8rem;
  align-items: center;
  justify-content: center;
  min-height: 7rem;
  padding: 1.4rem 2.5rem;
  overflow: hidden;
  background:
    linear-gradient(115deg, var(--accent-light), var(--accent) 55%, #c39458);
  clip-path: polygon(
    1.15rem 0,
    calc(100% - 1.15rem) 0,
    100% 1.15rem,
    100% calc(100% - 1.15rem),
    calc(100% - 1.15rem) 100%,
    1.15rem 100%,
    0 calc(100% - 1.15rem),
    0 1.15rem
  );
  color: #06223a;
  font-size: clamp(1.3rem, 1.75vw, 1.75rem);
  font-weight: 760;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  box-shadow: inset 0 0 0 2px rgba(255, 235, 198, 0.6);
  transition: filter 180ms ease, transform 180ms ease;
}

.official-link::before {
  position: absolute;
  inset: 0.35rem;
  border: 1px solid rgba(112, 71, 31, 0.52);
  clip-path: inherit;
  content: "";
  pointer-events: none;
}

.official-link span,
.official-link svg {
  position: relative;
  z-index: 1;
}

.official-link svg {
  flex: 0 0 auto;
  width: 2.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 180ms ease;
}

.official-link:hover {
  filter: brightness(1.08) saturate(1.03);
  transform: translateY(-2px);
}

.official-link:hover svg {
  transform: translateX(0.35rem);
}

.official-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 0.55rem;
}

.site-footer {
  padding-top: clamp(1.65rem, 3vh, 2.3rem);
  border-top: 1px solid rgba(134, 168, 191, 0.48);
  color: rgba(248, 250, 252, 0.9);
  text-align: center;
}

.site-footer p {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(0.8rem, 1vw, 1rem);
  letter-spacing: 0.035em;
  line-height: 1.45;
}

@media (max-width: 56rem) {
  :root {
    --cut: 1.3rem;
  }

  .engineering-backdrop {
    top: -3rem;
    right: -14rem;
    width: 42rem;
    opacity: 0.36;
  }

  .page-content {
    margin-block: clamp(3.5rem, 8vh, 5.5rem) 3.5rem;
  }

  .official-card__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .official-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(226, 238, 246, 0.72) 14%, rgba(226, 238, 246, 0.72) 86%, transparent);
  }

  .official-link {
    width: 100%;
    min-height: 5.75rem;
  }
}

@media (max-width: 38rem) {
  :root {
    --page-gutter: 1.25rem;
    --cut: 1rem;
  }

  .page-shell {
    padding-top: 2rem;
    padding-bottom: 1.4rem;
  }

  .brand-mark {
    width: min(100%, 20.5rem);
  }

  .page-content {
    margin-block: 4.2rem 3.6rem;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 11.5vw, 3.35rem);
    letter-spacing: 0.005em;
    line-height: 1.18;
  }

  .hero p {
    margin-top: 1.4rem;
    font-size: 1.13rem;
    letter-spacing: 0.02em;
    line-height: 1.7;
  }

  .official-card {
    margin-top: 3rem;
  }

  .official-card__inner {
    gap: 1.7rem;
    min-height: auto;
    padding: 2.1rem 1.45rem 1.55rem;
  }

  .official-destination {
    align-items: flex-start;
    gap: 1.2rem;
  }

  .globe-icon {
    width: 3.9rem;
  }

  .official-copy h2 {
    font-size: 1.55rem;
  }

  .official-copy p {
    margin-top: 0.8rem;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    line-height: 1.5;
  }

  .official-link {
    gap: 1rem;
    min-height: 4.85rem;
    padding-inline: 1.4rem;
    font-size: 1.08rem;
    letter-spacing: 0.045em;
  }

  .official-link svg {
    width: 1.65rem;
  }

  .site-footer {
    padding-top: 1.3rem;
  }

  .site-footer p {
    font-size: 0.74rem;
  }
}

@media (min-width: 56.01rem) and (max-height: 48rem) {
  .page-shell {
    padding-top: 2rem;
    padding-bottom: 1.4rem;
  }

  .brand-mark {
    width: 30rem;
  }

  .page-content {
    margin-block: 2.6rem 2.4rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 4vw, 4.2rem);
  }

  .hero p {
    margin-top: 1.2rem;
    font-size: 1.35rem;
  }

  .official-card {
    margin-top: 2.6rem;
  }

  .official-card__inner {
    min-height: 10.5rem;
    padding-block: 1.8rem;
  }

  .official-link {
    min-height: 5.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .official-link,
  .official-link svg {
    transition: none;
  }
}
