/* ==========================================================================
   逍遥社 · 墨韵流金 (Xiaoyao Society Design System)
   Obsidian Ink, Brushed Champagne Gold & Smoked Celadon Jade
   ========================================================================== */

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090c0f;
  --bg-alt: #0d1216;
  --surface: #12181e;
  --surface-2: #171f27;
  --surface-glass: rgba(11, 15, 19, 0.8);
  --ink: #f4efe6;
  --ink-soft: #c4cbce;
  --muted: #849098;
  --line: rgba(216, 180, 116, 0.14);
  --line-soft: rgba(255, 255, 255, 0.07);
  --line-hover: rgba(216, 180, 116, 0.42);
  --gold: #d8b474;
  --gold-bright: #f2d8a3;
  --gold-deep: #9c793e;
  --gold-tint: rgba(216, 180, 116, 0.12);
  --gold-ink: #16110a;
  --jade: #5da092;
  --jade-deep: #2a5f56;
  --jade-tint: rgba(93, 160, 146, 0.14);
  --shadow-card: 0 18px 42px rgba(0, 0, 0, 0.36);
  --shadow-dialog: 0 32px 96px rgba(0, 0, 0, 0.72);
  --spotlight: rgba(216, 180, 116, 0.12);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --measure: 1320px;
  --gutter: clamp(18px, 4.2vw, 64px);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Inter", "SF Pro Display", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --font-mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f1ea;
  --bg-alt: #ece7dc;
  --surface: #fcfaf5;
  --surface-2: #f4efe4;
  --surface-glass: rgba(244, 241, 234, 0.84);
  --ink: #151a1e;
  --ink-soft: #3a444a;
  --muted: #626d73;
  --line: rgba(21, 26, 30, 0.11);
  --line-soft: rgba(21, 26, 30, 0.06);
  --line-hover: rgba(160, 119, 49, 0.48);
  --gold: #a67c37;
  --gold-bright: #c4974b;
  --gold-deep: #7a5820;
  --gold-tint: rgba(166, 124, 55, 0.11);
  --gold-ink: #fffcf5;
  --jade: #2b6b60;
  --jade-deep: #1e4f46;
  --jade-tint: rgba(43, 107, 96, 0.11);
  --shadow-card: 0 14px 34px rgba(21, 26, 30, 0.07);
  --shadow-dialog: 0 28px 80px rgba(21, 26, 30, 0.22);
  --spotlight: rgba(166, 124, 55, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  min-width: 0;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 45% at 15% -5%, rgba(93, 160, 146, 0.08), transparent 60%),
    radial-gradient(ellipse 65% 40% at 88% 8%, rgba(216, 180, 116, 0.08), transparent 58%);
  content: "";
}
:root[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 70% 42% at 12% -6%, rgba(43, 107, 96, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 38% at 90% 6%, rgba(166, 124, 55, 0.07), transparent 58%);
}
body:has(dialog[open]) { overflow: hidden; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img { display: block; width: 100%; height: auto; }
p, h1, h2, h3, h4, dl, dd { margin: 0; }
h1, h2, h3, h4 { line-height: 1.24; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 96px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 99;
  top: 12px;
  left: 12px;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.container {
  width: min(var(--measure), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface-glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.2rem;
  min-height: 76px;
}
.brand {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  width: max-content;
  gap: 0.72rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-symbol {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(216, 180, 116, 0.36);
  border-radius: 11px;
  background: linear-gradient(145deg, #182229 0%, #0a0e12 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.brand:hover .brand-symbol {
  transform: translateY(-1px);
  border-color: var(--gold);
}
.brand-symbol svg { width: 26px; height: 26px; }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-name {
  font-size: 1.26rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.05;
}
.brand-sub {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  opacity: 0.85;
}

.site-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: clamp(1rem, 2.2vw, 2.5rem);
}
.site-nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.4rem 0;
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 560;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.site-nav a:hover,
.site-nav a[aria-current] {
  color: var(--ink);
}
.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: transform 0.25s ease;
  content: "";
}
.site-nav a[aria-current]::after {
  transform: scaleX(1);
}

.header-right {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 0.65rem;
}
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.theme-toggle:hover {
  border-color: var(--line-hover);
  background: var(--gold-tint);
  color: var(--gold);
}
.theme-toggle svg { width: 17px; height: 17px; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }

.header-member {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.48rem 1.05rem;
  border: 1px solid var(--line-hover);
  border-radius: 999px;
  background: var(--gold-tint);
  color: var(--gold-bright);
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
:root[data-theme="light"] .header-member {
  color: var(--gold-deep);
}
.header-member:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--gold-ink);
  transform: translateY(-1px);
}
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(20px, 2.6vw, 34px);
}
.hero-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(470px, 44vw, 600px);
  overflow: hidden;
  padding: clamp(36px, 5.5vw, 84px);
  border: 1px solid rgba(216, 180, 116, 0.22);
  border-radius: var(--radius-lg);
  background: #0a0e12;
  color: #f6f1e7;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}
:root[data-theme="light"] .hero-panel {
  border-color: rgba(21, 26, 30, 0.14);
  box-shadow: 0 26px 68px rgba(21, 26, 30, 0.18);
}
.hero-bg-layer {
  position: absolute;
  z-index: -2;
  inset: -2%;
  background: url("assets/hero.jpg") right center / cover no-repeat;
  animation: heroFloat 14s ease-in-out infinite alternate;
}
@keyframes heroFloat {
  from { transform: scale(1.01) translate3d(0, 0, 0); }
  to { transform: scale(1.045) translate3d(-0.6%, -0.8%, 0); }
}
.hero-panel::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(95deg, #090d10f5 0%, #0b1014d9 36%, #0b10146e 62%, rgba(9, 12, 15, 0.12) 100%),
    radial-gradient(ellipse 46% 62% at 14% 20%, rgba(93, 160, 146, 0.12), transparent 70%);
  content: "";
}
.hero-grid-overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(216, 180, 116, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216, 180, 116, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(125deg, black 0%, transparent 55%);
}
.hero-copy {
  position: relative;
  width: min(100%, 620px);
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.92rem;
  border: 1px solid rgba(216, 180, 116, 0.26);
  border-radius: 999px;
  background: rgba(15, 22, 27, 0.65);
  backdrop-filter: blur(8px);
  color: #e4cca0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 560;
  letter-spacing: 0.1em;
}
.kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6cc2b0;
  box-shadow: 0 0 10px #6cc2b0;
}
.hero h1 {
  font-size: clamp(3.15rem, 6.4vw, 5.75rem);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #f8f4ec;
}
.hero-gradient {
  display: inline-block;
  background: linear-gradient(115deg, #f8e5bd 0%, #dfb873 48%, #b38642 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-summary {
  max-width: 31rem;
  margin-top: 1.45rem;
  color: #cbd2d6;
  font-size: 1.03rem;
  line-height: 1.85;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}
.hero-corner-mark {
  position: absolute;
  right: clamp(24px, 3vw, 44px);
  bottom: clamp(20px, 2.6vw, 34px);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(242, 216, 163, 0.56);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
}
.corner-line {
  width: 36px;
  height: 1px;
  background: rgba(216, 180, 116, 0.45);
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  min-height: 48px;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.42rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 680;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}
.button svg {
  width: 16px;
  height: 16px;
  transition: transform 0.22s ease;
}
.button:hover { transform: translateY(-2px); }
.button:hover svg { transform: translateX(3px); }
.button-primary {
  background: linear-gradient(135deg, #edd19a 0%, #d4ac65 100%);
  color: #16110a;
  box-shadow: 0 10px 26px rgba(216, 180, 116, 0.24);
}
.button-primary:hover {
  background: linear-gradient(135deg, #f6e0b3 0%, #dfc07f 100%);
  box-shadow: 0 14px 32px rgba(216, 180, 116, 0.34);
}
.button-glass {
  border-color: rgba(242, 216, 163, 0.3);
  background: rgba(16, 23, 29, 0.58);
  backdrop-filter: blur(10px);
  color: #f5efe6;
}
.button-glass:hover {
  border-color: rgba(242, 216, 163, 0.65);
  background: rgba(26, 37, 45, 0.8);
}

/* ---------- Stats Strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(16px, 2vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.stat {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 118px;
  flex-direction: column-reverse;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.35rem clamp(18px, 3vw, 40px);
  transition: background-color 0.25s ease;
}
.stat:hover {
  background: var(--surface-2);
}
.stat + .stat::before {
  position: absolute;
  top: 22%;
  bottom: 22%;
  left: 0;
  width: 1px;
  background: var(--line);
  content: "";
}
.stat dt {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 560;
}
.stat-en {
  color: var(--jade);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  opacity: 0.9;
}
.stat dd {
  font-family: var(--font-serif);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2rem, 3.2vw, 3.05rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
}
.stat dd span {
  margin-left: 0.08em;
  color: var(--gold);
  font-family: var(--font-sans);
  font-weight: 700;
}

/* ---------- Sections & Headings ---------- */
.section {
  padding-block: clamp(64px, 7.5vw, 108px);
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.eyebrow-num {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.eyebrow-sep { opacity: 0.45; }
.section-heading { margin-bottom: clamp(26px, 3.4vw, 42px); }
.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem 2rem;
}
.section-heading h2,
.member-panel h2 {
  font-size: clamp(2rem, 3.8vw, 3.15rem);
  font-weight: 820;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.section-heading p {
  max-width: 36rem;
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ---------- Search & Filters ---------- */
.search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: min(100%, 336px);
  min-height: 46px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.search-field:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-tint);
}
.search-svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--muted);
}
.search-field input {
  width: 100%;
  min-width: 0;
  padding: 0.6rem 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 0.92rem;
}
.search-field input::placeholder { color: var(--muted); opacity: 0.85; }

.course-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.2rem;
  margin-bottom: 1.65rem;
}
.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.filter-button {
  padding: 0.46rem 0.98rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.filter-button:hover {
  border-color: var(--line-hover);
  color: var(--ink);
  background: var(--gold-tint);
}
.filter-button[aria-pressed="true"] {
  border-color: var(--gold);
  background: linear-gradient(135deg, #edd19a 0%, #d4ac65 100%);
  color: #16110a;
  box-shadow: 0 6px 18px rgba(216, 180, 116, 0.2);
}
:root[data-theme="light"] .filter-button[aria-pressed="true"] {
  border-color: #1a2127;
  background: #1a2127;
  color: #f6f1e6;
  box-shadow: 0 6px 18px rgba(21, 26, 30, 0.14);
}
.results-count {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  white-space: nowrap;
}
.results-count:empty { display: none; }

/* ---------- Interactive Spotlight Card Base ---------- */
.course-grid,
.path-grid,
.library-grid,
.team-grid {
  display: grid;
  gap: clamp(14px, 1.7vw, 22px);
}
.course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }

.course-card,
.path-card,
.library-card,
.team-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}
.course-card::after,
.path-card::after,
.library-card::after,
.team-card::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), var(--spotlight), transparent 65%);
  transition: opacity 0.3s ease;
  content: "";
}
.course-card:hover,
.path-card:hover,
.library-card:hover,
.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-hover);
  box-shadow: var(--shadow-card);
}
.course-card:hover::after,
.path-card:hover::after,
.library-card:hover::after,
.team-card:hover::after {
  opacity: 1;
}

