/*
  Xnapper 中文站公共樣式
  編碼：UTF-8
  說明：全站統一使用系統字體，不載入 Google Fonts。
*/

:root {
  --xn-purple-50: #faf5ff;
  --xn-purple-100: #f3e8ff;
  --xn-purple-200: #e9d5ff;
  --xn-purple-300: #d8b4fe;
  --xn-purple-400: #c084fc;
  --xn-purple-500: #a855f7;
  --xn-purple-600: #9333ea;
  --xn-purple-700: #7e22ce;
  --xn-purple-800: #6b21a8;
  --xn-purple-900: #581c87;
  --xn-ink-950: #170b25;
  --xn-ink-900: #211233;
  --xn-ink-700: #493a5d;
  --xn-ink-500: #706181;
  --xn-ink-300: #b8adc7;
  --xn-paper: #fffdf9;
  --xn-white: #ffffff;
  --xn-line: rgba(88, 47, 133, 0.14);
  --xn-shadow-soft: 0 18px 60px rgba(77, 31, 124, 0.12);
  --xn-shadow-card: 0 22px 70px rgba(66, 24, 108, 0.16);
  --xn-radius-lg: 28px;
  --xn-radius-md: 20px;
  --xn-radius-sm: 14px;
  --xn-container: 1180px;
  --xn-header-height: 78px;
  --xn-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --xn-font-latin: "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--xn-header-height) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--xn-ink-900);
  background: var(--xn-paper);
  font-family: var(--xn-font-sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.xn-menu-open {
  overflow: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

video {
  background: #eee8f6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

::selection {
  color: #ffffff;
  background: var(--xn-purple-600);
}

:focus-visible {
  outline: 3px solid rgba(168, 85, 247, 0.42);
  outline-offset: 3px;
}

.xn-container {
  width: min(100% - 40px, var(--xn-container));
  margin-inline: auto;
}

.xn-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ========== 公共按鈕樣式 ========== */
.xn-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
  white-space: nowrap;
}

.xn-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.xn-btn:hover {
  transform: translateY(-2px);
}

.xn-btn:active {
  transform: translateY(0);
}

.xn-btn--primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--xn-purple-500) 0%, var(--xn-purple-600) 54%, #7c22ce 100%);
  box-shadow: 0 14px 34px rgba(147, 51, 234, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.xn-btn--primary:hover {
  box-shadow: 0 18px 42px rgba(147, 51, 234, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.xn-btn--secondary {
  color: var(--xn-purple-800);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(147, 51, 234, 0.24);
  box-shadow: 0 10px 24px rgba(74, 35, 115, 0.08);
}

.xn-btn--secondary:hover {
  border-color: rgba(147, 51, 234, 0.42);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(74, 35, 115, 0.12);
}

.xn-btn--light {
  color: var(--xn-purple-900);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(29, 7, 54, 0.2);
}

.xn-btn--outline-light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.xn-btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.46);
}

.xn-btn--small {
  min-height: 42px;
  padding-inline: 16px;
  border-radius: 12px;
  font-size: 14px;
}

/* ========== 導航 header 樣式 ========== */
.xn-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--xn-header-height);
  background: rgba(255, 253, 249, 0.82);
  border-bottom: 1px solid rgba(91, 45, 135, 0.1);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
}

.xn-header__inner {
  width: min(100% - 40px, 1240px);
  min-height: var(--xn-header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.xn-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  min-width: 0;
}

.xn-brand__logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(147, 51, 234, 0.22);
}

.xn-brand__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.05;
}

.xn-brand__name {
  color: var(--xn-ink-950);
  font-family: var(--xn-font-latin);
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.xn-brand__author {
  margin-top: 4px;
  color: var(--xn-ink-500);
  font-family: var(--xn-font-latin);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.xn-desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1 1 auto;
}

.xn-desktop-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  color: var(--xn-ink-700);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  transition: color 160ms ease, background 160ms ease;
}

.xn-desktop-nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--xn-purple-500), var(--xn-purple-600));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.xn-desktop-nav__link:hover {
  color: var(--xn-purple-800);
  background: rgba(168, 85, 247, 0.08);
}

