/* ==========================================================================
   Tianjin Expat Hub — 共用样式表 / Shared stylesheet
   --------------------------------------------------------------------------
   目录 / Table of contents
   01. 设计变量 Design tokens（颜色 / 字体 / 间距 / 圆角 / 阴影）
   02. 基础重置与排版 Base reset & typography
   03. 双语排版系统 Bilingual text system
   04. 布局工具 Layout utilities
   05. 导航栏 Navigation（桌面 + 移动端抽屉）
   06. 按钮 Buttons
   07. 卡片 Cards
   08. 占位图组件 Image placeholder（替换真实图片时只改一处）
   09. 区块 Section 通用样式
   10. 首页 Home 专属模块
   11. 课程页 Courses 专属模块
   12. 活动页 Events 专属模块
   13. 关于页 About 专属模块
   14. 联系页 Contact 专属模块
   15. 页脚 Footer
   16. 动效与响应式收尾 Motion & responsive
   ========================================================================== */


/* ==========================================================================
   01. 设计变量 / Design tokens
   修改主色只需改动这里；全站自动生效。
   To rebrand, change values here only — the whole site follows.
   ========================================================================== */
:root {
  /* --- 主色 / Brand colors --- */
  --cream:        #F8F6F2;   /* 米白底色 主背景 */
  --cream-deep:   #F1EDE5;   /* 米白加深，用于交替区块 */
  --green:        #2F5D50;   /* 深绿 主色 */
  --green-deep:   #24473D;   /* 深绿加深，hover 状态 */
  --green-soft:   #E7EDE9;   /* 浅绿，标签 / 弱背景 */
  --green-line:   #C9D6CE;   /* 绿灰，边线 */

  /* --- 辅助色 / Accent --- */
  --clay:         #C4703D;   /* 陶土橙，点缀 CTA / 强调 */
  --clay-soft:    #F3E7DD;   /* 浅陶土，背景块 */

  /* --- 文字色 / Text --- */
  --ink:          #1E2A26;   /* 主文字 */
  --ink-soft:     #5A6B65;   /* 次要文字 */
  --ink-muted:    #8A968F;   /* 弱化文字、占位说明 */
  --on-green:     #F4F7F5;   /* 深绿底上的文字 */

  /* --- 线条与表面 / Lines & surfaces --- */
  --line:         #E3DED4;   /* 通用分割线 */
  --white:        #FFFFFF;

  /* --- 圆角 / Radius --- */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-pill: 999px;

  /* --- 阴影 / Shadow（克制，只用两层） --- */
  --sh-sm: 0 1px 2px rgba(30, 42, 38, 0.04);
  --sh-md: 0 6px 24px rgba(30, 42, 38, 0.07);
  --sh-lg: 0 18px 48px rgba(30, 42, 38, 0.10);

  /* --- 间距 / Spacing --- */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px;  --s-6: 32px;  --s-7: 48px;  --s-8: 64px;
  --s-9: 88px;  --s-10: 120px;

  /* --- 字体 / Typography --- */
  --font-en: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
             "Helvetica Neue", Arial, sans-serif;
  --font-zh: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
             "Source Han Sans SC", "Noto Sans SC", var(--font-en);

  /* --- 布局 / Layout --- */
  --maxw: 1160px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}


/* ==========================================================================
   02. 基础重置与排版 / Base reset & typography
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);  /* 锚点跳转避开吸顶导航 */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 中文段落统一使用系统中文字体，字形更自然 */
:lang(zh), .zh { font-family: var(--font-zh); }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-en);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 600;
}
h1 { font-size: clamp(2.15rem, 6.2vw, 3.9rem); letter-spacing: -0.033em; }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.12rem, 2vw, 1.35rem); }
h4 { font-size: 1.02rem; letter-spacing: -0.01em; }

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

img, svg { display: block; max-width: 100%; }

hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: var(--s-7) 0;
}

/* 跳转到主内容（无障碍） */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--green);
  color: var(--on-green);
  padding: var(--s-3) var(--s-5);
  border-radius: 0 0 var(--r-md) 0;
  font-size: 0.9rem;
}
.skip-link:focus { left: 0; }