/* ---------- Course Cards ---------- */
.course-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
}
.course-art {
  --art-bg1: #11181f;
  --art-bg2: #1f2b36;
  --art-accent: #d8b474;
  --art-glow: rgba(216, 180, 116, 0.28);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 162px;
  padding: 1.15rem 1.25rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(ellipse 80% 90% at 92% 10%, var(--art-glow), transparent 65%),
    linear-gradient(145deg, var(--art-bg1) 0%, var(--art-bg2) 100%);
  color: #f6f1e7;
}
[data-theme="douyin"] .course-art {
  --art-bg1: #141015;
  --art-bg2: #2d1820;
  --art-accent: #e79e88;
  --art-glow: rgba(226, 120, 96, 0.28);
}
[data-theme="xiaohongshu"] .course-art {
  --art-bg1: #171018;
  --art-bg2: #341827;
  --art-accent: #f0a4b8;
  --art-glow: rgba(235, 118, 152, 0.28);
}
[data-theme="wechat"] .course-art {
  --art-bg1: #0c1716;
  --art-bg2: #183631;
  --art-accent: #82cbb9;
  --art-glow: rgba(93, 178, 155, 0.28);
}
[data-theme="kuaishou"] .course-art {
  --art-bg1: #17120d;
  --art-bg2: #352315;
  --art-accent: #efb982;
  --art-glow: rgba(235, 156, 88, 0.26);
}
[data-theme="ai"] .course-art {
  --art-bg1: #111120;
  --art-bg2: #242042;
  --art-accent: #c3b0f5;
  --art-glow: rgba(164, 134, 240, 0.28);
}
[data-theme="industry"] .course-art {
  --art-bg1: #10151b;
  --art-bg2: #212a32;
  --art-accent: #e5c68b;
  --art-glow: rgba(216, 180, 116, 0.26);
}
.course-art::before {
  position: absolute;
  z-index: -1;
  top: -36px;
  right: -36px;
  width: 170px;
  height: 170px;
  border: 1px solid var(--art-accent);
  border-radius: 50%;
  opacity: 0.2;
  box-shadow: 0 0 0 22px transparent, 0 0 0 23px color-mix(in srgb, var(--art-accent) 18%, transparent);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  content: "";
}
.course-art::after {
  position: absolute;
  z-index: -1;
  right: 16px;
  bottom: -24px;
  width: 118px;
  height: 118px;
  transform: rotate(35deg);
  border: 1px solid var(--art-accent);
  border-radius: 22px;
  opacity: 0.14;
  content: "";
}
.course-card:hover .course-art::before {
  transform: scale(1.08) rotate(12deg);
}

