/*
Theme Name: 艺墨书院
Theme URI: https://example.com/ximo-xuetang
Author: 艺墨书院
Description: 面向中小学课后托管与书法美育的中文主题。米白纸感、墨青点睛、手写体标题、卡片式项目展示，适配手机与电脑。
Version: 1.0.0
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ximo
Tags: education, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ==========================================================================
   0. 变量与基础
   ========================================================================== */
:root {
  --paper: #f7f3f0;
  --paper-2: #fbf8f5;
  --paper-3: #f2ece6;
  --ink: #2f2a26;
  --ink-2: #6d635b;
  --ink-3: #9a8f86;
  --teal: #097276;
  --teal-dark: #07595c;
  --teal-soft: #e9f1f0;
  --red: #b4552d;
  --gold: #c59a5b;
  --link-blue: #2b6cb0;
  --link-blue-dark: #1f4e79;
  --line: rgba(74, 54, 38, 0.12);
  --line-strong: rgba(74, 54, 38, 0.2);
  --white: #fffdfa;
  --shadow-sm: 0 2px 10px rgba(74, 54, 38, 0.05);
  --shadow-md: 0 14px 34px -18px rgba(74, 54, 38, 0.28);
  --radius: 3px;
  --radius-lg: 6px;
  --container: 1180px;
  --font-kai: "Kaiti SC", "STKaiti", "KaiTi", "楷体", "Songti SC", "STSong", "SimSun", serif;
  --font-song: "Songti SC", "STSong", "SimSun", "Source Han Serif SC", "Noto Serif SC", serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 42% at 82% 6%, rgba(9, 114, 118, 0.05), transparent 70%),
    radial-gradient(48% 38% at 6% 28%, rgba(180, 85, 45, 0.045), transparent 72%),
    radial-gradient(70% 50% at 50% 100%, rgba(197, 154, 91, 0.05), transparent 70%);
}

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

a { color: inherit; text-decoration: none; transition: color .2s ease; -webkit-tap-highlight-color: rgba(9, 114, 118, .12); }
a:hover { color: var(--teal); }

h1, h2, h3, h4 {
  font-family: var(--font-kai);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.04em;
  margin: 0 0 .5em;
  color: var(--ink);
}