/* ==========================================================================
   03. 双语排版系统 / Bilingual text system
   约定：英文在上（主），中文在下（辅），用 .bi 包裹；zh 可单独使用。
   Convention: English on top (primary), Chinese below (secondary).
   ========================================================================== */
.bi { display: block; }

/* 英文主文案 */
.en {
  display: block;
  font-family: var(--font-en);
  color: var(--ink);
}

/* 中文对照文案 */
.zh {
  display: block;
  font-family: var(--font-zh);
  color: var(--ink-soft);
  font-size: 0.875em;
  line-height: 1.75;
  letter-spacing: 0.01em;
}

/* 深绿底上的双语 */
.on-dark .en { color: var(--on-green); }
.on-dark .zh { color: rgba(244, 247, 245, 0.72); }

/* 弱化 / 标签型双语 */
.bi-quiet .en { color: var(--ink-soft); font-weight: 500; }

/* 小标签：Eyebrow / Section label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: var(--s-4);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.eyebrow .zh {
  display: inline;
  font-size: 0.95em;
  letter-spacing: 0.08em;
  text-transform: none;
  opacity: 0.72;
}

/* 待更新标记 / To be updated badge */
.tbd {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  background: var(--cream-deep);
  border: 1px dashed var(--green-line);
  border-radius: var(--r-pill);
  padding: 3px 10px;
  white-space: nowrap;
}
.tbd .zh { display: inline; font-size: 1em; color: inherit; }

/* 区块标题组合 */
.section-head { margin-bottom: var(--s-7); }
.section-head .en { margin-bottom: var(--s-2); }
.section-head .zh { max-width: 62ch; }
.section-head.center { text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .zh { margin-left: auto; margin-right: auto; }


/* ==========================================================================
   04. 布局工具 / Layout utilities
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
@media (min-width: 768px) {
  .wrap { padding: 0 var(--s-7); }
}

.section { padding: var(--s-9) 0; }
@media (min-width: 768px) {
  .section { padding: var(--s-10) 0; }
}
.section--tight { padding: var(--s-8) 0; }
.section--deep { background: var(--cream-deep); }

/* 深绿底区块（增加节奏对比） */
.section--green {
  background: var(--green);
  color: var(--on-green);
}
.section--green .en { color: var(--on-green); }
.section--green .zh { color: rgba(244, 247, 245, 0.72); }
.section--green .eyebrow { color: rgba(244, 247, 245, 0.85); }
.section--green .section-head .zh { color: rgba(244, 247, 245, 0.72); }

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.stack-sm > * + * { margin-top: var(--s-3); }
.stack   > * + * { margin-top: var(--s-5); }
.stack-lg > * + * { margin-top: var(--s-7); }

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.muted { color: var(--ink-soft); }
.hide { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


/* ==========================================================================
   05. 导航栏 / Navigation
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 242, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(248, 246, 242, 0.96);
}

.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

/* 品牌 / Brand */
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-shrink: 0;
}
.brand__mark {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--green);
  color: var(--on-green);
  display: grid;
  place-items: center;
  font-family: var(--font-en);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand__name {
  font-family: var(--font-en);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--ink);
}
.brand__zh {
  display: block;
  font-family: var(--font-zh);
  font-size: 0.68rem;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}

/* 菜单 / Menu */
.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  list-style: none;
}
.nav__link {
  position: relative;
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: var(--s-2) 0;
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}
.nav__link .zh {
  display: inline;
  font-size: 0.78em;
  margin-left: 5px;
  opacity: 0.7;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--green); font-weight: 600; }
.nav__link.is-active::after { transform: scaleX(1); }

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-shrink: 0;
}