.art-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.art-series {
  padding: 0.2rem 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
  color: var(--art-accent);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.art-chapters {
  color: rgba(246, 241, 231, 0.72);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}
.art-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.6rem;
}
.art-mark {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 2.8vw, 2.45rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: #fbf7ef;
}
.art-label {
  color: var(--art-accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.92;
}

.course-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(18px, 2vw, 24px);
}
.course-tag,
.card-tag {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 0.2rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--gold-tint);
  color: var(--gold-bright);
  font-size: 0.76rem;
  font-weight: 640;
  letter-spacing: 0.03em;
}
:root[data-theme="light"] .course-tag,
:root[data-theme="light"] .card-tag {
  color: var(--gold-deep);
}
.course-title {
  margin: 0.7rem 0 0.55rem;
  color: var(--ink);
  font-size: clamp(1.08rem, 1.4vw, 1.22rem);
  font-weight: 760;
  line-height: 1.4;
}
.course-description {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.68;
  margin-bottom: 1.15rem;
}
.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
}
.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  color: var(--muted);
  font-size: 0.81rem;
}

.card-action,
.source-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--gold-bright);
  font-size: 0.88rem;
  font-weight: 660;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}
:root[data-theme="light"] .card-action,
:root[data-theme="light"] .source-link {
  color: var(--gold-deep);
}
.card-action:hover,
.source-link:hover {
  color: var(--gold);
  gap: 0.55rem;
}
button.card-action {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}
.empty-state {
  grid-column: 1 / -1;
  padding: 3rem 1.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

/* ---------- Learning Paths (2x2 Architectural Grid) ---------- */
.learning-section {
  border-block: 1px solid var(--line);
  background: var(--bg-alt);
}
.path-card {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.6vw, 34px);
  overflow: hidden;
}
.path-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.path-index {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.2vw, 3rem);
  font-weight: 700;
  line-height: 0.9;
  color: var(--gold);
  opacity: 0.32;
  transition: opacity 0.25s ease;
}
.path-card:hover .path-index { opacity: 0.68; }
.path-card h3 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.22rem, 1.6vw, 1.42rem);
  font-weight: 780;
  color: var(--ink);
}
.path-card > p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}
.path-preview {
  margin: 1.15rem 0 0;
  padding: 1rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 0.48rem;
}
.path-preview li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: 0.87rem;
  line-height: 1.55;
}
.path-preview li::before {
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--jade);
  content: "";
}
.path-card .card-action,
.path-card .source-link {
  margin-top: auto;
  padding-top: 1.25rem;
}