p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ==========================================================================
   1. 通用组件
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 13px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: all .22s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(9, 114, 118, .8);
}
.btn-primary:hover { background: var(--teal-dark); color: #fff; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); background: rgba(9, 114, 118, .04); }

.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-block { width: 100%; }

.tag {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .08em;
  background: var(--teal-soft);
  color: var(--teal);
  border: 1px solid rgba(9, 114, 118, .16);
}
.tag-gold { background: #f8efdf; color: #9a6d28; border-color: rgba(197, 154, 91, .35); }
.tag-red { background: #fbeee9; color: var(--red); border-color: rgba(180, 85, 45, .25); }
.tag-muted { background: #f1ece7; color: var(--ink-3); border-color: var(--line); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--teal);
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: currentColor;
  opacity: .7;
}

.section { padding: 86px 0; }
.section-tight { padding: 60px 0; }
.section-alt { background: rgba(255, 253, 250, .6); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
}
.section-head .title-wrap h2 {
  font-size: clamp(26px, 3vw, 34px);
  margin: 0;
}
.section-head .sub {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 14.5px;
  letter-spacing: .05em;
}
.section-head .more {
  font-size: 14px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  flex-shrink: 0;
}
.section-head .more:hover { color: var(--teal); border-color: var(--teal); }

/* ==========================================================================
   2. 头部导航
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(247, 243, 240, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -20px rgba(0, 0, 0, .5);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-seal {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-kai);
  font-size: 22px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.brand-text strong {
  display: block;
  font-family: var(--font-kai);
  font-size: 20px;
  letter-spacing: .16em;
  line-height: 1.2;
  font-weight: 600;
}
.brand-text em {
  display: block;
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: .08em;
  color: var(--ink-3);
  line-height: 1.6;
  white-space: nowrap;
}
.brand-extra { color: var(--ink-3); opacity: .85; }

/* 导航挤的时候，页眉只留主标语；页脚空间够，始终保留完整定位 */
@media (max-width: 1220px) {
  .brand-extra { display: none; }
  .footer-brand .brand-extra { display: inline; }
  .header-phone { display: none; }
  .header-inner { gap: 24px; }
  .main-nav ul { gap: 20px; }
  .main-nav a { font-size: 14.5px; letter-spacing: .04em; }
}

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav li { flex: 0 0 auto; }
.main-nav a {
  position: relative;
  display: inline-block;
  padding: 4px 0;
  font-size: 15px;
  letter-spacing: .08em;
  color: var(--link-blue);
  white-space: nowrap;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--link-blue);
  transition: width .25s ease, left .25s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { color: var(--link-blue-dark); }
.main-nav a:hover::after,
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after { width: 100%; left: 0; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.header-phone {
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.header-phone:hover { color: var(--teal); }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: .25s ease;
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before { content: ""; top: -6px; left: 0; transform: none; }
.nav-toggle span::after { content: ""; top: 6px; left: 0; transform: none; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ==========================================================================
   3. 首屏
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 74px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -140px; top: -120px;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(9, 114, 118, .07), transparent 68%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-copy h1 {
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.28;
  letter-spacing: .06em;
  margin: 0 0 22px;
}
.hero-copy h1 .hl {
  position: relative;
  display: inline-block;
  color: var(--teal);
}
.hero-copy h1 .hl::after {
  content: "";
  position: absolute;
  left: 2%; right: 2%;
  bottom: .08em;
  height: .22em;
  background: rgba(9, 114, 118, .12);
  border-radius: 40% 60% 55% 45%;
  z-index: -1;
}
.hero-lead {
  max-width: 30em;
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 2;
  letter-spacing: .04em;
  margin-bottom: 30px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 14px;
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--teal);
  opacity: .7;
}

.hero-art {
  position: relative;
  filter: drop-shadow(0 24px 40px rgba(74, 54, 38, .1));
}
.hero-art img {
  width: 100%;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 78% 78% at 50% 50%, #000 60%, transparent 97%);
  mask-image: radial-gradient(ellipse 78% 78% at 50% 50%, #000 60%, transparent 97%);
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 8% -4% -6% 10%;
  border: 1px solid rgba(9, 114, 118, .18);
  border-radius: 50% 50% 46% 54% / 52% 46% 54% 48%;
  z-index: -1;
}
.hero-seal {
  position: absolute;
  right: 2%; bottom: 4%;
  width: 62px; height: 62px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-family: var(--font-kai);
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  border-radius: 6px;
  transform: rotate(-4deg);
  opacity: .9;
  letter-spacing: .05em;
  padding: 6px;
}

/* ==========================================================================
   4. 服务四栏
   ========================================================================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  position: relative;
  padding: 30px 26px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(9, 114, 118, .28);
  box-shadow: var(--shadow-md);
}
.service-char {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  line-height: 1;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  font-family: var(--font-kai);
  font-size: 24px;
  box-shadow: inset 0 0 0 1px rgba(9, 114, 118, .14);
}
.service-card:nth-child(2) .service-char { background: #f8efe4; color: #a5713a; box-shadow: inset 0 0 0 1px rgba(165, 113, 58, .18); }
.service-card:nth-child(3) .service-char { background: #f0f0e4; color: #7d7a3c; box-shadow: inset 0 0 0 1px rgba(125, 122, 60, .18); }
.service-card:nth-child(4) .service-char { background: #eef2f5; color: #3f6577; box-shadow: inset 0 0 0 1px rgba(63, 101, 119, .18); }
.service-card:nth-child(5) .service-char { background: #eef1ea; color: #4f6b52; box-shadow: inset 0 0 0 1px rgba(79, 107, 82, .18); }
.service-card:nth-child(6) .service-char { background: #fbeee9; color: var(--red); box-shadow: inset 0 0 0 1px rgba(180, 85, 45, .18); }
.service-card h3 { font-size: 21px; margin-bottom: 10px; }
.service-card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.9; margin-bottom: 16px; }
.service-list {
  margin: 0;
  padding: 14px 0 0;
  list-style: none;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
  color: var(--ink-2);
}
.service-list li { display: flex; gap: 8px; align-items: baseline; padding: 2px 0; }
.service-list li::before { content: "·"; color: var(--teal); font-weight: 700; }

/* ==========================================================================
   5. 课程卡片
   ========================================================================== */
.course-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.course-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(9, 114, 118, .22);
}
.course-cover {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #f1eae3, #f9f5f0);
}
.course-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
  mix-blend-mode: multiply;
}
.course-card:hover .course-cover img { transform: scale(1.04); }
.cover-char {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-kai);
  font-size: 76px;
  color: rgba(47, 42, 38, .44);
  letter-spacing: .1em;
  background:
    radial-gradient(58% 58% at 50% 46%, rgba(255, 255, 255, .55), transparent 72%),
    radial-gradient(70% 70% at 18% 18%, rgba(9, 114, 118, .09), transparent 62%),
    radial-gradient(60% 60% at 88% 84%, rgba(180, 85, 45, .07), transparent 64%),
    linear-gradient(135deg, #f0e8e0, #faf7f2);
}
.cover-char::before {
  content: "";
  position: absolute;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  border: 1px solid rgba(47, 42, 38, .1);
  background: radial-gradient(circle at 50% 46%, rgba(255, 255, 255, .6), transparent 70%);
}
.cover-type {
  position: absolute;
  left: 16px;
  bottom: 13px;
  font-size: 11.5px;
  letter-spacing: .24em;
  color: var(--ink-2);
}
.course-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
}
.course-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { font-size: 19px; margin-bottom: 6px; }
.course-body h3 a:hover { color: var(--teal); }
.course-note { font-size: 13.5px; color: var(--ink-2); margin-bottom: 14px; }
.course-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.price { font-family: var(--font-song); font-size: 22px; color: var(--red); letter-spacing: .02em; }
.price small { font-size: 12px; color: var(--ink-3); margin-left: 3px; letter-spacing: .04em; }
.course-foot .link { font-size: 13.5px; color: var(--link-blue); }
.course-foot .link:hover { color: var(--link-blue-dark); }
@media (hover: none) {
  .course-foot .link:hover,
  .page-content .course-foot .link:hover { color: var(--link-blue); }
}

.promo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 28px;
  min-height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(197, 154, 91, .28);
  background: linear-gradient(160deg, #fbf3e4, #f4ead9 60%, #efe2cd);
}
.promo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .9;
  mix-blend-mode: multiply;
}
.promo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(251, 243, 228, .2) 0%, rgba(251, 243, 228, .75) 62%, rgba(251, 243, 228, .96) 100%);
}
.promo::before {
  content: "墨";
  position: absolute;
  right: 10px;
  top: 118px;
  z-index: 1;
  font-family: var(--font-kai);
  font-size: 142px;
  line-height: 1;
  color: rgba(165, 113, 58, .09);
  pointer-events: none;
}
.promo > * { position: relative; z-index: 2; }
.promo-top { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 2px; }
.promo-label { font-size: 12px; letter-spacing: .2em; color: var(--ink-3); }
.promo-tel { font-family: var(--font-song); font-size: 25px; color: var(--teal); letter-spacing: .03em; line-height: 1.5; }
.promo-tel:hover { color: var(--teal-dark); }
.promo-time { font-size: 12.5px; color: var(--ink-2); letter-spacing: .04em; }
.promo-body { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; }
.promo-body .tag { margin-bottom: 14px; }
.promo h3 { font-size: 24px; margin-bottom: 8px; }
.promo p { font-size: 14px; color: var(--ink-2); margin-bottom: 18px; }
.promo .btn { align-self: flex-start; }

