@charset "utf-8";
/* ============================================================
   华企网校 · 在线课程库样式（/courses/）
   独立命名空间 cs- / cd-，避免与全站 style.css 冲突
   版本：20261114a
   ============================================================ */

.cs-page, .cs-page *, .cs-page *:before, .cs-page *:after {
  -webkit-box-sizing: border-box; box-sizing: border-box;
}
.cs-page {
  --cs-ink: #10233d;
  --cs-blue: #1558a6;
  --cs-blue-2: #2f7dcb;
  --cs-deep: #0b1f39;
  --cs-gold: #ffbe3d;
  --cs-text: #1d2c40;
  --cs-gray: #66788f;
  --cs-line: #e3e9f2;
  --cs-bg: #f4f7fb;
  font-family: 'microsoft yahei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--cs-text);
  background: var(--cs-bg);
  -webkit-font-smoothing: antialiased;
}
.cs-page img { max-width: 100%; border: 0; }
.cs-page a { text-decoration: none; }
.cs-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------------- 通用按钮 ---------------- */
.cs-btn {
  display: inline-block; padding: 13px 26px; border-radius: 8px;
  font-size: 15px; line-height: 1; font-weight: 600; letter-spacing: .5px;
  border: 1px solid transparent; cursor: pointer; transition: all .22s ease;
  text-align: center;
}
.cs-btn-gold { background: linear-gradient(180deg, #ffcf6b 0%, #ffb62e 100%); color: #432c00; box-shadow: 0 6px 18px rgba(255, 182, 46, .34); }
.cs-btn-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255, 182, 46, .45); color: #33210a; }
.cs-btn-blue { background: var(--cs-blue); color: #fff; }
.cs-btn-blue:hover { background: #124a8d; color: #fff; }
.cs-btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.cs-btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.cs-btn-line { border-color: var(--cs-line); background: #fff; color: var(--cs-text); }
.cs-btn-line:hover { border-color: var(--cs-blue); color: var(--cs-blue); }

/* ---------------- 首屏 ---------------- */
.cs-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #08192e 0%, #10365f 46%, #16528f 100%);
  color: #fff; padding: 44px 0 38px;
}
.cs-hero:before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 10%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse at 70% 10%, #000 10%, transparent 72%);
}
.cs-hero:after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,190,61,.30) 0%, rgba(255,190,61,0) 68%);
}
.cs-hero .cs-wrap { position: relative; z-index: 2; }
.cs-hero .cs-kicker {
  display: inline-block; padding: 6px 14px; border: 1px solid rgba(255,190,61,.55);
  border-radius: 999px; color: var(--cs-gold); font-size: 13px; letter-spacing: 1px; margin-bottom: 18px;
}
.cs-hero h1 { margin: 0 0 14px; font-size: 38px; line-height: 1.25; font-weight: 700; letter-spacing: .5px; }
.cs-hero .cs-sub { margin: 0 0 26px; font-size: 16px; line-height: 1.8; color: rgba(255,255,255,.82); max-width: 760px; }
.cs-sub b { color: #fff; font-weight: 600; }
.cs-sub em { font-style: normal; color: var(--cs-gold); font-weight: 600; }

.cs-search { display: flex; max-width: 560px; margin-bottom: 30px; }
.cs-search input {
  flex: 1; height: 50px; padding: 0 18px; border: 0; border-radius: 8px 0 0 8px;
  font-size: 15px; color: var(--cs-text); outline: none; background: #fff;
}
.cs-search button {
  height: 50px; padding: 0 26px; border: 0; border-radius: 0 8px 8px 0;
  background: var(--cs-gold); color: #3d2700; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background .2s;
}
.cs-search button:hover { background: #ffca5c; }

.cs-stats { display: flex; flex-wrap: wrap; gap: 34px; }
.cs-stat b { display: block; font-size: 30px; line-height: 1.1; font-weight: 700; color: #fff; letter-spacing: .5px; }
.cs-stat b span { font-size: 15px; font-weight: 500; margin-left: 4px; color: rgba(255,255,255,.7); }
.cs-stat i { display: block; margin-top: 7px; font-size: 13px; font-style: normal; color: rgba(255,255,255,.62); letter-spacing: .6px; }

/* ---------------- 筛选条 ---------------- */
.cs-filter { background: #fff; border-bottom: 1px solid var(--cs-line); }
.cs-filter-in { display: flex; align-items: center; gap: 16px; padding: 0; }
.cs-tabs {
  display: flex; gap: 6px; overflow-x: auto; padding: 14px 0; flex: 1;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.cs-tabs::-webkit-scrollbar { display: none; }
.cs-tab {
  flex: 0 0 auto; padding: 9px 16px; border-radius: 999px; font-size: 14px;
  color: var(--cs-gray); background: #f2f5f9; border: 1px solid transparent;
  white-space: nowrap; transition: all .2s;
}
.cs-tab:hover { color: var(--cs-blue); background: #e9f1fa; }
.cs-tab em { font-style: normal; font-size: 12px; opacity: .62; margin-left: 4px; }
.cs-tab.on { background: var(--cs-blue); color: #fff; border-color: var(--cs-blue); }
.cs-tab.on em { opacity: .8; }
.cs-sort { display: flex; gap: 4px; flex: 0 0 auto; padding: 14px 0; }
.cs-sort a { padding: 8px 12px; font-size: 14px; color: var(--cs-gray); border-radius: 6px; }
.cs-sort a:hover { color: var(--cs-blue); background: #f2f5f9; }
.cs-sort a.on { color: var(--cs-blue); font-weight: 700; background: #eaf2fc; }

/* ---------------- 结果头 ---------------- */
.cs-result { padding: 26px 0 0; }
.cs-result-in { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cs-result h2 { margin: 0; font-size: 19px; font-weight: 700; color: var(--cs-ink); }
.cs-result h2 em { font-style: normal; color: var(--cs-blue); }
.cs-result p { margin: 0; font-size: 13px; color: var(--cs-gray); }

/* ---------------- 网格 ---------------- */
.cs-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 22px; padding: 22px 0 10px;
}
.cs-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--cs-line); transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.cs-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(16, 45, 82, .13); border-color: #cfdcec; }
.cs-thumb { position: relative; display: block; padding-top: 56.25%; background: #0f2b4d; overflow: hidden; }
.cs-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.cs-card:hover .cs-thumb img { transform: scale(1.045); }
.cs-dur {
  position: absolute; right: 10px; bottom: 10px; z-index: 3;
  padding: 3px 9px; border-radius: 4px; background: rgba(6, 20, 38, .78);
  color: #fff; font-size: 12px; letter-spacing: .3px;
}
.cs-hover {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center;
  gap: 6px; background: rgba(9, 30, 55, .62); color: #fff; font-size: 15px; font-weight: 600;
  letter-spacing: .5px; opacity: 0; transition: opacity .25s ease;
}
.cs-hover i { font-style: normal; color: var(--cs-gold); font-size: 20px; line-height: 1; }
.cs-card:hover .cs-hover { opacity: 1; }
.cs-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.cs-field {
  display: inline-block; align-self: flex-start; margin-bottom: 9px;
  padding: 3px 9px; border-radius: 4px; background: #eef4fc; color: var(--cs-blue);
  font-size: 12px; letter-spacing: .3px;
}
.cs-body h3 { margin: 0 0 12px; font-size: 15px; line-height: 1.55; font-weight: 600; }
.cs-body h3 a {
  color: var(--cs-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 46px;
}
.cs-body h3 a:hover { color: var(--cs-blue); }
.cs-meta {
  margin-top: auto; display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--cs-gray); white-space: nowrap; overflow: hidden;
}
.cs-meta i { width: 1px; height: 10px; background: #d7e0ec; display: inline-block; }
.cs-meta span { overflow: hidden; text-overflow: ellipsis; }

/* ---------------- 分页 ---------------- */
.cs-pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 30px 0 46px; }
.cs-pager a, .cs-pager span {
  min-width: 40px; height: 40px; padding: 0 13px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; background: #fff; border: 1px solid var(--cs-line); color: var(--cs-text);
}
.cs-pager a:hover { border-color: var(--cs-blue); color: var(--cs-blue); }
.cs-pager .cs-cur { background: var(--cs-blue); border-color: var(--cs-blue); color: #fff; font-weight: 700; }
.cs-pager .cs-dot { border: 0; background: transparent; min-width: 20px; padding: 0; color: var(--cs-gray); }

/* ---------------- 空结果 ---------------- */
.cs-empty { background: #fff; border: 1px solid var(--cs-line); border-radius: 14px; padding: 60px 30px; text-align: center; margin: 22px 0 40px; }
.cs-empty h3 { margin: 0 0 10px; font-size: 19px; color: var(--cs-ink); }
.cs-empty p { margin: 0 0 22px; color: var(--cs-gray); font-size: 14px; }

/* ---------------- 底部 CTA 横条 ---------------- */
.cs-footbar { background: linear-gradient(120deg, #0d2a4c 0%, #16528f 100%); color: #fff; padding: 30px 0; }
.cs-footbar-in { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cs-footbar-txt strong { display: block; font-size: 20px; margin-bottom: 8px; letter-spacing: .4px; }
.cs-footbar-txt span { font-size: 14px; color: rgba(255,255,255,.76); }
.cs-footbar-act { display: flex; gap: 12px; flex: 0 0 auto; }

/* ---------------- 页脚 ---------------- */
.cs-footer { background: #0a1c31; color: rgba(255,255,255,.62); padding: 34px 0 20px; font-size: 13px; }
.cs-footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 26px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.1); }
.cs-footer-col h4 { margin: 0 0 10px; font-size: 14px; color: #fff; font-weight: 600; }
.cs-footer-col p { margin: 0; line-height: 1.9; }
.cs-footer-col a { color: rgba(255,255,255,.62); }
.cs-footer-col a:hover { color: var(--cs-gold); }
.cs-footer-copy { padding-top: 16px; font-size: 12.5px; color: rgba(255,255,255,.42); line-height: 1.8; }
.cs-footer-copy a { color: rgba(255,255,255,.42); }
.cs-sitebg { display: none; }

/* ============================================================
   详情页
   ============================================================ */
.cd-hero { background: linear-gradient(120deg, #08192e 0%, #10365f 52%, #16528f 100%); color: #fff; padding: 26px 0 34px; }
.cd-crumb { font-size: 13px; color: rgba(255,255,255,.62); margin-bottom: 22px; }
.cd-crumb a { color: rgba(255,255,255,.62); }
.cd-crumb a:hover { color: var(--cs-gold); }
.cd-crumb span { margin: 0 7px; opacity: .5; }
.cd-hero-in { display: grid; grid-template-columns: 380px 1fr; gap: 34px; align-items: start; }
.cd-cover { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.34); padding-top: 56.25%; background: #0f2b4d; }
.cd-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cd-cover .cs-dur { right: 12px; bottom: 12px; font-size: 13px; }
.cd-info h1 { margin: 0 0 16px; font-size: 27px; line-height: 1.45; font-weight: 700; letter-spacing: .3px; }
.cd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cd-tag { padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.13); font-size: 13px; color: #fff; }
.cd-tag.gold { background: rgba(255,190,61,.16); color: var(--cs-gold); border: 1px solid rgba(255,190,61,.42); }
.cd-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 24px; font-size: 14px; color: rgba(255,255,255,.8); }
.cd-meta b { color: #fff; font-weight: 600; }
.cd-acts { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cd-acts .cs-btn { padding: 15px 30px; font-size: 16px; }
.cd-tip { font-size: 13px; color: rgba(255,255,255,.6); margin-left: 4px; }

.cd-main { padding: 34px 0 50px; }
.cd-cols { display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: start; }
.cd-panel { background: #fff; border: 1px solid var(--cs-line); border-radius: 14px; padding: 26px 28px; margin-bottom: 20px; }
.cd-panel h2 { margin: 0 0 16px; font-size: 18px; font-weight: 700; color: var(--cs-ink); padding-left: 12px; border-left: 3px solid var(--cs-blue); line-height: 1.2; }
.cd-panel h2 small { font-size: 13px; font-weight: 400; color: var(--cs-gray); margin-left: 8px; }
.cd-text { font-size: 15px; line-height: 2; color: #33465e; white-space: pre-line; word-break: break-word; }
.cd-text p { margin: 0 0 12px; }
.cd-list { margin: 0; padding: 0; list-style: none; }
.cd-list li { position: relative; padding: 9px 0 9px 26px; font-size: 14.5px; line-height: 1.75; color: #33465e; border-bottom: 1px dashed #eef2f7; }
.cd-list li:last-child { border-bottom: 0; }
.cd-list li:before {
  content: ""; position: absolute; left: 6px; top: 18px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--cs-gold);
}
.cd-fold { position: relative; max-height: 340px; overflow: hidden; }
.cd-fold:after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px;
  background: linear-gradient(rgba(255,255,255,0), #fff 82%);
}
.cd-fold.open { max-height: none; }
.cd-fold.open:after { display: none; }
.cd-more {
  display: block; margin: 6px auto 0; padding: 9px 22px; border-radius: 999px;
  border: 1px solid var(--cs-line); background: #fff; color: var(--cs-blue);
  font-size: 14px; cursor: pointer;
}
.cd-more:hover { border-color: var(--cs-blue); background: #f6fafe; }

.cd-teach { display: flex; gap: 18px; align-items: flex-start; }
.cd-avatar {
  flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #1558a6, #0f2b4d); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 600; letter-spacing: 1px;
}
.cd-teach-b { flex: 1; min-width: 0; }
.cd-teach-b h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--cs-ink); }
.cd-teach-b .cd-role { font-size: 13px; color: var(--cs-gray); margin-bottom: 12px; }
.cd-teach-b .cd-bio { font-size: 14px; line-height: 1.9; color: #33465e; white-space: pre-line; }
.cd-cert { margin-top: 14px; padding: 12px 16px; background: #f7fafd; border-radius: 8px; font-size: 13.5px; color: #4a5f78; line-height: 1.9; white-space: pre-line; }
.cd-cert b { display: block; color: var(--cs-ink); margin-bottom: 4px; font-size: 13px; letter-spacing: .5px; }

/* 侧栏留资卡 */
.cd-side { position: sticky; top: 16px; }
.cd-lead { background: #fff; border: 1px solid var(--cs-line); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(16,45,82,.07); }
.cd-lead-h { background: linear-gradient(120deg, #0d2a4c, #16528f); color: #fff; padding: 20px 24px; }
.cd-lead-h strong { display: block; font-size: 18px; margin-bottom: 6px; letter-spacing: .4px; }
.cd-lead-h span { font-size: 13px; color: rgba(255,255,255,.74); }
.cd-lead-b { padding: 20px 24px 24px; }
.cd-field { margin-bottom: 12px; }
.cd-field label { display: block; font-size: 13px; color: #4a5f78; margin-bottom: 6px; }
.cd-field label i { color: #e0574f; font-style: normal; margin-left: 2px; }
.cd-field input, .cd-field select, .cd-field textarea {
  width: 100%; height: 44px; padding: 0 13px; font-size: 14.5px; color: var(--cs-text);
  border: 1px solid #dbe3ee; border-radius: 8px; background: #fff; outline: none;
  transition: border-color .2s, box-shadow .2s; font-family: inherit;
}
.cd-field textarea { height: 76px; padding: 11px 13px; resize: vertical; line-height: 1.6; }
.cd-field input:focus, .cd-field select:focus, .cd-field textarea:focus {
  border-color: var(--cs-blue); box-shadow: 0 0 0 3px rgba(21, 88, 166, .12);
}
.cd-field.err input { border-color: #e0574f; background: #fff7f6; }
.cd-submit { width: 100%; margin-top: 4px; padding: 15px 0; font-size: 16px; }
.cd-priv { margin-top: 12px; font-size: 12px; color: #90a0b5; line-height: 1.7; text-align: center; }
.cd-lead-done { padding: 34px 24px; text-align: center; }
.cd-lead-done .ok { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: #e8f6ee; color: #1c9b5b; font-size: 30px; line-height: 56px; }
.cd-lead-done h4 { margin: 0 0 8px; font-size: 17px; color: var(--cs-ink); }
.cd-lead-done p { margin: 0 0 16px; font-size: 13.5px; color: var(--cs-gray); line-height: 1.8; }

/* 右侧顾问卡 */
.cd-consult { margin-top: 16px; background: #fff; border: 1px solid var(--cs-line); border-radius: 14px; padding: 20px 22px; }
.cd-consult h4 { margin: 0 0 10px; font-size: 15px; color: var(--cs-ink); }
.cd-consult p { margin: 0 0 8px; font-size: 13.5px; color: var(--cs-gray); line-height: 1.8; }
.cd-consult b { color: var(--cs-blue); font-size: 17px; letter-spacing: .4px; }

/* 相关课程 */
.cd-rel { padding-bottom: 20px; }
.cd-rel .cs-grid { padding-top: 0; grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1180px) {
  .cs-grid { grid-template-columns: repeat(3, 1fr); }
  .cd-rel .cs-grid { grid-template-columns: repeat(3, 1fr); }
  .cd-hero-in { grid-template-columns: 330px 1fr; gap: 26px; }
  .cd-cols { grid-template-columns: 1fr 330px; }
}
@media (max-width: 1000px) {
  .cs-hero h1 { font-size: 31px; }
  .cd-hero-in { grid-template-columns: 280px 1fr; gap: 22px; }
  .cd-info h1 { font-size: 22px; }
  .cd-cols { grid-template-columns: 1fr; }
  .cd-side { position: static; }
  .cd-lead { max-width: 560px; }
  .cs-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
@media (max-width: 860px) {
  .cs-grid { grid-template-columns: repeat(2, 1fr); }
  .cd-rel .cs-grid { grid-template-columns: repeat(2, 1fr); }
  .cd-hero-in { grid-template-columns: 1fr; }
  .cd-cover { max-width: 460px; }
  .cs-footer-in { grid-template-columns: 1fr; gap: 18px; }
  .cs-filter-in { flex-direction: column; align-items: stretch; gap: 0; }
  .cs-sort { padding-top: 0; padding-bottom: 12px; }
}
@media (max-width: 560px) {
  .cs-wrap { padding: 0 14px; }
  .cs-hero { padding: 34px 0 32px; }
  .cs-hero h1 { font-size: 24px; line-height: 1.35; }
  .cs-hero .cs-sub { font-size: 14px; margin-bottom: 20px; }
  .cs-search input { height: 46px; font-size: 14px; }
  .cs-search button { height: 46px; padding: 0 18px; font-size: 14px; }
  .cs-stats { gap: 18px 26px; }
  .cs-stat b { font-size: 23px; }
  .cs-stat i { font-size: 12px; }
  .cs-grid { grid-template-columns: 1fr; gap: 14px; }
  .cd-rel .cs-grid { grid-template-columns: 1fr; }
  .cd-info h1 { font-size: 19px; }
  .cd-acts .cs-btn { flex: 1; padding: 14px 12px; font-size: 15px; }
  .cd-panel { padding: 20px 18px; }
  .cd-panel h2 { font-size: 16px; }
  .cd-footbar-act, .cs-footbar-act { width: 100%; }
  .cs-footbar-act .cs-btn { flex: 1; }
  .cs-pager a, .cs-pager span { min-width: 34px; height: 34px; font-size: 13px; padding: 0 9px; }
}

/* ============================================================
   提示条 / 弹窗（列表页选课需求）
   ============================================================ */
.cs-toast {
  position: fixed; left: 50%; bottom: 44px; z-index: 9999;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  max-width: 86vw; padding: 12px 20px; border-radius: 8px;
  background: rgba(12, 26, 45, .93); color: #fff; font-size: 14px; line-height: 1.6;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
  transition: opacity .26s ease, transform .26s ease;
}
.cs-toast.on { opacity: 1; transform: translate(-50%, 0); }

.cs-mask {
  position: fixed; inset: 0; z-index: 9000; background: rgba(7, 18, 33, .58);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  animation: csFade .2s ease;
}
@keyframes csFade { from { opacity: 0 } to { opacity: 1 } }
.cs-modal {
  position: relative; width: 100%; max-width: 430px; max-height: 92vh; overflow: auto;
  background: #fff; border-radius: 16px; box-shadow: 0 26px 60px rgba(0, 0, 0, .3);
  animation: csUp .26s cubic-bezier(.2, .7, .3, 1);
}
@keyframes csUp { from { transform: translateY(18px); opacity: .6 } to { transform: none; opacity: 1 } }
.cs-modal-x {
  position: absolute; right: 12px; top: 10px; z-index: 2; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer;
}
.cs-modal-x:hover { background: rgba(255, 255, 255, .3); }
.cs-modal-h { background: linear-gradient(120deg, #0d2a4c, #16528f); color: #fff; padding: 22px 26px 20px; }
.cs-modal-h strong { display: block; font-size: 18px; margin-bottom: 7px; letter-spacing: .4px; }
.cs-modal-h span { font-size: 13px; color: rgba(255, 255, 255, .74); }
.cs-modal-b { padding: 20px 26px 24px; }
.cs-modal .cd-submit { width: 100%; }

/* 课程背景里的小标题（课程收益 / 课程对象 …） */
.cd-text b.cd-sub {
  display: block; margin: 20px 0 8px; padding-left: 10px;
  font-size: 15.5px; font-weight: 700; color: #10233d;
  border-left: 3px solid var(--cs-gold, #ffbe3d); line-height: 1.5;
}
.cd-text b.cd-sub:first-child { margin-top: 0; }
/* 避免「免费试看」被折成两行 */
.cs-sub em, .cd-info h1 em { white-space: nowrap; }

/* ---------------- 首屏右侧：热门领域卡 ---------------- */
.cs-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 40px; align-items: center; }
.cs-hero-l { min-width: 0; }
.cs-hotbox {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px; padding: 18px 8px 12px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.cs-hotbox-h {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 12px 10px; font-size: 14px; font-weight: 600; color: #fff; letter-spacing: .5px;
}
.cs-hotbox-h i { font-style: normal; font-size: 12px; font-weight: 400; color: rgba(255, 255, 255, .48); }
.cs-hotbox ul { margin: 0; padding: 0; list-style: none; }
.cs-hotbox li a {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px;
  font-size: 14px; color: rgba(255, 255, 255, .88); transition: background .2s, color .2s;
}
.cs-hotbox li a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.cs-hotbox li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-hotbox li em { font-style: normal; font-size: 12.5px; color: rgba(255, 255, 255, .5); }
.cs-hotbox li .ar { font-style: normal; color: var(--cs-gold, #ffbe3d); opacity: .5; font-size: 16px; }
.cs-hotbox li a:hover .ar { opacity: 1; }
.cs-hotbox-all {
  display: block; margin: 8px 12px 0; padding-top: 10px; text-align: center;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px; color: var(--cs-gold, #ffbe3d);
}
.cs-hotbox-all:hover { color: #fff; }

/* ---------------- 领域标签：桌面端全显示（29 个领域不再藏在横滑里） ---------------- */
.cs-tabs { flex-wrap: wrap; gap: 8px; padding: 16px 0; }
.cs-filter-in { align-items: flex-start; }
.cs-sort { padding-top: 16px; }

@media (max-width: 1180px) {
  .cs-hero-in { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
}
@media (max-width: 1000px) {
  .cs-hero-in { grid-template-columns: 1fr; }
  .cs-hero-r { display: none; }
}
@media (max-width: 860px) {
  .cs-tabs { flex-wrap: nowrap; overflow-x: auto; padding: 14px 0; }
  .cs-filter-in { flex-direction: column; align-items: stretch; }
  .cs-sort { padding-top: 0; padding-bottom: 12px; }
}

/* ---------------- 手机端收尾 ---------------- */
@media (max-width: 560px) {
  /* 统计改 2×2，避免 4 项挤成 3+1 */
  .cs-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
  .cs-stat b { font-size: 24px; }
  /* 详情页两个按钮竖排：并排时「电话咨询 18359281779」会折成两行、比左边高出一截 */
  .cd-acts { flex-direction: column; align-items: stretch; gap: 10px; }
  .cd-acts .cs-btn { width: 100%; }
  .cd-tip { margin-left: 0; text-align: center; }
}

/* 相关课程：左栏宽约 780px，4 列每列只有 180px 太挤，3 列 ×2 行更饱满 */
.cd-rel .cs-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .cd-rel .cs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cd-rel .cs-grid { grid-template-columns: 1fr; } }
