/* ===================================================
   雲錦閣 Yun Jin Ge — 水晶清透感設計
   Crystal-Clear Design System
   =================================================== */

:root {
  /* Crystal Palette — 水晶清透色系 */
  --color-ink: #2A2B3A;            /* 墨青 (正文) */
  --color-soft: #5C5E6E;           /* 霧紫灰 */
  --color-muted: #8A8B99;          /* 淺墨 */
  --color-line: #E8E4EC;           /* 晨霧線條 */

  --color-cloud: #EDE6F5;          /* 淡紫雲 */
  --color-paper: #F3EDF9;          /* 紫水晶宣紙 */
  --color-white: #FFFFFF;
  --color-pearl: #E1D5EE;          /* 珍珠紫 */

  --color-amethyst: #7B6BAE;       /* 淡紫水晶 */
  --color-amethyst-deep: #5D4E8F;  /* 紫光心 */
  --color-amethyst-mist: #D6CEE6;  /* 紫霧 */

  --color-rose: #E8C8D0;           /* 粉晶 */
  --color-rose-deep: #C89AA8;

  --color-aqua: #B8D8E0;           /* 海藍寶 */
  --color-aqua-deep: #7FAEBB;

  --color-gold: #C9A961;           /* 織錦金 */
  --color-gold-light: #E8D89A;
  --color-gold-deep: #A98847;

  --color-jade: #9BC4B0;           /* 青玉 */

  /* Prismatic gradient — 虹彩漸層 */
  --prism: linear-gradient(135deg, #E8C8D0 0%, #D6CEE6 25%, #C9D8EC 50%, #B8D8E0 75%, #E8D89A 100%);
  --prism-soft: linear-gradient(135deg, rgba(232,200,208,0.6) 0%, rgba(214,206,230,0.6) 35%, rgba(184,216,224,0.6) 70%, rgba(232,216,154,0.6) 100%);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.65);
  --glass-shadow: 0 8px 32px rgba(93, 78, 143, 0.10);

  /* Typography */
  --font-serif: "Noto Serif TC", "Source Han Serif TC", "Songti TC", "PMingLiU", serif;
  --font-sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;

  /* Layout */
  --container: 1200px;
  --radius-sm: 6px;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 14px rgba(93, 78, 143, 0.06);
  --shadow: 0 14px 40px rgba(93, 78, 143, 0.10);
  --shadow-lg: 0 28px 70px rgba(93, 78, 143, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background:
    radial-gradient(1400px 700px at 5% -5%, rgba(198, 180, 230, 0.65), transparent 60%),
    radial-gradient(1100px 600px at 110% 15%, rgba(215, 198, 240, 0.55), transparent 60%),
    radial-gradient(1000px 500px at 50% 110%, rgba(184, 160, 218, 0.35), transparent 60%),
    radial-gradient(800px 400px at 85% 85%, rgba(230, 215, 245, 0.5), transparent 60%),
    linear-gradient(180deg, #F3ECFB 0%, #E6DBF2 50%, #EFE5F8 100%);
  background-attachment: fixed;
  line-height: 1.8;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--color-ink);
  line-height: 1.3;
  letter-spacing: 0.04em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.625rem, 3.5vw, 2.375rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.625rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; color: var(--color-soft); }

a {
  color: var(--color-amethyst-deep);
  text-decoration: none;
  transition: color 0.25s ease;
}
a:hover { color: var(--color-gold-deep); }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.narrow { max-width: 840px; margin: 0 auto; }

/* ========== Navigation (Frosted Glass) ========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 236, 251, 0.72);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid rgba(215, 198, 240, 0.5);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--color-ink);
}

.nav-brand .logo-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--prism);
  color: var(--color-white);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  box-shadow: 0 6px 20px rgba(123, 107, 174, 0.25), inset 0 2px 6px rgba(255,255,255,0.5);
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(93,78,143,0.3);
}

.nav-brand .logo-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.85), transparent 50%);
}

.nav-brand .brand-sub {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--color-muted);
  display: block;
  margin-top: 2px;
  font-weight: 400;
}

.nav-brand .brand-stack { display: flex; flex-direction: column; line-height: 1; }

.nav-menu {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  align-items: center;
}

.nav-menu a {
  color: var(--color-ink);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 0.3rem 0;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--prism);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-menu a:hover::after,
.nav-menu a.active::after { width: 100%; }

.nav-menu a.active { color: var(--color-amethyst-deep); }

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--color-ink);
  transition: 0.3s;
  border-radius: 2px;
}

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 72px;
    right: 0;
    width: 82%;
    max-width: 340px;
    height: calc(100vh - 72px);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 2rem;
    gap: 1.4rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -20px 0 60px rgba(93, 78, 143, 0.12);
  }
  .nav-menu.open { transform: translateX(0); }
}

/* ========== Hero (Crystal-clear) ========== */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  padding: 7rem 1.5rem 5rem;
  background:
    radial-gradient(1400px 700px at 15% 20%, rgba(198, 180, 230, 0.85), transparent 55%),
    radial-gradient(1200px 650px at 85% 75%, rgba(230, 215, 245, 0.75), transparent 55%),
    radial-gradient(900px 500px at 50% 110%, rgba(215, 198, 240, 0.6), transparent 60%),
    radial-gradient(700px 400px at 30% 90%, rgba(184, 160, 218, 0.35), transparent 60%),
    linear-gradient(180deg, #F7F2FD 0%, #E6DBF2 100%);
}

/* Floating crystal light particles */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(201, 169, 97, 0.4), transparent),
    radial-gradient(2px 2px at 60% 70%, rgba(123, 107, 174, 0.4), transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(184, 216, 224, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 40% 50%, rgba(232, 200, 208, 0.5), transparent),
    radial-gradient(1px 1px at 90% 80%, rgba(201, 169, 97, 0.4), transparent),
    radial-gradient(2px 2px at 10% 80%, rgba(155, 196, 176, 0.4), transparent);
  background-size: 300px 300px, 400px 400px, 250px 250px, 350px 350px, 450px 450px, 320px 320px;
  animation: shimmer 18s ease-in-out infinite;
  opacity: 0.7;
}