.xn-desktop-nav__link:hover::after,
.xn-desktop-nav__link.is-active::after {
  transform: scaleX(1);
}

.xn-desktop-nav__link.is-active {
  color: var(--xn-purple-800);
  background: rgba(168, 85, 247, 0.1);
}

.xn-header__actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
}

/* ========== 語言切換樣式 ========== */
.xn-language {
  position: relative;
  flex: 0 0 auto;
}

.xn-language__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 11px;
  color: var(--xn-ink-700);
  border: 1px solid rgba(147, 51, 234, 0.17);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 9px 22px rgba(74, 35, 115, 0.07);
  font-size: 13px;
  font-weight: 750;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.xn-language__toggle:hover,
.xn-language.is-open .xn-language__toggle {
  color: var(--xn-purple-800);
  border-color: rgba(147, 51, 234, 0.34);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(74, 35, 115, 0.1);
}

.xn-language__globe {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.xn-language__chevron {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  transition: transform 170ms ease;
}

.xn-language.is-open .xn-language__chevron {
  transform: rotate(180deg);
}

.xn-language__menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 1003;
  width: 278px;
  padding: 9px;
  border: 1px solid rgba(147, 51, 234, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 68px rgba(55, 21, 91, 0.18);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transform-origin: right top;
  transition: opacity 170ms ease, visibility 170ms ease, transform 170ms ease;
}

.xn-language.is-open .xn-language__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.xn-language__link {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 58px;
  padding: 9px 10px;
  border-radius: 14px;
  color: var(--xn-ink-900);
  transition: background 160ms ease, transform 160ms ease;
}

.xn-language__link:hover {
  background: rgba(168, 85, 247, 0.09);
  transform: translateX(2px);
}

.xn-language__link.is-active {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.13), rgba(147, 51, 234, 0.07));
}

.xn-language__code {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--xn-purple-700);
  border-radius: 11px;
  background: linear-gradient(135deg, var(--xn-purple-100), #ffffff);
  font-family: var(--xn-font-latin);
  font-size: 12px;
  font-weight: 850;
}

.xn-language__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.25;
}

.xn-language__text strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xn-language__text span {
  overflow: hidden;
  margin-top: 3px;
  color: var(--xn-ink-500);
  font-family: var(--xn-font-latin);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xn-language__state {
  min-width: 30px;
  color: var(--xn-purple-700);
  font-size: 11px;
  font-weight: 850;
  text-align: right;
}

.xn-language__check {
  width: 18px;
  height: 18px;
  color: var(--xn-purple-700);
}

.xn-mobile-language {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(147, 51, 234, 0.14);
}

.xn-mobile-language__title {
  margin: 0 2px 10px;
  color: var(--xn-ink-500);
  font-family: var(--xn-font-latin);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.xn-mobile-language__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.xn-mobile-language__link {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 9px 10px;
  color: var(--xn-ink-900);
  border: 1px solid rgba(147, 51, 234, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.64);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.xn-mobile-language__link:hover {
  border-color: rgba(147, 51, 234, 0.28);
  background: #ffffff;
  transform: translateY(-1px);
}

.xn-mobile-language__link.is-active {
  border-color: rgba(147, 51, 234, 0.32);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.13), rgba(255, 255, 255, 0.88));
}

.xn-mobile-language__code {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--xn-purple-700);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--xn-purple-100), #ffffff);
  font-family: var(--xn-font-latin);
  font-size: 11px;
  font-weight: 850;
}

.xn-mobile-language__text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.22;
}

