/* ============================================================
   中华儿童文化艺术促进会校外培训工作委员会 — 平台站
   设计系统 v1.0（唯一真源）
   定调：文化中国红 + 米白纸感；庄重信任 + 家长查询清爽
   ============================================================ */

:root {
  /* 品牌色（已按 WCAG AA 校准：红底白字 7.4:1，正文 12.9:1） */
  --brand: #9E2B25;          /* 文化中国红（主色/深底按钮） */
  --brand-dark: #7E1F1A;     /* 主色加深（悬停/页脚） */
  --brand-ink: #6B1D1A;      /* 红色系最深（浅底红字用） */
  --gold: #B58A2E;           /* 金（装饰点缀，不做文字底） */
  --gold-deep: #8C6A1E;      /* 深金（浅底金文字用，正文可达标） */

  /* 中性色 */
  --ink: #2B2B2B;            /* 正文 */
  --ink-soft: #4F4F4F;       /* 次级正文 */
  --paper: #FAF6F0;          /* 米白纸感背景 */
  --paper-card: #FFFFFF;     /* 卡片白 */
  --line: #E8E0D4;           /* 分隔线/描边 */
  --line-soft: #F1EAE0;
  --muted: #8A857A;          /* 弱化文字（仅装饰） */

  /* 功能色 */
  --ok: #1E7A46;             /* 认证通过 */
  --ok-bg: #EAF5EE;
  --warn: #9A6B00;

  /* 字体阶梯（系统字体，零外部依赖） */
  --font-body: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Songti SC", "SimSun", "STSong", serif; /* 标题衬线，庄重文化感 */

  --h1: clamp(1.7rem, 3.6vw, 2.6rem);
  --h2: clamp(1.35rem, 2.6vw, 1.9rem);
  --h3: 1.15rem;
  --body: 1rem;
  --small: 0.875rem;
  --tiny: 0.8rem;

  /* 几何 */
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 2px 10px rgba(43, 43, 43, 0.06);
  --shadow-hover: 0 8px 24px rgba(126, 31, 26, 0.12);
  --maxw: 1160px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { color: var(--brand); }
ul, ol { list-style: none; }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section-tight { padding: 36px 0; }

/* ---------- Header ---------- */
.site-header {
  background-color: var(--brand);
  color: #FFF;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(60, 10, 8, 0.18);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 10px; object-fit: contain; background-color: #FFF; padding: 2px; }
.brand-badge {
  width: 42px; height: 42px;
  flex: 0 0 42px;
  border-radius: 10px;
  background-color: #FFF;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.brand-name { line-height: 1.25; }
.brand-name .cn { display:block; font-size: 1.02rem; font-weight: 700; letter-spacing: 0.5px; white-space: normal; line-height: 1.35; max-width: 420px; }
.brand-name .cn-short { display: none; }
.brand-name .en { font-size: 0.66rem; opacity: 0.82; letter-spacing: 0.4px; }
.brand-name .en-short { display: none; }
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.main-nav a {
  color: #FFF; font-size: 0.92rem;
  padding: 8px 12px; border-radius: var(--radius-sm);
  font-weight: 500;
}
.main-nav a:hover { background-color: rgba(255, 255, 255, 0.14); color: #FFF; }
.main-nav a.active { background-color: rgba(255, 255, 255, 0.22); }

/* ---------- Footer ---------- */
.site-footer { background-color: var(--brand-dark); color: #FFF; margin-top: 40px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 40px 20px 28px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.footer-cols h4 { font-size: 1rem; margin-bottom: 10px; color: #FFF; }
.footer-cols a, .footer-cols p { color: rgba(255, 255, 255, 0.84); font-size: 0.875rem; line-height: 1.9; }
.footer-cols a:hover { color: #FFF; text-decoration: underline; }
.footer-btm {
  margin-top: 28px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.8rem; color: rgba(255, 255, 255, 0.72);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: all 0.18s ease;
}
.btn-primary { background-color: var(--brand); color: #FFF; }
.btn-primary:hover { background-color: var(--brand-dark); color: #FFF; box-shadow: var(--shadow-hover); }
.btn-outline { background-color: transparent; color: var(--brand-ink); border-color: var(--brand); }
.btn-outline:hover { background-color: var(--brand); color: #FFF; }
.btn-light { background-color: #FFF; color: var(--brand); }
.btn-light:hover { background-color: var(--paper); color: var(--brand-dark); }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }

/* ---------- 机构站认证横幅（醒目主角） ---------- */
.cert-banner {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  background-color: var(--brand);
  color: #FFF;
  padding: 14px 20px;
  border-bottom: 3px solid var(--gold);
}
.cert-banner-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
}
.cert-logo-img {
  width: 56px; height: 56px; flex: 0 0 56px;
  border-radius: 50%;
  background-color: #FFF;
  padding: 4px;
  object-fit: contain;
  box-shadow: 0 0 0 3px rgba(181, 138, 46, 0.35);
}
.cert-banner-name {
  font-size: 1.15rem; font-weight: 700; letter-spacing: 1px;
  font-family: var(--font-display);
}
.cert-banner-sub {
  font-size: 0.95rem; color: #F5D9A8; margin-top: 2px; font-weight: 600;
  letter-spacing: 0.5px;
}
@media (max-width: 900px) {
  .cert-banner { padding: 10px 14px; }
  .cert-banner-name { font-size: 0.95rem; letter-spacing: 0.5px; }
  .cert-banner-sub { font-size: 0.82rem; }
  .cert-logo-img { width: 44px; height: 44px; flex: 0 0 44px; }
}
/* ---------- 机构站新头部 ---------- */
.inst-header { background-color: #FFF; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 6px rgba(43,43,43,0.06); }
.inst-header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.inst-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.inst-logo-img { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; }
.inst-brand-name { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.inst-name-main { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inst-name-slogan { font-size: 0.8rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 380px; }
.inst-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.inst-nav a { color: var(--ink-soft); font-size: 0.92rem; font-weight: 500; padding: 8px 12px; border-radius: var(--radius-sm); }
.inst-nav a:hover { color: var(--brand); background-color: var(--paper); }
.inst-nav a.active { color: #FFF; background-color: var(--brand); font-weight: 600; }
@media (max-width: 900px) {
  .cert-topbar { font-size: 0.74rem; padding: 5px 14px; }
  .cert-topbar-name { font-size: 0.74rem; }
  .inst-nav { width: 100%; order: 3; overflow-x: auto; }
  .inst-nav::-webkit-scrollbar { display: none; }
  .inst-nav a { white-space: nowrap; padding: 7px 10px; font-size: 0.88rem; }
  .inst-name-main { font-size: 1.05rem; }
  .inst-name-slogan { max-width: 220px; }
}

/* ---------- 返回主页条（机构独立页） ---------- */
.cert-strip {
  background-color: var(--ok-bg);
  color: var(--ok);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  padding: 6px 16px;
}
.inst-header .brand-name .en-full { font-size: 0.7rem; opacity: 0.85; }
@media (max-width: 900px) {
  .inst-header .brand-name .en-full { display: none; }
}
.back-bar {
  background-color: #F3EBDD;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  padding: 7px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
}
.back-bar a { color: var(--brand-ink); font-weight: 600; }
.back-bar a:hover { text-decoration: underline; }
.back-bar .back-bar-cert { color: var(--ok); font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background-color: var(--brand);
  color: #FFF;
  overflow: hidden;
}
/* 渐变装饰带（实色兜底便于对比度审计） */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-color: var(--brand);
  background-image: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.14) 0, rgba(255, 255, 255, 0.14) 1px, transparent 1px), radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.10) 0, rgba(255, 255, 255, 0.10) 1px, transparent 1px);
  background-size: 34px 34px, 52px 52px;
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto;
  padding: 64px 20px 56px;
}
.hero-kicker {
  display: inline-block; font-size: 0.85rem; font-weight: 600;
  color: #FFF; background-color: rgba(255, 255, 255, 0.18);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 18px;
  letter-spacing: 1px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--h1); line-height: 1.4; font-weight: 700;
  max-width: 760px; margin-bottom: 14px;
}
.hero p.lead {
  font-size: 1.08rem; color: rgba(255, 255, 255, 0.92);
  max-width: 640px; margin-bottom: 26px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  margin-top: 36px; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: flex; gap: 36px; flex-wrap: wrap;
}
.hero-stats .stat { display: flex; flex-direction: column; }
.hero-stats .num { font-size: 1.8rem; font-weight: 800; line-height: 1.2; }
.hero-stats .lbl { font-size: 0.85rem; color: rgba(255, 255, 255, 0.85); }

/* ---------- Section titles ---------- */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 34px; }
.sec-head h2 { font-family: var(--font-display); font-size: var(--h2); color: var(--ink); line-height: 1.4; }
.sec-head p { color: var(--ink-soft); margin-top: 8px; font-size: 0.98rem; }

/* ---------- Cards ---------- */
.card {
  background-color: var(--paper-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

/* 城市卡片 */
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.city-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px; border-radius: var(--radius-md);
  background-color: var(--paper-card); border: 1px solid var(--line-soft);
  text-align: left;
}
.city-card:hover { border-color: var(--brand); box-shadow: var(--shadow-hover); }
.city-card .city-name { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.city-card .city-prov { font-size: 0.78rem; color: var(--ink-soft); }
.city-card .city-count { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

/* 科目卡片 */
.subject-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.subject-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 12px; border-radius: var(--radius-md);
  background-color: var(--paper-card); border: 1px solid var(--line-soft);
  text-align: center;
}
.subject-card:hover { border-color: var(--brand); box-shadow: var(--shadow-hover); }
.subject-card .icon { font-size: 1.7rem; }
.subject-card .name { font-weight: 700; color: var(--ink); }
.subject-card .desc { font-size: 0.76rem; color: var(--ink-soft); line-height: 1.5; }

/* 机构卡片（列表） */
.inst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.inst-card { display: flex; flex-direction: column; padding: 24px; gap: 10px; }
.inst-card .inst-head { display: flex; align-items: flex-start; gap: 14px; }
.inst-logo {
  width: 60px; height: 60px; flex: 0 0 60px; border-radius: 14px;
  background-color: var(--brand); color: #FFF;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
}
.inst-logo.light { background-color: var(--paper); color: var(--brand-ink); border: 1px solid var(--line); }
.inst-name { font-size: 1.15rem; font-weight: 700; color: var(--ink); line-height: 1.4; }
.inst-meta { font-size: 0.82rem; color: var(--ink-soft); display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.inst-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 0.76rem; padding: 3px 10px; border-radius: 999px;
  background-color: var(--paper); color: var(--brand-ink);
  border: 1px solid var(--line);
}
.tag-verified {
  background-color: var(--ok-bg); color: var(--ok); border-color: transparent;
  font-weight: 600;
}
.inst-intro { font-size: 0.9rem; color: var(--ink-soft); flex: 1; }
.inst-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.inst-foot .arrow { color: var(--brand); font-weight: 700; }

/* ---------- Filter bar（机构库） ---------- */
.filter-bar {
  background-color: var(--paper-card); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 26px;
  box-shadow: var(--shadow-card);
}
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.filter-row:last-child { margin-bottom: 0; }
.filter-label { font-size: 0.85rem; font-weight: 700; color: var(--ink); min-width: 44px; }
.chip {
  font-size: 0.85rem; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  background-color: var(--paper); color: var(--ink-soft);
  border: 1px solid var(--line);
}
.chip:hover { border-color: var(--brand); color: var(--brand-ink); }
.chip.active { background-color: var(--brand); color: #FFF; border-color: var(--brand); font-weight: 600; }
.chips-wrap { display: inline-flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.result-meta { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 16px; }
.result-meta strong { color: var(--brand-ink); }

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center; padding: 60px 20px;
  background-color: var(--paper-card); border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}
.empty-state .icon { font-size: 2.4rem; margin-bottom: 12px; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: 8px; }
.empty-state p { color: var(--ink-soft); font-size: 0.92rem; max-width: 520px; margin: 0 auto 18px; }

/* ---------- Institution detail page ---------- */
/* Hero banner 图（图形 banner 或机构实拍图）+ 深色遮罩保文字可读 */
.detail-hero.hero-cover { position: relative; overflow: hidden; background-size: cover; background-position: center right; background-repeat: no-repeat; }
.detail-hero.hero-cover::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(107,29,26,0.76) 0%, rgba(107,29,26,0.46) 46%, rgba(107,29,26,0.06) 100%);
}
.detail-hero.hero-cover .detail-hero-inner { position: relative; z-index: 2; }
.detail-logo-img {
  width: 96px; height: 96px; flex: 0 0 96px; border-radius: 50%;
  background-color: #FFF; padding: 7px; object-fit: contain;
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
}

.detail-hero { background-color: var(--brand); color: #FFF; }
.detail-hero-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 44px 20px 36px;
  display: flex; gap: 24px; flex-wrap: wrap; align-items: center;
}
.detail-logo {
  width: 96px; height: 96px; flex: 0 0 96px; border-radius: 20px;
  background-color: #FFF; color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 700;
}
.detail-head { flex: 1; min-width: 260px; }
.detail-head h1 { font-size: 1.7rem; line-height: 1.4; margin-bottom: 6px; font-family: var(--font-display); }
.detail-head .member-no { font-size: 0.82rem; color: rgba(255, 255, 255, 0.85); margin-bottom: 10px; display: inline-block; background-color: rgba(255,255,255,0.16); padding: 3px 12px; border-radius: 999px; }
.detail-head .slogan { font-size: 1.02rem; color: rgba(255, 255, 255, 0.95); }
.detail-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.detail-meta .tag { background-color: rgba(255,255,255,0.92); border-color: transparent; }

.verified-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 700;
  color: var(--ok); background-color: var(--ok-bg);
  padding: 5px 14px; border-radius: 999px;
}

/* detail body */
.detail-body { max-width: var(--maxw); margin: 0 auto; padding: 34px 20px; }
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 26px; }
.panel { background-color: var(--paper-card); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-card); }
.panel h2 { font-size: 1.2rem; color: var(--ink); margin-bottom: 14px; padding-left: 12px; border-left: 4px solid var(--brand); font-family: var(--font-display); }
.panel p { color: var(--ink-soft); font-size: 0.95rem; }
.highlight-list li { display: flex; gap: 10px; color: var(--ink-soft); font-size: 0.95rem; padding: 6px 0; }
.highlight-list li::before { content: "✓"; color: var(--brand); font-weight: 800; flex: 0 0 auto; }

/* 校区表 */
.campus-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.campus-table th, .campus-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.campus-table th { color: var(--ink); font-weight: 700; background-color: var(--paper); }
.campus-table td { color: var(--ink-soft); }

/* 课程卡 */
.course-list { display: grid; gap: 12px; }
.course-item { border: 1px solid var(--line-soft); border-radius: var(--radius-md); padding: 14px 16px; }
.course-item .course-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.course-item h3 { font-size: 1rem; color: var(--ink); }
.course-item .age { font-size: 0.8rem; color: var(--brand-ink); background-color: var(--paper); border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; }
.course-item p { font-size: 0.88rem; color: var(--ink-soft); margin-top: 6px; }

/* 师资 */
.teacher-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.teacher-card { text-align: center; padding: 16px 10px; }
.teacher-avatar {
  width: 72px; height: 72px; margin: 0 auto 10px; border-radius: 50%;
  background-color: var(--brand); color: #FFF;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700;
}
.teacher-card h3 { font-size: 0.98rem; }
.teacher-card .role { font-size: 0.8rem; color: var(--brand-ink); margin-top: 2px; }
.teacher-card p { font-size: 0.82rem; color: var(--ink-soft); margin-top: 6px; line-height: 1.6; }

/* 师资详情：头像 + 完整履历的资料行版式 */
.teacher-profiles { display: grid; gap: 18px; }
.teacher-profile {
  display: flex; gap: 20px; align-items: flex-start;
  border: 1px solid var(--line-soft); border-radius: var(--radius-md);
  padding: 20px; background: #FFF;
}
.tp-avatar {
  flex: 0 0 104px; width: 104px; height: 104px; border-radius: 50%; overflow: hidden;
  background-color: var(--brand); color: #FFF;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.9rem; font-weight: 700;
}
.tp-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.tp-body { flex: 1 1 auto; min-width: 0; }
.tp-body h3 { font-size: 1.06rem; margin-bottom: 2px; }
.tp-role { font-size: 0.8rem; color: var(--brand-ink); margin-bottom: 8px; }
.tp-body p { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.8; margin: 0; }
@media (max-width: 560px) {
  .teacher-profile { flex-direction: column; align-items: center; text-align: left; padding: 16px; }
  .tp-avatar { flex: 0 0 auto; width: 88px; height: 88px; }
}

/* 活动 */
.activity-list { display: grid; gap: 14px; }
.activity-item { display: flex; gap: 16px; align-items: flex-start; border: 1px solid var(--line-soft); border-radius: var(--radius-md); padding: 16px; }
.activity-date { flex: 0 0 60px; text-align: center; }
.activity-date .d { font-size: 1.4rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
.activity-date .m { font-size: 0.75rem; color: var(--muted); }
.activity-body h3 { font-size: 0.98rem; color: var(--ink); margin-bottom: 4px; }
.activity-body p { font-size: 0.86rem; color: var(--ink-soft); }

/* 侧栏 */
.detail-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 84px; }
.side-card { background-color: var(--paper-card); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-card); }
.side-card h3 { font-size: 1.02rem; margin-bottom: 12px; padding-left: 10px; border-left: 3px solid var(--brand); }
.contact-list li { font-size: 0.9rem; color: var(--ink-soft); padding: 7px 0; display: flex; gap: 10px; border-bottom: 1px dashed var(--line-soft); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .k { color: var(--ink); font-weight: 600; min-width: 48px; }
.cta-box { text-align: center; }
.cta-box .cta-title { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.cta-box p { font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 14px; }
.cert-line { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 12px; }

/* ---------- 关于页 / 入驻页 ---------- */
.prose { background-color: var(--paper-card); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-card); }
.prose h2 { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); margin: 26px 0 12px; padding-left: 12px; border-left: 4px solid var(--brand); }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; }
.prose ul li { color: var(--ink-soft); font-size: 0.95rem; margin: 5px 0; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 8px; }
.step-card { background-color: var(--paper-card); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-card); }
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background-color: var(--brand); color: #FFF;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; font-weight: 800; margin-bottom: 12px;
}
.step-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step-card p { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Form ---------- */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-group .hint { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.form-control {
  width: 100%; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--line); background-color: #FFF;
  font-size: 0.95rem; font-family: var(--font-body); color: var(--ink);
}
.form-control:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: var(--brand); }
textarea.form-control { min-height: 90px; resize: vertical; }