/* ---------- Library ---------- */
.library-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(20px, 2.3vw, 28px);
}
.library-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}
.library-mark {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding-inline: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--jade-tint);
  color: var(--jade);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
}
.library-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.14rem;
  font-weight: 760;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.library-card > p {
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.68;
}
.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.95rem 0 0;
  padding: 0;
  list-style: none;
}
.meta-pills li {
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 0.78rem;
}
.library-card .card-action,
.library-card .source-link {
  margin-top: auto;
  padding-top: 1.15rem;
}

/* ---------- About & Team ---------- */
.about-section {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}
.about-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 2rem clamp(36px, 5vw, 80px);
  align-items: start;
}
.about-intro { margin-bottom: 0; position: sticky; top: 104px; }
.about-pillars {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.pillar {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}
.pillar strong {
  color: var(--gold-bright);
  font-size: 0.92rem;
  font-weight: 700;
}
:root[data-theme="light"] .pillar strong { color: var(--gold-deep); }
.pillar span { color: var(--muted); font-size: 0.88rem; }

.team-card {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.2vw, 26px);
}
.team-card:first-child {
  grid-column: 1 / -1;
  background:
    radial-gradient(ellipse 65% 80% at 100% 0%, var(--gold-tint), transparent 65%),
    var(--surface);
  border-color: rgba(216, 180, 116, 0.26);
}
.team-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.85rem;
}
.team-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(216, 180, 116, 0.42);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(216, 180, 116, 0.2), rgba(93, 160, 146, 0.14));
  color: var(--gold-bright);
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 700;
}
:root[data-theme="light"] .team-avatar { color: var(--gold-deep); }
.team-identity h3 {
  font-size: 1.16rem;
  font-weight: 780;
  line-height: 1.25;
}
.team-role {
  display: inline-block;
  margin-top: 0.18rem;
  color: var(--jade);
  font-size: 0.8rem;
  font-weight: 600;
}
.team-card > p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.68;
}
.team-card .card-action {
  margin-top: auto;
  padding-top: 1rem;
}

