:root {
  --glass-surface: rgba(255, 255, 255, 0.14);
  --glass-surface-strong: rgba(255, 255, 255, 0.24);
  --glass-surface-dark: rgba(6, 27, 24, 0.46);
  --glass-border: rgba(255, 255, 255, 0.46);
  --glass-border-soft: rgba(255, 255, 255, 0.2);
  --glass-blur: blur(22px) saturate(180%) brightness(1.04);
  --glass-shadow:
    0 22px 60px rgba(1, 18, 16, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  --glass-radius: 28px;
  --glass-radius-pill: 999px;
}

body {
  background:
    linear-gradient(180deg, #eaf0ea 0%, #f4f5ee 42%, #e6eee9 100%);
}

.liquid-surface {
  isolation: isolate;
}

.header-inner,
.button,
.language-button,
.menu-button,
.hero-category,
.hero-tags,
.hero-coordinate,
.value-row,
.route-experience,
.idea-track,
.postcard-form,
.theme-swatch,
.about-grid,
.ai-note,
.creator-stamp,
.footer-link {
  position: relative;
}

.liquid-surface::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(
      circle at var(--glass-x, 50%) var(--glass-y, 0%),
      rgba(255, 255, 255, 0.46) 0%,
      rgba(255, 255, 255, 0.16) 18%,
      rgba(255, 255, 255, 0) 52%
    );
  content: "";
  opacity: calc(var(--glass-hover, 0) * 0.8);
  pointer-events: none;
  transition: opacity 180ms ease;
}

.liquid-surface::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background:
    linear-gradient(
      var(--glass-light-angle, 135deg),
      rgba(255, 255, 255, 0.02) 0%,
      rgba(255, 255, 255, 0.38) 30%,
      rgba(255, 255, 255, 0.82) 62%,
      rgba(255, 255, 255, 0.08) 100%
    );
  content: "";
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.66;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.site-header {
  padding-top: 12px;
}

.site-header,
.site-header.is-scrolled,
.site-header.menu-active {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header-inner {
  height: 64px;
  padding: 0 14px 0 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius-pill);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06)),
    rgba(8, 27, 24, 0.28);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition:
    background-color 240ms ease,
    color 240ms ease,
    box-shadow 240ms ease;
}

.site-header.is-scrolled .header-inner,
.site-header.menu-active .header-inner {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.2)),
    rgba(240, 244, 238, 0.42);
  color: var(--ink);
  box-shadow:
    0 16px 44px rgba(5, 24, 21, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.brand-mark,
.language-button,
.menu-button {
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 8px 18px rgba(0, 20, 17, 0.08);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

.desktop-nav a {
  padding: 8px 2px;
}

.mobile-menu {
  width: min(calc(100% - 64px), var(--shell));
  margin: 8px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 26px;
  background: rgba(239, 244, 238, 0.76);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
}

.hero-media img {
  filter: saturate(1.12) contrast(1.05);
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(3, 19, 17, 0.36) 0%, rgba(3, 19, 17, 0.02) 30%, rgba(3, 19, 17, 0.2) 58%, rgba(3, 19, 17, 0.9) 100%),
    linear-gradient(90deg, rgba(3, 19, 17, 0.5) 0%, rgba(3, 19, 17, 0.02) 68%);
}

.hero-category {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--glass-radius-pill);
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 10px 30px rgba(0, 15, 13, 0.1);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
}

.hero h1 {
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1),
    0 20px 55px rgba(0, 12, 10, 0.26);
}

.hero-coordinate {
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
}

.hero-tags {
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--glass-radius-pill);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

.button,
.language-button,
.menu-button,
.theme-swatch,
.footer-link {
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.46);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    0 12px 32px rgba(2, 25, 21, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transform:
    translate3d(var(--glass-shift-x, 0), var(--glass-shift-y, 0), 0)
    scale(var(--glass-scale-x, 1), var(--glass-scale-y, 1));
  transition:
    transform 160ms ease-out,
    color 200ms ease,
    background-color 200ms ease,
    box-shadow 200ms ease;
}

.button {
  border-radius: var(--glass-radius-pill);
}

