@charset "utf-8";

/* ==================================================
   static-pages.css
   Pages: about / privacy-policy / sitemap / 404
   Flow:  dark hero → light content → (optional) dark CTA

   Tokens → shared surfaces → sections → components → pages → responsive
================================================== */

/* --------------------------------------------------
   0. Tokens（靜態頁專用，可集中調寬度／間距／色）
-------------------------------------------------- */
.page-static {
  --static-intro-max: 900px;
  --static-prose-max: 1080px;
  --static-map-max: 1200px;

  --static-section-y: clamp(48px, 5vw, 88px);
  --static-cta-y: clamp(40px, 4.5vw, 72px);
  --static-block-gap: clamp(28px, 4vw, 48px);

  --static-card-pad: clamp(22px, 2.8vw, 32px);
  --static-card-radius: var(--radius-s);
  --static-card-border: color-mix(in srgb, var(--gray-color-200) 90%, transparent);
  --static-card-border-hover: color-mix(
    in srgb,
    var(--primary-color) 28%,
    var(--gray-color-200)
  );

  --static-accent: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  --static-accent-h: 3px;
  --static-accent-w: min(4rem, 18vw);
  --static-accent-w-sm: min(3.25rem, 16vw);

  --static-glass-bg: rgba(0, 0, 0, 0.22);
  --static-glass-border: rgba(255, 255, 255, 0.14);
  --static-glass-border-hover: rgba(255, 255, 255, 0.3);

  --static-eyebrow-tracking: 0.16em;
  --static-ease: 0.25s ease;
}

body.page-static {
  background-color: var(--gray-color-50);
}

/* --------------------------------------------------
   1. Shared helpers
-------------------------------------------------- */

/* 橘→藍底線（hero 置中 / 內文靠左） */
.page-static .static-accent::after,
.page-static .static-hero-section .intro h1::after,
.page-static .static-prose .static-section h2::after,
.page-static .sitemap-group h2::after {
  content: "";
  display: block;
  height: var(--static-accent-h);
  border-radius: 4px;
  background: var(--static-accent);
  opacity: 0.88;
}

.page-static .static-hero-section .intro h1::after {
  width: var(--static-accent-w);
  margin: 0.85rem auto 0;
}

.page-static .static-prose .static-section h2::after,
.page-static .sitemap-group h2::after {
  width: var(--static-accent-w-sm);
  margin: 0.6rem 0 0;
}

/* Dark band：頂細線 + 頂部光暈（hero / CTA） */
.page-static .static-dark-band,
.page-static .static-hero-section,
.page-static .static-cta-section {
  position: relative;
  overflow: hidden;
}

.page-static .static-hero-section::before {
  content: "";
  position: absolute;
  left: clamp(16px, 3vw, 40px);
  right: clamp(16px, 3vw, 40px);
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  pointer-events: none;
}

.page-static .static-hero-section::after,
.page-static .static-cta-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    520px 220px at 50% 0%,
    rgba(255, 255, 255, 0.07),
    transparent 72%
  );
}

.page-static .static-hero-section .container,
.page-static .static-cta-section .container {
  position: relative;
  z-index: 1;
}

/* Light card surface（prose / sitemap） */
.page-static .static-card,
.page-static .static-prose .static-section,
.page-static .sitemap-group {
  background: #fff;
  border: 1px solid var(--static-card-border);
  border-radius: var(--static-card-radius);
  box-shadow: var(--shadow-s);
  transition:
    border-color var(--static-ease),
    box-shadow var(--static-ease),
    transform var(--static-ease);
}

.page-static .static-prose .static-section:hover,
.page-static .sitemap-group:hover {
  border-color: var(--static-card-border-hover);
  box-shadow: var(--shadow-m);
}

.page-static .sitemap-group:hover {
  transform: translateY(-2px);
}

/* --------------------------------------------------
   2. Hero
-------------------------------------------------- */
.page-static .static-hero-section {
  padding: var(--static-section-y) 0 !important;
}