/* 汉堡按钮 / Hamburger */
.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav__toggle span {
  display: block;
  width: 17px; height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle span + span { margin-top: 4.5px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav__toggle { display: grid; }
  .nav__menu {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-md);
    padding: var(--s-3) var(--s-5) var(--s-5);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__link {
    display: block;
    padding: var(--s-4) 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
  .nav__link .zh { display: inline; font-size: 0.8em; }
  .nav__link::after { display: none; }
  .nav__actions .btn { display: none; }
  .nav__mobile-cta { display: block; margin-top: var(--s-5); }
  .nav__mobile-cta .btn { width: 100%; }
}
@media (min-width: 901px) {
  .nav__mobile-cta { display: none; }
}


/* ==========================================================================
   06. 按钮 / Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--font-en);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
              border-color 0.22s var(--ease), transform 0.22s var(--ease),
              box-shadow 0.22s var(--ease);
}
.btn .zh { display: inline; font-size: 0.84em; opacity: 0.78; }
.btn:active { transform: translateY(1px); }

/* 主按钮：深绿实心 */
.btn--primary {
  background: var(--green);
  color: var(--on-green);
  box-shadow: var(--sh-sm);
}
.btn--primary:hover { background: var(--green-deep); box-shadow: var(--sh-md); }
.btn--primary .zh { color: rgba(244, 247, 245, 0.8); }

/* 次按钮：描边 */
.btn--ghost {
  background: transparent;
  color: var(--green);
  border-color: var(--green-line);
}
.btn--ghost:hover { background: var(--green-soft); border-color: var(--green); }

/* 白底描边（用于深绿区块） */
.btn--outline-light {
  background: transparent;
  color: var(--on-green);
  border-color: rgba(244, 247, 245, 0.4);
}
.btn--outline-light:hover { background: rgba(244, 247, 245, 0.12); border-color: var(--on-green); }

/* 陶土色强调按钮 */
.btn--accent {
  background: var(--clay);
  color: #fff;
}
.btn--accent:hover { background: #B0612F; }

/* 小尺寸 */
.btn--sm { font-size: 0.82rem; padding: 10px 18px; }

/* 文字按钮（卡片底部） */
.btn--link {
  padding: 0;
  background: none;
  color: var(--green);
  font-size: 0.86rem;
  border-radius: 0;
}
.btn--link:hover { color: var(--clay); }
.btn--link .zh { font-size: 0.85em; }
.btn--link::after { content: " →"; }

/* 禁用 / 待开放 */
.btn[disabled], .btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}


/* ==========================================================================
   07. 卡片 / Cards
   ========================================================================== */
.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: var(--green-line);
}
.card__body {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 1;
}
.card__title .zh { margin-top: 2px; }
.card__text { font-size: 0.9rem; color: var(--ink-soft); }
.card__foot {
  margin-top: auto;
  padding-top: var(--s-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
}

/* 元信息行 / Meta rows */
.meta {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.meta__row {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
}
.meta__key {
  flex-shrink: 0;
  min-width: 74px;
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.meta__val { font-family: var(--font-zh); color: var(--ink); }
.meta__val--en { font-family: var(--font-en); }

/* 标签 / Tags */
.tags { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tag {
  display: inline-block;
  font-family: var(--font-zh);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.4;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--green-soft);
  color: var(--green);
  letter-spacing: 0.02em;
}
.tag .en { display: inline; font-size: 0.92em; }
.tag--clay { background: var(--clay-soft); color: #A85A28; }
.tag--plain { background: var(--cream-deep); color: var(--ink-soft); }


/* ==========================================================================
   08. 占位图组件 / Image placeholder
   --------------------------------------------------------------------------
   【如何替换真实图片 / How to swap in real photos】
   1. 把 <div class="ph">…</div> 整段替换为：
      <img class="ph-img" src="assets/img/your-photo.jpg" alt="描述性替代文字">
   2. 或保留占位框、只换背景：
      <div class="ph" style="--ph-img:url('assets/img/your-photo.jpg')"></div>
   3. .ph 与 .ph-img 已共用同一尺寸规则，图片会自动等比填充，不会破版。
   ========================================================================== */
.ph {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;          /* 默认比例，可按需改 16/9、1/1 */
  background-color: var(--cream-deep);
  background-image: var(--ph-img, none);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
/* 占位纹理：细斜纹，避免大片死板纯色 */
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(47, 93, 80, 0.045) 0 1px,
    transparent 1px 11px
  );
  z-index: -1;
}
/* 占位标签 */
.ph__label {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
  padding: 0 var(--s-4);
  line-height: 1.7;
}
.ph__label .zh {
  display: block;
  font-family: var(--font-zh);
  font-size: 0.95em;
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: 0.8;
}
/* 比例变体 */
.ph--wide  { aspect-ratio: 16 / 9; }
.ph--tall  { aspect-ratio: 3 / 4; }
.ph--square{ aspect-ratio: 1 / 1; }

/* 真实图片元素，与占位框尺寸规则一致 */
.ph-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.ph-img--wide { aspect-ratio: 16 / 9; }
.ph-img--tall { aspect-ratio: 3 / 4; }
.ph-img--square { aspect-ratio: 1 / 1; }


/* ==========================================================================
   09. 区块 / Section — 内页页头
   ========================================================================== */
.page-head {
  padding: var(--s-8) 0 var(--s-7);
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) {
  .page-head { padding: var(--s-9) 0 var(--s-8); }
}
.page-head__inner { max-width: 760px; }
.page-head .en { margin-bottom: var(--s-3); }
.page-head .zh { font-size: 1rem; max-width: 58ch; }


/* ==========================================================================
   10. 首页专属 / Home
   ========================================================================== */
.hero {
  position: relative;
  padding: var(--s-9) 0 var(--s-8);
  overflow: hidden;
  background: var(--cream);
}
/* 背景氛围：柔光网格 + 绿色晕染，避免大面积死板纯色 */
.hero::before {
  content: "";
  position: absolute;
  top: -180px; right: -120px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(47, 93, 80, 0.10) 0%, rgba(47, 93, 80, 0) 68%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -220px; left: -160px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(196, 112, 61, 0.09) 0%, rgba(196, 112, 61, 0) 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--s-7);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.08fr 0.92fr; gap: var(--s-8); }
}
.hero__content { max-width: 600px; }
.hero h1 { margin-bottom: var(--s-5); }
.hero h1 .zh {
  font-size: 0.42em;
  font-weight: 500;
  margin-top: var(--s-4);
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.hero__lede { font-size: 1.06rem; color: var(--ink-soft); margin-bottom: var(--s-6); }
.hero__lede .zh { font-size: 0.92em; }
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}
.hero__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-5);
  font-size: 0.8rem;
  color: var(--ink-muted);
}
.hero__note span { display: inline-flex; align-items: center; gap: 6px; }
.hero__note span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.55;
}
.hero__visual { position: relative; }