.button:hover,
.language-button:hover,
.menu-button:hover,
.theme-swatch:hover,
.footer-link:hover {
  transform:
    translate3d(var(--glass-shift-x, 0), calc(var(--glass-shift-y, 0px) - 2px), 0)
    scale(var(--glass-scale-x, 1), var(--glass-scale-y, 1));
  box-shadow:
    0 18px 44px rgba(2, 25, 21, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.button:active,
.language-button:active,
.menu-button:active,
.theme-swatch:active {
  transform:
    translate3d(var(--glass-shift-x, 0), 1px, 0)
    scale(0.97);
}

.button-primary {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.06)),
    rgba(245, 104, 73, 0.62);
  color: var(--white);
}

.button-primary:hover {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.08)),
    rgba(245, 104, 73, 0.76);
}

.button-ghost {
  color: var(--white);
}

.button-dark,
.button-outline {
  border-color: rgba(255, 255, 255, 0.44);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.04)),
    rgba(10, 45, 40, 0.34);
  color: var(--white);
}

.button-dark:hover,
.button-outline:hover {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.08)),
    rgba(9, 70, 61, 0.56);
  color: var(--white);
}

.manifesto {
  background: transparent;
}

.value-row {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--glass-radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.3)),
    rgba(255, 255, 255, 0.26);
  box-shadow:
    0 26px 70px rgba(18, 60, 51, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.moving-line {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 27, 24, 0.94);
}

.route-section {
  overflow: hidden;
  background: #081e1a;
  color: var(--white);
}

.route-section::before,
.postcard-section::before {
  position: absolute;
  inset: 0;
  background: url("assets/images/shenzhen-bay-800.webp") center / cover;
  content: "";
  filter: saturate(1.12) contrast(1.04);
  opacity: 0.32;
}

.route-section::after,
.postcard-section::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 19, 17, 0.62), rgba(4, 19, 17, 0.86)),
    linear-gradient(90deg, rgba(5, 34, 29, 0.5), rgba(5, 22, 20, 0.12));
  content: "";
}

.route-section > .section-shell,
.postcard-section > .section-shell {
  position: relative;
  z-index: 1;
}

.route-section .section-index,
.route-section .eyebrow,
.postcard-section .section-index,
.postcard-section .eyebrow {
  color: var(--lime);
}

.route-section .section-intro {
  color: rgba(255, 254, 249, 0.7);
}

.route-experience {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 34px;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.035)),
    rgba(5, 26, 23, 0.34);
  box-shadow:
    0 34px 100px rgba(0, 10, 8, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(30px) saturate(170%);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
}

.route-tabs {
  border-right-color: rgba(255, 255, 255, 0.16);
  background: rgba(7, 27, 24, 0.16);
}

.route-tab {
  overflow: hidden;
  border-bottom-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.025);
  color: var(--white);
}

.route-tab:hover,
.route-tab:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.route-tab.is-active {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.02)),
    rgba(4, 21, 18, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 18px 36px rgba(0, 12, 10, 0.18);
}

.route-tab-copy small {
  color: rgba(255, 254, 249, 0.56);
}

.route-stage {
  background: rgba(4, 19, 17, 0.28);
}

.route-panel {
  right: 26px;
  bottom: 26px;
  left: 26px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.025)),
    rgba(4, 23, 20, 0.45);
  box-shadow:
    0 20px 50px rgba(0, 10, 8, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.route-stage-mark {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--glass-radius-pill);
  background: rgba(6, 25, 22, 0.28);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

.idea-track {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--glass-radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.28)),
    rgba(255, 255, 255, 0.22);
  box-shadow:
    0 26px 70px rgba(18, 60, 51, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.idea-step {
  padding-right: 28px;
  padding-left: 28px;
}

.idea-step:first-child {
  padding-left: 32px;
}

.idea-step:last-child {
  padding-right: 32px;
}

.ideas-quote {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.02)),
    rgba(4, 25, 22, 0.74);
  box-shadow:
    0 30px 80px rgba(2, 28, 24, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.postcard-section {
  position: relative;
  overflow: hidden;
  background: #0a201c;
  color: var(--white);
}

.postcard-section::before {
  background-image: url("assets/images/nantou-800.webp");
  opacity: 0.28;
}

.postcard-section::after {
  background:
    linear-gradient(180deg, rgba(4, 21, 18, 0.55), rgba(4, 21, 18, 0.84)),
    linear-gradient(90deg, rgba(64, 25, 17, 0.55), rgba(6, 28, 24, 0.38));
}

.postcard-heading .section-index,
.postcard-heading .eyebrow {
  color: #ffd8cd;
}

.postcard-section .section-intro {
  color: rgba(255, 254, 249, 0.72);
}

.postcard-form {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.035)),
    rgba(5, 27, 24, 0.34);
  box-shadow:
    0 30px 80px rgba(0, 10, 8, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
}

