@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：faq.css */

/* =========================================================
   玹翔旅遊 V43_Enterprise_Production
   FAQ Module
   File: faq.css
   Version: V43_Enterprise_Production
   ========================================================= */

/* =========================================================
   Design Tokens
   ========================================================= */

:root {
  --xx-faq-gold: #d8b56d;
  --xx-faq-gold-light: #f7df9b;
  --xx-faq-gold-soft: #fff0b8;
  --xx-faq-title: #fff3c2;

  --xx-faq-text: #d5dde8;
  --xx-faq-muted: #cfc3a8;

  --xx-faq-bg: #070a0f;
  --xx-faq-surface: #111c27;
  --xx-faq-surface-dark: #070a0f;

  --xx-faq-border: rgba(216, 181, 109, 0.18);
  --xx-faq-border-hover: rgba(255, 240, 184, 0.42);
  --xx-faq-border-open: rgba(255, 240, 184, 0.52);

  --xx-faq-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);

  --xx-faq-shadow-hover: 0 24px 68px rgba(0, 0, 0, 0.4);

  --xx-faq-radius: 24px;
  --xx-faq-radius-small: 18px;

  --xx-faq-transition:
    transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease;
}

/* =========================================================
   FAQ Section
   ========================================================= */

.faq {
  position: relative;
  isolation: isolate;

  padding: clamp(64px, 8vw, 96px) 0;

  overflow: hidden;
}

.faq::before {
  content: "";

  position: absolute;
  inset: 0;

  z-index: -1;

  pointer-events: none;

  background:
    radial-gradient(
      circle at 15% 10%,
      rgba(216, 181, 109, 0.08),
      transparent 34%
    ),
    radial-gradient(
      circle at 85% 78%,
      rgba(216, 181, 109, 0.05),
      transparent 32%
    );
}

.faq-wrap {
  width: min(1100px, calc(100% - 40px));
  margin-inline: auto;
}

/* =========================================================
   Section Heading
   ========================================================= */

.faq .section-title {
  max-width: 760px;
  margin: 0 auto clamp(32px, 5vw, 48px);
  text-align: center;
}

.faq .section-title h2 {
  margin: 0;

  color: var(--xx-faq-title);

  font-size: clamp(30px, 4vw, 48px);
  font-weight: 950;
  line-height: 1.18;
  letter-spacing: -0.035em;

  text-wrap: balance;
}

.faq .section-title p {
  margin: 14px auto 0;

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

  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.8;

  text-wrap: pretty;
}

/* =========================================================
   FAQ Item
   ========================================================= */

.faq details {
  position: relative;

  margin: 0 0 18px;

  overflow: hidden;

  border: 1px solid var(--xx-faq-border);

  border-radius: var(--xx-faq-radius);

  background: linear-gradient(
    135deg,
    rgba(17, 28, 39, 0.96),
    rgba(7, 10, 15, 0.985)
  );

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

  transition: var(--xx-faq-transition);

  contain: paint;
}

.faq details:last-child {
  margin-bottom: 0;
}

.faq details::before {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  opacity: 0;

  background: linear-gradient(
    120deg,
    rgba(216, 181, 109, 0.08),
    transparent 42%
  );

  transition: opacity 0.3s ease;
}

