@charset "UTF-8";

/*
===============================================================================
玹翔旅遊｜V43 Enterprise Production
正式商業版 CSS｜Luxury Black Gold Design System

SYSTEM_VERSION：V43_Enterprise_Production
SYSTEM_OWNER：玹翔旅遊 Xuan Xiang Travel
ENVIRONMENT：Production
===============================================================================
*/
/* FILE：pricing-enterprise.css */

/*************************************************
 * 玹翔旅遊 V43_Enterprise_Production Pricing Module
 * Pricing Table CSS
 *
 * 核心能力：
 * 1. Enterprise Black-Gold Design System
 * 2. Header Row Sticky
 * 3. First Column Sticky
 * 4. Top-Left Cell Double Sticky
 * 5. Horizontal／Vertical Scroll
 * 6. Mobile Touch Optimization
 * 7. Safari Sticky Compatibility
 * 8. Accessible Tabs／Focus States
 * 9. Reduced Motion Support
 * 10. Print-Friendly Output
 *************************************************/

/* =========================================================
   V43_Enterprise_Production Pricing Design Tokens
========================================================= */

:root {
  --xx-price-bg: #05070b;
  --xx-price-bg-soft: #090d12;
  --xx-price-panel: #0d141c;
  --xx-price-panel-deep: #070a0f;
  --xx-price-row: #0d131a;
  --xx-price-row-alt: #121a23;
  --xx-price-sticky: #111821;
  --xx-price-sticky-alt: #16202b;
  --xx-price-sticky-hover: #302716;

  --xx-price-gold: #d8b56d;
  --xx-price-gold-2: #f7df9b;
  --xx-price-gold-3: #fff3c2;
  --xx-price-gold-4: #fff6d0;

  --xx-price-text: #f7f1e7;
  --xx-price-text-strong: #edf1f5;
  --xx-price-muted: #b9c1cc;
  --xx-price-dark: #17120a;

  --xx-price-line: rgba(216, 181, 109, 0.24);
  --xx-price-line-soft: rgba(216, 181, 109, 0.12);
  --xx-price-line-medium: rgba(216, 181, 109, 0.18);
  --xx-price-line-strong: rgba(247, 223, 155, 0.58);

  --xx-price-glass: rgba(255, 255, 255, 0.035);
  --xx-price-hover: rgba(216, 181, 109, 0.13);

  --xx-price-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);

  --xx-price-shadow-hover:
    0 30px 90px rgba(0, 0, 0, 0.52), 0 0 42px rgba(216, 181, 109, 0.14);

  --xx-price-radius-panel: 32px;
  --xx-price-radius-scroll: 22px;
  --xx-price-radius-card: 28px;
  --xx-price-radius-pill: 999px;

  --xx-price-sticky-width: 132px;
  --xx-price-cell-width: 158px;

  --xx-price-transition: 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* =========================================================
   Pricing Panel
========================================================= */

.xx-pricing-panel {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;

  border: 1px solid var(--xx-price-line);

  border-radius: var(--xx-price-radius-panel);

  background:
    radial-gradient(
      circle at 8% 0%,
      rgba(216, 181, 109, 0.12),
      transparent 30%
    ),
    linear-gradient(180deg, rgba(13, 20, 28, 0.98), rgba(7, 10, 15, 0.98));

  box-shadow: var(--xx-price-shadow);

  isolation: isolate;

  transition:
    border-color var(--xx-price-transition),
    box-shadow var(--xx-price-transition),
    transform var(--xx-price-transition);
}

.xx-pricing-panel *,
.xx-pricing-panel *::before,
.xx-pricing-panel *::after {
  box-sizing: border-box;
}

.xx-pricing-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background: linear-gradient(
    125deg,
    transparent 0%,
    rgba(255, 255, 255, 0.025) 42%,
    rgba(247, 223, 155, 0.045) 54%,
    transparent 72%
  );
}

.xx-pricing-panel > * {
  position: relative;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .xx-pricing-panel:hover {
    border-color: rgba(247, 223, 155, 0.42);

    box-shadow: var(--xx-price-shadow-hover);
  }
}

/* =========================================================
   Pricing Header
========================================================= */