.xn-mobile-language__text strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xn-mobile-language__text span {
  overflow: hidden;
  margin-top: 3px;
  color: var(--xn-ink-500);
  font-family: var(--xn-font-latin);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xn-mobile-language__link .xn-language__check {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 14px;
  height: 14px;
}

.xn-nav-toggle {
  position: relative;
  z-index: 1002;
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: var(--xn-ink-900);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(147, 51, 234, 0.18);
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(75, 32, 119, 0.08);
}

.xn-nav-toggle__line {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease, width 180ms ease;
}

.xn-nav-toggle__line:nth-child(2) {
  width: 15px;
  margin-left: 4px;
}

.xn-nav-toggle.is-active .xn-nav-toggle__line:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.xn-nav-toggle.is-active .xn-nav-toggle__line:nth-child(2) {
  width: 19px;
  margin-left: 0;
  transform: translateY(-4px) rotate(-45deg);
}

.xn-mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: none;
  padding: calc(var(--xn-header-height) + 18px) 18px 22px;
  background: rgba(32, 14, 51, 0.34);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.xn-mobile-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.xn-mobile-panel__backdrop {
  position: absolute;
  inset: 0;
}

.xn-mobile-panel__sheet {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100vh - var(--xn-header-height) - 40px);
  margin-left: auto;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 180, 254, 0.42), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(250, 245, 255, 0.94));
  box-shadow: 0 32px 90px rgba(20, 7, 36, 0.28);
  transform: translateY(-16px) scale(0.98);
  transform-origin: top right;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.xn-mobile-panel.is-open .xn-mobile-panel__sheet {
  transform: translateY(0) scale(1);
}

.xn-mobile-panel__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--xn-purple-700);
  font-family: var(--xn-font-latin);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.xn-mobile-panel__eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--xn-purple-500), transparent);
}

.xn-mobile-nav {
  display: grid;
  gap: 9px;
}

.xn-mobile-nav__link {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr 22px;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px 14px 10px 10px;
  overflow: hidden;
  color: var(--xn-ink-900);
  border: 1px solid rgba(147, 51, 234, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease, box-shadow 170ms ease;
}

.xn-mobile-nav__link::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--xn-purple-500), var(--xn-purple-600));
  opacity: 0;
  transition: opacity 170ms ease;
}

.xn-mobile-nav__link:hover {
  transform: translateX(3px);
  border-color: rgba(147, 51, 234, 0.3);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(98, 44, 153, 0.1);
}

.xn-mobile-nav__link:hover::after,
.xn-mobile-nav__link.is-active::after {
  opacity: 1;
}

.xn-mobile-nav__link.is-active {
  border-color: rgba(147, 51, 234, 0.32);
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(98, 44, 153, 0.1);
}

.xn-mobile-nav__index {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--xn-purple-700);
  border-radius: 13px;
  background: linear-gradient(135deg, var(--xn-purple-100), #ffffff);
  font-family: var(--xn-font-latin);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.xn-mobile-nav__label {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.xn-mobile-nav__label strong {
  font-size: 16px;
  font-weight: 780;
}

.xn-mobile-nav__label span {
  margin-top: 3px;
  color: var(--xn-ink-500);
  font-family: var(--xn-font-latin);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.xn-mobile-nav__arrow {
  width: 20px;
  height: 20px;
  color: var(--xn-purple-600);
}

.xn-mobile-panel__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(147, 51, 234, 0.14);
}

.xn-mobile-panel__note {
  margin: 14px 4px 0;
  color: var(--xn-ink-500);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

/* ========== 子頁面公共 Hero 與 CTA 樣式 ========== */
.xn-page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 82px 0 86px;
  background:
    radial-gradient(circle at 10% 16%, rgba(216, 180, 254, 0.44), transparent 31%),
    radial-gradient(circle at 88% 8%, rgba(192, 132, 252, 0.25), transparent 34%),
    linear-gradient(180deg, #fffdf9 0%, #fbf7ff 72%, #ffffff 100%);
}

.xn-page-hero::before,
.xn-page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.xn-page-hero::before {
  width: 360px;
  height: 360px;
  right: -130px;
  top: 70px;
  border: 1px solid rgba(147, 51, 234, 0.15);
  border-radius: 96px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), transparent);
  transform: rotate(28deg);
}

.xn-page-hero::after {
  width: 220px;
  height: 220px;
  left: -86px;
  bottom: -42px;
  border-radius: 58px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(147, 51, 234, 0.03));
  transform: rotate(-18deg);
}

.xn-page-hero__inner {
  position: relative;
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.xn-page-breadcrumb {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--xn-ink-500);
  font-size: 13px;
  line-height: 1.4;
}