.postcard-form .form-field label,
.postcard-form .form-field legend {
  color: rgba(255, 254, 249, 0.82);
}

.postcard-form .form-field input,
.postcard-form .form-field select {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.postcard-form .form-field input::placeholder {
  color: rgba(255, 254, 249, 0.45);
}

.postcard-form .form-field input:focus,
.postcard-form .form-field select:focus {
  border-color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.18);
}

.postcard-form .form-field select option {
  background: var(--white);
  color: var(--ink);
}

.field-hint {
  color: rgba(255, 254, 249, 0.52);
}

.theme-swatch {
  border-radius: var(--glass-radius-pill);
  color: var(--white);
}

.theme-swatch.is-active {
  border-color: rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    0 10px 24px rgba(0, 8, 7, 0.2);
}

.canvas-wrap {
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 30px;
  box-shadow:
    0 32px 90px rgba(0, 8, 7, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.card-status {
  color: rgba(255, 254, 249, 0.66);
}

.about-section {
  background:
    linear-gradient(180deg, #edf2ed 0%, #f4f5ee 100%);
}

.about-grid {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--glass-radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.24)),
    rgba(255, 255, 255, 0.2);
  box-shadow:
    0 28px 74px rgba(18, 60, 51, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.about-note {
  padding-right: 32px;
  padding-left: 32px;
}

.about-note:first-child {
  padding-left: 34px;
}

.ai-note {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.2)),
    rgba(205, 225, 212, 0.38);
  box-shadow:
    0 20px 58px rgba(18, 60, 51, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.creator-stamp {
  background: rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 16px 40px rgba(18, 60, 51, 0.08);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.footer-link {
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--glass-radius-pill);
  color: var(--white);
}

.site-footer {
  background:
    linear-gradient(180deg, #071a17 0%, #030f0d 100%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header-inner,
  .hero-coordinate,
  .hero-tags,
  .route-experience,
  .route-panel,
  .postcard-form,
  .about-grid,
  .ai-note,
  .idea-track,
  .value-row {
    background: rgba(20, 45, 40, 0.88);
    color: var(--white);
  }
}

@media (max-width: 860px) {
  .site-header {
    padding-top: 8px;
  }

  .header-inner {
    height: 58px;
    padding: 0 10px 0 16px;
  }

  .mobile-menu {
    width: calc(100% - 32px);
  }

  .route-experience {
    border-radius: 26px;
  }

  .route-panel {
    right: 18px;
    bottom: 18px;
    left: 18px;
    padding: 22px;
  }

  .canvas-wrap,
  .postcard-form {
    border-radius: 24px;
  }

  .about-note,
  .about-note:first-child {
    padding-right: 24px;
    padding-left: 24px;
  }
}

@media (max-width: 600px) {
  .hero-coordinate {
    display: none;
  }

  .hero-category {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 10px;
  }

  .hero-tags {
    padding: 9px 12px;
  }

  .route-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .route-panel p {
    font-size: 12px;
    line-height: 1.75;
  }

  .postcard-form {
    padding: 24px;
  }

  .idea-track {
    border-radius: 24px;
  }

  .about-grid {
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .liquid-surface::before {
    opacity: 0.18;
  }

  .button,
  .language-button,
  .menu-button,
  .theme-swatch,
  .footer-link {
    transform: none;
  }

  .button:hover,
  .language-button:hover,
  .menu-button:hover,
  .theme-swatch:hover,
  .footer-link:hover {
    transform: none;
  }
}