.xx-pricing-head {
  position: relative;
  padding: clamp(24px, 3vw, 34px);

  border-bottom: 1px solid var(--xx-price-line-medium);

  background:
    radial-gradient(
      circle at 10% 0%,
      rgba(216, 181, 109, 0.15),
      transparent 30%
    ),
    rgba(255, 255, 255, 0.025);
}

.xx-pricing-head h2 {
  margin: 0;

  color: var(--xx-price-gold-3);

  font-family: "Noto Serif TC", "Noto Sans TC", serif;

  font-size: clamp(26px, 3vw, 40px);

  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.01em;

  text-wrap: balance;
  overflow-wrap: anywhere;

  text-shadow: 0 0 28px rgba(216, 181, 109, 0.16);
}

.xx-pricing-head p {
  max-width: 75ch;
  margin: 8px 0 0;

  color: var(--xx-price-muted);

  font-size: clamp(14px, 1.2vw, 16px);

  line-height: 1.8;
  overflow-wrap: anywhere;
}

/* =========================================================
   Pricing Tabs
========================================================= */

.xx-pricing-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;

  width: 100%;
  min-width: 0;
  padding: 18px 20px;

  border-bottom: 1px solid rgba(216, 181, 109, 0.16);

  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.xx-pricing-tabs::-webkit-scrollbar {
  display: none;
}

.xx-pricing-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;
  max-width: 100%;
  padding: 10px 16px;

  border: 1px solid rgba(216, 181, 109, 0.22);

  border-radius: var(--xx-price-radius-pill);

  color: #f7ead0;
  background: rgba(255, 255, 255, 0.04);

  font: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;

  cursor: pointer;
  user-select: none;

  -webkit-tap-highlight-color: transparent;

  transition:
    color var(--xx-price-transition),
    background-color var(--xx-price-transition),
    border-color var(--xx-price-transition),
    box-shadow var(--xx-price-transition),
    transform var(--xx-price-transition);
}

.xx-pricing-tab:hover {
  color: var(--xx-price-gold-3);

  border-color: rgba(247, 223, 155, 0.56);

  background: rgba(216, 181, 109, 0.08);

  transform: translateY(-2px);
}

.xx-pricing-tab:active {
  transform: translateY(0) scale(0.98);
}

.xx-pricing-tab.is-active,
.xx-pricing-tab[aria-selected="true"] {
  color: var(--xx-price-dark);

  border-color: rgba(247, 223, 155, 0.78);

  background: linear-gradient(135deg, #fff2bd, #f7df9b, #d8b56d);

  box-shadow: 0 10px 30px rgba(216, 181, 109, 0.2);

  transform: translateY(-1px);
}

.xx-pricing-tab:disabled,
.xx-pricing-tab[aria-disabled="true"] {
  opacity: 0.42;
  cursor: not-allowed;
  pointer-events: none;
}

/* =========================================================
   Pricing Scroll Container
========================================================= */

.xx-pricing-scroll {
  position: relative !important;
  display: block !important;

  width: calc(100% - 36px) !important;

  height: clamp(420px, 68vh, 640px) !important;

  min-width: 0 !important;
  margin: 18px !important;

  overflow-x: auto !important;
  overflow-y: auto !important;

  border: 1px solid var(--xx-price-line-medium) !important;

  border-radius: var(--xx-price-radius-scroll) !important;

  background: var(--xx-price-bg-soft) !important;

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.012),
    inset 0 -20px 40px rgba(0, 0, 0, 0.16) !important;

  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-gutter: stable both-edges;

  -webkit-overflow-scrolling: touch;

  contain: none !important;
  transform: none !important;
  isolation: isolate !important;

  scrollbar-color: rgba(216, 181, 109, 0.52) rgba(255, 255, 255, 0.035);

  scrollbar-width: thin;
}

/* Chrome／Edge／Safari Scrollbar */

.xx-pricing-scroll::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}

.xx-pricing-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.025);
}

.xx-pricing-scroll::-webkit-scrollbar-thumb {
  border: 3px solid var(--xx-price-bg-soft);

  border-radius: var(--xx-price-radius-pill);

  background: rgba(216, 181, 109, 0.5);
}