/* Large crystal silhouettes in background */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1200' height='800' viewBox='0 0 1200 800'><g opacity='0.08'><path d='M100 600 L140 500 L180 520 L220 480 L200 620 Z' fill='%237B6BAE'/><path d='M900 180 L960 100 L1020 140 L990 280 L920 260 Z' fill='%23B8D8E0'/><path d='M500 700 L560 620 L620 660 L590 760 L520 780 Z' fill='%23E8C8D0'/></g></svg>");
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  pointer-events: none;
}

@keyframes shimmer {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.5; }
  50% { transform: translateY(-20px) translateX(10px); opacity: 0.85; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.5em;
  padding: 0.5rem 1.6rem;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  color: var(--color-amethyst-deep);
  margin-bottom: 1.8rem;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: var(--color-ink);
  margin-bottom: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 30px rgba(255,255,255,0.6);
}

.hero h1 .accent {
  background: linear-gradient(135deg, #7B6BAE 0%, #C89AA8 35%, #A98847 70%, #7FAEBB 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--color-soft);
  letter-spacing: 0.14em;
  margin-bottom: 2.8rem;
  line-height: 1.9;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  letter-spacing: 0.2em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #7B6BAE 0%, #5D4E8F 100%);
  color: var(--color-white);
  box-shadow: 0 10px 28px rgba(123, 107, 174, 0.35), inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transition: left 0.7s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  color: var(--color-white);
  box-shadow: 0 14px 36px rgba(123, 107, 174, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-primary:hover::before { left: 100%; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.9);
  color: var(--color-amethyst-deep);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-amethyst-deep);
  border-color: var(--color-amethyst);
  transform: translateY(-2px);
}

.btn-dark {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  color: var(--color-amethyst-deep);
  border: 1px solid var(--color-amethyst-mist);
  box-shadow: var(--shadow-sm);
}

.btn-dark:hover {
  background: var(--color-white);
  color: var(--color-amethyst-deep);
  border-color: var(--color-amethyst);
}

/* ========== Sections ========== */
section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }

