:root {
  --bg: #f4f7fb;
  --bg-alt: #edf2f7;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --surface-dark: #102033;
  --surface-dark-2: #16283f;
  --text: #132033;
  --text-muted: #526072;
  --text-inverse: #eaf1f8;
  --line: rgba(19, 32, 51, 0.12);
  --line-strong: rgba(125, 151, 180, 0.24);
  --brand: #12345b;
  --brand-strong: #0a1d33;
  --brand-accent: #1d8ef0;
  --brand-cyan: #5dd6ff;
  --steel: #6c7888;
  --silver: #c4d0dc;
  --orange: #b7702f;
  --shadow: 0 20px 60px rgba(7, 19, 35, 0.08);
  --shadow-strong: 0 24px 80px rgba(8, 17, 30, 0.16);
  --radius: 28px;
  --radius-sm: 20px;
  --content-width: min(1180px, calc(100vw - 40px));
  --font-latin: Inter, "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-cjk: "Noto Sans TC", "Source Han Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-latin), var(--font-cjk);
  background:
    radial-gradient(circle at top left, rgba(29, 142, 240, 0.08), transparent 28%),
    linear-gradient(180deg, #f7f9fc 0%, #eff4fa 45%, #f7f9fc 100%);
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-header,
.page-shell,
.site-footer,
.metric-strip,
.trust-rail {
  width: var(--content-width);
  margin: 0 auto;
}

.site-header {
  margin-top: 20px;
  padding: 20px 24px 22px;
  border: 1px solid rgba(93, 214, 255, 0.12);
  border-radius: 0 0 var(--radius) var(--radius);
  background:
    linear-gradient(135deg, rgba(20, 48, 84, 0.98), rgba(10, 29, 51, 0.98)),
    linear-gradient(180deg, rgba(93, 214, 255, 0.12), transparent 55%);
  color: var(--text-inverse);
  box-shadow: var(--shadow-strong);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.site-header::after {
  content: "";
  display: block;
  margin-top: 18px;
  height: 1px;
  background: linear-gradient(90deg, rgba(93, 214, 255, 0.2), rgba(93, 214, 255, 0));
}

.header-bar,
.site-nav,
.hero-actions,
.news-meta,
.footer-links {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.brandmark {
  display: grid;
  gap: 8px;
  max-width: 540px;
}

.brandmark-kicker,
.eyebrow,
.timeline-year,
.metric-label,
.text-link,
.footer-list span,
.news-meta span {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brandmark-kicker,
.locale-switch,
.nav-link,
.footer-list span {
  color: rgba(234, 241, 248, 0.76);
}

.brandmark strong {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.4;
}

.site-nav {
  justify-content: flex-start;
  margin-top: 16px;
}

.nav-link,
.locale-switch,
.button,
.text-link {
  transition:
    transform 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.nav-link,
.locale-switch {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav-link:hover,
.locale-switch:hover,
.button:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.nav-link:hover,
.locale-switch:hover,
.nav-link.is-active {
  color: #fff;
  border-color: rgba(93, 214, 255, 0.26);
  background: rgba(255, 255, 255, 0.05);
}

.page-shell {
  padding: 36px 0 84px;
  display: grid;
  gap: 28px;
}

.section-frame {
  position: relative;
  overflow: hidden;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(18, 52, 91, 0.03), transparent 34%),
    var(--surface);
  box-shadow: var(--shadow);
}

.section-frame::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 160px;
  height: 1px;
  background: linear-gradient(90deg, rgba(29, 142, 240, 0.32), transparent);
}

.section-frame-dark {
  border-color: rgba(93, 214, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(93, 214, 255, 0.08), transparent 30%),
    linear-gradient(180deg, var(--surface-dark), var(--surface-dark-2));
  color: var(--text-inverse);
}

.section-frame-dark .eyebrow,
.section-frame-dark .metric-label,
.section-frame-dark .text-link,
.section-frame-dark p,
.section-frame-dark li,
.section-frame-dark dd {
  color: rgba(234, 241, 248, 0.8);
}

.section-frame-dark h2,
.section-frame-dark h3,
.section-frame-dark summary {
  color: #fff;
}

.section-frame-hero {
  padding-top: 44px;
}

.hero-grid,
.module-grid,
.timeline-grid,
.contact-grid,
.footer-grid,
.trust-rail {
  display: grid;
  gap: 22px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: stretch;
}

.hero-copy,
.section-copy,
.module-header,
.spotlight-card {
  display: grid;
  gap: 16px;
  align-content: start;
}

.hero-copy h1,
.section-copy h2,
.module-header h2,
.trust-card h2,
.spotlight-card h2,
.footer-grid h2,
.error-shell h1 {
  margin: 0;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 5vw, 5rem);
}

.section-copy h2,
.module-header h2,
.trust-card h2,
.spotlight-card h2,
.footer-grid h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.lede,
.section-copy p,
.module-header p,
.module-card p,
.trust-card p,
.timeline-card p,
.footer-copy,
.contact-card p,
.article-section p,
.spotlight-card p,
.error-shell p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.85;
}

.section-frame-dark .lede,
.section-frame-dark .footer-copy {
  color: rgba(234, 241, 248, 0.78);
}

.hero-actions {
  justify-content: flex-start;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.button {
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
}

.button-primary {
  background: linear-gradient(135deg, var(--brand-accent), #1270d4);
  color: #fff;
  box-shadow: 0 12px 30px rgba(29, 142, 240, 0.22);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.84);
  color: var(--brand);
}

.text-link {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(29, 142, 240, 0.3);
  color: var(--brand);
  font-weight: 600;
}

.hero-media,
.module-card,
.timeline-card,
.metric-card,
.trust-card,
.contact-card,
.news-card,
.spotlight-card,
.faq-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-media {
  padding: 18px;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(18, 52, 91, 0.08), rgba(18, 52, 91, 0.02)),
    linear-gradient(180deg, #fdfefe, #f4f8fc);
}

.hero-media img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-sm) - 8px);
  background: linear-gradient(180deg, rgba(16, 32, 51, 0.9), rgba(20, 48, 84, 0.58));
}