.xx-pricing-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(247, 223, 155, 0.72);
}

.xx-pricing-scroll::-webkit-scrollbar-corner {
  background: var(--xx-price-bg-soft);
}

/* =========================================================
   Pricing Table Base
========================================================= */

.xx-pricing-table {
  position: relative !important;

  width: max-content !important;
  min-width: 100% !important;

  margin: 0 !important;

  border-collapse: separate !important;

  border-spacing: 0 !important;

  table-layout: auto !important;

  overflow: visible !important;

  color: var(--xx-price-text);

  font-variant-numeric: tabular-nums;
}

.xx-pricing-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.xx-pricing-table thead,
.xx-pricing-table tbody,
.xx-pricing-table tfoot,
.xx-pricing-table tr {
  position: relative;
  overflow: visible !important;
}

.xx-pricing-table th,
.xx-pricing-table td {
  min-width: var(--xx-price-cell-width) !important;

  padding: 14px 16px !important;

  border-right: 1px solid var(--xx-price-line-soft) !important;

  border-bottom: 1px solid var(--xx-price-line-soft) !important;

  text-align: center !important;

  vertical-align: middle !important;

  white-space: nowrap !important;

  background-clip: padding-box !important;

  line-height: 1.55;

  transition:
    color var(--xx-price-transition),
    background-color var(--xx-price-transition);
}

.xx-pricing-table tr > *:last-child {
  border-right: none !important;
}

.xx-pricing-table tbody tr:last-child > * {
  border-bottom: none !important;
}

/* =========================================================
   Sticky Header Row
========================================================= */

.xx-pricing-scroll .xx-pricing-table thead th {
  position: -webkit-sticky !important;

  position: sticky !important;

  top: 0 !important;
  z-index: 50 !important;

  color: var(--xx-price-dark) !important;

  background: linear-gradient(
    180deg,
    #fff2bd 0%,
    #f7df9b 52%,
    #d8b56d 100%
  ) !important;

  font-weight: 950 !important;

  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.34),
    0 9px 18px rgba(0, 0, 0, 0.16) !important;

  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.24);
}

/* =========================================================
   Sticky First Column
========================================================= */

.xx-pricing-scroll .xx-pricing-table tbody th {
  position: -webkit-sticky !important;

  position: sticky !important;

  left: 0 !important;
  z-index: 40 !important;

  width: var(--xx-price-sticky-width) !important;

  min-width: var(--xx-price-sticky-width) !important;

  max-width: var(--xx-price-sticky-width) !important;

  text-align: left !important;

  color: var(--xx-price-gold-3) !important;

  background: var(--xx-price-sticky) !important;

  font-weight: 900 !important;

  overflow: hidden;
  text-overflow: ellipsis;

  box-shadow:
    9px 0 20px rgba(0, 0, 0, 0.38),
    2px 0 0 rgba(216, 181, 109, 0.08) !important;
}

/* =========================================================
   Double Sticky Top-Left Cell
========================================================= */

.xx-pricing-scroll .xx-pricing-table thead th:first-child {
  position: -webkit-sticky !important;

  position: sticky !important;

  top: 0 !important;
  left: 0 !important;
  z-index: 100 !important;

  width: var(--xx-price-sticky-width) !important;

  min-width: var(--xx-price-sticky-width) !important;

  max-width: var(--xx-price-sticky-width) !important;

  text-align: left !important;

  color: var(--xx-price-dark) !important;

  background: linear-gradient(
    180deg,
    var(--xx-price-gold-4) 0%,
    #efc85d 100%
  ) !important;

  box-shadow:
    9px 0 20px rgba(0, 0, 0, 0.38),
    0 3px 0 rgba(0, 0, 0, 0.34),
    2px 0 0 rgba(255, 255, 255, 0.12) !important;
}

/* =========================================================
   Table Body
========================================================= */

.xx-pricing-table tbody td {
  color: var(--xx-price-text-strong) !important;

  background: var(--xx-price-row) !important;
}

.xx-pricing-table tbody tr:nth-child(even) td {
  background: var(--xx-price-row-alt) !important;
}

