/* ============================================================
 * 模板六 training —— 原站复刻样式（家政/月嫂培训暖橙风）
 * 设计 token 取自 aiforce 原站编译 CSS：
 *   primary #ef8239 · bg #fcfaf8 · soft #faf0eb · line #ebe5e0
 *   fg #3b322b · muted #7c716a · 字体 Noto Sans SC
 * 兼容约定：关键色字面量打头、var() 兜后（老内核 var 失败可回落）
 * ============================================================ */

:root {
  --wn-primary: #ef8239;
  --wn-primary-d: #db7018;
  --wn-bg: #fcfaf8;
  --wn-soft: #faf0eb;
  --wn-card: #ffffff;
  --wn-line: #ebe5e0;
  --wn-fg: #3b322b;
  --wn-muted: #7c716a;
  --wn-radius: 16px;
  --wn-shadow: 0 10px 30px rgba(59, 50, 43, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.tpl-training {
  margin: 0;
  color: #3b322b;
  color: var(--wn-fg);
  background: #fcfaf8;
  background: var(--wn-bg);
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Roboto, sans-serif;
  font-size: 15.5px;
  line-height: 1.75;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: #ef8239; color: var(--wn-primary); }
h1, h2, h3, h4, p { margin: 0; }

.auto-container { width: 100%; max-width: 1152px; margin: 0 auto; padding: 0 20px; }

/* ---------- 头部 ---------- */
.wn-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ebe5e0;
  border-bottom: 1px solid var(--wn-line);
}
.wn-header .header-inner { display: flex; align-items: center; gap: 14px; height: 64px; }
.wn-header .logo-box { display: flex; align-items: center; flex: 0 0 auto; }
.wn-header .site-logo { height: 48px; width: auto; max-width: 200px; object-fit: contain; }
/* 导航按钮在 logo 与右侧 CTA 之间的可用空间内居中（flex order 决定顺序，居中只改分布） */
.site-nav { display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 4px; margin-left: 4px; flex: 1 1 auto; min-width: 0; }
.site-nav a {
  padding: 7px 9px; border-radius: 999px;
  font-size: 13.8px; color: #3b322b; color: var(--wn-fg);
  white-space: nowrap; transition: background .15s, color .15s;
}
.site-nav a:hover { background: #faf0eb; background: var(--wn-soft); color: #ef8239; color: var(--wn-primary); }
.site-nav a.active { color: #ef8239; color: var(--wn-primary); background: #faf0eb; background: var(--wn-soft); font-weight: 600; }
.wn-header .header-phone { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: #7c716a; color: var(--wn-muted); flex: 0 0 auto; }
.wn-header .header-phone a { font-weight: 700; color: #3b322b; color: var(--wn-fg); }
.wn-header .header-cta {
  flex: 0 0 auto; display: inline-flex; align-items: center; height: 38px; padding: 0 18px;
  background: #ef8239; background: var(--wn-primary); color: #fff !important;
  border-radius: 999px; font-size: 14px; font-weight: 600; transition: background .15s;
}
.wn-header .header-cta:hover { background: #db7018; background: var(--wn-primary-d); color: #fff !important; }
.nav-toggle { display: none; }

/* ---------- Banner ---------- */
/* banner：后台未配置轮播时整体隐藏（原站无独立 banner，禁止显示占位节） */
.banner-section { position: relative; overflow: hidden; }
.banner-section.is-empty { display: none !important; }
.banner-section .banner-item img { width: 100%; height: 380px; object-fit: cover; display: block; }

/* ---------- Hero（原站复刻） ---------- */
.wn-hero { position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden; }
.wn-hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; z-index: 0; }
.wn-hero-mask {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
  /* 文字块纵向居中覆盖 hero 中部：顶部加轻白纱保证深色文字可读，底部仍渐白衔接页面背景 */
  background: linear-gradient(180deg, rgba(252, 250, 248, .5) 0%, rgba(252, 250, 248, .3) 30%, rgba(252, 250, 248, .55) 62%, #fcfaf8 96%);
}
/* ★文字块在大图内纵向居中：flex-start 贴图顶（用户反馈「太上」），flex-end 贴图底。
   align-items:center + 上下 padding 归零（padding 会算进 inner 盒子导致视觉偏上），
   使 inner 盒子中心 == hero 中心；大图随 88vh 变化时文字始终居中。 */
.wn-hero-inner { position: relative; z-index: 2; padding-top: 0; padding-bottom: 0; }
.wn-hero-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid #ffedd5; color: #c25705;
  font-size: 13px; font-weight: 600; box-shadow: 0 4px 14px rgba(59, 50, 43, .06);
}
.wn-hero-h1 {
  margin: 18px 0 2px; font-size: 44px; line-height: 1.28; font-weight: 800;
  color: #3b322b; color: var(--wn-fg); max-width: 620px;
}
.wn-hero-sub { font-size: 30px; font-weight: 800; color: #ef8239; color: var(--wn-primary); line-height: 1.3; }
.wn-hero-desc { margin-top: 16px; max-width: 560px; color: #7c716a; color: var(--wn-muted); font-size: 15.5px; }
.wn-hero-stats { display: flex; gap: 34px; margin-top: 20px; }
.wn-hero-stats .stat-item strong { display: block; font-size: 26px; font-weight: 800; color: #ef8239; color: var(--wn-primary); line-height: 1.2; }
.wn-hero-stats .stat-item span { font-size: 13px; color: #7c716a; color: var(--wn-muted); }
.hero-cta { display: flex; gap: 14px; margin-top: 24px; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 26px;
  background: #ef8239; background: var(--wn-primary); color: #fff !important;
  border-radius: 12px; font-size: 15px; font-weight: 700; transition: background .15s, transform .15s;
}
.btn-primary:hover { background: #db7018; background: var(--wn-primary-d); color: #fff !important; transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 26px;
  background: #fff; border: 1px solid #ebe5e0; border: 1px solid var(--wn-line);
  color: #3b322b !important; border-radius: 12px; font-size: 15px; font-weight: 600; transition: border-color .15s, color .15s;
}
.btn-ghost:hover { border-color: #ef8239; border-color: var(--wn-primary); color: #ef8239 !important; }

/* ---------- 版块通用 ---------- */
.wn-section { padding: 76px 0; }
.wn-section.alt { background: #faf0eb; background: var(--wn-soft); }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.sec-eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: #ef8239; color: var(--wn-primary); letter-spacing: 3px; }
.sec-title { margin-top: 8px; font-size: 30px; font-weight: 800; color: #3b322b; color: var(--wn-fg); line-height: 1.35; }
.sec-desc { margin-top: 12px; color: #7c716a; color: var(--wn-muted); font-size: 15px; }
.sec-more { text-align: center; margin-top: 34px; }
.brand-more { display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border: 1px solid #ef8239; border: 1px solid var(--wn-primary); color: #ef8239 !important; border-radius: 999px; font-size: 14px; font-weight: 600; }
.brand-more:hover { background: #ef8239; background: var(--wn-primary); color: #fff !important; }
.is-placeholder-empty { display: none !important; }

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 42px; align-items: center; }
.about-media img { width: 100%; height: 400px; object-fit: cover; border-radius: 24px; box-shadow: 0 10px 30px rgba(59, 50, 43, .08); }
.about-exp { display: inline-flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.about-exp strong { font-size: 40px; font-weight: 800; color: #ef8239; color: var(--wn-primary); }
.about-exp span { font-size: 14px; color: #7c716a; color: var(--wn-muted); }
.about-body h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.about-body p { color: #7c716a; color: var(--wn-muted); }
.about-body .brand-more { margin-top: 18px; }
.about-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 42px; }
.feature-item { background: #fff; background: var(--wn-card); border: 1px solid #ebe5e0; border: 1px solid var(--wn-line); border-radius: 16px; border-radius: var(--wn-radius); padding: 22px 20px; transition: box-shadow .2s, transform .2s; }
.feature-item:hover { box-shadow: 0 10px 30px rgba(59, 50, 43, .08); box-shadow: var(--wn-shadow); transform: translateY(-2px); }
.feature-item h4 { font-size: 16.5px; font-weight: 700; color: #3b322b; color: var(--wn-fg); margin-bottom: 6px; }
.feature-item h4::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ef8239; background: var(--wn-primary); margin-right: 8px; vertical-align: 2px; }
.feature-item p { font-size: 13.5px; color: #7c716a; color: var(--wn-muted); }
.about-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.stat-box { background: #ef8239; background: var(--wn-primary); border-radius: 16px; border-radius: var(--wn-radius); padding: 24px 14px; text-align: center; }
.stat-box strong { display: block; font-size: 28px; font-weight: 800; color: #fff; }
.stat-box span { display: block; margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, .85); }
.about-history { margin-top: 42px; background: #fff; background: var(--wn-card); border: 1px solid #ebe5e0; border: 1px solid var(--wn-line); border-radius: 16px; border-radius: var(--wn-radius); padding: 28px 30px; }
.about-history h3 { font-size: 19px; font-weight: 800; margin-bottom: 16px; }
.history-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.history-list li { position: relative; padding-left: 16px; }
.history-list li::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 2px; background: #ef8239; background: var(--wn-primary); }
.history-list strong { display: block; font-size: 20px; font-weight: 800; color: #ef8239; color: var(--wn-primary); }
.history-list p { font-size: 13.5px; color: #7c716a; color: var(--wn-muted); }

/* ---------- 课程卡（渲染片段 .service-card 与运行时 .card-item 双兼容） ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card, .card-item {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; background: var(--wn-card);
  border: 1px solid #ebe5e0; border: 1px solid var(--wn-line);
  border-radius: 16px; border-radius: var(--wn-radius);
  transition: box-shadow .2s, transform .2s; color: #3b322b; color: var(--wn-fg);
}
.service-card:hover, .card-item:hover { box-shadow: 0 14px 34px rgba(59, 50, 43, .10); transform: translateY(-3px); color: #3b322b; color: var(--wn-fg); }
.service-icon {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 190px; margin: 0;
  background: #ffedd5; overflow: hidden; font-size: 30px;
}
.service-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-card h3, .card-item .card-title { padding: 14px 22px 0; font-size: 17.5px; font-weight: 800; color: #3b322b; color: var(--wn-fg); }
.service-card p, .card-item .card-summary { padding: 8px 22px 20px; font-size: 13.8px; color: #7c716a; color: var(--wn-muted); flex: 1 1 auto; }
/* ★.card-cover 是 div，object-fit 写在 div 上无效；内部 img 必须显式约束，
   否则大尺寸封面按原始宽高撑开，三张卡高度不一致、图盖住文字。 */
.card-item .card-cover { width: 100%; height: 190px; overflow: hidden; display: block; background: #faf0eb; background: var(--wn-soft); }
.card-item .card-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.card-item .card-cover-empty { display: flex; align-items: center; justify-content: center; height: 190px; background: #faf0eb; background: var(--wn-soft); color: #b8aa9f; font-size: 14px; }
.card-item .card-tag { display: inline-block; margin: 14px 22px 0; align-self: flex-start; padding: 3px 12px; border-radius: 999px; background: #ffedd5; color: #c25705; font-size: 12px; font-weight: 600; }
.card-item .card-title { padding-top: 10px; }
.card-item .card-summary { padding-bottom: 8px; }
.card-item .card-more { padding: 0 22px 20px; font-size: 13.5px; font-weight: 700; color: #ef8239; color: var(--wn-primary); }

/* ---------- 优势条目（渲染器 advantage-item 片段兼容） ---------- */
.advantage-item { background: #fff; background: var(--wn-card); border: 1px solid #ebe5e0; border: 1px solid var(--wn-line); border-radius: 16px; border-radius: var(--wn-radius); padding: 22px 20px; }
.advantage-item h4 { font-size: 16.5px; font-weight: 800; color: #3b322b; color: var(--wn-fg); }
.advantage-item .sub { margin-top: 2px; font-size: 13px; font-weight: 600; color: #ef8239; color: var(--wn-primary); }
.advantage-item p { margin-top: 8px; font-size: 13.5px; color: #7c716a; color: var(--wn-muted); }

/* ---------- 师资 ---------- */
.teacher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.teacher-card { display: block; color: #3b322b; color: var(--wn-fg); text-decoration: none; overflow: hidden; background: #fff; background: var(--wn-card); border: 1px solid #ebe5e0; border: 1px solid var(--wn-line); border-radius: 16px; border-radius: var(--wn-radius); transition: box-shadow .2s, transform .2s; }
.teacher-card:hover { box-shadow: 0 14px 34px rgba(59, 50, 43, .10); transform: translateY(-3px); }
.teacher-photo { position: relative; }
.teacher-photo img { width: 100%; height: 250px; object-fit: cover; display: block; }
.teacher-badge { position: absolute; top: 14px; left: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(239, 130, 57, .92); color: #fff; font-size: 12.5px; font-weight: 600; }
.teacher-body { padding: 18px 20px 22px; }
.teacher-body h3 { font-size: 18px; font-weight: 800; }
.teacher-title { margin-top: 2px; font-size: 13.5px; font-weight: 600; color: #ef8239; color: var(--wn-primary); }
.teacher-spec { margin-top: 8px; font-size: 13.5px; color: #3b322b; color: var(--wn-fg); }
.teacher-desc { margin-top: 4px; font-size: 13.2px; color: #7c716a; color: var(--wn-muted); }
.teacher-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.teacher-tags span { padding: 3px 12px; border-radius: 999px; background: #faf0eb; background: var(--wn-soft); color: #c25705; font-size: 12px; }

/* ---------- 学员案例（运行时 .card-item 渲染于 #cases-list-home） ---------- */
.cases-home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cases-home-grid .card-item { border-radius: 16px; border-radius: var(--wn-radius); }
.cases-home-grid .card-cover { height: 210px; }
.cases-home-grid .card-item .card-body { display: flex; flex-direction: column; flex: 1 1 auto; }
.cases-home-grid .card-item .card-summary { flex: 1 1 auto; }
.cases-home-grid .empty-tip { grid-column: 1 / -1; text-align: center; color: #b8aa9f; padding: 40px 0; }

/* ---------- 伙伴胶囊 ---------- */
.pills-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.partner-item {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 26px;
  background: #fff; background: var(--wn-card); border: 1px solid #ebe5e0; border: 1px solid var(--wn-line);
  border-radius: 999px; font-size: 14px; font-weight: 600; color: #7c716a; color: var(--wn-muted);
}
.partner-item img { max-height: 44px; width: auto; }

/* ---------- 新闻（运行时 .news-item） ---------- */
.news-list-page .news-item {
  display: flex; gap: 18px; align-items: flex-start; padding: 20px 22px; margin-bottom: 14px;
  background: #fff; background: var(--wn-card); border: 1px solid #ebe5e0; border: 1px solid var(--wn-line);
  border-radius: 16px; border-radius: var(--wn-radius); transition: box-shadow .2s, border-color .2s;
}
.news-list-page .news-item:hover { box-shadow: 0 10px 30px rgba(59, 50, 43, .08); box-shadow: var(--wn-shadow); border-color: #ef8239; border-color: var(--wn-primary); }
.news-list-page .news-date { flex: 0 0 auto; text-align: center; min-width: 62px; padding: 8px 10px; border-radius: 12px; background: #faf0eb; background: var(--wn-soft); }
.news-list-page .news-date .d { font-size: 24px; font-weight: 800; color: #ef8239; color: var(--wn-primary); line-height: 1.1; }
.news-list-page .news-date .ym { font-size: 12px; color: #7c716a; color: var(--wn-muted); }
.news-list-page .news-title { font-size: 16px; font-weight: 700; color: #3b322b; color: var(--wn-fg); }
.news-list-page .news-summary { margin-top: 4px; font-size: 13.5px; color: #7c716a; color: var(--wn-muted); }
.news-list-page .empty-tip { text-align: center; color: #b8aa9f; padding: 40px 0; }

/* ---------- 报名咨询 ---------- */
.signup-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 26px; align-items: stretch; }
.signup-form-wrap, .signup-aside { background: #fff; background: var(--wn-card); border: 1px solid #ebe5e0; border: 1px solid var(--wn-line); border-radius: 16px; border-radius: var(--wn-radius); padding: 30px 32px; }
.signup-form-wrap h3, .signup-aside h3 { font-size: 19px; font-weight: 800; margin-bottom: 14px; }
.form-lead { color: #7c716a; color: var(--wn-muted); font-size: 14px; }
.signup-go { margin-top: 20px; }
.form-tip { margin-top: 14px; font-size: 12.5px; color: #b8aa9f; }
.signup-form-wrap form { margin-top: 6px; }
.signup-form-wrap input, .signup-form-wrap textarea, .signup-form-wrap select {
  width: 100%; margin-bottom: 12px; padding: 12px 14px; border: 1px solid #ebe5e0; border: 1px solid var(--wn-line);
  border-radius: 10px; font-size: 14px; font-family: inherit; background: #fcfaf8; background: var(--wn-bg); color: #3b322b; color: var(--wn-fg);
}
.signup-form-wrap input:focus, .signup-form-wrap textarea:focus { outline: none; border-color: #ef8239; border-color: var(--wn-primary); }
/* 在线报名表单（#contact-message-form 即 form 本身，submit 由 site-runtime 绑定） */
.signup-form .sf-row { margin-bottom: 14px; }
.signup-form .sf-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.signup-form label { display: block; font-size: 13px; font-weight: 600; color: #3b322b; color: var(--wn-fg); margin-bottom: 6px; }
.signup-form label i { font-style: normal; color: #ef8239; color: var(--wn-primary); }
.signup-form .btn-block { width: 100%; margin-top: 4px; padding: 13px 20px; font-size: 15px; }
.signup-form .tip { font-size: 12.5px; }
.signup-form .tip.error { color: #dc2626; }
.signup-points { list-style: none; margin: 0 0 18px; padding: 0; }
.signup-points li { position: relative; padding: 7px 0 7px 26px; font-size: 14px; color: #7c716a; color: var(--wn-muted); }
.signup-points li::before { content: "✓"; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%; background: #ffedd5; color: #c25705; font-size: 12px; font-weight: 700; text-align: center; line-height: 18px; }
.aside-hotline { border-top: 1px dashed #ebe5e0; border-top: 1px dashed var(--wn-line); padding-top: 16px; }
.aside-hotline h4, .aside-wechat h4 { font-size: 14px; font-weight: 700; color: #3b322b; color: var(--wn-fg); }
.hotline-num { margin-top: 4px; }
.hotline-num a { font-size: 24px; font-weight: 800; color: #ef8239 !important; }
.hotline-time { font-size: 12.5px; color: #7c716a; color: var(--wn-muted); }
.aside-wechat { margin-top: 14px; }
.aside-wechat p { margin-top: 4px; font-size: 13px; color: #7c716a; color: var(--wn-muted); }

/* ---------- 联系方式 ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.contact-card { background: #fff; background: var(--wn-card); border: 1px solid #ebe5e0; border: 1px solid var(--wn-line); border-radius: 16px; border-radius: var(--wn-radius); padding: 22px 20px; }
.contact-card h4 { font-size: 14px; font-weight: 700; color: #ef8239; color: var(--wn-primary); margin-bottom: 8px; }
.contact-card p { font-size: 13.8px; color: #7c716a; color: var(--wn-muted); word-break: break-all; }
.contact-map { margin-top: 22px; border-radius: 16px; border-radius: var(--wn-radius); overflow: hidden; border: 1px solid #ebe5e0; border: 1px solid var(--wn-line); }
.contact-map img { width: 100%; height: 360px; object-fit: cover; display: block; }

/* ---------- 内页 page-hero / 详情 ---------- */
.page-hero { display: none; background: #faf0eb; background: var(--wn-soft); padding: 52px 0; }
.page-hero:not([hidden]) { display: block; }
.page-hero-inner h1 { font-size: 28px; font-weight: 800; color: #3b322b; color: var(--wn-fg); }
.page-hero-inner p { margin-top: 6px; color: #7c716a; color: var(--wn-muted); }
/* ★v15 详情页主体宽度统一（用户需求）：取消 .detail-container 的 880px 限宽，
   详情页（课程 / 新闻 / 关于我们 / 自定义栏目详情）与列表页同宽：
   外层 .auto-container 1152 → 内容 1112px，与 products/news/faq 列表完全对齐。 */
.detail-box { background: #fff; background: var(--wn-card); border: 1px solid #ebe5e0; border: 1px solid var(--wn-line); border-radius: 16px; border-radius: var(--wn-radius); padding: 34px 38px; }
.detail-breadcrumb { margin-bottom: 18px; font-size: 13px; color: #7c716a; color: var(--wn-muted); }
.detail-breadcrumb a { color: #ef8239; color: var(--wn-primary); }
.detail-title { font-size: 25px; font-weight: 800; line-height: 1.4; }
.detail-meta { margin-top: 10px; font-size: 13px; color: #b8aa9f; }
.detail-cover-wrap { margin: 20px 0; padding: 0; text-align: center; }
/* ★详情页封面等比缩放完整显示：共享 base.css 默认 width:100% + object-fit:cover + max-height:420px
   会把人像上下裁掉；改 auto 宽高 + max 约束 + contain，保持原比例不截取。 */
.detail-cover { width: auto; max-width: 100%; height: auto; max-height: 560px; object-fit: contain; border-radius: 12px; display: inline-block; }
.detail-content { margin-top: 18px; font-size: 15px; line-height: 1.9; color: #3b322b; color: var(--wn-fg); }
.detail-content img { border-radius: 10px; }
.detail-actions { margin-top: 26px; }
.btn-back { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 1px solid #ebe5e0; border: 1px solid var(--wn-line); border-radius: 999px; font-size: 13.5px; color: #7c716a !important; }
.btn-back:hover { border-color: #ef8239; border-color: var(--wn-primary); color: #ef8239 !important; }

/* ---------- 详情页「相关推荐」----------
   结构由 SSR 注入（GeoSchemaService::geo_body_related_html，GEO 审计 P1：防详情孤岛）：
   <div class="detail-related"><h2>相关推荐</h2><ul><li><a><span class="rel-t">标题</span><span class="rel-d">日期</span></a></li>…</ul></div>
   ★此前全站无任何 .detail-related 样式 ⇒ 浏览器默认 h2 + 圆点 ul，视觉突兀。v15 补全为卡片 + 双列链接栅格。 */
.detail-related { margin-top: 22px; background: #fff; background: var(--wn-card); border: 1px solid #ebe5e0; border: 1px solid var(--wn-line); border-radius: 16px; border-radius: var(--wn-radius); padding: 24px 30px 26px; }
.detail-related h2 { position: relative; padding-left: 13px; font-size: 18px; font-weight: 800; line-height: 1.4; color: #3b322b; color: var(--wn-fg); }
.detail-related h2::before { content: ""; position: absolute; left: 0; top: 50%; margin-top: -9px; width: 4px; height: 18px; border-radius: 2px; background: #ef8239; background: var(--wn-primary); }
.detail-related ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.detail-related li { min-width: 0; }
.detail-related li a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 16px; border: 1px solid #ebe5e0; border: 1px solid var(--wn-line); border-radius: 10px; background: #fcfaf8; background: var(--wn-bg); font-size: 14px; color: #3b322b !important; transition: border-color .15s, background .15s; }
.detail-related li a:hover { border-color: #ef8239; border-color: var(--wn-primary); background: #faf0eb; background: var(--wn-soft); }
.detail-related .rel-t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-related .rel-d { flex: 0 0 auto; font-size: 12.5px; color: #b8aa9f; }

/* ---------- FAQ ---------- */
/* ★FAQ 列表宽度跟随 .auto-container（与其它栏目页主体 1112px 一致）。
   原先 max-width:880px + 外层 detail-container:880px 双层限宽只剩 840px，用户反馈过窄。 */
.faq-list { width: 100%; max-width: none; margin: 0 auto; }
.faq-item { background: #fff; background: var(--wn-card); border: 1px solid #ebe5e0; border: 1px solid var(--wn-line); border-radius: 16px; border-radius: var(--wn-radius); padding: 20px 26px; margin-bottom: 14px; }
.faq-q-h { font-size: 16px; font-weight: 700; color: #3b322b; color: var(--wn-fg); margin: 0; }
/* FAQ 注入结构（shared base.css）适配：h3 内是 button.faq-q > .faq-badge + .faq-q-text + .faq-arrow，
   Q 徽标由 .faq-badge 提供，h3 不得再画 ::before（否则双图标） */
.tpl-training .faq-item .faq-q { padding: 4px 0; font-size: 16px; color: #3b322b; color: var(--wn-fg); }
.tpl-training .faq-item .faq-badge { background: #ffedd5; color: #c25705; border-radius: 7px; }
.tpl-training .faq-item.is-open .faq-arrow { border-color: #c25705; }
.tpl-training .faq-item .faq-a-inner { padding: 2px 0 6px 34px; color: #7c716a; color: var(--wn-muted); line-height: 1.8; }
.faq-a { margin-top: 10px; padding-left: 32px; font-size: 14px; color: #7c716a; color: var(--wn-muted); }

/* ---------- 页脚（原站复刻） ---------- */
.wn-footer { background: #2d2620; color: #d9cfc6; margin-top: 30px; }
.wn-footer a { color: #d9cfc6; }
.wn-footer a:hover { color: #ef8239; color: var(--wn-primary); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1.2fr 1fr; gap: 30px; padding: 52px 20px 34px; }
.footer-logo { font-size: 17px; font-weight: 700; color: #fff; }
.footer-logo strong { color: #ef8239; color: var(--wn-primary); }
.footer-desc { margin-top: 12px; font-size: 13.5px; color: #a99d92; }
.footer-nav-row { display: flex; flex-direction: column; gap: 9px; font-size: 13.8px; }
.footer-contact { display: grid; gap: 10px; font-size: 13.5px; }
.footer-contact h4 { font-size: 13.5px; color: #fff; margin-bottom: 2px; }
.footer-contact p { margin: 0; color: #a99d92; }
.footer-wechat h4 { font-size: 13.5px; color: #fff; }
.footer-wechat p { margin-top: 8px; font-size: 13px; color: #a99d92; }
.footer-bottom { border-top: 1px solid rgba(217, 207, 198, .16); padding: 18px 20px 24px; font-size: 12.5px; color: #a99d92; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: center; text-align: center; }
.footer-bottom a { color: #a99d92; }
.geo-legal { display: inline; }
.geo-legal a { color: #a99d92; }

/* ---------- 分页 ---------- */
.list-pager { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.list-pager button, .list-pager .page-num { min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid #ebe5e0; border: 1px solid var(--wn-line); background: #fff; border-radius: 10px; font-size: 14px; color: #3b322b; cursor: pointer; }
.list-pager .active, .list-pager button:hover { border-color: #ef8239; border-color: var(--wn-primary); color: #ef8239; color: var(--wn-primary); }

/* ---------- 联系提交弹窗（运行时复用） ---------- */
.contact-submit-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; }
.contact-submit-modal .contact-submit-modal-mask { position: absolute; inset: 0; background: rgba(45, 38, 32, .45); }
.contact-submit-modal .contact-submit-modal-panel { position: relative; z-index: 1; width: min(90vw, 360px); background: #fff; border-radius: 14px; padding: 28px 24px 22px; text-align: center; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .wn-header .header-phone { display: none; }
  .wn-header .header-inner { position: relative; }
  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    z-index: 61; max-height: calc(100vh - 64px); overflow-y: auto;
    background: #fff; background: var(--wn-card);
    border-bottom: 1px solid #ebe5e0; border-bottom: 1px solid var(--wn-line);
    flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 10px 18px 16px; gap: 2px;
    box-shadow: 0 16px 30px rgba(59, 50, 43, .12);
  }
  /* ★汉堡开关由模板 JS 加在 .wn-header 上（不是 body），选择器必须一致；
     两个都留着兼容历史写法，否则点击后 .site-nav 仍是 display:none */
  .wn-header.geo-nav-open .site-nav,
  body.geo-nav-open .site-nav { display: flex; }
  .site-nav a { padding: 11px 12px; border-radius: 10px; font-size: 15px; }
  /* 「立即报名」推到右侧紧贴汉堡（原来汉堡独占 margin-left:auto，CTA 被留在 logo 旁边） */
  .wn-header .header-cta { margin-left: auto; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; padding: 0 9px; margin-left: 0;
    background: none; border: 0; cursor: pointer; flex: 0 0 auto;
  }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: #3b322b; background: var(--wn-fg); border-radius: 2px; }
  .wn-hero { min-height: 70vh; }
  .wn-hero-inner { padding-top: 0; padding-bottom: 0; }
  .wn-hero-h1 { font-size: 32px; }
  .wn-hero-sub { font-size: 22px; }
  .about-grid { grid-template-columns: 1fr; gap: 26px; }
  .about-media img { height: 280px; }
  .about-feats { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .history-list { grid-template-columns: 1fr; }
  .cards-grid, .teacher-grid, .cases-home-grid { grid-template-columns: repeat(2, 1fr); }
  .signup-grid { grid-template-columns: 1fr; }
  .signup-form .sf-2col { grid-template-columns: 1fr; gap: 0; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .banner-section .banner-item img { height: 240px; }
}
@media (max-width: 640px) {
  .wn-section { padding: 52px 0; }
  .sec-title { font-size: 24px; }
  .wn-hero-h1 { font-size: 26px; }
  .wn-hero-stats { gap: 22px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .cards-grid, .teacher-grid, .cases-home-grid { grid-template-columns: 1fr; }
  .about-feats { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-map img { height: 220px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .detail-box { padding: 24px 20px; }
  .detail-related { padding: 20px 20px 22px; }
  .detail-related ul { grid-template-columns: 1fr; }
  .news-list-page .news-item { flex-direction: row; }
}