.section-head {
  text-align: center;
  margin-bottom: 3.8rem;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.45em;
  color: var(--color-gold-deep);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.section-head h2 {
  position: relative;
  display: inline-block;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: var(--prism);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.section-head .lead {
  max-width: 700px;
  margin: 1.4rem auto 0;
  color: var(--color-soft);
  font-size: 1.05rem;
  line-height: 1.9;
}

/* ========== Cards (Crystal Glass) ========== */
.grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(201, 169, 97, 0.3);
}

.card-figure {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.card-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(255,255,255,0.3));
  pointer-events: none;
}

.card-body {
  padding: 1.6rem 1.8rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  color: var(--color-ink);
}

.card-meta {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  color: var(--color-gold-deep);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.card p {
  color: var(--color-soft);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex: 1;
}

.card .more {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--color-amethyst-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
}

.card .more::after {
  content: "→";
  transition: transform 0.3s;
}

.card:hover .more::after { transform: translateX(5px); }

/* Crystal figure backgrounds — clearer, translucent */
.crystal-visual {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  position: relative;
}

.crystal-amethyst-bg {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.7), transparent 50%),
    linear-gradient(135deg, #D6CEE6 0%, #9687C4 55%, #5D4E8F 100%);
}
.crystal-rose-bg {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.75), transparent 50%),
    linear-gradient(135deg, #F5DCE2 0%, #E8C8D0 55%, #C89AA8 100%);
}
.crystal-citrine-bg {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.8), transparent 50%),
    linear-gradient(135deg, #FAEBC2 0%, #E8D89A 55%, #B08234 100%);
}
.crystal-clear-bg {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.95), transparent 50%),
    linear-gradient(135deg, #F5F5FA 0%, #D8DBE8 55%, #A6AEC3 100%);
}
.crystal-obsidian-bg {
  background:
    radial-gradient(circle at 30% 25%, rgba(230,220,255,0.5), transparent 45%),
    linear-gradient(135deg, #4A4560 0%, #2B2440 55%, #0B0B14 100%);
}
.crystal-rutilated-bg {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,235,180,0.55), transparent 50%),
    linear-gradient(135deg, #E2D8B2 0%, #A89060 55%, #4E3E2B 100%);
}
.crystal-pietersite-bg {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.5), transparent 50%),
    linear-gradient(135deg, #9B8FB0 0%, #665A7D 50%, #2B2A3F 100%);
}
.crystal-jade-bg {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.7), transparent 50%),
    linear-gradient(135deg, #D0E4D6 0%, #9BC4B0 55%, #5A8570 100%);
}
.crystal-lapis-bg {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.55), transparent 50%),
    linear-gradient(135deg, #B8C6E5 0%, #4A6AA8 50%, #1C2F5E 100%);
}
.crystal-tiger-bg {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,235,180,0.6), transparent 50%),
    linear-gradient(135deg, #E6C38F 0%, #C08A48 50%, #6A3F1F 100%);
}
.crystal-aqua-bg {
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.85), transparent 50%),
    linear-gradient(135deg, #D8ECF2 0%, #B8D8E0 55%, #7FAEBB 100%);
}
.crystal-prism-bg {
  background: var(--prism);
}

/* Crystal sparkle overlay */
.crystal-visual::before {
  content: "";
  position: absolute;
  top: 15%; left: 20%;
  width: 18%; height: 18%;
  background: radial-gradient(circle, rgba(255,255,255,0.95), transparent 60%);
  pointer-events: none;
  filter: blur(2px);
}
.crystal-visual::after {
  content: "";
  position: absolute;
  bottom: 20%; right: 15%;
  width: 8%; height: 8%;
  background: radial-gradient(circle, rgba(255,255,255,0.9), transparent 60%);
  pointer-events: none;
  filter: blur(1.5px);
}

/* ========== Alternating feature ========== */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.feature:last-child { margin-bottom: 0; }
.feature.reverse .feature-visual { order: 2; }

@media (max-width: 800px) {
  .feature { grid-template-columns: 1fr; }
  .feature.reverse .feature-visual { order: 0; }
}