/* 三大入口卡片 */
.entry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  min-height: 260px;
  overflow: hidden;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease),
              border-color 0.32s var(--ease);
}
.entry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: var(--green-line);
}
/* 序号水印 */
.entry-card__num {
  position: absolute;
  top: var(--s-3); right: var(--s-5);
  font-family: var(--font-en);
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--green);
  opacity: 0.07;
  letter-spacing: -0.04em;
}
.entry-card__icon {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  margin-bottom: var(--s-5);
}
.entry-card__icon svg { width: 22px; height: 22px; }
.entry-card .en { font-size: 1.28rem; font-weight: 600; margin-bottom: 6px; }
.entry-card .zh { font-size: 0.92rem; }
.entry-card__text {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: var(--s-4) 0 var(--s-5);
}
.entry-card .btn--link { margin-top: auto; align-self: flex-start; }

/* 语言切换提示条（首页） */
.split-note {
  display: grid;
  gap: var(--s-5);
  padding: var(--s-6);
  background: var(--green-soft);
  border-radius: var(--r-lg);
  border: 1px solid var(--green-line);
}
@media (min-width: 860px) {
  .split-note { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
}
.split-note__col h3 { margin-bottom: var(--s-3); }
.split-note__col p { font-size: 0.9rem; color: var(--ink-soft); }
.split-note__col p .zh { margin-top: 4px; }


/* ==========================================================================
   11. 课程页 / Courses
   ========================================================================== */
/* 分类标签栏 / Category tabs */
.tabs {
  display: flex;
  gap: var(--s-2);
  padding: 5px;
  background: var(--cream-deep);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-en);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: var(--r-pill);
  padding: 11px 22px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.24s var(--ease), color 0.24s var(--ease),
              box-shadow 0.24s var(--ease);
}
.tab .zh { display: inline; font-size: 0.82em; opacity: 0.75; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] {
  background: var(--white);
  color: var(--green);
  box-shadow: var(--sh-sm);
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeUp 0.4s var(--ease); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 课程卡 / Course card */
.course-card__head {
  padding: var(--s-5) var(--s-5) 0;
}
.course-card__badge {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  padding: 4px 10px;
  border-radius: var(--r-sm);
  margin-bottom: var(--s-3);
}

/* 双语口令提示条 */
.cue-note {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-4);
  background: var(--clay-soft);
  border-radius: var(--r-md);
  font-size: 0.84rem;
  color: #8A4A1F;
}
.cue-note .zh { color: rgba(138, 74, 31, 0.78); }
.cue-note svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; }