.page-static .static-hero-section .intro {
  max-width: var(--static-intro-max);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-static .static-hero-section .intro h1,
.page-static .static-hero-section .intro p {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Eyebrow：全寬置中 + 補償 letter-spacing 視覺偏左 */
.page-static .static-hero-section .intro .static-eyebrow {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 auto 12px;
  padding-left: var(--static-eyebrow-tracking);
  box-sizing: border-box;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: var(--static-eyebrow-tracking);
  text-transform: uppercase;
  color: var(--primary-color);
}

.page-static .static-meta {
  margin: 18px auto 0;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.page-static .static-note {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
}

/* 蓋過 .section-dark * { color: #fff } */
.page-static .section-dark .static-eyebrow {
  color: var(--primary-color);
}

.page-static .section-dark .static-meta {
  color: rgba(255, 255, 255, 0.45);
}

.page-static .section-dark .static-note {
  color: rgba(255, 255, 255, 0.62);
}

/* --------------------------------------------------
   3. Content + prose
-------------------------------------------------- */
.page-static .static-content-section {
  position: relative;
  padding: var(--static-section-y) 0 !important;
  background: linear-gradient(180deg, #fff 0%, var(--gray-color-50) 100%);
}

.page-static .static-content-section .intro {
  max-width: var(--static-intro-max);
  margin-bottom: var(--static-block-gap);
}

.page-static .static-prose {
  width: 100%;
  max-width: var(--static-prose-max);
  margin: 0 auto;
  color: var(--gray-color-700);
}

.page-static .static-prose .static-section {
  margin: 0 0 clamp(22px, 3vw, 32px);
  padding: var(--static-card-pad);
}

.page-static .static-prose .static-section:last-child {
  margin-bottom: 0;
}

.page-static .static-prose .static-section h2 {
  margin: 0 0 14px;
  padding: 0;
  text-align: left;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-color-900);
}

.page-static .static-prose .static-section p {
  margin: 0 0 12px;
  font-size: clamp(0.98rem, 1.2vw, 1.06rem);
  line-height: 1.75;
  color: var(--gray-color-700);
}

.page-static .static-prose .static-section p:last-child {
  margin-bottom: 0;
}

.page-static .static-prose .static-section ul,
.page-static .static-prose .static-section ol {
  margin: 6px 0 12px;
}

.page-static .static-prose .static-section li {
  line-height: 1.7;
  color: var(--gray-color-700);
}

.page-static .static-prose a {
  color: var(--secondary-color);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-static .static-prose a:hover {
  color: var(--primary-color);
}

.static-section table {
  width: 100%;
  margin: 12px 0 16px;
  border-collapse: collapse;
  table-layout: auto;
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  line-height: 1.55;
  color: var(--gray-color-800);
  background: #fff;
}

.static-section th,
.static-section td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--gray-color-200);
}

.static-section th {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--primary-color);
  border-color: color-mix(in srgb, var(--primary-color) 70%, #000);
}

.static-section td {
  color: var(--gray-color-700);
}

.static-section tbody tr:nth-child(even) td {
  background: var(--gray-color-50);
}

.static-section tbody tr:hover td {
  background: color-mix(in srgb, var(--primary-color) 8%, #fff);
}

@media only screen and (max-width: 767px) {
  .static-section:has(table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .static-section table {
    min-width: 480px;
  }
}

/* --------------------------------------------------
   4. CTA band
-------------------------------------------------- */
.page-static .static-cta-section {
  padding: var(--static-cta-y) 0 !important;
}

.page-static .static-cta-section .intro {
  margin-bottom: 0;
}

.page-static .section-dark .btn-box {
  margin-top: clamp(18px, 2.5vw, 28px);
}

/* --------------------------------------------------
   5. About — highlight cards（對齊 index-features 色）
-------------------------------------------------- */
.static-highlights {
  margin-top: var(--static-block-gap);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap-m);
}

.static-highlight {
  position: relative;
  padding: clamp(18px, 2.2vw, 26px);
  border-radius: var(--static-card-radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  transition:
    border-color var(--static-ease),
    transform var(--static-ease);
}

.static-highlight:hover {
  border-color: var(--static-glass-border-hover);
  transform: translateY(-3px);
}

.static-highlight h3 {
  margin: 0 0 8px;
  padding: 0;
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.static-highlight p {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  line-height: 1.55;
}

.static-highlights .static-highlight:nth-child(1) {
  background-color: #3553bd;
  border-color: rgba(165, 180, 252, 0.38);
}

.static-highlights .static-highlight:nth-child(2) {
  background-color: #e66e53;
  border-color: rgba(251, 191, 36, 0.38);
}

.static-highlights .static-highlight:nth-child(3) {
  background-color: #3c938d;
  border-color: rgba(45, 212, 191, 0.38);
}

.static-highlights .static-highlight:nth-child(4) {
  background-color: #664d8d;
  border-color: rgba(167, 139, 250, 0.38);
}

/* --------------------------------------------------
   6. Privacy — trust strip
-------------------------------------------------- */
.static-trust-strip {
  margin-top: var(--static-block-gap);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-m);
}

.static-trust-item {
  padding: clamp(16px, 2vw, 22px);
  text-align: center;
  border-radius: var(--static-card-radius);
  background: var(--static-glass-bg);
  border: 1px solid var(--static-glass-border);
  box-shadow: var(--shadow-s);
  transition:
    border-color var(--static-ease),
    background-color var(--static-ease);
}

.static-trust-item:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.3);
}

.static-trust-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: #fff;
}

.static-trust-item span {
  display: block;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.page-static .section-dark .static-trust-item span {
  color: rgba(255, 255, 255, 0.72);
}

/* --------------------------------------------------
   7. Sitemap
-------------------------------------------------- */
.sitemap-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-m);
  max-width: var(--static-map-max);
  margin: 0 auto;
}