.feature-visual {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  background: var(--color-white);
}

.feature-body h2 { margin-bottom: 1.2rem; }
.feature-body .eyebrow {
  color: var(--color-gold-deep);
  font-size: 0.78rem;
  letter-spacing: 0.45em;
  margin-bottom: 1rem;
  display: inline-block;
  text-transform: uppercase;
}

/* ========== Page Hero (interior) ========== */
.page-hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(198, 180, 230, 0.85), transparent 55%),
    radial-gradient(1000px 550px at 90% 90%, rgba(230, 215, 245, 0.75), transparent 55%),
    radial-gradient(800px 400px at 50% 80%, rgba(215, 198, 240, 0.6), transparent 55%),
    linear-gradient(180deg, #F7F2FD 0%, #EAE0F4 100%);
  color: var(--color-ink);
  padding: 7rem 1.5rem 5rem;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(232, 228, 236, 0.6);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1.5px 1.5px at 20% 40%, rgba(123, 107, 174, 0.5), transparent),
    radial-gradient(1px 1px at 70% 30%, rgba(201, 169, 97, 0.5), transparent),
    radial-gradient(2px 2px at 40% 80%, rgba(184, 216, 224, 0.6), transparent),
    radial-gradient(1.2px 1.2px at 85% 75%, rgba(232, 200, 208, 0.5), transparent);
  background-size: 350px 350px, 450px 450px, 380px 380px, 420px 420px;
  opacity: 0.7;
  animation: shimmer 18s ease-in-out infinite;
}

.page-hero h1 { color: var(--color-ink); position: relative; z-index: 2; }
.page-hero .eyebrow {
  color: var(--color-gold-deep);
  letter-spacing: 0.5em;
  font-size: 0.82rem;
  margin-bottom: 1rem;
  display: block;
  text-transform: uppercase;
  position: relative; z-index: 2;
}
.page-hero .lead {
  max-width: 700px;
  margin: 1.5rem auto 0;
  color: var(--color-soft);
  font-size: 1.05rem;
  position: relative; z-index: 2;
  line-height: 1.9;
}

/* ========== Article Content ========== */
.article {
  background: var(--color-paper);
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.article-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem;
  font-size: 1.05rem;
  line-height: 2;
  color: #3a3b4a;
}

.article-body > h2 {
  margin-top: 3.2rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--color-line);
  position: relative;
  color: var(--color-ink);
}
.article-body > h2::before {
  content: "❖";
  color: var(--color-gold);
  margin-right: 0.6rem;
  font-size: 0.85em;
}

.article-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: var(--color-amethyst-deep);
}

.article-body p { margin-bottom: 1.2rem; color: #3a3b4a; }
.article-body ul, .article-body ol { margin: 1rem 0 1.4rem 1.8rem; }
.article-body li { margin-bottom: 0.5rem; color: #3a3b4a; }

.article-body blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.8rem;
  border-left: 3px solid var(--color-gold);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  font-family: var(--font-serif);
  color: var(--color-amethyst-deep);
  font-size: 1.1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}

.article-body strong { color: var(--color-amethyst-deep); }

.callout {
  margin: 2rem 0;
  padding: 1.6rem 1.9rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(214, 206, 230, 0.4), transparent 60%),
    rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.callout h4 {
  color: var(--color-gold-deep);
  margin-bottom: 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

/* ========== Table ========== */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  font-size: 0.95rem;
}

.table thead {
  background: linear-gradient(135deg, var(--color-amethyst) 0%, var(--color-amethyst-deep) 100%);
  color: var(--color-white);
}

.table th, .table td {
  padding: 0.95rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--color-line);
}

.table th {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.1em;
}

.table tbody tr:hover { background: rgba(214, 206, 230, 0.15); }
.table tbody tr:last-child td { border-bottom: none; }

/* ========== Steps ========== */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0;
}