/* 课程区块头 */
.track-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-5);
  flex-wrap: wrap;
  margin-bottom: var(--s-6);
}
.track-head__text { max-width: 560px; }


/* ==========================================================================
   12. 活动页 / Events
   ========================================================================== */
/* 类型筛选 / Event filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-zh);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 9px 16px;
  cursor: pointer;
  transition: all 0.22s var(--ease);
}
.filter .en { display: inline; font-size: 0.88em; color: inherit; opacity: 0.7; }
.filter:hover { border-color: var(--green-line); color: var(--ink); }
.filter[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
  color: var(--on-green);
}
.filter[aria-pressed="true"] .en { color: var(--on-green); opacity: 0.8; }

/* 活动卡 / Event card */
.event-card { display: grid; grid-template-columns: 1fr; }
@media (min-width: 560px) {
  .event-card { grid-template-columns: 92px 1fr; }
}
.event-card__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: var(--s-5) var(--s-3);
  background: var(--green-soft);
  border-right: 1px solid var(--line);
  text-align: center;
}
.event-card__d {
  font-family: var(--font-en);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  color: var(--green);
  letter-spacing: -0.03em;
}
.event-card__m {
  font-family: var(--font-zh);
  font-size: 0.76rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}
.event-card__y {
  font-family: var(--font-en);
  font-size: 0.66rem;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
}
/* 人数进度 / Capacity */
.capacity {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.capacity__bar {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: var(--r-pill);
  overflow: hidden;
  min-width: 60px;
}
.capacity__fill {
  height: 100%;
  background: var(--clay);
  border-radius: var(--r-pill);
}
.capacity__fill.is-full { background: var(--green); }

.empty-note {
  padding: var(--s-7);
  text-align: center;
  border: 1px dashed var(--green-line);
  border-radius: var(--r-lg);
  color: var(--ink-soft);
  background: var(--white);
}


/* ==========================================================================
   13. 关于页 / About
   ========================================================================== */
/* 价值主张 / Values */
.value-item {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.value-item__icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--green);
  color: var(--on-green);
  display: grid;
  place-items: center;
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 700;
}

/* 主理人 / Founder */
.founder {
  display: grid;
  gap: var(--s-6);
  align-items: center;
  padding: var(--s-6);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}
@media (min-width: 860px) {
  .founder { grid-template-columns: 260px 1fr; gap: var(--s-8); padding: var(--s-7); }
}
.founder__body .en { font-size: 1.2rem; font-weight: 600; margin-bottom: var(--s-4); }
.founder__body p { color: var(--ink-soft); font-size: 0.92rem; }
.founder__body p + p { margin-top: var(--s-3); }

