/* ==========================================================================
   寒山书院 — 设计系统
   当代书法与水墨研习
   ========================================================================== */

/* ---------- 字体引入 ---------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@200;300;400;500;700;900&family=Noto+Sans+SC:wght@300;400;500;700&family=Ma+Shan+Zheng&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

/* ---------- 设计令牌 (Design Tokens) ---------- */
:root {
  /* 色彩 */
  --paper: #F5F1E8;          /* 米白宣纸 */
  --paper-warm: #EDE6D3;     /* 暖米色，二级背景 */
  --paper-deep: #E0D7BF;     /* 旧纸，区块分割 */
  --ink: #1A1A1A;            /* 浓墨 */
  --ink-soft: #4A4A47;       /* 淡墨 */
  --ink-faded: #8A8880;      /* 极淡墨 */
  --seal: #A8332E;           /* 印章朱砂 */
  --seal-deep: #7A1F1C;      /* 深朱砂 */
  --tea: #5A6B4E;            /* 茶绿，强调用 */
  --gold: #B8935A;           /* 古铜金，装饰线 */
  --line: rgba(26, 26, 26, 0.12);
  --line-strong: rgba(26, 26, 26, 0.24);

  /* 字体 */
  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-brush: "Ma Shan Zheng", "Noto Serif SC", serif;
  --font-latin: "Cormorant Garamond", Georgia, serif;

  /* 间距 */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;

  /* 字号 (fluid) */
  --fs-xs: clamp(11px, 0.7rem + 0.2vw, 13px);
  --fs-sm: clamp(13px, 0.8rem + 0.2vw, 15px);
  --fs-base: clamp(15px, 0.9rem + 0.2vw, 17px);
  --fs-lg: clamp(18px, 1rem + 0.5vw, 22px);
  --fs-xl: clamp(22px, 1.2rem + 0.6vw, 28px);
  --fs-2xl: clamp(28px, 1.5rem + 1vw, 40px);
  --fs-3xl: clamp(38px, 2rem + 1.6vw, 60px);
  --fs-display: clamp(48px, 3rem + 2.4vw, 92px);

  /* 圆角与过渡 */
  --radius-sm: 2px;
  --radius-md: 4px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(at 20% 30%, rgba(184, 147, 90, 0.04) 0%, transparent 50%),
    radial-gradient(at 80% 70%, rgba(168, 51, 46, 0.03) 0%, transparent 50%);
  font-weight: 300;
  letter-spacing: 0.02em;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--seal); }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

ul, ol { list-style: none; }

::selection { background: var(--seal); color: var(--paper); }

/* ---------- 工具类 ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--space-4); }
.container-narrow { max-width: 960px; margin: 0 auto; padding: 0 var(--space-4); }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 var(--space-4); }

.section { padding: var(--space-7) 0; }
.section-tight { padding: var(--space-5) 0; }
.section-divider { border-top: 1px solid var(--line); }

.eyebrow {
  font-family: var(--font-serif);
  font-size: var(--fs-xs);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-faded);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 400;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.eyebrow .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--seal);
  border-radius: 50%;
}

/* ---------- 印章 (Seal) ---------- */
.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--seal);
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  writing-mode: vertical-rl;
  text-orientation: upright;
  border-radius: 2px;
  line-height: 1;
  padding: 6px 0;
  position: relative;
}

.seal::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(245, 241, 232, 0.5);
  border-radius: 1px;
}

.seal-md { width: 72px; height: 72px; font-size: 22px; }
.seal-lg { width: 96px; height: 96px; font-size: 28px; }

.seal-outline {
  background: transparent;
  color: var(--seal);
  border: 1.5px solid var(--seal);
}
.seal-outline::before { border-color: var(--seal); }