.step {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 1.6rem 1.9rem 1.6rem 4.8rem;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  background: var(--prism);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.step h4 { margin-bottom: 0.4rem; color: var(--color-amethyst-deep); }
.step p { margin: 0; color: var(--color-soft); font-size: 0.95rem; }

/* ========== Quick facts ========== */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.fact {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  padding: 1.3rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.fact-label {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  color: var(--color-gold-deep);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: block;
  font-weight: 500;
}

.fact-value {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  color: var(--color-ink);
  line-height: 1.45;
}

/* ========== CTA banner ========== */
.cta-banner {
  position: relative;
  background:
    radial-gradient(circle at 15% 25%, rgba(214, 206, 230, 0.7), transparent 55%),
    radial-gradient(circle at 85% 75%, rgba(184, 216, 224, 0.6), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,0.9), rgba(239, 235, 243, 0.95));
  backdrop-filter: blur(20px);
  color: var(--color-ink);
  padding: 4.5rem 1.5rem;
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 4rem auto;
  max-width: 1100px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><path d='M60 15 L100 60 L60 105 L20 60 Z' fill='none' stroke='%237B6BAE' stroke-width='0.6' opacity='0.2'/></svg>");
  background-size: 140px;
  opacity: 0.5;
  pointer-events: none;
}

.cta-banner h2 { color: var(--color-ink); margin-bottom: 1rem; position: relative; }
.cta-banner p { color: var(--color-soft); max-width: 580px; margin: 0 auto 2rem; position: relative; }
.cta-banner .btn { position: relative; z-index: 2; }

/* ========== Footer ========== */
.footer {
  background:
    radial-gradient(800px 400px at 10% -10%, rgba(123, 107, 174, 0.15), transparent 55%),
    radial-gradient(600px 300px at 90% 110%, rgba(184, 216, 224, 0.12), transparent 55%),
    linear-gradient(180deg, #201F2E 0%, #15141F 100%);
  color: rgba(246, 244, 249, 0.72);
  padding: 4.5rem 1.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(201, 169, 97, 0.6), transparent),
    radial-gradient(1px 1px at 75% 60%, rgba(214, 206, 230, 0.5), transparent),
    radial-gradient(1.2px 1.2px at 45% 80%, rgba(184, 216, 224, 0.5), transparent);
  background-size: 300px, 400px, 350px;
  opacity: 0.7;
  pointer-events: none;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 2.5rem;
  position: relative;
}

@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer-brand .brand-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  color: var(--color-cloud);
  margin-bottom: 0.6rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.9;
  color: rgba(246, 244, 249, 0.6);
}

.footer h4 {
  color: var(--color-gold-light);
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

.footer ul { list-style: none; }
.footer li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer a {
  color: rgba(246, 244, 249, 0.65);
  transition: color 0.2s;
}
.footer a:hover { color: var(--color-gold-light); }

.footer-bottom {
  max-width: var(--container);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(246, 244, 249, 0.1);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(246, 244, 249, 0.45);
  position: relative;
}

.footer-bottom .seal {
  display: inline-block;
  background: linear-gradient(135deg, #E8D89A, #C9A961);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 0.35em;
  margin-bottom: 0.5rem;
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.12em;
}
.breadcrumb a { color: var(--color-muted); }
.breadcrumb a:hover { color: var(--color-amethyst-deep); }
.breadcrumb span { margin: 0 0.45rem; color: var(--color-gold); }

/* ========== Ornament ========== */
.ornament {
  text-align: center;
  margin: 3rem 0;
  letter-spacing: 1em;
  font-size: 1rem;
  opacity: 0.8;
}
.ornament.prism {
  background: var(--prism);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  width: 100%;
}

/* ========== Animations ========== */
/* 只在 JS 就緒後才套用動畫 ─ 若 JS 失效或延遲，內容永遠可見 */
html.anim-ready [data-anim] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
html.anim-ready [data-anim].in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.anim-ready [data-anim] { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 600px) {
  .hero { min-height: 80vh; padding: 5rem 1.25rem 4rem; }
  .hero-cta { flex-direction: column; width: 100%; }
  .btn { width: 100%; justify-content: center; }
  .feature-visual { aspect-ratio: 4 / 3; }
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Crystal frame for big features */
.crystal-frame {
  position: relative;
  width: 100%; height: 100%;
  display: grid; place-items: center;
  overflow: hidden;
}

.crystal-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 20%, rgba(255,255,255,0.55), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(255,255,255,0.3), transparent 40%);
  pointer-events: none;
}

/* ================= Image backgrounds ================= */
.bg-image {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.bg-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(45, 30, 75, 0.25));
  pointer-events: none;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  mix-blend-mode: multiply;
  filter: blur(0px) saturate(1.1);
  z-index: 0;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  mix-blend-mode: multiply;
  z-index: 0;
}