/* ==========================================================================
   6. 每日流程
   ========================================================================== */
.flow {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.flow-art { position: relative; }
.flow-art img {
  width: 100%;
  border-radius: 6px;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 20px 34px rgba(74, 54, 38, .09));
}
.flow-art .frame {
  position: absolute;
  inset: -14px -14px 34px 34px;
  border: 1px solid rgba(9, 114, 118, .16);
  border-radius: 4px;
  z-index: -1;
}
.flow-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.flow-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 20px;
  padding: 0 0 26px 0;
}
.flow-steps li:last-child { padding-bottom: 0; }
.flow-steps li::before {
  content: "";
  position: absolute;
  left: 74px; top: 26px; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--line-strong), transparent);
}
.flow-steps li:last-child::before { display: none; }
.flow-time {
  font-family: var(--font-song);
  font-size: 15px;
  color: var(--teal);
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.flow-steps h4 { font-size: 17.5px; margin: 0 0 4px; }
.flow-steps p { font-size: 14px; color: var(--ink-2); margin: 0; }

.flow-card {
  padding: 30px 32px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  position: relative;
}
.flow-card::before {
  content: "";
  position: absolute;
  left: 0; top: 26px; bottom: 26px;
  width: 3px;
  background: linear-gradient(180deg, var(--teal), rgba(9, 114, 118, 0));
  border-radius: 3px;
}
.flow-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.flow-card-date { font-size: 12.5px; color: var(--ink-3); letter-spacing: .08em; }
.flow-card h4 { font-size: 20px; margin: 0 0 14px; }
.report-list { margin: 0 0 18px; padding: 0; list-style: none; }
.report-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px dashed var(--line);
  font-size: 13.8px;
  line-height: 1.75;
}
.report-list span { color: var(--ink-3); font-size: 12.5px; letter-spacing: .06em; }
.report-list b { font-weight: 500; color: var(--ink); }
.flow-card-foot {
  margin: 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
  text-align: right;
}