.xx-pricing-table tbody tr:nth-child(even) th {
  background: var(--xx-price-sticky-alt) !important;
}

.xx-pricing-table tbody tr:hover td {
  color: #fff8e4 !important;

  background: var(--xx-price-hover) !important;
}

.xx-pricing-table tbody tr:hover th {
  color: #fff2bd !important;

  background: var(--xx-price-sticky-hover) !important;
}

.xx-pricing-table tbody td strong,
.xx-pricing-table tbody td b {
  color: var(--xx-price-gold-2);

  font-weight: 950;
}

.xx-pricing-table tbody td del {
  color: rgba(185, 193, 204, 0.65);
}

.xx-pricing-table tbody td small {
  color: var(--xx-price-muted);
}

/* =========================================================
   Optional Table States
========================================================= */

.xx-pricing-table .is-featured {
  color: var(--xx-price-gold-3) !important;

  background: rgba(216, 181, 109, 0.15) !important;

  font-weight: 900;
}

.xx-pricing-table .is-unavailable {
  color: rgba(185, 193, 204, 0.55) !important;

  text-decoration: line-through;
}

.xx-pricing-table .is-highlight {
  position: relative;
  color: var(--xx-price-dark) !important;

  background: linear-gradient(135deg, #fff3c2, #d8b56d) !important;

  font-weight: 950;
}

/* =========================================================
   Pricing Note
========================================================= */

.xx-pricing-note {
  padding: 4px 28px 28px;

  color: rgba(247, 241, 231, 0.76);

  font-size: 14px;
  line-height: 1.9;

  overflow-wrap: anywhere;
}

.xx-pricing-note strong,
.xx-pricing-note b {
  color: var(--xx-price-gold-2);
}

.xx-pricing-note a {
  color: var(--xx-price-gold-2);

  text-decoration-color: rgba(216, 181, 109, 0.45);

  text-underline-offset: 4px;
}

/* =========================================================
   Loading／Empty／Error Message
========================================================= */

.xx-pricing-message {
  margin: 18px;
  padding: 26px;

  border: 1px solid var(--xx-price-line-medium);

  border-radius: var(--xx-price-radius-scroll);

  color: var(--xx-price-gold-2);

  background: var(--xx-price-glass);

  font-size: 15px;
  line-height: 1.9;

  overflow-wrap: anywhere;

  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.012);
}

.xx-pricing-message.is-error {
  color: #ffd0c9;
  border-color: rgba(255, 112, 92, 0.28);
  background: rgba(255, 80, 60, 0.07);
}

.xx-pricing-message.is-success {
  color: #c9f7da;
  border-color: rgba(78, 210, 132, 0.28);
  background: rgba(46, 180, 100, 0.07);
}

.xx-pricing-message.is-loading {
  position: relative;
  padding-left: 54px;
}

.xx-pricing-message.is-loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 24px;

  width: 18px;
  height: 18px;

  margin-top: -9px;

  border: 2px solid rgba(216, 181, 109, 0.25);

  border-top-color: var(--xx-price-gold-2);

  border-radius: 50%;

  animation: xxPricingSpin 0.8s linear infinite;
}

@keyframes xxPricingSpin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   Accessibility
========================================================= */

.xx-pricing-panel button:focus-visible,
.xx-pricing-panel a:focus-visible,
.xx-pricing-scroll:focus-visible {
  outline: 3px solid rgba(247, 223, 155, 0.92);

  outline-offset: 4px;
}

.xx-pricing-tab:focus-visible {
  border-color: var(--xx-price-gold-2);

  box-shadow: 0 0 0 4px rgba(216, 181, 109, 0.18);
}

/* =========================================================
   Tablet
========================================================= */

@media (max-width: 980px) {
  :root {
    --xx-price-sticky-width: 116px;
    --xx-price-cell-width: 152px;
  }

  .xx-pricing-head {
    padding: 24px;
  }

  .xx-pricing-scroll {
    height: clamp(400px, 66vh, 620px) !important;
  }
}

/* =========================================================
   Mobile
========================================================= */