.hero-media figcaption {
  margin-top: 12px;
  color: var(--text-muted);
  line-height: 1.7;
}

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

.metric-card,
.trust-card,
.contact-card,
.module-card,
.timeline-card,
.news-card,
.spotlight-card {
  padding: 24px;
}

.metric-card::before,
.trust-card::before,
.module-card::before,
.timeline-card::before,
.news-card::before,
.contact-card::before,
.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-cyan), transparent 55%);
}

.trust-card-accent::before,
.contact-card-emphasis::before,
.spotlight-card::before {
  background: linear-gradient(90deg, var(--brand-accent), rgba(183, 112, 47, 0.75));
}

.metric-value {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--brand-strong);
}

.metric-label {
  color: var(--steel);
}

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

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

.module-card h3,
.timeline-card h3,
.trust-card h2,
.contact-card h3,
.news-card h3 {
  margin: 10px 0 12px;
  line-height: 1.22;
}

.module-card ul,
.contact-card ul,
.footer-links,
.footer-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
  line-height: 1.8;
}

.section-frame-dark .module-card,
.section-frame-dark .timeline-card {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}

.section-frame-dark .metric-value {
  color: #fff;
}

.case-grid {
  display: grid;
  gap: 14px;
  margin: 14px 0 0;
}

.case-grid dt {
  font-weight: 700;
  color: var(--brand);
}

.case-grid dd {
  margin: 4px 0 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.timeline-year {
  color: var(--brand-accent);
}

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

.faq-item {
  padding: 20px 22px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin-top: 12px;
}

.news-meta {
  margin-top: 18px;
  justify-content: space-between;
}

.footer-grid {
  grid-template-columns: 1.1fr 0.85fr 0.95fr;
}

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

.footer-list li {
  display: grid;
  gap: 4px;
}

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

.article-shell {
  gap: 22px;
}

.article-section {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-section p + p {
  margin-top: 14px;
}

.error-shell {
  width: min(700px, calc(100vw - 40px));
  margin: 100px auto;
  padding: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

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

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

.trust-card:hover,
.module-card:hover,
.timeline-card:hover,
.contact-card:hover,
.news-card:hover,
.spotlight-card:hover,
.hero-media:hover,
.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 70px rgba(8, 17, 30, 0.12);
}

.trust-card,
.module-card,
.timeline-card,
.contact-card,
.news-card,
.spotlight-card,
.hero-media,
.metric-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.trust-card:hover,
.module-card:hover,
.contact-card:hover,
.news-card:hover {
  border-color: rgba(29, 142, 240, 0.24);
}

@media (max-width: 1100px) {
  .hero-grid,
  .timeline-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .metric-strip,
  .trust-rail,
  .module-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header,
  .section-frame,
  .article-section,
  .error-shell {
    padding: 22px;
  }

  .page-shell {
    padding-top: 24px;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .site-header {
    border-radius: 0 0 24px 24px;
  }
}