/* ---------- Member Portal ---------- */
.member-section {
  padding-block: clamp(46px, 6vw, 84px);
}
.member-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(28px, 4.6vw, 62px);
  overflow: hidden;
  border: 1px solid rgba(216, 180, 116, 0.28);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 60% 90% at 88% 15%, rgba(216, 180, 116, 0.22), transparent 62%),
    radial-gradient(ellipse 55% 85% at 15% 100%, rgba(78, 138, 126, 0.22), transparent 60%),
    #0c1116;
  color: #f6f1e7;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
}
.member-eyebrow {
  color: #e2c284;
  margin-bottom: 0.55rem;
}
.member-panel h2 {
  color: #f9f5ec;
  font-size: clamp(1.8rem, 3.2vw, 2.55rem);
}
.member-panel p {
  margin-top: 0.55rem;
  max-width: 40rem;
  color: #c5ced2;
}
.member-cta { flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 90px;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  padding-block: 1.2rem;
}
.footer-inner p {
  color: var(--muted);
  font-size: 0.86rem;
}
.brand-footer .brand-symbol { width: 30px; height: 30px; border-radius: 8px; }
.brand-footer .brand-symbol svg { width: 20px; height: 20px; }
.brand-footer .brand-name { font-size: 1.06rem; }
.noscript-note { padding-block: 1.2rem; color: var(--gold); }