@media (max-width: 768px) {
  :root {
    --xx-price-sticky-width: 104px;
    --xx-price-cell-width: 148px;
  }

  .xx-pricing-panel {
    border-radius: 24px;
  }

  .xx-pricing-head {
    padding: 22px 18px;
  }

  .xx-pricing-head h2 {
    font-size: clamp(24px, 8vw, 32px);
  }

  .xx-pricing-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;

    padding: 14px 12px;

    scroll-snap-type: x proximity;

    overscroll-behavior-x: contain;
  }

  .xx-pricing-tab {
    min-height: 40px;
    padding: 9px 14px;
    scroll-snap-align: start;
  }

  .xx-pricing-scroll {
    width: calc(100% - 24px) !important;

    height: 62vh !important;

    min-height: 380px !important;

    max-height: 620px !important;

    margin: 12px !important;

    border-radius: 16px !important;

    scrollbar-gutter: auto;
  }

  .xx-pricing-table th,
  .xx-pricing-table td {
    min-width: var(--xx-price-cell-width) !important;

    padding: 12px 13px !important;

    font-size: 14px;
  }

  .xx-pricing-scroll .xx-pricing-table thead th:first-child,
  .xx-pricing-scroll .xx-pricing-table tbody th {
    width: var(--xx-price-sticky-width) !important;

    min-width: var(--xx-price-sticky-width) !important;

    max-width: var(--xx-price-sticky-width) !important;
  }

  .xx-pricing-note {
    padding: 8px 18px 22px;
  }

  .xx-pricing-message {
    margin: 12px;
    padding: 20px;
    border-radius: 16px;
  }
}

/* =========================================================
   Small Mobile
========================================================= */

@media (max-width: 480px) {
  :root {
    --xx-price-sticky-width: 96px;
    --xx-price-cell-width: 138px;
  }

  .xx-pricing-head {
    padding: 20px 16px;
  }

  .xx-pricing-tabs {
    gap: 8px;
  }

  .xx-pricing-tab {
    padding: 8px 12px;
    font-size: 13px;
  }

  .xx-pricing-scroll {
    height: 60vh !important;

    min-height: 350px !important;
  }

  .xx-pricing-table th,
  .xx-pricing-table td {
    padding: 11px 12px !important;

    font-size: 13px;
  }

  .xx-pricing-note {
    padding: 6px 16px 20px;

    font-size: 13px;
  }
}

/* =========================================================
   Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .xx-pricing-panel,
  .xx-pricing-tab,
  .xx-pricing-table th,
  .xx-pricing-table td {
    transition: none !important;
    animation: none !important;
  }

  .xx-pricing-scroll {
    scroll-behavior: auto;
  }

  .xx-pricing-message.is-loading::before {
    animation: none;
    border-top-color: var(--xx-price-gold-2);
  }
}

/* =========================================================
   High Contrast Support
========================================================= */

@media (forced-colors: active) {
  .xx-pricing-panel,
  .xx-pricing-scroll,
  .xx-pricing-tab,
  .xx-pricing-table th,
  .xx-pricing-table td {
    forced-color-adjust: auto;
  }

  .xx-pricing-tab.is-active,
  .xx-pricing-tab[aria-selected="true"] {
    outline: 2px solid CanvasText;
  }
}

/* =========================================================
   Print
========================================================= */

@media print {
  .xx-pricing-panel {
    overflow: visible;
    border: 1px solid #666;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .xx-pricing-head {
    background: #fff;
    border-bottom: 1px solid #999;
  }

  .xx-pricing-head h2,
  .xx-pricing-head p,
  .xx-pricing-note {
    color: #111;
  }

  .xx-pricing-tabs {
    display: none !important;
  }

  .xx-pricing-scroll {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: visible !important;
    border: none !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .xx-pricing-table {
    width: 100% !important;
    min-width: 100% !important;
    table-layout: fixed !important;
  }

  .xx-pricing-table th,
  .xx-pricing-table td {
    position: static !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;

    padding: 8px !important;

    color: #111 !important;
    background: #fff !important;

    border-right: 1px solid #999 !important;
    border-bottom: 1px solid #999 !important;

    white-space: normal !important;
    box-shadow: none !important;
  }

  .xx-pricing-message {
    color: #111;
    background: #fff;
    border: 1px solid #999;
  }
}