.faq details:hover {
  transform: translateY(-3px);

  border-color: var(--xx-faq-border-hover);

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

.faq details:hover::before,
.faq details[open]::before {
  opacity: 1;
}

.faq details[open] {
  border-color: var(--xx-faq-border-open);

  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

/* =========================================================
   FAQ Summary
   ========================================================= */

.faq summary {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;

  min-height: 72px;

  padding: 21px 74px 21px 28px;

  cursor: pointer;

  list-style: none;

  color: var(--xx-faq-title);

  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 900;
  line-height: 1.55;
  letter-spacing: 0.005em;

  user-select: none;

  transition:
    color 0.3s ease,
    background-color 0.3s ease;
}

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

.faq summary::marker {
  content: "";
}

.faq summary:hover {
  color: #fff8d9;
}

.faq summary:focus {
  outline: none;
}

.faq summary:focus-visible {
  outline: 3px solid rgba(247, 223, 155, 0.55);

  outline-offset: -4px;

  border-radius: calc(var(--xx-faq-radius) - 2px);
}

/* =========================================================
   FAQ Icon
   ========================================================= */

.faq summary::after {
  content: "+";

  position: absolute;

  top: 50%;
  right: 24px;

  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;

  transform: translateY(-50%) rotate(0deg);

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

  border-radius: 50%;

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

  color: var(--xx-faq-gold-light);

  font-size: 27px;
  font-weight: 300;
  line-height: 1;

  transition:
    transform 0.32s ease,
    border-color 0.32s ease,
    background-color 0.32s ease,
    color 0.32s ease;
}

.faq summary:hover::after {
  border-color: rgba(255, 240, 184, 0.52);

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

  color: #fff3c2;
}

.faq details[open] summary::after {
  content: "−";

  transform: translateY(-50%) rotate(180deg);

  border-color: rgba(255, 240, 184, 0.52);

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

/* =========================================================
   FAQ Answer
   ========================================================= */

.faq details > p,
.faq details > div {
  position: relative;
  z-index: 1;

  margin: 0;

  padding: 0 28px 25px;

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

  font-size: 16px;
  line-height: 1.95;

  text-wrap: pretty;
}

.faq details > p::before,
.faq details > div::before {
  content: "";

  display: block;

  height: 1px;

  margin: 0 0 20px;

  background: linear-gradient(
    90deg,
    rgba(216, 181, 109, 0.32),
    rgba(216, 181, 109, 0.06),
    transparent
  );
}

.faq details a {
  color: var(--xx-faq-gold-light);
  font-weight: 800;
  text-decoration: none;

  border-bottom: 1px solid rgba(247, 223, 155, 0.38);

  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}

.faq details a:hover {
  color: #fff3c2;

  border-color: rgba(255, 243, 194, 0.9);
}

.faq details a:focus-visible {
  outline: 2px solid rgba(247, 223, 155, 0.55);

  outline-offset: 3px;

  border-radius: 4px;
}

/* =========================================================
   SEO FAQ Block
   ========================================================= */

.xx-faq-seo {
  position: relative;
  isolation: isolate;

  width: min(1180px, calc(100% - 40px));

  margin: clamp(40px, 6vw, 64px) auto;

  padding: clamp(24px, 4vw, 38px);

  overflow: hidden;

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

  border-radius: 30px;

  background: linear-gradient(
    180deg,
    rgba(17, 28, 39, 0.9),
    rgba(10, 15, 21, 0.97)
  );

  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.36);
}

.xx-faq-seo::before {
  content: "";

  position: absolute;
  inset: 0;

  z-index: -1;

  pointer-events: none;

  background: radial-gradient(
    circle at top center,
    rgba(216, 181, 109, 0.09),
    transparent 42%
  );
}

.xx-faq-seo h2 {
  max-width: 760px;

  margin: 0 auto clamp(24px, 4vw, 34px);

  color: var(--xx-faq-gold-light);

  text-align: center;

  font-size: clamp(28px, 4vw, 46px);
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: -0.03em;

  text-wrap: balance;
}

/* =========================================================
   SEO FAQ Item
   ========================================================= */

.xx-faq-seo details {
  position: relative;

  margin: 0 0 16px;

  overflow: hidden;

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

  border-radius: var(--xx-faq-radius-small);

  background: rgba(255, 255, 255, 0.025);

  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);

  transition: var(--xx-faq-transition);
}

.xx-faq-seo details:last-child {
  margin-bottom: 0;
}

.xx-faq-seo details:hover {
  transform: translateY(-2px);

  border-color: rgba(255, 240, 184, 0.38);

  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.26);
}

.xx-faq-seo details[open] {
  border-color: rgba(255, 240, 184, 0.44);

  background: rgba(255, 255, 255, 0.035);
}

/* =========================================================
   SEO FAQ Summary
   ========================================================= */

.xx-faq-seo summary {
  position: relative;

  display: flex;
  align-items: center;

  min-height: 62px;

  padding: 18px 64px 18px 22px;

  cursor: pointer;

  list-style: none;

  color: var(--xx-faq-title);

  font-size: 16px;
  font-weight: 850;
  line-height: 1.6;

  user-select: none;
}

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

.xx-faq-seo summary::marker {
  content: "";
}

.xx-faq-seo summary:focus {
  outline: none;
}

.xx-faq-seo summary:focus-visible {
  outline: 3px solid rgba(247, 223, 155, 0.48);

  outline-offset: -4px;

  border-radius: var(--xx-faq-radius-small);
}