.sitemap-group {
  margin: 0;
  padding: clamp(20px, 2.4vw, 28px);
}

.sitemap-group h2 {
  margin: 0 0 14px;
  padding: 0;
  text-align: left;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 700;
  color: var(--gray-color-900);
}

.sitemap-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap-group li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid
    color-mix(in srgb, var(--gray-color-200) 75%, transparent);
}

.sitemap-group li:last-child {
  border-bottom: 0;
}

.sitemap-group li::before {
  display: none;
}

.sitemap-group a {
  display: block;
  padding: 11px 0;
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--gray-color-800);
  text-decoration: none;
  transition:
    color 0.18s ease,
    padding-left 0.18s ease;
}

.sitemap-group a:hover {
  color: var(--primary-color);
  padding-left: 6px;
  text-decoration: none;
}

/* --------------------------------------------------
   8. 404
-------------------------------------------------- */
body.page-404 {
  background-color: var(--gray-color-900);
}

.page-404 main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--gray-color-900);
}

.page-static .static-hero-section--tall {
  flex: 1 1 auto;
  min-height: min(68vh, 720px);
  display: flex;
  align-items: center;
}

.page-static .static-hero-section--tall > .container {
  width: 100%;
}

.page-static .static-404-intro .static-code {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 auto 6px;
  padding-right: 0.07em; /* 抵消負 letter-spacing 的視覺偏左 */
  box-sizing: border-box;
  text-align: center;
  font-size: clamp(6.5rem, 22vw, 11rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.07em;
  background: linear-gradient(
    120deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-static .section-dark .static-404-intro .static-code {
  color: transparent;
}

.static-quick-links {
  margin-top: var(--static-block-gap);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.static-quick-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: var(--static-card-radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--static-glass-bg);
  color: #fff !important;
  font-size: 0.92rem;
  font-weight: 600;
  transition:
    border-color 0.22s ease,
    background-color 0.22s ease,
    transform 0.22s ease;
}

.static-quick-link:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(0, 0, 0, 0.35);
  color: #fff !important;
  transform: translateY(-2px);
}

/* --------------------------------------------------
   9. Responsive
-------------------------------------------------- */
@media only screen and (max-width: 991px) {
  .static-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 767px) {
  /* 覆寫 index.css：.section-box .intro p { text-align: left } */
  .page-static .static-hero-section .intro,
  .page-static .static-hero-section .intro h1,
  .page-static .static-hero-section .intro p,
  .page-static .static-hero-section .intro .static-eyebrow,
  .page-static .static-hero-section .intro .static-meta,
  .page-static .static-404-intro .static-code {
    text-align: center;
  }

  .static-highlights,
  .static-trust-strip,
  .sitemap-map {
    grid-template-columns: 1fr;
  }

  .page-static .static-hero-section--tall {
    min-height: 0;
  }

  .page-404 .static-hero-section--tall {
    flex: 1 1 auto;
    min-height: 0;
  }

  .page-static .static-prose .static-section {
    padding: 18px 16px;
  }
}