/* ---------- 导航栏 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--space-3) 0;
  background: rgba(245, 241, 232, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: padding 0.3s var(--ease);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand .seal { width: 40px; height: 40px; font-size: 14px; }

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-brand-cn {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.nav-brand-en {
  font-family: var(--font-latin);
  font-size: 11px;
  font-style: italic;
  color: var(--ink-faded);
  letter-spacing: 0.15em;
}

.nav-menu {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--seal);
  transition: width 0.3s var(--ease);
}

.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-link.active { color: var(--ink); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  letter-spacing: 0.1em;
  border-radius: 2px;
  transition: background 0.3s var(--ease), transform 0.2s var(--ease);
}

.nav-cta:hover { background: var(--seal); color: var(--paper); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  transition: all 0.3s var(--ease);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--space-7) + 60px) 0 var(--space-6);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-7);
  align-items: center;
}

.hero-content { position: relative; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: var(--fs-xs);
  color: var(--ink-soft);
  letter-spacing: 0.3em;
  margin-bottom: var(--space-4);
}

.hero-tag-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  background: var(--seal);
  color: var(--paper);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: var(--fs-display);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-3);
  color: var(--ink);
}

.hero-title .accent {
  font-family: var(--font-brush);
  font-weight: 400;
  color: var(--seal);
  letter-spacing: 0.02em;
}

.hero-title .vertical {
  writing-mode: vertical-rl;
  text-orientation: upright;
  display: inline-block;
  margin-left: 16px;
  font-size: 0.4em;
  color: var(--ink-faded);
  font-weight: 300;
  letter-spacing: 0.3em;
  line-height: 1.8;
  vertical-align: middle;
  position: relative;
  top: -4px;
  max-height: 1.6em;
  overflow: hidden;
}

.hero-title .vertical:hover {
  color: var(--seal);
  transition: color 0.3s;
}

.hero-subtitle {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: var(--fs-lg);
  color: var(--ink-soft);
  font-weight: 300;
  margin-bottom: var(--space-4);
  max-width: 520px;
  line-height: 1.4;
}

.hero-desc {
  font-size: var(--fs-base);
  color: var(--ink-soft);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: var(--space-5);
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.15em;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--seal);
  color: var(--paper);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-link {
  padding: 0;
  color: var(--ink);
  font-weight: 500;
}

.btn-link .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

.btn-link:hover .arrow { transform: translateX(4px); }

/* Hero 视觉侧 */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-frame {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  background: var(--paper-warm);
  overflow: hidden;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.9) contrast(1.05);
}

.hero-visual-frame::before {
  content: '';
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
  z-index: 1;
}

/* 引言水印 */
.hero-visual-quote {
  position: absolute;
  bottom: 48px; left: 48px;
  z-index: 3;
  color: var(--paper);
  display: flex;
  align-items: baseline;
  gap: 4px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-visual-quote .quote-mark {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 200;
  opacity: 0.7;
  line-height: 1;
}

.hero-visual-quote .quote-text {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 1;
}

.hero-visual-quote .quote-mark.close { margin-left: 2px; }

/* 隐藏原 SVG inner（已被图片替代） */
.hero-visual-inner { display: none; }
.hero-visual-inner svg { display: none; }

.hero-seal {
  position: absolute;
  bottom: -24px;
  right: -24px;
  z-index: 5;
}

.hero-meta {
  position: absolute;
  bottom: -20px;
  left: 0;
  display: flex;
  gap: var(--space-4);
  padding: 16px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px -16px rgba(26, 26, 26, 0.15);
}

.hero-meta-item { display: flex; flex-direction: column; gap: 2px; }
.hero-meta-num {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.hero-meta-label {
  font-size: 11px;
  color: var(--ink-faded);
  letter-spacing: 0.15em;
}

/* Hero 装饰元素 */
.hero-deco-line {
  position: absolute;
  top: 20%;
  right: 4%;
  width: 1px;
  height: 60%;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  opacity: 0.4;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ink-faded);
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: var(--ink-faded);
  animation: scrollPulse 2s var(--ease) infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.5); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 0.7; }
}