/* ---------- 管理端 ---------- */
.admin-wrap { max-width: var(--maxw); margin: 0 auto; padding: 30px 20px 60px; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-tabs .tab {
  padding: 9px 20px; border-radius: 999px; cursor: pointer;
  background-color: var(--paper-card); color: var(--ink-soft);
  border: 1px solid var(--line); font-size: 0.92rem; font-weight: 600;
}
.admin-tabs .tab.active { background-color: var(--brand); color: #FFF; border-color: var(--brand); }
.admin-pane { display: none; }
.admin-pane.active { display: block; }
.rep-field { display: grid; grid-template-columns: 1fr 60px; gap: 8px; margin-bottom: 8px; align-items: center; }
.rep-field input { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 0.9rem; }
.btn-del { background: none; border: 1px solid #D8A6A2; color: var(--brand); border-radius: 8px; padding: 8px 10px; cursor: pointer; font-size: 0.85rem; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 18px; }
.breadcrumb a { color: var(--brand-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .brand-name .cn { max-width: 200px; }
}

/* ===== 移动端精修 ===== */
@media (max-width: 640px) {
  .section { padding: 40px 0; }
  .hero-inner { padding: 40px 20px 36px; }

  /* 品牌双态：移动端用简称，顶栏不再截断 */
  .brand-name .cn-full { display: none; }
  .brand-name .cn-short { display: block; font-size: 1rem; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
  .brand-name .en-full { display: none; }
  .brand-name .en-short { display: block; }
  .brand-name .cn { max-width: 200px; }
  .brand-logo { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 10px; object-fit: contain; background-color: #FFF; padding: 2px; }
.brand-badge { width: 36px; height: 36px; flex: 0 0 36px; font-size: 1.1rem; border-radius: 8px; }

  /* 导航：紧凑横滑 */
  .main-nav { width: 100%; order: 3; justify-content: flex-start; overflow-x: auto; gap: 2px; }
  .main-nav a { padding: 7px 11px; font-size: 0.88rem; white-space: nowrap; }
  .main-nav::-webkit-scrollbar { display: none; }

  /* Hero：标题字号适中、按钮全宽好点按 */
  .hero-inner { text-align: left; }
  .hero h1 { font-size: 1.45rem; line-height: 1.45; }
  .hero .lead { font-size: 0.98rem; }
  .hero-kicker { font-size: 0.78rem; padding: 4px 10px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 20px; }
  .hero-stats .num { font-size: 1.5rem; }

  /* 网格：手机 2 列卡片更紧凑 */
  .city-grid, .subject-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .city-card { padding: 14px; }
  .subject-card { padding: 16px 10px; gap: 4px; }
  .subject-card .icon { font-size: 1.4rem; }
  .subject-card .desc { display: none; } /* 手机只留名称，干净 */
  .inst-grid { grid-template-columns: 1fr; gap: 14px; }
  .inst-card { padding: 18px; }

  /* 机构详情：头部紧凑、校区表用卡片式 */
  .detail-hero-inner { padding: 30px 20px 26px; gap: 14px; }
  .detail-logo { width: 64px; height: 64px; flex: 0 0 64px; font-size: 1.6rem; border-radius: 14px; }
  .detail-head h1 { font-size: 1.35rem; }
  .campus-table thead { display: none; }
  .campus-table, .campus-table tbody, .campus-table tr, .campus-table td { display: block; width: 100%; }
  .campus-table tr { border: 1px solid var(--line-soft); border-radius: 10px; margin-bottom: 10px; padding: 10px 12px; }
  .campus-table td { border: none; padding: 4px 0; }
  .campus-table td::before { content: attr(data-label); font-weight: 700; color: var(--ink); display: inline-block; min-width: 64px; }

  /* 面板、区块 */
  .panel { padding: 18px 16px; }
  .prose { padding: 22px 18px; }
  .filter-bar { padding: 14px 12px; }
  .filter-label { min-width: 36px; }
  .chip { padding: 5px 10px; font-size: 0.82rem; }

  /* 步骤卡 */
  .steps { grid-template-columns: 1fr; gap: 12px; }

  /* 页脚 */
  .footer-btm { flex-direction: column; gap: 6px; }
  .footer-inner { padding: 30px 20px 22px; }
}
/* ===== 机构图集（精彩课程 / 学员风采）===== */
.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;margin-top:16px}
.photo-grid figure{margin:0;background:#fff;border:1px solid var(--line-soft);border-radius:10px;overflow:hidden}
.photo-grid img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}
.photo-grid figcaption{padding:8px 10px;font-size:.82rem;color:var(--ink-soft);line-height:1.4}
.photo-empty{color:var(--ink-soft);background:#F7F4EE;border:1px dashed var(--line-soft);border-radius:10px;padding:14px 16px;margin-top:14px}
.photo-grid-wide{display:block}
.photo-grid-wide img{width:100%;aspect-ratio:auto;height:auto;object-fit:contain}
.photo-grid-wide figure{background:#fff;border:1px solid var(--line-soft);border-radius:12px;overflow:hidden}
.teacher-avatar{overflow:hidden}
.teacher-avatar img{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}
@media (max-width:560px){.photo-grid{grid-template-columns:repeat(2,1fr);gap:8px}.photo-grid figcaption{font-size:.74rem;padding:6px 8px}}


/* ---------- 首页实景带（环境照 + 活动主图） ---------- */
.showcase-wrap { max-width: 1180px; margin: 22px auto 0; padding: 0 20px; }
.showcase-h { font-size: 1.15rem; margin: 0 0 12px; }
.showcase-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.showcase-strip figure { margin: 0; border-radius: 14px; overflow: hidden; background: var(--paper-card); border: 1px solid var(--line-soft); box-shadow: var(--shadow-soft, 0 2px 10px rgba(0,0,0,.05)); }
.showcase-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.showcase-strip figcaption { font-size: 0.78rem; color: var(--ink-soft); padding: 8px 10px; line-height: 1.5; }
@media (max-width: 860px) { .showcase-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 活动卡片（校园新闻 / 活动回顾） ---------- */
.activity-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .activity-cards { grid-template-columns: 1fr; } }
.activity-card { display: flex; flex-direction: column; background: var(--paper-card); border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; }
.activity-thumb { display: block; overflow: hidden; }
.activity-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .25s ease; }
.activity-card:hover .activity-thumb img { transform: scale(1.03); }
.activity-info { padding: 14px 16px 16px; }
.activity-date-inline { font-size: 0.76rem; color: var(--muted); letter-spacing: .03em; margin-bottom: 6px; }
.activity-card h3 { font-size: 1.02rem; margin: 0 0 8px; line-height: 1.5; }
.activity-card p { font-size: 0.86rem; color: var(--ink-soft); margin: 0 0 10px; line-height: 1.65; }
.activity-more { font-size: 0.82rem; font-weight: 600; color: var(--brand-ink); }
.activity-more:hover { color: var(--brand); }

/* ===== 可点击卡片（2026-09-14）：整块可点 + 悬停提示 ===== */
a.activity-item, a.course-item, a.teacher-card {
  text-decoration: none; color: inherit; cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
a.activity-item:hover, a.course-item:hover, a.teacher-card:hover {
  border-color: var(--brand); box-shadow: 0 8px 20px rgba(158, 43, 37, .10);
  transform: translateY(-2px);
}
a.activity-item:focus-visible, a.course-item:focus-visible, a.teacher-card:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
.activity-go, .card-go {
  display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600;
  color: var(--brand-ink); letter-spacing: .3px;
}
@media (prefers-reduced-motion: reduce) {
  a.activity-item:hover, a.course-item:hover, a.teacher-card:hover { transform: none; }
}