/* 合作方占位 / Partners */
.partner-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 150px;
  padding: var(--s-5);
  background: var(--white);
  border: 1px dashed var(--green-line);
  border-radius: var(--r-lg);
  text-align: center;
  color: var(--ink-muted);
  transition: border-color 0.24s var(--ease), background 0.24s var(--ease);
}
.partner-slot:hover { border-color: var(--green); background: var(--green-soft); }
.partner-slot__icon { width: 34px; height: 34px; opacity: 0.5; }
.partner-slot__label {
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.partner-slot__note {
  font-family: var(--font-zh);
  font-size: 0.78rem;
  opacity: 0.8;
}

/* 合作声明 / Disclaimer */
.disclaimer {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  background: var(--cream-deep);
  border-left: 3px solid var(--green-line);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.disclaimer svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--green); margin-top: 2px; }


/* ==========================================================================
   14. 联系页 / Contact
   ========================================================================== */
.contact-layout {
  display: grid;
  gap: var(--s-7);
  align-items: start;
}
@media (min-width: 960px) {
  .contact-layout { grid-template-columns: 1.25fr 0.75fr; gap: var(--s-8); }
}

/* 表单 / Form */
.form-card {
  padding: var(--s-6);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}
@media (min-width: 768px) {
  .form-card { padding: var(--s-7); }
}
.form-row {
  display: grid;
  gap: var(--s-5);
  margin-bottom: var(--s-5);
}
@media (min-width: 640px) {
  .form-row--2 { grid-template-columns: 1fr 1fr; }
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field__label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.field__label .zh { display: inline; font-size: 0.88em; font-weight: 400; }
.field__req { color: var(--clay); font-size: 0.85em; }
.field__hint {
  font-family: var(--font-zh);
  font-size: 0.74rem;
  color: var(--ink-muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-en);
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 15px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { font-family: var(--font-zh); resize: vertical; min-height: 118px; line-height: 1.7; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235A6B65' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
  cursor: pointer;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #C0452F; }
.field__error {
  font-family: var(--font-zh);
  font-size: 0.75rem;
  color: #C0452F;
  display: none;
}
.field.has-error .field__error { display: block; }

/* 复选组 / Checkbox group */
.checks { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.check {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.check input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.check__box {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-zh);
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 9px 16px;
  transition: all 0.2s var(--ease);
}
.check__box .en { display: inline; font-size: 0.88em; }
.check input:checked + .check__box {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green);
  font-weight: 500;
}
.check input:focus-visible + .check__box { outline: 2px solid var(--clay); outline-offset: 2px; }

/* 提交成功 / Success message */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-4);
  padding: var(--s-8) var(--s-5);
}
.form-success.is-visible { display: flex; animation: fadeUp 0.45s var(--ease); }
.form-success__icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
}
.form-success__icon svg { width: 28px; height: 28px; }
.form-success .en { font-size: 1.2rem; font-weight: 600; }
.form-success .zh { font-size: 0.95rem; }

/* 联系方式块 / Contact methods */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
}
.contact-item:last-child { border-bottom: 0; }
.contact-item__icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: var(--r-sm);
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
}
.contact-item__icon svg { width: 18px; height: 18px; }
.contact-item__key {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.contact-item__val {
  font-family: var(--font-en);
  font-size: 0.95rem;
  color: var(--ink);
  margin-top: 2px;
}
.contact-item__val.is-empty {
  font-family: var(--font-zh);
  color: var(--ink-muted);
  font-size: 0.86rem;
}


/* ==========================================================================
   14B. 欢迎信息采集弹窗 / Welcome modal
   --------------------------------------------------------------------------
   网站打开后弹出的访客信息采集表单。
   关闭方式：Submit 提交（跳转首页）、Skip 先浏览、或 Esc / 点击遮罩。
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--s-4);
  overflow-y: auto;
}
.modal.is-open { display: flex; }

/* 遮罩：深绿半透明 + 背景模糊，聚焦弹窗 */
.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 42, 38, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: modalFade 0.28s var(--ease);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  background: var(--cream);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: var(--s-6);
  margin: auto;
  animation: modalRise 0.34s var(--ease);
}
@media (min-width: 768px) {
  .modal__panel { padding: var(--s-7); }
}

@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalRise {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* 弹窗头部 */
.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}
.modal__title { font-size: 1.28rem; margin-bottom: 4px; }
.modal__title .zh { font-size: 0.9rem; }
.modal__sub { font-size: 0.86rem; color: var(--ink-soft); }
.modal__sub .zh { font-size: 0.92em; }