/* ---------- Section Heads ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-6);
  align-items: end;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}

.section-head-left { display: flex; flex-direction: column; gap: var(--space-3); }

.section-title {
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.section-title .accent {
  font-family: var(--font-brush);
  color: var(--seal);
  font-weight: 400;
}

.section-title-en {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: var(--fs-lg);
  color: var(--ink-faded);
  font-weight: 300;
}

.section-sub {
  font-size: var(--fs-base);
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 580px;
  font-weight: 300;
}

/* ---------- 理念 / Intro Section ---------- */
.intro {
  background: var(--paper);
  padding: var(--space-7) 0;
  position: relative;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-6);
  align-items: start;
}

.intro-quote {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  line-height: 1.6;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: 0.03em;
  border-left: 2px solid var(--seal);
  padding-left: var(--space-3);
}

.intro-quote .source {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-latin);
  font-style: italic;
  font-size: var(--fs-sm);
  color: var(--ink-faded);
}

.intro-body {
  display: grid;
  gap: var(--space-3);
  font-size: var(--fs-base);
  line-height: 1.9;
  color: var(--ink-soft);
  font-weight: 300;
}

.intro-body p { max-width: 580px; }

.intro-body p strong {
  font-weight: 500;
  color: var(--ink);
}

.intro-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.intro-feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.intro-feature-num {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 300;
  color: var(--seal);
  line-height: 1;
}

.intro-feature-label {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  font-weight: 400;
}

/* ---------- 课程卡片 ---------- */
.courses {
  background: var(--paper-warm);
  padding: var(--space-7) 0;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.course-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  transition: all 0.3s var(--ease);
  overflow: hidden;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--seal);
  transition: width 0.4s var(--ease);
}

.course-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px -16px rgba(26, 26, 26, 0.12);
}

.course-card:hover::before { width: 100%; }

.course-num {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-serif);
  font-size: var(--fs-sm);
  color: var(--ink-faded);
  letter-spacing: 0.2em;
}

.course-num .level {
  padding: 4px 10px;
  border: 1px solid var(--seal);
  color: var(--seal);
  font-size: 11px;
  letter-spacing: 0.15em;
}

.course-name {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.course-name-en {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: var(--fs-sm);
  color: var(--ink-faded);
  margin-top: -8px;
}

.course-desc {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  line-height: 1.7;
  font-weight: 300;
  flex: 1;
}

.course-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-faded);
  letter-spacing: 0.1em;
}

.course-meta-item { display: flex; align-items: center; gap: 6px; }
.course-meta-item svg { width: 14px; height: 14px; opacity: 0.6; }

.course-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-2);
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.1em;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  align-self: flex-start;
  transition: all 0.3s var(--ease);
}

.course-link:hover { color: var(--seal); border-color: var(--seal); }

/* ---------- 师资 ---------- */
.faculty {
  background: var(--paper);
  padding: var(--space-7) 0;
}

.faculty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.faculty-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  transition: transform 0.3s var(--ease);
}

.faculty-card:hover { transform: translateY(-4px); }

.faculty-avatar {
  width: 120px;
  height: 120px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 300;
  color: var(--ink);
  position: relative;
}

.faculty-avatar::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
}

.faculty-name {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.1em;
  margin-top: var(--space-2);
}

.faculty-title {
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: 0.05em;
}

.faculty-bio {
  font-size: var(--fs-sm);
  color: var(--ink-faded);
  line-height: 1.7;
  max-width: 280px;
  font-weight: 300;
}

.faculty-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.faculty-tag {
  font-size: 11px;
  padding: 3px 10px;
  background: var(--paper-warm);
  color: var(--ink-soft);
  letter-spacing: 0.1em;
  border-radius: 1px;
}

/* ---------- 作品 Gallery ---------- */
.gallery {
  background: var(--paper-warm);
  padding: var(--space-7) 0;
}

.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--space-5);
}