.xn-page-breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.xn-page-breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.xn-page-breadcrumb li + li::before {
  content: "/";
  color: var(--xn-purple-400);
  font-weight: 700;
}

.xn-page-breadcrumb a {
  color: var(--xn-purple-700);
  font-weight: 700;
  transition: color 160ms ease;
}

.xn-page-breadcrumb a:hover {
  color: var(--xn-purple-900);
}

.xn-page-breadcrumb [aria-current="page"] {
  color: var(--xn-ink-700);
  font-weight: 650;
}

.xn-page-hero__eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--xn-purple-700);
  font-family: var(--xn-font-latin);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.xn-page-hero__eyebrow::before,
.xn-page-hero__eyebrow::after {
  content: "";
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, rgba(147, 51, 234, 0), var(--xn-purple-500));
}

.xn-page-hero__eyebrow::after {
  background: linear-gradient(90deg, var(--xn-purple-500), rgba(147, 51, 234, 0));
}

.xn-page-hero__title {
  margin: 0;
  color: var(--xn-ink-950);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 880;
  letter-spacing: -0.06em;
  line-height: 1.08;
  text-wrap: balance;
}

.xn-page-hero__title-accent {
  color: transparent;
  background: linear-gradient(120deg, var(--xn-purple-500), var(--xn-purple-700));
  -webkit-background-clip: text;
  background-clip: text;
}

.xn-page-hero__desc {
  max-width: 680px;
  margin: 22px auto 0;
  color: var(--xn-ink-700);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.85;
}

.xn-page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
  margin-top: 30px;
}

.xn-page-cta {
  padding: 0 0 84px;
  background: #ffffff;
}

.xn-page-cta__card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(30px, 5vw, 46px);
  color: #ffffff;
  border-radius: 30px;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, #a855f7 0%, #9333ea 58%, #7420c4 100%);
  box-shadow: 0 28px 70px rgba(107, 33, 168, 0.24);
}

.xn-page-cta__card::before,
.xn-page-cta__card::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transform: rotate(32deg);
  pointer-events: none;
}

.xn-page-cta__card::before {
  width: 170px;
  height: 170px;
  right: -72px;
  top: -74px;
  border-radius: 42px;
}

.xn-page-cta__card::after {
  width: 104px;
  height: 104px;
  right: 78px;
  bottom: -64px;
  border-radius: 28px;
}

.xn-page-cta__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.xn-page-cta__eyebrow {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--xn-font-latin);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.xn-page-cta__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.18;
}

.xn-page-cta__desc {
  max-width: 580px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
}

.xn-page-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 720px) {
  .xn-page-hero {
    padding: 62px 0 64px;
  }

  .xn-page-hero__actions .xn-btn,
  .xn-page-cta__actions .xn-btn {
    width: 100%;
  }

  .xn-page-cta {
    padding-bottom: 64px;
  }

  .xn-page-cta__layout {
    grid-template-columns: 1fr;
  }

  .xn-page-cta__actions {
    width: 100%;
  }
}

/* ========== 頁腳 footer 樣式 ========== */
.xn-footer {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  color: var(--xn-ink-900);
  background:
    radial-gradient(circle at 18% 0%, rgba(216, 180, 254, 0.42), transparent 34%),
    linear-gradient(180deg, #fffdf9 0%, #f7f0ff 100%);
  border-top: 1px solid rgba(147, 51, 234, 0.14);
}

.xn-footer::before {
  content: "Xnapper";
  position: absolute;
  right: -0.08em;
  bottom: -0.32em;
  z-index: 0;
  color: rgba(147, 51, 234, 0.045);
  font-family: var(--xn-font-latin);
  font-size: clamp(112px, 18vw, 250px);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.xn-footer__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, var(--xn-container));
  margin-inline: auto;
  padding: 68px 0 30px;
}

.xn-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 42px;
  align-items: stretch;
}

.xn-footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.xn-footer__logo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(147, 51, 234, 0.2);
}