/* ==========================================================================
   6.5 绘本特性
   ========================================================================== */
.feature {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 60px;
  align-items: center;
}
.feature-art { position: relative; }
.feature-art img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center 40%;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 80% 82% at 50% 50%, #000 62%, transparent 98%);
  mask-image: radial-gradient(ellipse 80% 82% at 50% 50%, #000 62%, transparent 98%);
}
.feature-copy h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }
.feature-copy > p { color: var(--ink-2); font-size: 15px; line-height: 2; margin-bottom: 22px; max-width: 32em; }
.feature-list { margin: 0 0 28px; padding: 0; list-style: none; max-width: 34em; }
.feature-list li {
  position: relative;
  padding: 0 0 12px 20px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.9;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: .78em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  opacity: .55;
}
.feature-list strong { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   6.6 教室与场地
   ========================================================================== */
.space-grid {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: 22px;
}
.space-item { margin: 0; }
.space-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
}
.space-item figcaption {
  display: flex;
  gap: 12px;
  padding: 14px 2px 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.85;
}
.space-item figcaption strong {
  flex-shrink: 0;
  color: var(--ink);
  font-weight: 600;
  font-family: var(--font-kai);
  font-size: 16px;
  letter-spacing: .06em;
}

/* ==========================================================================
   7. 师资
   ========================================================================== */
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.teacher-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow .25s ease, transform .25s ease;
}
.teacher-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.teacher-seal {
  flex: 0 0 60px;
  width: 60px; height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(150deg, #eef4f3, #e2eceb);
  color: var(--teal);
  font-family: var(--font-kai);
  font-size: 24px;
  border: 1px solid rgba(9, 114, 118, .16);
}
.teacher-card h4 { font-size: 18px; margin: 0 0 4px; }
.teacher-role { font-size: 12.5px; color: var(--teal); letter-spacing: .12em; margin: 0 0 8px; }
.teacher-card p { font-size: 13.5px; color: var(--ink-2); margin: 0; line-height: 1.9; }

/* ==========================================================================
   8. 活动
   ========================================================================== */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.activity-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.activity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.activity-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #f0e9e1, #f8f4ee);
}
.activity-cover img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.activity-cover .cover-char { font-size: 52px; }
.activity-date {
  position: absolute;
  left: 14px; top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 253, 250, .9);
  font-size: 12px;
  color: var(--ink-2);
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}
.activity-body { padding: 18px 22px 22px; }
.activity-body h3 { font-size: 18px; margin-bottom: 6px; }
.activity-body p { font-size: 13.5px; color: var(--ink-2); margin: 0; }

/* ==========================================================================
   9. 寒暑假横幅
   ========================================================================== */