/* ---------- Resource Detail Dialog ---------- */
.resource-dialog {
  width: min(740px, calc(100% - 28px));
  max-height: min(calc(100dvh - 32px), 840px);
  padding: 0;
  border: 1px solid rgba(216, 180, 116, 0.28);
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-dialog);
}
.resource-dialog::backdrop {
  background: rgba(5, 8, 11, 0.72);
  backdrop-filter: blur(8px);
}
.dialog-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(20px, 4vw, 36px);
  border-bottom: 1px solid var(--line);
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
}
.dialog-header .card-tag:empty { visibility: hidden; }
.dialog-close {
  position: relative;
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.dialog-close:hover {
  border-color: var(--line-hover);
  background: var(--gold-tint);
  color: var(--gold);
}
.dialog-close::before,
.dialog-close::after {
  position: absolute;
  width: 15px;
  height: 1.7px;
  transform: rotate(45deg);
  border-radius: 2px;
  background: currentColor;
  content: "";
}
.dialog-close::after { transform: rotate(-45deg); }

.detail-content {
  padding: clamp(22px, 4vw, 36px);
  overflow-wrap: anywhere;
}
.detail-content h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 820;
  letter-spacing: -0.03em;
}
.detail-content h3 {
  margin-bottom: 0.75rem;
  font-size: 1.05rem;
  font-weight: 740;
  color: var(--gold-bright);
}
:root[data-theme="light"] .detail-content h3 { color: var(--gold-deep); }
.detail-content p {
  margin-bottom: 0.7rem;
  color: var(--ink-soft);
  line-height: 1.72;
}
.detail-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}
.detail-meta-list li {
  padding: 0.24rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 0.82rem;
}
.detail-section {
  margin-top: 1.6rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}
.detail-section ul.plain-list {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}
.detail-section ul.plain-list li { margin-bottom: 0.48rem; line-height: 1.65; }

/* Syllabus / Links list in dialog */
.syllabus-list {
  display: grid;
  gap: 0.5rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}
.syllabus-list a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.72rem 0.95rem;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 550;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.syllabus-list a:hover {
  border-color: var(--line-hover);
  background: var(--gold-tint);
  transform: translateX(3px);
}
.syllabus-num {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 26px;
  border-radius: 7px;
  background: var(--gold-tint);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  flex: none;
}
.syllabus-label { flex: 1; }
.syllabus-arrow {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.syllabus-list a:hover .syllabus-arrow {
  color: var(--gold);
  transform: translate(2px, -2px);
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.8rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.36s cubic-bezier(0.22, 1, 0.36, 1), transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .course-grid,
  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-layout {
    grid-template-columns: 1fr;
  }
  .about-intro { position: static; }
  .hero-corner-mark { display: none; }
}

@media (max-width: 760px) {
  [id] { scroll-margin-top: 76px; }
  .header-inner {
    position: relative;
    min-height: 66px;
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
  }
  .brand-sub { display: none; }
  .menu-toggle {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-content: center;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    color: var(--ink);
  }
  .menu-toggle span {
    width: 16px;
    height: 1.6px;
    border-radius: 2px;
    background: currentColor;
  }
  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    min-width: min(240px, 100vw - 2 * var(--gutter));
    padding: 0.55rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    padding: 0.68rem 0.9rem;
    border-radius: 9px;
  }
  .site-nav a[aria-current] {
    background: var(--gold-tint);
    color: var(--gold-bright);
  }
  :root[data-theme="light"] .site-nav a[aria-current] { color: var(--gold-deep); }
  .site-nav a::after { display: none; }

  .hero-panel {
    min-height: 440px;
    padding: clamp(24px, 6vw, 44px);
  }
  .hero-panel::before {
    background: linear-gradient(100deg, #090d10f2 0%, #0b1014cc 58%, rgba(9, 12, 15, 0.52) 100%);
  }
  .hero h1 { font-size: clamp(2.55rem, 10vw, 3.9rem); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { min-height: 96px; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stat:nth-child(3)::before { display: none; }
  .section-heading-row { align-items: flex-start; flex-direction: column; }
  .search-field { width: 100%; }
  .course-controls { align-items: flex-start; flex-direction: column; }
  .path-grid { grid-template-columns: 1fr; }
  .member-panel { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 520px) {
  .course-grid,
  .library-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
  .team-card:first-child { grid-column: auto; }
  .header-member { padding: 0.42rem 0.78rem; font-size: 0.82rem; }
  .footer-inner p { flex-basis: 100%; order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
