/* ============================================================
   优师堂 · 课程首页 — 样式表
   设计稿：课程首页 1440（品牌红 #C00000 + 金色点缀）
   ============================================================ */

:root {
  --brand-red: #077A70;
  --brand-red-deep: #063F3B;
  --gold: #B8E6E1;
  --gold-soft: #EAF6F3;
  --ink: #26262B;
  --ink-2: #1F1F23;
  --text: #4A4A52;
  --text-2: #6B6B73;
  --text-3: #5A5A63;
  --line: #E2EEEA;
  --bg-warm: #F6F8FA;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 50px; }

/* ============ 顶部导航 ============ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo img { height: 48px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav-item { position: relative; }
.nav-item > a {
  display: block; padding: 28px 0;
  font-size: 15px; color: var(--text);
  transition: color .2s;
}
.nav-item > a:hover { color: var(--brand-red); }
.nav-item > a.active { color: var(--brand-red); font-weight: 600; }
.nav-item.has-dropdown > a::after {
  content: ""; display: inline-block; width: 8px; height: 8px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .6; transition: transform .2s;
}
.nav-item.has-dropdown:hover > a::after { transform: rotate(-135deg) translateY(2px); opacity: 1; }
.dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  display: flex; gap: 48px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 24px 28px;
  box-shadow: 0 16px 40px rgba(38, 20, 20, .10);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
}
.nav-item.has-dropdown:hover .dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-col { display: flex; flex-direction: column; gap: 6px; }
.dropdown-col h4 { font-size: 12px; font-weight: 600; color: var(--text-3); margin-bottom: 4px; letter-spacing: 1px; }
.dropdown-col a { font-size: 14px; color: var(--text); padding: 3px 0; transition: color .2s; }
.dropdown-col a:hover { color: var(--brand-red); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand-red); color: #fff;
  padding: 11px 22px; border-radius: 6px;
  font-size: 14px; font-weight: 600;
  transition: background .2s;
  white-space: nowrap;
}
.nav-cta:hover { background: #065E56; }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--ink); cursor: pointer; }

/* ============ Hero ============ */
.hero {
  background: linear-gradient(135deg, #063F3B 0%, #077A70 100%);
  padding: 80px 0 88px;
}
.hero-inner { display: flex; align-items: center; gap: 64px; }
.hero-left { flex: 1; display: flex; flex-direction: column; gap: 28px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245, 225, 184, .14); color: var(--gold);
  padding: 7px 14px; border-radius: 4px;
  font-size: 12.5px; font-weight: 600; width: fit-content;
  border: 1px solid rgba(245, 225, 184, .35);
}
.hero-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hero-title { font-size: 64px; font-weight: 900; line-height: 1.18; letter-spacing: 1px; color: #fff; }
.hero-title .accent { color: var(--gold); position: relative; }
.hero-sub { font-size: 18px; color: rgba(255, 240, 228, .92); line-height: 1.7; white-space: nowrap; text-align: justify; }
/* 两行文字：副标题 + 信任信息，左右两端对齐、行距收紧 */
.hero-lines { display: flex; flex-direction: column; gap: 14px; }
.hero-trust { display: flex; align-items: center; gap: 18px; justify-content: space-between; width: 100%; }
.hero-trust-item { display: flex; align-items: center; gap: 7px; font-size: 14px; color: #fff; font-weight: 600; white-space: nowrap; }
.hero-trust-sep { width: 1px; height: 14px; background: rgba(255,255,255,.35); }
.hero-trust-note { font-size: 14px; color: #fff; font-weight: 600; white-space: nowrap; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: var(--brand-red-deep);
  padding: 16px 36px; border-radius: 999px;
  font-size: 16px; font-weight: 700;
  box-shadow: 0 10px 24px rgba(60, 0, 0, .35);
  width: fit-content;
  transition: background .2s, transform .2s;
}
.hero-cta:hover { background: #D9F2EC; transform: translateY(-2px); }
.hero-cta svg { width: 18px; height: 18px; }
.hero-cta svg path { stroke: var(--brand-red-deep); }

/* 轮辐图 */
.hero-right { flex: none; width: 560px; height: 460px; position: relative; }
.spoke-ring {
  position: absolute; left: 50%; top: 50%;
  width: 380px; height: 380px; border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1.5px dashed rgba(245, 225, 184, .45);
}
.spoke-hub {
  position: absolute; left: 50%; top: 50%;
  width: 124px; height: 124px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--gold); color: var(--brand-red-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; line-height: 1.2;
  box-shadow: 0 12px 28px rgba(60, 0, 0, .45);
  z-index: 2;
}
.spoke-hub__sub { font-size: 10px; font-weight: 600; letter-spacing: 1px; margin-top: 2px; opacity: .8; }
.spoke-halo {
  position: absolute; left: 50%; top: 50%;
  width: 180px; height: 180px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(245, 225, 184, .25), rgba(245, 225, 184, 0));
  z-index: 1;
}
.spoke-line {
  position: absolute; left: 50%; top: 50%;
  width: 100px; height: 2px; background: rgba(245, 225, 184, .55);
  transform-origin: 0 50%;
}
.satellite {
  position: absolute; width: 132px; height: 72px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  margin-left: -66px; margin-top: -36px;
}
.satellite__dot {
  width: 50px; height: 50px; border-radius: 50%;
  background: #fff; border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(60, 0, 0, .25);
  overflow: hidden;
}
.satellite__dot img { width: 44px; height: 44px; object-fit: contain; }
.satellite__label {
  font-size: 15px; font-weight: 700; color: #fff;
  text-align: center; white-space: nowrap; letter-spacing: .3px; line-height: 1.25;
}

/* ============ 体系板块 ============ */
.system { background: var(--bg-warm); padding: 88px 0; }
.section-head { text-align: center; margin-bottom: 48px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.section-tag {
  display: inline-flex; align-items: center;
  background: #E8F6F4; color: var(--brand-red);
  padding: 6px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; width: fit-content;
}
.section-title { font-size: 36px; font-weight: 800; color: var(--ink); }
.section-sub { font-size: 15.5px; color: var(--text-2); max-width: 560px; }

.stage-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 56px; }
.stage-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 22px 24px;
  display: flex; flex-direction: column; gap: 6px;
  align-items: center; text-align: center;
}
.stage-num { font-size: 24px; font-weight: 800; color: #E8541C; }
.stage-card:last-child .stage-num { color: var(--brand-red); }
.stage-name { font-size: 17px; font-weight: 700; color: var(--ink); }
.stage-desc { font-size: 12.5px; color: var(--text-3); }

.proj-head { margin-bottom: 28px; text-align: center; }
.proj-title { font-size: 24px; font-weight: 800; color: var(--ink); }
.proj-sub { font-size: 14px; color: var(--text-3); margin-top: 6px; }

/* ===== 品牌精品课：首页式图片卡（相框式内缩留白 + 直角 + 课程名/副标题） ===== */
.courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.pcard {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: 0; overflow: hidden; padding: 9px;
  box-shadow: 0 4px 14px rgba(60, 0, 0, .05);
  transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s, border-color .28s;
}
.pcard__ph { display: block; aspect-ratio: 800/374; overflow: hidden; background: #F2F5F4; }
.pcard__ph img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.pcard__tx { display: block; padding: 12px 14px 13px; text-align: center; }
.pcard__tx b { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: .2px; line-height: 1.4; }
.pcard__sub { display: block; margin-top: 5px; font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.pcard:hover { transform: translateY(-5px); border-color: #E8CFCF; box-shadow: 0 18px 34px rgba(60, 0, 0, .14); }
.pcard:hover .pcard__ph img { transform: scale(1.045); }

@media (max-width: 992px) {
  .courses { grid-template-columns: repeat(2, 1fr); gap: 22px 18px; }
}
@media (max-width: 560px) {
  .courses { grid-template-columns: 1fr; gap: 18px; }
  .pcard__tx { padding: 11px 12px 12px; }
}

/* ============ 数据案例板块 ============ */
.proof {
  background: linear-gradient(180deg, #06504A, #042B27);
  padding: 84px 0; color: #fff;
}
.proof .section-tag { background: #E8F6F4; }
.proof .section-title { color: #fff; }
.proof .section-sub { color: #9ADBD2; }

.data-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 44px 0; border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.data-item {
  text-align: center; padding: 30px 0;
  border-right: 1px solid rgba(255,255,255,.12);
}
.data-item:last-child { border-right: none; }
.data-num { font-size: 38px; font-weight: 900; color: var(--gold); }
.data-label { font-size: 13px; color: #9ADBD2; margin-top: 6px; }

.case-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.case-item {
  background: rgba(255,255,255,.07); border-radius: var(--radius-sm);
  padding: 18px 0; text-align: center;
  font-size: 14.5px; font-weight: 600; color: #C9EDE6;
}
.case-more { text-align: center; margin-top: 28px; }
.case-more a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-size: 15px; font-weight: 600;
  padding-bottom: 5px; border-bottom: 1px solid rgba(245, 225, 184, .35);
  transition: color .2s, border-color .2s;
}
.case-more a:hover { color: #fff; border-color: #fff; }
.case-more svg { width: 16px; height: 16px; transition: transform .25s; }
.case-more a:hover svg { transform: translateX(4px); }

/* ============ 底部 CTA ============ */
.cta-final {
  background: linear-gradient(180deg, #E8F6F4, #CFEDE7);
  padding: 64px 0;
}
.cta-final-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.cta-final h2 { font-size: 34px; font-weight: 800; color: #063F3B; }
.cta-final p { font-size: 15px; color: #065E56; margin-top: 10px; }
.cta-final-right { display: flex; align-items: center; gap: 32px; }
.cta-final__btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--brand-red); color: #fff;
  padding: 18px 44px; border-radius: 8px;
  font-size: 17px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(192, 0, 0, .25);
  transition: background .2s, transform .2s;
}
.cta-final__btn:hover { background: #065E56; transform: translateY(-2px); }
.cta-final__phone { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cta-final__phone svg { width: 30px; height: 30px; color: #063F3B; }
.cta-final__phone b { font-size: 15px; color: #063F3B; }

/* ============ 页脚 ============ */
.footer { background: #1D1518; color: #9A8683; padding-top: 56px; }
.footer__main { padding-bottom: 40px; }
.footer__cols { display: grid; grid-template-columns: 0.8fr 1.5fr 1.5fr 0.8fr; gap: 40px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col--split .footer__col-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.footer__col--split .footer__col-links a { font-size: 13px; line-height: 1.6; }
.footer__col-title {
  font-size: 15px; font-weight: 700; color: var(--gold);
  margin-bottom: 8px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(245, 225, 184, .2);
  letter-spacing: .05em;
}
.footer__col a { font-size: 13px; color: rgba(255,255,255,.65); transition: all .2s; line-height: 1.8; }
.footer__col a:hover { color: var(--gold); transform: translateX(2px); }
.footer__brand-row {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid rgba(245, 225, 184, .15);
  border-bottom: 1px solid rgba(245, 225, 184, .15);
  padding: 32px 0; margin-top: 8px;
  background: rgba(0,0,0,.15);
}
.footer__brand-left { display: flex; align-items: center; gap: 48px; }
.footer__brand-logo { height: 56px; width: auto; filter: brightness(1.1); }
.footer__contacts { display: flex; gap: 48px; }
.footer__contact-item { display: flex; align-items: center; gap: 8px; }
.footer__contact-label { font-size: 14px; color: rgba(255,255,255,.6); }
.footer__contact-value { font-family: 'IBM Plex Mono', Consolas, monospace; font-size: 22px; font-weight: 700; color: var(--gold); }
.footer__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px 0; background: rgba(0,0,0,.25);
}
.footer__bar span, .footer__bar a { font-size: 13px; color: rgba(255,255,255,.4); }
.footer__bar a:hover { color: var(--gold); }

/* ============ 企业微信浮动按钮 ============ */
.float-contact { position: fixed; right: 24px; bottom: 120px; z-index: 200; }
.float-contact__btn {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--brand-red); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(192, 0, 0, .35);
  transition: transform .2s;
}
.float-contact__btn:hover { transform: scale(1.06); }
.float-contact__icon { width: 26px; height: 26px; }
.float-contact__panel {
  position: absolute; right: 0; bottom: 64px;
  width: 240px; background: #fff; border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
  padding: 16px; text-align: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(8px); transition: .25s;
}
.float-contact__panel--open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.float-contact__panel-head { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.float-contact__panel-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-3); line-height: 1; }
.float-contact__qr { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.float-contact__qr-img { width: 100%; height: auto; }
.float-contact__panel-desc { font-size: 12px; color: var(--text-3); margin-top: 10px; }

/* ============ 预约弹窗 ============ */
.booking-modal {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none; transition: .25s;
}
.booking-modal--open { opacity: 1; visibility: visible; pointer-events: auto; }
.booking-modal__box {
  background: #fff; border-radius: var(--radius-lg);
  padding: 32px; width: 380px; max-width: 90vw; text-align: center; position: relative;
}
.booking-modal__close { position: absolute; top: 14px; right: 18px; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--text-3); }
.booking-modal__icon { width: 56px; height: 56px; border-radius: 50%; background: #E8F6F4; color: var(--brand-red); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.booking-modal__icon svg { width: 26px; height: 26px; }
.booking-modal__title { font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.booking-modal__line { font-size: 14px; color: var(--text-2); margin: 6px 0; }
.booking-modal__line strong { color: var(--brand-red); }
.booking-modal__qrcode { width: 160px; margin: 14px auto; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.booking-modal__hint { font-size: 12px; color: var(--text-3); }

/* ============ 响应式 ============ */
@media (max-width: 1080px) {
  .container { padding: 0 32px; }
  .nav { display: none; }
  .nav-toggle { display: block; }
  .hero-inner { flex-direction: column; }
  .hero-right { width: 480px; height: 400px; }
  .spoke-hub { width: 104px; height: 104px; font-size: 19px; }
  .stage-row { grid-template-columns: repeat(2, 1fr); }
  .courses { grid-template-columns: repeat(2, 1fr); }
  .data-row { grid-template-columns: repeat(2, 1fr); }
  .case-wall { grid-template-columns: repeat(3, 1fr); }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .cta-final-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 760px) {
  .courses { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero-title { font-size: 42px; }
  .hero-right { width: 320px; height: 310px; }
  .spoke-hub { width: 86px; height: 86px; font-size: 16px; }
  .spoke-hub__sub { font-size: 8.5px; }
  .satellite { width: 112px; height: 62px; margin-left: -56px; margin-top: -31px; }
  .satellite__dot { width: 42px; height: 42px; }
  .satellite__icon { width: 22px; height: 22px; }
  .satellite__label { font-size: 14.5px; }
  .satellite__dot img { width: 36px; height: 36px; }
  .satellite__label { font-size: 11px; }
  .stage-row { grid-template-columns: 1fr; }
  .data-row { grid-template-columns: 1fr 1fr; }
  .case-wall { grid-template-columns: repeat(2, 1fr); }
  .footer__cols { grid-template-columns: 1fr; }
}

/* ========== 课程库（两部分：内训师类 / 全品类） ========== */
.library { background: #fff; padding: 88px 0; }
.parts-nav {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center;
  margin-bottom: 26px;
}
.parts-desc {
  flex: 1 1 100%; text-align: center; font-size: 14px; color: var(--text-2);
  margin: 0 0 4px;
}
.part-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 30px; border-radius: 12px; cursor: pointer;
  background: #F8F6F3; color: var(--text-2);
  font-size: 15px; font-weight: 700; border: 1px solid transparent;
  transition: all .2s; font-family: inherit;
}
.part-btn:hover { color: var(--brand-red); background: #E8F6F4; }
.part-btn.active { background: var(--brand-red); color: #fff; }
.part-btn.active .count { color: rgba(255,255,255,.8); }
.part-btn .count { font-size: 12px; opacity: .8; font-weight: 500; }
.lib-item--more { border-left-color: var(--brand-red); background: #FDF7F3; }
/* ---------- 两栏：左侧类目导航 + 右侧课程列表 ---------- */
.library-body {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
.cat-nav {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 13px 16px;
  background: #FCFAF9;
  border: 1px solid #EFE5DF;
  border-radius: 14px;
  position: sticky; top: 96px;
}
.library-main { min-width: 0; }


.library-list { display: block; }
.lib-item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 12px 14px 14px;
  border: 0; border-bottom: 1px solid #F4EFEC;
  border-left: 0; border-radius: 6px;
  background: transparent;
  transition: background .2s, border-color .2s;
}
.lib-item:hover {
  background: #FDFAF8; border-bottom-color: #EFE2DC;
}
.lib-item__title { flex: 1; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.lib-item:hover .lib-item__title { color: var(--brand-red); }
.lib-item__teacher { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: #077A70; white-space: nowrap; }
.lib-item__teacher svg { width: 13px; height: 13px; flex: none; }
.library-empty { text-align: center; color: var(--text-3); padding: 40px 0; }



@media (max-width: 560px) {
  .library { padding: 56px 0; }
  .lib-item { flex-direction: column; align-items: flex-start; gap: 4px; }
  .lib-item__teacher { white-space: normal; }
}

/* ========== 滚动进入动画 ========== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   内训师课程体系改版增量（2026-09-22）
   —— 全部为新类名，未改任何既有选择器；桌面端既有布局零影响。
   ============================================================ */

/* ---------- 8 大类目 tab ---------- */
.cat-tab {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 12px 11px 12px 16px; border-radius: 8px;
  border: 0; background: transparent; color: var(--text-2);
  font-size: 15px; font-weight: 600; font-family: inherit;
  cursor: pointer; text-align: left;
  transition: background .18s, color .18s;
}

/* ---------- 第八十七轮：侧栏增强（栏头 / 左短竖条 / 统计条） ---------- */
.cat-nav__head {
  margin: 0 0 8px; padding: 0 6px 12px;
  font-size: 13px; font-weight: 800; color: #5F6B7A;
  letter-spacing: 1.6px; line-height: 1.2;
  border-bottom: 1px solid #E2EEEA;
}
.cat-nav__foot {
  margin: 12px 0 0; padding: 12px 6px 2px;
  font-size: 11.5px; color: #5F6B7A; letter-spacing: .3px;
  border-top: 1px solid #F0E7E1;
}
.cat-tab::before {
  content: ""; position: absolute; left: 5px; top: 50%;
  width: 3px; height: 12px; border-radius: 2px;
  background: #E3D8D2;
  transform: translateY(-50%);
  transition: height .2s, background .2s;
}
.cat-tab:hover::before { height: 16px; background: #9ADBD2; }
.cat-tab.active::before { height: 22px; background: var(--brand-red); }

.cat-tab .count {
  flex: none; font-size: 12px; font-weight: 700; color: #5F6B7A;
  transition: color .18s;
}
.cat-tab:hover { background: #FAF5F3; color: var(--brand-red); }
.cat-tab.active {
  background: #FDECEA; color: var(--brand-red);
}
.cat-tab.active .count { color: var(--brand-red); }
.cat-tab:hover .count { color: var(--brand-red); }

/* ---------- 当前类目说明 ---------- */
.cat-desc {
  margin: 0 0 18px; font-size: 13.5px; color: var(--text-2); line-height: 1.7;
  padding: 12px 16px; background: #FCFAF9;
  border-left: 3px solid var(--brand-red);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---------- 查看全部 ---------- */
.cat-more { margin-top: 26px; text-align: center; }
.cat-more__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--brand-red);
  padding: 10px 22px; border-radius: 999px;
  border: 1px solid rgba(192, 0, 0, .30); background: #fff;
  transition: background .2s, border-color .2s, color .2s;
}
.cat-more__link:hover {
  background: rgba(192, 0, 0, .06); border-color: var(--brand-red);
}
.cat-more__link svg { width: 16px; height: 16px; flex: none; }

/* ---------- 全品类单向引流 ---------- */
/* ---------- 合并行动条（主诉求 + 全品类文字链） ---------- */
.actionbar {
  margin-top: 40px;
  display: grid; grid-template-columns: minmax(0, 1fr) 250px;
  align-items: stretch;
  border: 1px solid #EBDDD3; border-radius: var(--radius-lg);
  background: var(--bg-warm); overflow: hidden;
}
.actionbar__tx {
  padding: 26px 30px;
  display: flex; flex-direction: column; gap: 6px; justify-content: center;
}
.actionbar__tx b { font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: -.2px; }
.actionbar__tx span { font-size: 13.5px; color: var(--text-2); line-height: 1.65; }
.actionbar__tx em {
  font-style: normal; font-size: 12.5px; color: var(--text-3);
  margin-top: 4px; padding-top: 10px; border-top: 1px solid #EFE4DB;
}
.actionbar__tx em a {
  color: var(--brand-red); font-weight: 700;
  border-bottom: 1px solid rgba(192, 0, 0, .28);
}
.actionbar__tx em a:hover { border-bottom-color: var(--brand-red); }
.actionbar__btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: var(--brand-red); color: #fff; text-align: center;
  transition: background .2s;
}
.actionbar__btn b { font-size: 16px; font-weight: 800; letter-spacing: .3px; }
.actionbar__btn span { font-size: 12px; opacity: .86; }
.actionbar__btn:hover { background: var(--brand-red-deep); }

@media (max-width: 720px) {
  .actionbar { grid-template-columns: 1fr; }
  .actionbar__tx { padding: 22px 22px 18px; }
  .actionbar__btn { padding: 20px; }
}


/* ---------- 小屏类目入口网格（替代轮辐图） ---------- */
.hero-cats { display: none; }

/* ---------- 轮辐图：卫星（图标 + 类目名） ----------
   ⚠ 盒高必须等于内容真实高度（dot + gap + label），否则 flex 默认
   justify-content:normal 会把余量全堆到底部 ⇒ 视觉重心偏离盒中心，
   而 left/top 以盒中心为基准 ⇒ 圆周上邻项角度观感不均。
   当前：dot 50 + gap 4 + label 20 = 74 ⇒ 盒高 72（label 行高按实测 20）。
   改字号/加元素后必须重新对齐盒高，并用角度探针复验。 */
.satellite--cat { text-decoration: none; }
.satellite--cat .satellite__dot {
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-soft); border: 1.5px solid rgba(192, 0, 0, .30);
  color: var(--brand-red-deep);
  transition: background .22s, border-color .22s, color .22s, transform .22s;
}
/* 第八十八轮：圆内由「门数数字」改为「线性图标」（stroke=currentColor） */
.satellite--cat .satellite__icon {
  width: 27px; height: 27px; display: block;
}
/* 类目名：红底上必须用白字（#6B1315 对比度仅 1.87 不过 AA；白字 6.48 ✅） */
.satellite--cat .satellite__label {
  font-size: 16px; font-weight: 700; color: #fff;
  letter-spacing: .3px; line-height: 1.25;
}
/* 门数：红底上必须用浅金（rgba(192,0,0,.55) 与底色同色，对比度 1.00 不可见；
   #F5E1B8 对比度 5.04 ✅ 过 AA） */
.satellite--cat .satellite__count {
  font-size: 12px; font-weight: 600; color: var(--gold);
  line-height: 1.2; white-space: nowrap; letter-spacing: .2px;
}
.satellite--cat:hover .satellite__dot {
  background: var(--brand-red); border-color: var(--brand-red); color: #fff;
  transform: translateY(-2px);
}
.satellite--cat:hover .satellite__label { color: var(--gold); }

/* ---------- 列表分页（与 shiziku/js/script.js 的 data-page-* 约定同源） ---------- */
[data-page-list] > .is-page-hidden { display: none !important; }
[data-page-list].is-swapping { animation: ppxm-page-fade .3s ease; }
@keyframes ppxm-page-fade { from { opacity: .3; } to { opacity: 1; } }

.pager { margin: 30px 0 0; text-align: center; }
.pager[hidden] { display: none; }
.pager__info { font-size: 13px; color: var(--text-3); margin-bottom: 14px; }
.pager__info b { color: var(--brand-red); font-weight: 700; }
.pager__list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.pager__btn, .pager__num {
  min-width: 38px; height: 38px; padding: 0 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff; color: var(--text);
  font-size: 14px; font-weight: 600; font-family: inherit; line-height: 36px;
  text-align: center; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.pager__btn:hover:not(:disabled), .pager__num:hover:not(.is-active) {
  background: rgba(192, 0, 0, .06); border-color: var(--brand-red); color: var(--brand-red);
}
.pager__num.is-active {
  background: var(--brand-red); border-color: var(--brand-red); color: #fff; cursor: default;
}
.pager__btn:disabled { opacity: .45; cursor: not-allowed; }
.pager__ellipsis { min-width: 24px; color: var(--text-3); text-align: center; user-select: none; }

/* ============================================================
   移动端溢出修复（既有缺陷，改版同批修）
   ① .hero-sub 的 white-space:nowrap 把 .hero-left/-title/-trust 撑到 646px
   ② 1200 档 .hero-right 固定 560px 超容器
   ③ .footer__contacts 固定宽溢出
   ============================================================ */

/* ① 解除 nowrap + 允许收缩 */
.hero-sub { white-space: normal; }
.hero-left { min-width: 0; }

@media (max-width: 1280px) {
  /* ② 提前降级为纵向，避免横向 flex 下 560px 固定宽溢出 */
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .hero-right { width: 100%; max-width: 480px; height: 400px; margin: 0 auto; }
}

@media (max-width: 1080px) {
  .hero-right { width: 480px; height: 400px; }
}

@media (max-width: 760px) {
  .hero-left, .hero-title, .hero-sub, .hero-trust { width: auto; max-width: 100%; }
  .hero-trust { flex-wrap: wrap; justify-content: flex-start; gap: 10px 14px; }
  .hero-trust-sep { display: none; }
}

/* ③ 页脚联系方式换行 */
@media (max-width: 640px) {
  .footer__contacts { flex-wrap: wrap; width: 100%; max-width: 100%; }
  .cat-tab { padding: 8px 14px; font-size: 13.5px; }
}

@media (max-width: 560px) {
  .pager { margin-top: 24px; }
  .pager__list { gap: 6px; }
  .pager__btn, .pager__num { min-width: 34px; height: 34px; line-height: 32px; font-size: 13px; padding: 0 9px; }
}

/* 小屏：隐藏轮辐图，改 2×4 类目网格（不依赖 JS） */
@media (max-width: 640px) {
  .hero-right { display: none; }
  .hero-cats {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 10px; width: 100%; margin-top: 4px;
  }
  .hero-cat {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 13px 15px; border-radius: var(--radius-sm);
    background: rgba(245, 225, 184, .13);
    border: 1px solid rgba(245, 225, 184, .38);
    color: #fff; font-size: 14px; font-weight: 600;
    transition: background .2s, border-color .2s;
  }
  .hero-cat b { font-weight: 700; }
  .hero-cat span {
    flex: none; min-width: 26px; padding: 1px 7px; border-radius: 999px;
    background: rgba(245, 225, 184, .22); color: var(--gold);
    font-size: 12px; font-weight: 700; text-align: center;
  }
  .hero-cat:active { background: rgba(245, 225, 184, .26); border-color: var(--gold); }
}

/* ==================== 第八十一轮：第一部分 阶段进度条 ==================== */
.stage-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  max-width: 820px;
  margin: 0 auto 26px;
  padding: 0;
  list-style: none;
  position: relative;
}
.stage-steps::before {
  content: "";
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: 50%;
  height: 2px;
  background: var(--line);
  transform: translateY(-50%);
  z-index: 0;
}
.stage-steps .step {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.step-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid var(--line);
  color: var(--text-3);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.step--active .step-dot {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(192, 0, 0, .10);
}

/* 阶段卡：改为「阶段N + 标题 + 描述 + 交付」四行结构 */
.stage-card { gap: 8px; padding: 20px 22px; }
.stage-badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--brand-red);
}
.stage-card .stage-name { font-size: 19px; line-height: 1.35; }
.stage-card .stage-desc { font-size: 13px; line-height: 1.6; }
.stage-deliver {
  display: block;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.5;
}
.stage-deliver b { color: var(--brand-red); font-weight: 700; margin-right: 2px; }
.stage-card--active {
  border-color: var(--brand-red);
  box-shadow: 0 8px 22px rgba(192, 0, 0, .10);
}

/* ==================== 第八十一轮：第二部分 精品课 ==================== */
.proj-eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--brand-red);
  opacity: .78;
  margin-bottom: 8px;
}
.proj-head .proj-title { font-size: 27px; }
.proj-head { margin-bottom: 32px; }

@media (max-width: 992px) {
  .stage-steps { max-width: 100%; margin-bottom: 22px; }
  .step-dot { width: 28px; height: 28px; font-size: 13px; }
}
@media (max-width: 767px) {
  .stage-steps { max-width: 320px; margin-bottom: 20px; }
  .step-dot { width: 26px; height: 26px; font-size: 12px; }
  .stage-card { padding: 18px 20px; }
  .stage-card .stage-name { font-size: 17px; }
  .proj-head .proj-title { font-size: 22px; }
  .proj-eyebrow { letter-spacing: 2px; }
}

/* ============================================================
   窄屏：类目栏收回顶部横排（必须放在样式表末尾 —— 同特异度靠顺序胜出）
   ============================================================ */
@media (max-width: 992px) {
  .library-body { grid-template-columns: 1fr; gap: 20px; }
  .cat-nav {
    flex-direction: row; flex-wrap: wrap; gap: 8px;
    border-right: 0; padding-right: 0;
    position: static;
  }
  .cat-tab {
    width: auto; padding: 8px 15px; border-radius: 999px;
    border: 1px solid var(--line); background: #fff;
  }
  .cat-tab .count {
    display: inline-block; min-width: 22px; padding: 1px 7px;
    border-radius: 999px; background: #E0F2EE; color: #077A70; text-align: center;
  }
  .cat-tab.active { border-color: var(--brand-red); }
  .cat-tab.active .count { background: rgba(255,255,255,.26); color: #fff; }
  /* 横排胶囊：关闭卡片装饰与左短竖条，隐藏栏头/统计条 */
  .cat-nav { padding: 0; background: transparent; border: 0; border-radius: 0; }
  .cat-nav__head, .cat-nav__foot { display: none; }
  .cat-tab { padding: 8px 15px; }
  .cat-tab::before { display: none; }
}