.season {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
  padding: 54px 56px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #eef4f2 0%, #f7f3ee 55%, #f8efe2 100%);
  border: 1px solid rgba(9, 114, 118, .14);
  overflow: hidden;
}
.season::before {
  content: "";
  position: absolute;
  left: -60px; bottom: -90px;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(9, 114, 118, .12);
}
.season h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.season p { color: var(--ink-2); font-size: 15px; margin-bottom: 22px; max-width: 30em; }
.season-art img {
  width: 100%;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 82% 78% at 50% 50%, #000 62%, transparent 98%);
  mask-image: radial-gradient(ellipse 82% 78% at 50% 50%, #000 62%, transparent 98%);
}
.season-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

/* ==========================================================================
   10. FAQ
   ========================================================================== */
.faq { max-width: 880px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  cursor: pointer;
  font-family: var(--font-kai);
  font-size: 18px;
  letter-spacing: .04em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "＋";
  flex-shrink: 0;
  color: var(--teal);
  font-family: var(--font-sans);
  font-size: 18px;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 4px 22px;
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  max-width: 62em;
}

/* ==========================================================================
   11. 预约
   ========================================================================== */
.booking {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.booking-info {
  padding: 48px 44px;
  background:
    radial-gradient(80% 60% at 90% 0%, rgba(9, 114, 118, .07), transparent 70%),
    #f3f6f4;
  border-right: 1px solid var(--line);
}
.booking-info h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 12px; }
.booking-info > p { color: var(--ink-2); font-size: 14.5px; margin-bottom: 30px; }
.booking-list { margin: 0; padding: 0; list-style: none; }
.booking-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px dashed var(--line);
  font-size: 14px;
}
.booking-list li:first-child { border-top: none; }
.booking-list .k { color: var(--ink-3); font-size: 13px; letter-spacing: .08em; }
.booking-list .v { color: var(--ink); }
.booking-list a { border-bottom: 1px solid var(--line-strong); }
.booking-form { padding: 48px 44px; }
.booking-form h3 { font-size: 20px; margin-bottom: 22px; }
.form-row { margin-bottom: 16px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: .06em;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  background: #fdfbf8;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-size: 14.5px;
  letter-spacing: .02em;
  transition: border-color .2s ease, background .2s ease;
  appearance: none;
}
.form-row select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.form-row textarea { min-height: 92px; resize: vertical; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: #fff;
}
.form-note { font-size: 12.5px; color: var(--ink-3); margin: 12px 0 0; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-msg {
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 3px;
  font-size: 14px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  border: 1px solid rgba(9, 114, 118, .2);
}
.form-msg.err { background: #fbeee9; color: #8f3f1e; border-color: rgba(180, 85, 45, .25); }

/* ==========================================================================
   12. 页脚
   ========================================================================== */
.site-footer {
  margin-top: 40px;
  padding: 64px 0 0;
  background: #f0ebe5;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .brand-text em { font-size: 9.5px; letter-spacing: .05em; white-space: normal; color: var(--ink-2); }
.footer-brand p { font-size: 13.5px; color: var(--ink-2); max-width: 24em; line-height: 2; }
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: .18em;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 16px;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 14px; color: var(--ink-2); }
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
}
.footer-bottom a { color: var(--ink-3); }
.footer-bottom a:hover { color: var(--teal); }

/* ==========================================================================
   13. 悬浮工具条
   ========================================================================== */
.float-bar {
  position: fixed;
  right: 18px;
  bottom: 90px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--line);
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .25);
}
.float-bar a,
.float-bar button {
  width: 56px;
  padding: 11px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: rgba(255, 253, 250, .96);
  font-size: 11px;
  color: var(--ink-2);
  border: none;
  cursor: pointer;
  letter-spacing: .02em;
  transition: background .2s ease, color .2s ease;
}
.float-bar a:hover,
.float-bar button:hover { background: #fff; color: var(--teal); }
.float-bar .ico { font-size: 16px; line-height: 1; }
.float-bar .backtop { display: none; }
.float-bar .backtop.show { display: flex; }

/* ==========================================================================
   14. 内页
   ========================================================================== */
.page-hero {
  padding: 66px 0 46px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(9, 114, 118, .06), transparent 70%),
    transparent;
}
.page-hero h1 { font-size: clamp(30px, 3.6vw, 44px); margin: 8px 0 12px; }
.page-hero p { color: var(--ink-2); max-width: 44em; margin: 0; font-size: 15px; }
.page-hero .breadcrumb { font-size: 12.5px; color: var(--ink-3); letter-spacing: .06em; }
.page-hero .breadcrumb a:hover { color: var(--teal); }