.hero-mask::before { z-index: 1; }
.hero-mask .hero-inner { z-index: 2; }

.image-card {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform 0.5s ease;
}

.image-card:hover { transform: scale(1.02); }

.card-photo {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  position: relative;
}

.card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(45, 30, 75, 0.15));
  pointer-events: none;
}

.inline-img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin: 1.5rem 0;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.photo-gallery .image-card {
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}

/* Feature with image */
.feature-photo {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.feature-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(123, 107, 174, 0.05), rgba(45, 30, 75, 0.15));
  pointer-events: none;
}

/* ================= Music Player ================= */
.music-player {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 100;
  font-family: var(--font-sans);
}

.mp-toggle {
  width: 56px;
  height: 56px;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.6), transparent 50%),
    linear-gradient(135deg, #8068A8 0%, #5D4E8F 100%);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(93, 78, 143, 0.35), inset 0 2px 6px rgba(255,255,255,0.3);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.mp-toggle:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 14px 32px rgba(93, 78, 143, 0.45), inset 0 2px 6px rgba(255,255,255,0.4);
}

.mp-toggle:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

.mp-toggle svg { width: 22px; height: 22px; }
.mp-icon-pause { display: none; }
.music-player.playing .mp-icon-play { display: none; }
.music-player.playing .mp-icon-pause { display: block; }

/* 播放時的聲波動畫 */
.mp-wave {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
}
.music-player.playing .mp-wave { display: block; }
.mp-wave::before, .mp-wave::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(201, 169, 97, 0.45);
  animation: mpRipple 2.4s infinite;
}
.mp-wave::after { animation-delay: 1.2s; }
@keyframes mpRipple {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* 展開面板 */
.mp-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: 260px;
  padding: 1.2rem 1.3rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.music-player.open .mp-panel {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.mp-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.mp-title-text {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--color-amethyst-deep);
  letter-spacing: 0.15em;
}
.mp-close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-muted);
  cursor: pointer;
  padding: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  transition: all 0.2s;
}
.mp-close:hover { color: var(--color-amethyst-deep); background: rgba(123,107,174,0.1); }

.mp-state {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 0.8rem;
  letter-spacing: 0.08em;
}

.mp-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.mp-row:last-child { margin-bottom: 0; }

.mp-row label {
  font-size: 0.75rem;
  color: var(--color-muted);
  letter-spacing: 0.1em;
  min-width: 32px;
}

.mp-volume {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: linear-gradient(90deg, var(--color-amethyst) 0%, var(--color-amethyst) var(--volpct, 30%), rgba(123,107,174,0.15) var(--volpct, 30%), rgba(123,107,174,0.15) 100%);
  border-radius: 2px;
  outline: none;
}
.mp-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  background: #fff;
  border: 2px solid var(--color-amethyst);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(93,78,143,0.3);
}
.mp-volume::-moz-range-thumb {
  width: 14px; height: 14px;
  background: #fff;
  border: 2px solid var(--color-amethyst);
  border-radius: 50%;
  cursor: pointer;
}

.mp-loop-label {
  font-size: 0.82rem;
  color: var(--color-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}
.mp-loop-label input { accent-color: var(--color-amethyst); }

.mp-hint {
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(232,228,236,0.8);
  line-height: 1.6;
  letter-spacing: 0.05em;
}

@media (max-width: 500px) {
  .music-player { right: 1rem; bottom: 1rem; }
  .mp-panel { width: calc(100vw - 2rem); max-width: 260px; }
}

/* 列印時隱藏 */
@media print {
  .music-player { display: none; }
}