.gallery-filter button {
  padding: 8px 18px;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.15em;
  border: 1px solid var(--line);
  background: transparent;
  transition: all 0.3s var(--ease);
  font-family: var(--font-serif);
}

.gallery-filter button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.gallery-filter button.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.gallery-item {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.gallery-item:hover {
  transform: scale(1.01);
  border-color: var(--ink);
  box-shadow: 0 20px 60px -20px rgba(26, 26, 26, 0.2);
}

.gallery-item-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--paper) 0%, var(--paper-deep) 100%);
}
/* 遮盖 AI 生成图片水印 */
.gallery-item-inner::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 140px; height: 50px;
  background: linear-gradient(135deg, transparent 0%, var(--paper-deep) 70%);
  z-index: 3;
  pointer-events: none;
}


.gallery-item-text {
  font-family: var(--font-brush);
  color: var(--ink);
  font-size: 64px;
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.1em;
}

.gallery-item-meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.7), transparent);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.1em;
  display: flex;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.gallery-item:hover .gallery-item-meta { opacity: 1; }

/* ---------- 证言 Testimonials ---------- */
.testimonials {
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-7) 0;
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '"';
  position: absolute;
  top: 0; left: 4%;
  font-family: var(--font-serif);
  font-size: 480px;
  color: var(--seal);
  opacity: 0.15;
  line-height: 1;
  font-weight: 900;
}

.testimonials .container { position: relative; z-index: 2; }

.testimonials .eyebrow { color: rgba(245, 241, 232, 0.6); }
.testimonials .eyebrow::before { background: var(--seal); }

.testimonial-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-text {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  line-height: 1.7;
  font-weight: 300;
  color: var(--paper);
  margin-bottom: var(--space-4);
  letter-spacing: 0.03em;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  justify-content: center;
  font-size: var(--fs-sm);
  color: rgba(245, 241, 232, 0.8);
}

.testimonial-author strong {
  font-weight: 500;
  font-family: var(--font-serif);
  color: var(--paper);
}

.testimonial-author .dot-sep {
  width: 4px; height: 4px;
  background: var(--seal);
  border-radius: 50%;
}

/* ---------- 路径 / 报名步骤 ---------- */
.path {
  background: var(--paper);
  padding: var(--space-7) 0;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.path-step {
  position: relative;
  padding: var(--space-4) var(--space-3);
  background: var(--paper-warm);
  border: 1px solid var(--line);
}

.path-step::after {
  content: '→';
  position: absolute;
  top: 50%;
  right: -16px;
  transform: translateY(-50%);
  color: var(--ink-faded);
  font-size: 20px;
  z-index: 2;
  background: var(--paper);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.path-step:last-child::after { display: none; }

.path-step-num {
  font-family: var(--font-serif);
  font-size: 12px;
  color: var(--seal);
  letter-spacing: 0.3em;
  margin-bottom: var(--space-2);
  font-weight: 500;
}

.path-step-name {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.path-step-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  font-weight: 300;
}

/* ---------- 报名表单 ---------- */
.enroll {
  background: var(--paper-warm);
  padding: var(--space-7) 0;
}

.enroll-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: start;
}

.enroll-info h2 {
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  font-weight: 300;
  margin-bottom: var(--space-3);
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.enroll-info h2 .accent { color: var(--seal); font-family: var(--font-brush); }

.enroll-info p {
  font-size: var(--fs-base);
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: var(--space-4);
  font-weight: 300;
}

.enroll-contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}

.enroll-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 14px;
}

.enroll-contact-item svg {
  width: 18px; height: 18px;
  color: var(--seal);
  flex-shrink: 0;
  margin-top: 2px;
}

.enroll-contact-item strong {
  display: block;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
  font-size: 13px;
  letter-spacing: 0.1em;
}