.page-content {
  padding: 56px 0 80px;
  font-size: 16px;
  line-height: 2.05;
  color: #453c35;
}
.page-content > * { max-width: 46em; }
.page-content h2 { font-size: 26px; margin-top: 1.8em; }
.page-content h3 { font-size: 21px; margin-top: 1.6em; }
.page-content img { border-radius: 4px; margin: 24px 0; }
.page-content blockquote {
  margin: 24px 0;
  padding: 16px 24px;
  border-left: 2px solid var(--teal);
  background: rgba(9, 114, 118, .04);
  color: var(--ink-2);
}
.page-content table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 20px 0; }
.page-content th, .page-content td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.page-content th { background: rgba(9, 114, 118, .05); font-weight: 600; }
.page-content a { color: var(--teal); border-bottom: 1px solid rgba(9, 114, 118, .3); }
.page-content a.btn-primary,
.page-content a.btn-primary:hover { color: #fff; border-bottom: 0; }

/* 课程详情 */
.course-detail { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; padding: 56px 0 80px; align-items: start; }
.course-detail .entry-cover { border-radius: 4px; overflow: hidden; margin-bottom: 32px; background: #f2ece6; }
.course-detail .entry-cover img { width: 100%; }
.course-aside {
  position: sticky;
  top: 100px;
  padding: 30px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.course-aside h3 { font-size: 18px; margin-bottom: 16px; }
.course-aside dl { margin: 0 0 22px; }
.course-aside .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px dashed var(--line);
  font-size: 14px;
}
.course-aside .row:first-child { border-top: none; }
.course-aside .row dt { color: var(--ink-3); }
.course-aside .row dd { margin: 0; color: var(--ink); }
.course-aside .price-lg { font-family: var(--font-song); font-size: 30px; color: var(--red); margin: 4px 0 20px; }
.course-aside .price-lg small { font-size: 13px; color: var(--ink-3); }

/* 课时包切换 */
.pkg-pick { display: flex; gap: 8px; margin: 0 0 20px; }
.pkg-opt { position: relative; flex: 1 1 0; min-width: 0; }
.pkg-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pkg-opt > span {
  display: block;
  padding: 8px 4px 7px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .18s, color .18s, background .18s;
}
.pkg-opt > span em { display: block; margin-top: 2px; font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.pkg-opt > span:hover { border-color: rgba(9, 114, 118, .45); }
.pkg-opt input:checked + span { border-color: var(--teal); background: rgba(9, 114, 118, .06); color: var(--teal); font-weight: 600; }
.pkg-opt input:checked + span em { color: var(--teal); }
.pkg-opt input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }

/* 列表页 */
.post-list { display: grid; gap: 0; max-width: 900px; }
.post-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 26px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.post-item:first-child { border-top: 1px solid var(--line); }
.post-item .thumb { border-radius: 3px; overflow: hidden; background: #f2ece6; aspect-ratio: 4/3; }
.post-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-item h2 { font-size: 21px; margin: 0 0 8px; }
.post-item .meta { font-size: 12.5px; color: var(--ink-3); letter-spacing: .06em; margin-bottom: 8px; }
.post-item p { font-size: 14px; color: var(--ink-2); margin: 0; }
.pagination { margin-top: 40px; font-size: 14px; }
.pagination .page-numbers {
  display: inline-block;
  min-width: 34px;
  padding: 5px 10px;
  margin-right: 6px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.pagination .current { background: var(--teal); color: #fff; border-color: var(--teal); }

.featured-courses {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.archive-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}
.archive-filter a {
  padding: 7px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.archive-filter a.active,
.archive-filter a:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

.empty-state {
  padding: 60px 0;
  text-align: center;
  color: var(--ink-3);
  font-size: 15px;
}

/* ==========================================================================
   15. 滚动出现
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }

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

/* ==========================================================================
   16. 响应式
   ========================================================================== */
@media (max-width: 1080px) {
  .header-inner { gap: 20px; }
  .main-nav ul { gap: 16px; }
  .header-phone { display: none; }
  .hero-inner { gap: 36px; }
  .flow { gap: 40px; }
  .season { padding: 44px 38px; }
  .booking-info, .booking-form { padding: 38px 32px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid .footer-col:last-child { grid-column: span 3; }
}

@media (max-width: 900px) {
  .section { padding: 62px 0; }
  .hero { padding: 40px 0 56px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; margin: 10px auto 0; order: -1; }
  .hero-copy h1 { font-size: clamp(32px, 8vw, 44px); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .course-layout { grid-template-columns: repeat(2, 1fr); }
  .course-layout .promo { grid-column: span 2; grid-row: auto; min-height: 220px; }
  .flow { grid-template-columns: 1fr; }
  .flow-art { max-width: 620px; }
  .flow-card { max-width: 560px; }
  .feature { grid-template-columns: 1fr; gap: 34px; }
  .feature-art { max-width: 460px; margin: 0 auto; }
  .teacher-grid { grid-template-columns: 1fr 1fr; }
  .teacher-grid .teacher-card:last-child:nth-child(odd) { grid-column: span 2; }
  .activity-grid { grid-template-columns: 1fr 1fr; }
  .season { grid-template-columns: 1fr; }
  .season-art { max-width: 480px; margin: 0 auto; }
  .booking { grid-template-columns: 1fr; }
  .booking-info { border-right: none; border-bottom: 1px solid var(--line); }
  .course-detail { grid-template-columns: 1fr; }
  .course-aside { position: static; }

  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: rgba(251, 248, 245, .98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -26px rgba(0, 0, 0, .5);
    padding: 10px 28px 22px;
    display: none;
    margin-left: 0;
  }
  .nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li { border-bottom: 1px dashed var(--line); }
  .main-nav a { display: block; padding: 13px 0; }
  .main-nav a::after { display: none; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { padding: 0 20px; }
  .header-inner { height: 66px; gap: 12px; }
  .brand-seal { width: 34px; height: 34px; font-size: 19px; }
  .brand-text strong { font-size: 17px; }
  .brand-text em { font-size: 9px; letter-spacing: .1em; }
  .footer-brand .brand-text em { font-size: 9px; letter-spacing: .04em; }
  .header-actions .btn { padding: 8px 16px; font-size: 13px; }
  .section { padding: 52px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 26px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { padding: 24px 22px; }
  .course-layout { grid-template-columns: 1fr; }
  .course-layout .promo { grid-column: span 1; }
  .teacher-grid { grid-template-columns: 1fr; }
  .teacher-grid .teacher-card:last-child:nth-child(odd) { grid-column: span 1; }
  .activity-grid { grid-template-columns: 1fr; }
  .season { padding: 34px 24px; }
  .booking-info, .booking-form { padding: 30px 24px; }
  .form-row.two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-grid .footer-col:last-child { grid-column: span 2; }
  .footer-brand { grid-column: span 2; }
  .float-bar { right: 10px; bottom: 70px; }
  .float-bar a, .float-bar button { width: 46px; font-size: 10px; }
  .post-item { grid-template-columns: 1fr; gap: 14px; }
  .hero-seal { width: 50px; height: 50px; font-size: 11px; }
}

/* ==========================================================================
   17. WordPress 对齐与工具类
   ========================================================================== */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12.5px; color: var(--ink-3); text-align: center; margin-top: 6px; }
.entry-content::after { content: ""; display: table; clear: both; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .course-grid { grid-template-columns: 1fr; } }

/* 课程列表页：让课程网格占满容器，卡片内链接跟随卡片配色 */
.post-type-archive-course .page-content > .container { max-width: var(--container); }
.page-content > .course-grid { max-width: none; }
.page-content > .archive-filter { max-width: none; }
.page-content .course-grid a { border-bottom: 0; color: inherit; }
.page-content .course-body h3 a { color: var(--ink); }
.page-content .course-body h3 a:hover { color: var(--teal); }
.page-content .course-foot .link { color: var(--link-blue); }
.page-content .course-foot .link:hover { color: var(--link-blue-dark); }

/* 锚点偏移（吸顶导航） */
[id] { scroll-margin-top: 92px; }
@media (max-width: 640px) { [id] { scroll-margin-top: 78px; } }

/* 微信二维码 */
.aside-qr { display:flex; align-items:center; gap:14px; margin-top:22px; padding-top:20px; border-top:1px dashed rgba(9,114,118,.18); }
.aside-qr img { width:100px; height:100px; padding:6px; background:#fff; border:1px solid var(--line); border-radius:6px; flex:0 0 auto; }
.aside-qr p { margin:0; font-size:13px; line-height:1.5; color:var(--ink); }
.aside-qr p span { display:block; margin-top:4px; font-size:12px; color:var(--ink-2); }
.footer-qrs { display:flex; flex-wrap:wrap; gap:14px 16px; margin-top:16px; }
.footer-qr { display:flex; align-items:center; gap:10px; }
.footer-qr img { width:78px; height:78px; padding:4px; background:#fff; border-radius:4px; flex:0 0 auto; }
.footer-qr span { font-size:12px; color:var(--ink-2); letter-spacing:.04em; }
.footer-qr span em { display:block; margin-top:3px; font-style:normal; font-size:11px; color:var(--ink-3); letter-spacing:0; white-space:nowrap; }

/* 报名缴费 */
.enroll-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: 48px; align-items: start; }
.enroll-form h3 { font-size: 19px; margin: 0 0 14px; }
.enroll-form h3:not(:first-of-type) { margin-top: 34px; }
.enroll-courses { display: grid; gap: 10px; }
.enroll-course { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.enroll-course:hover { border-color: rgba(9, 114, 118, .35); }
.enroll-course:has(input:checked) { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.ec-head { display: flex; align-items: center; gap: 14px; cursor: pointer; }
.enroll-course input[type="checkbox"] { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; accent-color: var(--teal); }
.ec-pkg { display: none; margin: 12px 0 0 32px; }
.enroll-course:has(input:checked) .ec-pkg { display: block; }
.ec-pkg select { width: 100%; max-width: 260px; padding: 8px 10px; font-size: 13.5px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.ec-main { flex: 1; min-width: 0; }
.ec-main strong { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.ec-main em { display: block; margin-top: 2px; font-style: normal; font-size: 12.5px; color: var(--ink-2); }
.ec-price { flex: 0 0 auto; text-align: right; font-family: var(--font-song); font-size: 18px; color: var(--teal); }
.ec-price small { display: block; font-size: 11.5px; color: var(--ink-2); }
.enroll-total { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 0; padding: 14px 18px; background: rgba(9, 114, 118, .06); border-radius: var(--radius-lg); font-size: 14px; color: var(--ink-2); }
.enroll-total b { font-family: var(--font-song); font-size: 26px; color: var(--teal); }
.enroll-total span { margin-left: auto; font-size: 12px; }
.enroll-aside { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.enroll-aside h3 { margin: 0 0 18px; font-size: 18px; }
.enroll-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.enroll-steps li { display: flex; gap: 12px; }
.enroll-steps li > span { flex: 0 0 26px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: #fff; font-size: 13px; }
.enroll-steps strong { display: block; font-size: 14.5px; }
.enroll-steps p { margin: 3px 0 0; font-size: 13px; color: var(--ink-2); }

.pay-wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: start; }
.pay-main { padding: 30px 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.pay-head { display: flex; flex-wrap: wrap; gap: 28px; padding: 18px 0 22px; border-bottom: 1px dashed var(--line); }
.pay-head span { display: block; font-size: 12.5px; color: var(--ink-2); letter-spacing: .04em; }
.pay-head strong { display: block; margin-top: 4px; font-family: var(--font-song); font-size: 17px; color: var(--ink); letter-spacing: .02em; }
.pay-amount { font-size: 28px !important; color: var(--teal) !important; }
.pay-items { margin: 18px 0; padding: 0; list-style: none; }
.pay-items li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 14px; border-bottom: 1px solid rgba(0, 0, 0, .04); }
.pay-items b { color: var(--ink); font-weight: 600; }
.pay-items small { font-weight: 400; color: var(--ink-2); }
.pay-pkg { display: block; margin-top: 3px; font-style: normal; font-size: 12.5px; color: var(--ink-2); }
.pay-meta { font-size: 13px; color: var(--ink-2); }
.pay-qr { padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); text-align: center; }
.pay-qr h3 { margin: 0 0 16px; font-size: 18px; }
.pay-qrs { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.pay-qrs figure { margin: 0; }
.pay-qrs img { width: 190px; height: 190px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.pay-qrs figcaption { margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }
.pay-tip { margin: 16px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--ink-2); text-align: left; }
.pay-tip b { color: var(--ink); }
.pay-contact { margin: 14px 0 0; font-size: 14px; }
.pay-wechat { width: 100px; height: 100px; margin-top: 14px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.pay-consult { width: 112px; margin: 14px auto 0; text-align: center; }
.pay-consult .pay-wechat { margin-top: 0; }
.pay-consult figcaption { margin-top: 5px; font-size: 12px; color: var(--ink-3); }
.pay-again { margin-top: 22px; font-size: 14px; }

@media (max-width: 900px) {
  .enroll-layout, .pay-wrap { grid-template-columns: 1fr; gap: 28px; }
  .pay-qrs img { width: 150px; height: 150px; }
}
@media (max-width: 640px) {
  .ec-pkg { margin-left: 0; }
  .ec-pkg select { max-width: none; }
  .pkg-pick { gap: 6px; }
  .pkg-opt > span { padding: 7px 2px 6px; font-size: 12.5px; }
}

/* ==========================================================================
   18. 教学资料
   ========================================================================== */
.page-materials .page-content > .container { max-width: var(--container); }
.page-materials .page-content .entry-content > * { max-width: none; }
.page-materials .mat-card a { border-bottom: 0; }

.mat-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.mat-count {
  margin: 0 0 22px;
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: .04em;
}
.mat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .mat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .mat-grid { grid-template-columns: 1fr; } }

.mat-card {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.mat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(9, 114, 118, .22);
}
.mat-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.mat-subject {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid rgba(9, 114, 118, .18);
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 12px;
  letter-spacing: .1em;
}
.mat-kind {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: .06em;
}
.mat-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
}
.mat-note {
  flex: 1;
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.mat-meta {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-3);
}
.mat-empty {
  padding: 56px 0;
  text-align: center;
  font-size: 15px;
  color: var(--ink-3);
}

/* 分类筛选（学段 / 年级 / 科目 / 类型） */
.mat-intro {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 2;
  color: var(--ink-3);
  letter-spacing: .02em;
}
.mat-filter {
  padding: 8px 18px;
  margin-bottom: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.mat-frow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
}
.mat-frow + .mat-frow { border-top: 1px dashed var(--line); }
.mat-flabel {
  flex: 0 0 auto;
  width: 34px;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: .1em;
}
.mat-chip {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.mat-chip:hover {
  border-color: rgba(9, 114, 118, .38);
  color: var(--teal);
}
.mat-chip.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.mat-gsep {
  flex: 0 0 auto;
  width: 1px;
  height: 15px;
  margin: 0 3px;
  background: var(--line-strong, #d9d2c9);
}
.mat-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--paper, #faf7f2);
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: .04em;
}
.mat-top .mat-kind { margin-left: auto; }
@media (max-width: 900px) {
  .mat-filter { padding-right: 56px; }
}
@media (max-width: 640px) {
  .mat-flabel { width: 100%; }
  .mat-chip { padding: 4px 11px; font-size: 13px; }
  .mat-gsep { display: none; }
}