/* 关闭按钮 */
.modal__close {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s var(--ease);
}
.modal__close:hover { background: var(--cream-deep); color: var(--ink); }
.modal__close svg { width: 14px; height: 14px; }

/* 表单网格 */
.modal__grid {
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 560px) {
  .modal__grid--2 { grid-template-columns: 1fr 1fr; }
  .modal__grid .field--full { grid-column: 1 / -1; }
}
.modal__panel .field input,
.modal__panel .field select {
  padding: 11px 14px;
  font-size: 0.9rem;
}

/* 底部按钮区 */
.modal__foot {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.modal__foot .btn { flex: 1; }
/* Skip 为次要按钮：排在右侧，视觉权重低于 Submit */
.modal__foot .btn--ghost { order: 2; }

/* 复选框（"不再提示"一类的小开关，若需要可启用） */
.modal__note {
  margin-top: var(--s-4);
  font-size: 0.76rem;
  color: var(--ink-muted);
  text-align: center;
}

/* 移动端：弹窗贴近顶部，接近原生表单体验 */
@media (max-width: 560px) {
  .modal { align-items: flex-start; padding: var(--s-3); }
  .modal__panel { border-radius: var(--r-lg); }
}


/* ==========================================================================
   15. 页脚 / Footer
   ========================================================================== */
.footer {
  background: var(--green);
  color: var(--on-green);
  padding: var(--s-8) 0 var(--s-6);
  margin-top: auto;
}
.footer__top {
  display: grid;
  gap: var(--s-7);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(244, 247, 245, 0.16);
}
@media (min-width: 860px) {
  .footer__top { grid-template-columns: 1.5fr 1fr 1fr; gap: var(--s-8); }
}
.footer .brand__name { color: var(--on-green); }
.footer .brand__zh { color: rgba(244, 247, 245, 0.6); }
.footer .brand__mark {
  background: rgba(244, 247, 245, 0.14);
  color: var(--on-green);
  border: 1px solid rgba(244, 247, 245, 0.22);
}
.footer__tagline {
  margin-top: var(--s-4);
  font-size: 0.88rem;
  color: rgba(244, 247, 245, 0.78);
  max-width: 40ch;
}
.footer__tagline .zh { color: rgba(244, 247, 245, 0.6); }

.footer__coltitle {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 247, 245, 0.6);
  margin-bottom: var(--s-4);
}
.footer__list { display: flex; flex-direction: column; gap: var(--s-3); }
.footer__list a {
  font-size: 0.88rem;
  color: rgba(244, 247, 245, 0.85);
  transition: color 0.2s var(--ease);
}
.footer__list a:hover { color: #fff; }
.footer__list .zh { display: inline; font-size: 0.8em; opacity: 0.6; margin-left: 5px; }

/* 社交链接 / Social links */
.socials { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }
.social {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-en);
  font-size: 0.78rem;
  color: rgba(244, 247, 245, 0.8);
  border: 1px solid rgba(244, 247, 245, 0.24);
  border-radius: var(--r-pill);
  padding: 7px 14px;
  transition: all 0.22s var(--ease);
}
.social:hover { background: rgba(244, 247, 245, 0.12); color: #fff; border-color: rgba(244, 247, 245, 0.45); }
.social svg { width: 14px; height: 14px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-top: var(--s-5);
  font-size: 0.76rem;
  color: rgba(244, 247, 245, 0.55);
}
.footer__bottom .zh { display: inline; font-size: 0.95em; }


/* ==========================================================================
   16. 动效与响应式收尾 / Motion & responsive
   ========================================================================== */
/* 入场渐显（JS 添加 .is-in） */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* 页面主体至少撑满一屏，页脚贴底 */
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

/* 尊重系统的"减少动效"设置 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* 打印：隐藏导航与交互元素 */
@media print {
  .nav, .footer, .btn, .filters, .tabs { display: none !important; }
  body { background: #fff; }
}