.form {
  background: var(--paper);
  padding: var(--space-5);
  border: 1px solid var(--line);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field-full { grid-column: 1 / -1; }

.form-label {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.15em;
  font-weight: 400;
}

.form-label .required { color: var(--seal); }

.form-input, .form-select, .form-textarea {
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1px;
  transition: border-color 0.3s var(--ease);
  font-weight: 300;
  width: 100%;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--seal);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-faded);
  margin: var(--space-3) 0 var(--space-4);
  line-height: 1.6;
}

.form-consent input { margin-top: 2px; }

.form-submit {
  width: 100%;
  padding: 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  letter-spacing: 0.2em;
  font-weight: 400;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.form-submit:hover { background: var(--seal); transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-4);
  background: rgba(168, 51, 46, 0.05);
  border: 1px solid var(--seal);
  margin-top: var(--space-3);
}

.form-success.show { display: block; }
.form-success svg { width: 40px; height: 40px; color: var(--seal); margin: 0 auto 12px; }
.form-success strong { display: block; font-family: var(--font-serif); font-size: 16px; margin-bottom: 4px; color: var(--ink); }
.form-success span { font-size: 13px; color: var(--ink-soft); }

/* ---------- 地图 ---------- */
.map {
  width: 100%;
  aspect-ratio: 21 / 9;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.4) contrast(1.05);
}

.map-pin {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 5;
  pointer-events: none;
}

.map-pin-dot {
  width: 14px; height: 14px;
  background: var(--seal);
  border-radius: 50%;
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--seal);
}

/* ---------- CTA Strip ---------- */
.cta-strip {
  background: var(--paper);
  padding: var(--space-7) 0;
  text-align: center;
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-strip h2 {
  font-family: var(--font-serif);
  font-size: var(--fs-3xl);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--ink);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.cta-strip h2 .accent { color: var(--seal); font-family: var(--font-brush); }

.cta-strip p {
  font-size: var(--fs-base);
  color: var(--ink-soft);
  margin-bottom: var(--space-5);
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-strip-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Page Header (small hero for inner pages) ---------- */
.page-header {
  padding: calc(var(--space-7) + 60px) 0 var(--space-6);
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
}

.page-header-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: end;
}

.page-header-tag {
  font-family: var(--font-serif);
  font-size: 12px;
  color: var(--seal);
  letter-spacing: 0.3em;
  margin-bottom: var(--space-2);
}

.page-header-title {
  font-family: var(--font-serif);
  font-size: var(--fs-3xl);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: var(--ink);
}

.page-header-title .accent { font-family: var(--font-brush); color: var(--seal); }

.page-header-sub {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: var(--fs-lg);
  color: var(--ink-soft);
  margin-top: var(--space-2);
  font-weight: 300;
}

.page-header-desc {
  font-size: var(--fs-base);
  color: var(--ink-soft);
  line-height: 1.8;
  font-weight: 300;
  max-width: 460px;
}

.breadcrumb {
  font-size: 12px;
  color: var(--ink-faded);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.breadcrumb a { color: var(--ink-faded); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-6) 0 var(--space-3);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(245, 241, 232, 0.15);
}

.footer-brand .seal { background: var(--seal); }
.footer-brand-text {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin: var(--space-2) 0 8px;
}

.footer-brand-desc {
  font-size: 13px;
  color: rgba(245, 241, 232, 0.6);
  line-height: 1.8;
  font-weight: 300;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 12px;
  color: var(--paper);
  letter-spacing: 0.3em;
  margin-bottom: var(--space-3);
  font-weight: 500;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 13px;
  color: rgba(245, 241, 232, 0.6);
  transition: color 0.3s var(--ease);
}
.footer-col a:hover { color: var(--paper); }

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(245, 241, 232, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}

.footer-social a:hover {
  background: var(--seal);
  border-color: var(--seal);
  color: var(--paper);
}

.footer-social svg { width: 16px; height: 16px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-5); }
  .hero-visual { max-width: 480px; margin: 0 auto; width: 100%; }
  .section-head { grid-template-columns: 1fr; gap: var(--space-3); }
  .intro-grid { grid-template-columns: 1fr; }
  .faculty-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .path-grid { grid-template-columns: repeat(2, 1fr); }
  .path-step::after { display: none; }
  .enroll-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-header-inner { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: 70px; right: 0; left: 0;
    flex-direction: column;
    background: var(--paper);
    padding: var(--space-4);
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
    transform: translateY(-110%);
    transition: transform 0.3s var(--ease);
    gap: var(--space-2);
  }
  .nav-menu.open { display: flex; transform: translateY(0); }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
}