.xx-faq-seo summary::after {
  content: "+";

  position: absolute;

  top: 50%;
  right: 18px;

  display: grid;
  place-items: center;

  width: 34px;
  height: 34px;

  transform: translateY(-50%) rotate(0deg);

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

  border-radius: 50%;

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

  color: var(--xx-faq-gold-light);

  font-size: 23px;
  font-weight: 300;
  line-height: 1;

  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.xx-faq-seo details[open] summary::after {
  content: "−";

  transform: translateY(-50%) rotate(180deg);

  border-color: rgba(255, 240, 184, 0.46);

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

/* =========================================================
   SEO FAQ Answer
   ========================================================= */

.xx-faq-seo details > p,
.xx-faq-seo details > div {
  margin: 0;

  padding: 0 22px 21px;

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

  font-size: 15.5px;
  line-height: 1.95;

  text-wrap: pretty;
}

.xx-faq-seo details > p::before,
.xx-faq-seo details > div::before {
  content: "";

  display: block;

  height: 1px;

  margin: 0 0 17px;

  background: linear-gradient(90deg, rgba(216, 181, 109, 0.25), transparent);
}

.xx-faq-seo a {
  color: var(--xx-faq-gold-light);
  font-weight: 800;
  text-decoration: none;

  border-bottom: 1px solid rgba(247, 223, 155, 0.36);
}

.xx-faq-seo a:hover {
  color: #fff3c2;

  border-color: rgba(255, 243, 194, 0.85);
}

/* =========================================================
   Open Animation
   Browser Enhancement
   ========================================================= */

@supports (interpolate-size: allow-keywords) {
  .faq details,
  .xx-faq-seo details {
    interpolate-size: allow-keywords;
  }

  .faq details::details-content,
  .xx-faq-seo details::details-content {
    block-size: 0;
    overflow: hidden;

    opacity: 0;

    transition:
      block-size 0.36s ease,
      content-visibility 0.36s allow-discrete,
      opacity 0.3s ease;
  }

  .faq details[open]::details-content,
  .xx-faq-seo details[open]::details-content {
    block-size: auto;
    opacity: 1;
  }
}

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

@media (max-width: 980px) {
  .faq-wrap {
    width: min(100% - 32px, 1100px);
  }

  .xx-faq-seo {
    width: calc(100% - 32px);
  }
}

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

@media (max-width: 768px) {
  .faq {
    padding: 58px 0;
  }

  .faq-wrap {
    width: calc(100% - 24px);
  }

  .faq .section-title {
    margin-bottom: 28px;
  }

  .faq details {
    margin-bottom: 14px;

    border-radius: 20px;
  }

  .faq summary {
    min-height: 64px;

    padding: 17px 62px 17px 19px;

    font-size: 16px;
    line-height: 1.5;
  }

  .faq summary::after {
    right: 16px;

    width: 34px;
    height: 34px;

    font-size: 24px;
  }

  .faq details > p,
  .faq details > div {
    padding: 0 19px 20px;

    font-size: 15px;
    line-height: 1.85;
  }

  .faq details > p::before,
  .faq details > div::before {
    margin-bottom: 16px;
  }

  .xx-faq-seo {
    width: calc(100% - 24px);

    margin: 38px auto;

    padding: 22px 14px;

    border-radius: 24px;
  }

  .xx-faq-seo h2 {
    margin-bottom: 22px;
  }

  .xx-faq-seo details {
    margin-bottom: 13px;

    border-radius: 16px;
  }

  .xx-faq-seo summary {
    min-height: 58px;

    padding: 15px 56px 15px 17px;

    font-size: 15px;
  }

  .xx-faq-seo summary::after {
    right: 14px;

    width: 32px;
    height: 32px;

    font-size: 22px;
  }

  .xx-faq-seo details > p,
  .xx-faq-seo details > div {
    padding: 0 17px 18px;

    font-size: 15px;
    line-height: 1.85;
  }
}

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

@media (max-width: 420px) {
  .faq summary {
    padding-right: 56px;
  }

  .faq summary::after {
    right: 13px;

    width: 32px;
    height: 32px;
  }

  .xx-faq-seo {
    padding: 20px 12px;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .faq details,
  .faq details::before,
  .faq summary,
  .faq summary::after,
  .faq details a,
  .xx-faq-seo details,
  .xx-faq-seo summary::after {
    scroll-behavior: auto;
    transition: none !important;
  }

  .faq details:hover,
  .xx-faq-seo details:hover {
    transform: none;
  }
}

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

@media (forced-colors: active) {
  .faq details,
  .xx-faq-seo,
  .xx-faq-seo details {
    border: 1px solid CanvasText;
  }

  .faq summary::after,
  .xx-faq-seo summary::after {
    border: 1px solid ButtonText;
  }
}

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

@media print {
  .faq,
  .xx-faq-seo {
    padding: 20px 0;
    background: #fff;
    box-shadow: none;
  }

  .faq details,
  .xx-faq-seo details {
    break-inside: avoid;

    border: 1px solid #aaa;

    background: #fff;

    box-shadow: none;
  }

  .faq details:not([open]),
  .xx-faq-seo details:not([open]) {
    display: block;
  }

  .faq summary,
  .xx-faq-seo summary,
  .faq details > p,
  .faq details > div,
  .xx-faq-seo details > p,
  .xx-faq-seo details > div {
    color: #111;
  }

  .faq summary::after,
  .xx-faq-seo summary::after {
    display: none;
  }
}