.xn-footer__name {
  margin: 0;
  color: var(--xn-ink-950);
  font-family: var(--xn-font-latin);
  font-size: 28px;
  font-weight: 880;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.xn-footer__tagline {
  margin: 9px 0 0;
  color: var(--xn-ink-500);
  font-size: 16px;
}

.xn-footer__notice {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid rgba(147, 51, 234, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 16px 44px rgba(76, 31, 124, 0.08);
}

.xn-footer__notice-cn,
.xn-footer__notice-en {
  margin: 0;
  line-height: 1.8;
}

.xn-footer__notice-cn {
  color: var(--xn-ink-900);
  font-size: 15px;
  font-weight: 650;
}

.xn-footer__notice-en {
  margin-top: 10px;
  color: var(--xn-ink-500);
  font-family: var(--xn-font-latin);
  font-size: 13px;
}

.xn-footer__contact-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  color: #ffffff;
  border-radius: 26px;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(135deg, var(--xn-purple-500), var(--xn-purple-600) 55%, #751bc6);
  box-shadow: 0 28px 70px rgba(107, 33, 168, 0.26);
}

.xn-footer__contact-card::before,
.xn-footer__contact-card::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: rotate(35deg);
  pointer-events: none;
}

.xn-footer__contact-card::before {
  width: 150px;
  height: 150px;
  right: -70px;
  top: -70px;
  border-radius: 36px;
}

.xn-footer__contact-card::after {
  width: 92px;
  height: 92px;
  right: 28px;
  bottom: -58px;
  border-radius: 24px;
}

.xn-footer__contact-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.xn-footer__contact-desc {
  position: relative;
  z-index: 1;
  margin: 8px 0 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.xn-footer__contact-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.xn-footer__contact-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 160ms ease, transform 160ms ease;
}

.xn-footer__contact-item:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.xn-footer__contact-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
}

.xn-footer__contact-icon svg {
  width: 19px;
  height: 19px;
}

.xn-footer__contact-label {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.2;
}

.xn-footer__contact-value {
  display: block;
  margin-top: 3px;
  color: #ffffff;
  font-family: var(--xn-font-latin);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.25;
  word-break: break-word;
}

.xn-footer__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid rgba(147, 51, 234, 0.14);
  color: var(--xn-ink-500);
  font-size: 13px;
}

.xn-footer__bottom p {
  margin: 0;
}

.xn-footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--xn-purple-800);
  font-weight: 750;
}

.xn-footer__badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--xn-purple-500), var(--xn-purple-600));
  transform: rotate(45deg);
}

@media (max-width: 1060px) {
  .xn-header__inner {
    gap: 16px;
  }

  .xn-desktop-nav__link {
    padding-inline: 9px;
  }

  .xn-header__actions .xn-btn--secondary {
    display: none;
  }

  .xn-language__current {
    display: none;
  }

  .xn-language__toggle {
    padding-inline: 10px;
  }
}

@media (max-width: 920px) {
  :root {
    --xn-header-height: 72px;
  }

  .xn-header__inner {
    width: min(100% - 28px, 1240px);
    justify-content: space-between;
  }

  .xn-desktop-nav,
  .xn-header__actions {
    display: none;
  }

  .xn-nav-toggle {
    display: flex;
  }

  .xn-mobile-panel {
    display: block;
  }

  .xn-brand__logo {
    width: 39px;
    height: 39px;
  }

  .xn-brand__name {
    font-size: 20px;
  }
}

@media (max-width: 720px) {
  .xn-container {
    width: min(100% - 32px, var(--xn-container));
  }

  .xn-footer__main {
    grid-template-columns: 1fr;
  }

  .xn-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .xn-mobile-panel {
    padding-inline: 12px;
  }

  .xn-mobile-panel__sheet {
    width: 100%;
    padding: 14px;
    border-radius: 22px;
  }

  .xn-mobile-nav__link {
    grid-template-columns: 38px 1fr 20px;
    min-height: 62px;
  }

  .xn-mobile-nav__index {
    width: 38px;
    height: 38px;
  }

  .xn-footer__inner {
    width: min(100% - 32px, var(--xn-container));
    padding-top: 56px;
  }

  .xn-footer__brand {
    gap: 13px;
  }

  .xn-footer__logo {
    width: 48px;
    height: 48px;
  }

  .xn-footer__contact-card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