@media (max-width: 768px) {
  .section, .intro, .courses, .faculty, .gallery, .testimonials, .path, .enroll { padding: var(--space-6) 0; }
  .hero { padding-top: calc(var(--space-6) + 60px); }

  .courses-grid { grid-template-columns: 1fr; }
  .faculty-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-features { grid-template-columns: 1fr; gap: var(--space-3); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  

  .page-header { padding-top: calc(var(--space-6) + 60px); }
  .path-grid { grid-template-columns: 1fr; }

  .hero-seal { width: 64px; height: 64px; font-size: 18px; bottom: -16px; right: -16px; }
  .hero-meta { position: relative; bottom: 0; margin-top: var(--space-3); }
}

@media (max-width: 480px) {
  :root { --fs-display: clamp(36px, 9vw, 48px); }
  .container, .container-narrow, .container-wide { padding: 0 var(--space-3); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ---------- Animation 进场 ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.fade-up.in { opacity: 1; transform: translateY(0); }

.fade-in { opacity: 0; transition: opacity 1s var(--ease); }
.fade-in.in { opacity: 1; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
/* ---------- 底部 + 内联演示声明 ---------- */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  margin-top: 8px;
  border-top: 1px solid rgba(245, 241, 232, 0.1);
  font-size: 11px;
  color: rgba(245, 241, 232, 0.5);
  letter-spacing: 0.05em;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom-copy { flex: 1; text-align: left; min-width: 0; }
.footer-bottom-tag  { flex: 1; text-align: right; min-width: 0; opacity: 0.65; }

.footer-disclaimer-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1.2;
  justify-content: center;
  font-size: 11px;
  color: rgba(245, 241, 232, 0.55);
  letter-spacing: 0.05em;
  min-width: 0;
}


.footer-disclaimer-dot {
  width: 3px; height: 3px;
  background: rgba(245, 241, 232, 0.3);
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .footer-bottom-copy, .footer-bottom-tag, .footer-disclaimer-inline {
    text-align: center;
    flex: none;
  }
}
.footer-disclaimer-brand-text {
  font-weight: 600;
  color: rgba(245, 241, 232, 0.75);
  font-size: 11px;
  letter-spacing: 0.02em;
}
/* ---------- 移动悬浮 CTA ---------- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  padding: 12px 16px;
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 80px; }
}

/* ---------- 课程页 mobile 适配 ---------- */
@media (max-width: 768px) {
  .course-card-special > div { grid-template-columns: 1fr !important; }
  .course-card-special > div > div:last-child { min-height: 200px; }
  .course-card-special .btn { align-self: stretch; justify-content: center; }
  .course-meta { grid-template-columns: 1fr 1fr; gap: 16px; }
  .hero-title .vertical { display: none; }
}

.mobile-cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--accent, #A8332E);
  color: white;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-cta-btn:hover { opacity: 0.9; transform: scale(0.98); }
.mobile-cta-btn:active { transform: scale(0.96); }
/* ---------- 信任徽章 ---------- */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-radius: 100px;
  border: 1px solid rgba(0,0,0,0.1);
  background: rgba(0,0,0,0.03);
  color: #333;
}

.trust-badge.dark {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.85);
}

/* 在浅色背景下即使带 .dark 类也用深色文字（兼容性） */
body:not([data-theme="light"]) .trust-badge.dark {
  color: #1A1A1A;
  border-color: rgba(168, 51, 46, 0.25);
  background: rgba(168, 51, 46, 0.08);
}

.trust-badge svg { width: 14px; height: 14px; flex-shrink: 0; }
.trust-badge .check { color: #2E7D32; }
.trust-badge.dark .check { color: #69F0AE; }

/* ---------- 证言星评 ---------- */
.stars {
  display: flex;
  gap: 2px;
  color: #F5A623;
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

/* ---------- 表单信任文案 ---------- */
.form-trust-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #888;
  line-height: 1.6;
  padding: 12px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 16px;
}

.form-trust-note svg { width: 16px; height: 16px; color: #666; flex-shrink: 0; margin-top: 2px; }
/* ---------- 保证徽章 ---------- */
.guarantee-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  margin-top: 20px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.02);
}

.guarantee-badge.dark {
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: rgba(255,255,255,0.9);
}

.guarantee-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.guarantee-icon.green { background: rgba(46, 125, 50, 0.15); color: #2E7D32; }
.guarantee-icon.green.dark { background: rgba(105, 240, 174, 0.15); color: #69F0AE; }

.guarantee-text { font-size: 13px; line-height: 1.5; }
.guarantee-text strong { font-weight: 600; }
/* ---------- FAQ 板块 ---------- */
.faq-section {
  background: var(--paper-warm, #F5F1E8);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--paper, #FFFFFF);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-item[open] {
  border-color: var(--accent, #1A2D5C);
  box-shadow: 0 4px 16px -8px rgba(0,0,0,0.1);
}

.faq-q {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink, #0A0A0A);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 24px;
  padding: 0 8px;
  background: var(--accent, #1A2D5C);
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 4px;
  flex-shrink: 0;
  font-family: var(--font-mono, monospace);
}

.faq-question { flex: 1; line-height: 1.5; }

.faq-arrow {
  width: 18px;
  height: 18px;
  color: var(--ink-faded, #8A8880);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item[open] .faq-arrow { transform: rotate(180deg); color: var(--accent, #1A2D5C); }

.faq-a {
  padding: 0 24px 20px 76px;
  font-size: 14px;
  color: var(--ink-soft, #4A4A47);
  line-height: 1.8;
  font-weight: 300;
}
/* ---------- 微信咨询浮动按钮 ---------- */
.wechat-float {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 150;
  font-family: var(--font-sans);
}

.wechat-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  background: #07C160;
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: -2px 4px 16px -4px rgba(7, 193, 96, 0.35);
  transition: all 0.3s;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  writing-mode: vertical-rl;
  text-orientation: upright;
  line-height: 1.2;
}

.wechat-trigger:hover {
  box-shadow: -4px 8px 24px -4px rgba(7, 193, 96, 0.5);
  padding-right: 14px;
}

.wechat-label { display: block; writing-mode: vertical-rl; text-orientation: upright; }

.wechat-popup {
  position: absolute;
  top: 50%;
  right: 62px;
  transform: translateY(-50%);
  width: 320px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
}

.wechat-popup.show {
  opacity: 1;
  pointer-events: all;
}

.wechat-popup-content {
  padding: 28px 24px 24px;
  display: flex;
  gap: 20px;
  position: relative;
}

.wechat-qr {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  background: white;
  border: 1px solid var(--line);
  padding: 4px;
}

.wechat-info { flex: 1; }
.wechat-info-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}
.wechat-info-desc {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 12px;
}
.wechat-info-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faded);
  background: var(--paper-warm);
  padding: 6px 10px;
  border-radius: 4px;
  display: inline-block;
}

.wechat-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--ink-faded);
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

@media (max-width: 768px) {
  .wechat-float { transform: translateY(-50%); top: 50%; }
  .wechat-trigger { padding: 10px 6px; }
  .wechat-popup { width: 260px; right: 54px; }
}
