
/* 贵州教育培训考证招生演示站 样式表 */
:root {
  --red: #c8161d;
  --red-dark: #9c0f15;
  --red-light: #fff1f1;
  --orange: #ff7a18;
  --navy: #172b4d;
  --dark: #22262c;
  --text: #333;
  --muted: #8a919c;
  --line: #e8eaee;
  --bg: #f5f6f8;
  --radius: 8px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; color: var(--text); background: #fff; font-size: 14px; line-height: 1.7; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--red); }
img { display: block; max-width: 100%; }
ul { list-style: none; }
.wrap { width: 1200px; max-width: 94%; margin: 0 auto; }
.btn { display: inline-block; background: var(--red); color: #fff; border: none; border-radius: 4px; padding: 9px 26px; font-size: 15px; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--red-dark); color: #fff; }
.btn-lg { padding: 12px 36px; font-size: 16px; border-radius: 6px; }
.btn-sm { padding: 5px 14px; font-size: 13px; }
.btn-line { background: #fff; color: var(--red); border: 1px solid var(--red); }
.btn-line:hover { background: var(--red-light); color: var(--red); }
.btn-ghost { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.3); color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ===== 顶部通栏 ===== */
.topbar { background: #f2f3f5; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.topbar-in { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar-links a { color: var(--muted); margin-left: 14px; }
.topbar-tel { margin-left: 14px; }
.topbar-tel b { color: var(--red); }

/* ===== 头部 ===== */
.header { background: #fff; border-bottom: 3px solid var(--red); position: relative; z-index: 50; }
.header-in { display: flex; align-items: center; height: 88px; gap: 26px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-badge { background: var(--red); color: #fff; font-size: 20px; font-weight: bold; padding: 10px 12px; border-radius: 6px; letter-spacing: 2px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.3; }
.logo-text strong { font-size: 21px; color: var(--dark); letter-spacing: 1px; }
.logo-text small { font-size: 12px; color: var(--muted); }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { padding: 8px 14px; font-size: 15px; border-radius: 4px; white-space: nowrap; }
.nav a:hover, .nav a.active { color: var(--red); background: var(--red-light); }
.header-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.hotline { text-align: right; line-height: 1.35; }
.hotline-label { display: block; font-size: 12px; color: var(--muted); }
.hotline-num { font-size: 22px; font-weight: bold; color: var(--red); letter-spacing: .5px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 4px; font-size: 20px; padding: 4px 10px; cursor: pointer; }

/* ===== Banner ===== */
.banner { position: relative; height: 400px; overflow: hidden; }
.banner-slides, .b-slide { height: 100%; }
.b-slide { display: none; align-items: center; }
.b-slide.on { display: flex; animation: fadein .6s; }
@keyframes fadein { from { opacity: .3; } to { opacity: 1; } }
.b-text { color: #fff; }
.b-text h2 { font-size: 38px; line-height: 1.35; letter-spacing: 1px; text-shadow: 0 2px 8px rgba(0,0,0,.25); }
.b-text p { margin-top: 14px; font-size: 17px; opacity: .92; }
.b-btns { margin-top: 26px; display: flex; gap: 14px; }
.banner-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.banner-dots i { width: 26px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.45); cursor: pointer; }
.banner-dots i.on { background: #fff; }

/* ===== 分类入口条 ===== */
.cat-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: -46px; position: relative; z-index: 10; }
.cat-item { background: #fff; border-radius: var(--radius); padding: 16px 18px; box-shadow: 0 4px 16px rgba(23,43,77,.10); transition: transform .2s, box-shadow .2s; }
.cat-item:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(200,22,29,.18); }
.cat-item b { display: block; font-size: 17px; color: var(--navy); }
.cat-item small { color: var(--muted); font-size: 12px; }
.cat-quick { background: var(--red); }
.cat-quick b { color: #fff; }
.cat-quick small { color: rgba(255,255,255,.85); }

/* ===== 区块标题 / Tabs ===== */
.sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.sec-head h2 { font-size: 24px; color: var(--dark); position: relative; padding-left: 14px; }
.sec-head h2::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 5px; background: var(--red); border-radius: 3px; }
.tabs { display: flex; gap: 6px; }
.tabs a { padding: 6px 16px; border-radius: 20px; font-size: 14px; color: var(--muted); border: 1px solid var(--line); background: #fff; }
.tabs a.on, .tabs a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.rec-sec { margin-top: 44px; }
.rec-pane { display: none; }
.rec-pane.on { display: block; }

/* ===== 课程卡片 ===== */
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.course-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.course-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.course-card:hover { box-shadow: 0 8px 24px rgba(23,43,77,.12); transform: translateY(-3px); }
.cc-cover { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--bg); }
.cc-cover img { width: 100%; height: auto; display: block; transition: transform .3s; }
.course-card:hover .cc-cover img { transform: scale(1.05); }
.cc-badge { position: absolute; top: 8px; left: 8px; background: var(--orange); color: #fff; font-style: normal; font-size: 12px; padding: 2px 10px; border-radius: 3px; }
.cc-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.cc-body h4 { font-size: 15px; line-height: 1.45; margin-bottom: 6px; }
.cc-body h4 a { color: var(--dark); }
.cc-body h4 a:hover { color: var(--red); }
.cc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.cc-tags span { font-size: 12px; color: var(--red); background: var(--red-light); padding: 1px 8px; border-radius: 3px; }
.cc-tags.big span { font-size: 13px; padding: 3px 12px; }
.cc-sum { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.cc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.cc-price { color: var(--red); font-size: 19px; font-weight: bold; }
.cc-price small { font-size: 12px; color: var(--muted); font-weight: normal; }
.cc-btns a { display: inline-block; font-size: 13px; padding: 4px 14px; border-radius: 3px; margin-left: 6px; }
.cc-btns a:first-child { background: var(--red); color: #fff; }
.cc-btns a:first-child:hover { background: var(--red-dark); }
.cc-btns a:last-child { border: 1px solid var(--line); color: var(--muted); }
.cc-btns a:last-child:hover { border-color: var(--red); color: var(--red); }

/* ===== 楼层 ===== */
.floor { margin-top: 46px; }
.floor-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--navy); padding-bottom: 10px; margin-bottom: 18px; }
.floor-head h2 { font-size: 22px; color: var(--dark); }
.floor-head h2 b { background: var(--navy); color: #fff; font-size: 15px; padding: 3px 10px; border-radius: 4px; margin-right: 10px; }
.floor-links { display: flex; gap: 14px; font-size: 13px; align-items: center; }
.floor-links a { color: var(--muted); }
.floor-links a:hover { color: var(--red); }
.floor-more { color: var(--red) !important; font-weight: bold; }

/* ===== 资讯区 ===== */
.news-sec { margin-top: 50px; }
.news-wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; }
.news-left { display: flex; flex-direction: column; gap: 14px; }
.news-big { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; transition: box-shadow .2s; }
.news-big:hover { box-shadow: 0 6px 18px rgba(23,43,77,.10); }
.news-big img { width: 200px; height: 120px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.nb-text h4 { font-size: 16px; color: var(--dark); line-height: 1.4; }
.news-big:hover .nb-text h4 { color: var(--red); }
.nb-text p { font-size: 13px; color: var(--muted); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nb-text time { font-size: 12px; color: #b6bcc6; margin-top: 6px; display: block; }
.news-right { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; }
.tabs-sm a { padding: 4px 12px; font-size: 13px; }
.news-pane { display: none; margin-top: 14px; }
.news-pane.on { display: block; }
.news-list li { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.news-list li:last-child { border-bottom: none; }
.news-list a { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.nl-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex-shrink: 0; }
.news-list time { color: #b6bcc6; font-size: 12px; flex-shrink: 0; margin-left: 10px; }
.news-more { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--red); }

/* ===== 服务保障 ===== */
.guarantee { background: var(--navy); margin-top: 54px; padding: 34px 0; }
.g-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; text-align: center; }
.g-item i { font-style: normal; font-size: 26px; color: var(--orange); display: block; }
.g-item b { display: block; color: #fff; font-size: 15px; margin-top: 6px; }
.g-item small { color: rgba(255,255,255,.6); font-size: 12px; }

/* ===== 页脚 ===== */
.footer { background: #10192a; color: rgba(255,255,255,.72); margin-top: 0; }
.footer-main { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; padding: 30px 0 20px; }
.footer-left h3 { color: #fff; font-size: 20px; margin-bottom: 12px; }
.footer-desc { font-size: 13px; line-height: 1.8; margin-bottom: 12px; }
.footer-info { font-size: 13px; padding: 3px 0; }
.footer-info b { color: #fff; }
.footer-right h4 { color: #fff; font-size: 16px; margin-bottom: 14px; position: relative; padding-bottom: 8px; }
.footer-right h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px; background: var(--red); }
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 16px; }
.partner-grid a { color: rgba(255,255,255,.66); font-size: 13px; padding: 2px 0; }
.partner-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 12px 0; text-align: center; font-size: 12px; color: rgba(255,255,255,.45); }
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom p { padding: 2px 0; }

/* ===== 悬浮侧栏 ===== */
.float-bar { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.fb-item { position: relative; width: 62px; background: var(--navy); color: #fff; border-radius: 6px; text-align: center; padding: 10px 4px; font-size: 12px; }
.fb-item i { font-style: normal; display: block; font-size: 19px; margin-bottom: 2px; }
.fb-item:hover { background: var(--red); color: #fff; }
.fb-main { background: var(--red); }
.fb-main:hover { background: var(--red-dark); }
.fb-pop { display: none; position: absolute; right: 70px; top: 50%; transform: translateY(-50%); background: #fff; color: var(--red); border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; white-space: nowrap; font-weight: bold; box-shadow: 0 4px 14px rgba(0,0,0,.12); line-height: 1.6; }
.fb-tel:hover .fb-pop { display: block; }

/* ===== 移动端底部栏 ===== */
.m-bottom-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 95; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -2px 10px rgba(0,0,0,.06); }
.m-bottom-bar a { flex: 1; text-align: center; padding: 12px 0; font-size: 15px; color: var(--navy); }
.m-apply { background: var(--red); color: #fff !important; }

/* ===== 弹窗 ===== */
.modal-mask { display: none; position: fixed; inset: 0; background: rgba(10,14,22,.55); z-index: 200; align-items: center; justify-content: center; padding: 20px; }
.modal-mask.show { display: flex; }
.modal-card { position: relative; background: #fff; border-radius: 10px; width: 430px; max-width: 100%; max-height: 92vh; overflow: auto; padding: 26px 28px; animation: pop .25s; }
@keyframes pop { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-sm { width: 360px; text-align: center; }
.modal-close { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 24px; color: #b6bcc6; cursor: pointer; }
.modal-close:hover { color: var(--red); }
.modal-card h3 { font-size: 20px; color: var(--dark); text-align: center; }
.modal-sub { text-align: center; color: var(--muted); font-size: 13px; margin: 6px 0 16px; }
.fm-row { margin-bottom: 12px; }
.fm-row label { display: block; font-size: 13px; color: var(--dark); margin-bottom: 4px; }
.fm-row b { color: var(--red); }
.fm-row input, .fm-row select, .fm-row textarea { width: 100%; border: 1px solid var(--line); border-radius: 5px; padding: 9px 12px; font-size: 14px; font-family: inherit; background: #fff; }
.fm-row input:focus, .fm-row select:focus, .fm-row textarea:focus { outline: none; border-color: var(--red); }
.fm-tip { text-align: center; color: #b6bcc6; font-size: 12px; margin-top: 10px; }
.lead-ok { text-align: center; padding: 10px 0; }
.ok-icon { width: 62px; height: 62px; line-height: 62px; border-radius: 50%; background: #e8f7ee; color: #1d9e55; font-size: 32px; margin: 0 auto 12px; }
.lead-ok h4 { font-size: 19px; margin-bottom: 8px; }
.lead-ok p { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.lead-ok a { color: var(--red); font-weight: bold; }
.qr-big .qr-placeholder { width: 150px; height: 150px; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 12px; margin: 14px auto; }
.qr-note { font-size: 12px; color: #b6bcc6; }
.wx-id { margin: 10px 0 14px; font-size: 14px; }
.wx-id b { color: var(--red); letter-spacing: 1px; }

/* ===== 内页 Banner / 面包屑 ===== */
.page-banner { background: linear-gradient(120deg, var(--navy), #2b5aa0); color: #fff; padding: 44px 0; text-align: center; }
.page-banner h1 { font-size: 30px; letter-spacing: 2px; }
.page-banner p { margin-top: 8px; opacity: .85; font-size: 14px; }
.crumb { font-size: 13px; color: var(--muted); padding: 14px 0; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--red); }

/* ===== 列表布局 ===== */
.list-wrap { display: grid; grid-template-columns: 250px 1fr; gap: 24px; padding-bottom: 50px; }
.side { display: flex; flex-direction: column; gap: 18px; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.side-box h4 { font-size: 16px; color: var(--dark); border-bottom: 2px solid var(--red); padding-bottom: 8px; margin-bottom: 10px; }
.side-cats a { display: block; padding: 8px 10px; margin-bottom: 6px; border-radius: 4px; font-size: 14px; color: var(--text); }
.side-cats a:last-child { margin-bottom: 0; }
.side-cats a.on, .side-cats a:hover { background: var(--red); color: #fff; }

/* ===== 地区分站 ===== */
.region-hero { background: linear-gradient(90deg, var(--red), #b0121a); color: #fff; border-radius: var(--radius); padding: 26px 28px; margin: 18px 0 24px; }
.region-hero h1 { font-size: 26px; margin: 0 0 12px; color: #fff; }
.region-hero p { font-size: 14px; line-height: 1.9; color: rgba(255,255,255,.92); margin: 0 0 14px; }
.region-hero-meta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-size: 14px; }
.region-hero-meta b { font-size: 18px; }
.region-hero-meta .btn { background: #fff; color: var(--red); font-weight: 600; }
.region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 50px; }
.region-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; transition: box-shadow .2s, transform .2s; }
.region-card:hover { box-shadow: 0 8px 24px rgba(23,43,77,.10); transform: translateY(-3px); }
.region-card b { display: block; font-size: 18px; color: var(--dark); margin-bottom: 6px; }
.region-card b::after { content: ''; display: block; width: 34px; height: 3px; background: var(--red); border-radius: 2px; margin-top: 8px; }
.region-card small { font-size: 13px; color: var(--muted); line-height: 1.6; }
.region-sec-t { font-size: 20px; color: var(--dark); padding: 10px 14px; margin: 0 0 16px; background: #fff; border: 1px solid var(--line); border-radius: 6px 6px 0 0; border-bottom: 2px solid var(--red); }
.region-tips { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-top: 24px; }
.region-tips h3 { font-size: 16px; color: var(--dark); margin-bottom: 10px; border-left: 3px solid var(--red); padding-left: 10px; }
.region-tips p { font-size: 14px; color: var(--muted); line-height: 1.9; margin: 6px 0; }
.side-course-list { display: flex; flex-direction: column; gap: 10px; }
.region-strip { background: #fff; border-bottom: 1px solid var(--line); padding: 9px 0; }
.region-strip .wrap { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.region-strip b { color: var(--dark); font-size: 14px; margin-right: 4px; }
.region-strip a { font-size: 13px; color: var(--muted); padding: 3px 10px; border-radius: 12px; background: var(--bg); }
.region-strip a:hover { color: var(--red); background: var(--red-light); }
.footer-regions { background: #14243b; border-top: 1px solid rgba(255,255,255,.08); padding: 12px 0; }
.footer-regions .wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-regions b { color: #fff; font-size: 13px; margin-right: 4px; }
.footer-regions a { font-size: 13px; color: rgba(255,255,255,.65); }
.footer-regions a:hover { color: #fff; }
.side-subs { display: none; padding-left: 14px; }
.side-subs.show { display: block; }
.side-subs a { font-size: 13px; color: var(--muted); padding: 5px 10px; }
.side-subs a.on, .side-subs a:hover { background: var(--red-light); color: var(--red); }
.side-cta { background: var(--red-light); border-color: #f6d3d5; text-align: center; }
.side-cta p { font-size: 13px; color: var(--muted); margin: 8px 0 12px; }
.side-tel { margin-top: 12px; font-size: 13px; }
.side-tel b { display: inline-block; color: var(--red); font-size: 16px; cursor: pointer; }
.main { min-width: 0; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 28px; font-size: 14px; }
.pager a { border: 1px solid var(--line); padding: 6px 18px; border-radius: 4px; background: #fff; }
.pager a:hover { border-color: var(--red); color: var(--red); }
.pager span { color: var(--muted); font-size: 13px; }
.pager-note, .empty { text-align: center; color: var(--muted); padding: 30px 0; }

/* ===== 课程详情 ===== */
.detail-wrap { padding-bottom: 50px; }
.detail-top { display: grid; grid-template-columns: 460px 1fr; gap: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.d-cover { position: relative; border-radius: 8px; overflow: hidden; }
.d-cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.d-info h1 { font-size: 25px; color: var(--dark); line-height: 1.4; margin-bottom: 10px; }
.d-sum { color: var(--muted); margin-top: 10px; font-size: 14px; }
.d-price { margin-top: 16px; background: var(--red-light); border-radius: 6px; padding: 12px 16px; font-size: 14px; color: var(--dark); }
.d-price b { color: var(--red); font-size: 26px; margin: 0 4px; }
.d-price small { color: var(--muted); font-size: 12px; margin-left: 8px; }
.d-actions { display: flex; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.d-tip { margin-top: 14px; color: var(--muted); font-size: 13px; }
.detail-body { margin-top: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.detail-body h2, .related h2 { font-size: 19px; color: var(--dark); border-left: 4px solid var(--red); padding-left: 10px; margin: 20px 0 14px; }
.detail-body h2:first-child { margin-top: 0; }
.param-table { width: 100%; border-collapse: collapse; }
.param-table th, .param-table td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; font-size: 14px; }
.param-table th { width: 130px; background: #fafbfc; color: var(--navy); font-weight: 600; }
.rich { font-size: 15px; line-height: 2; color: #444; }
.rich p { margin-bottom: 12px; }
.d-video { margin-top: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.detail-cta { margin-top: 26px; background: linear-gradient(120deg, var(--red), #e8574d); border-radius: var(--radius); color: #fff; padding: 26px 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.detail-cta h3 { font-size: 21px; }
.detail-cta p { opacity: .9; font-size: 14px; margin-top: 4px; }
.detail-cta .btn { background: #fff; color: var(--red); }
.detail-cta .btn:hover { background: #ffecec; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.related { margin-top: 30px; }

/* ===== 文章列表 / 详情 ===== */
.article-list { display: flex; flex-direction: column; gap: 16px; }
.article-item { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; transition: box-shadow .2s; }
.article-item:hover { box-shadow: 0 6px 18px rgba(23,43,77,.10); }
.ai-cover { flex-shrink: 0; width: 190px; border-radius: 6px; overflow: hidden; }
.ai-cover img { width: 100%; height: 118px; object-fit: cover; }
.ai-body { flex: 1; min-width: 0; }
.ai-body h3 { font-size: 17px; line-height: 1.4; }
.ai-body h3 a { color: var(--dark); }
.article-item:hover h3 a { color: var(--red); }
.rec-tag { font-style: normal; font-size: 12px; color: #fff; background: var(--orange); border-radius: 3px; padding: 1px 8px; margin-left: 8px; vertical-align: 2px; }
.ai-body p { font-size: 13px; color: var(--muted); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ai-meta { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: #b6bcc6; align-items: center; }
.ai-cat { color: var(--red); background: var(--red-light); padding: 1px 8px; border-radius: 3px; }
.ai-meta time { margin-left: auto; }
.article-detail-wrap { padding-bottom: 50px; }
.article-layout { display: grid; grid-template-columns: 4fr 1fr; gap: 20px; }
.article-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; min-width: 0; }
.article-main h1 { font-size: 24px; color: var(--dark); line-height: 1.5; }
.a-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); padding: 12px 0; margin: 14px 0 18px; }
.a-summary { background: var(--bg); border-left: 3px solid var(--red); padding: 12px 16px; color: #666; font-size: 14px; border-radius: 0 6px 6px 0; margin-bottom: 18px; }
.a-tags { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.a-tags span { background: var(--bg); color: var(--muted); font-size: 13px; padding: 4px 12px; border-radius: 4px; }
.article-side { display: flex; flex-direction: column; gap: 18px; }
.side-articles li { border-bottom: 1px dashed var(--line); padding: 8px 0; }
.side-articles li:last-child { border-bottom: none; }
.side-articles a { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== 联系我们 / 关于 ===== */
.contact-wrap, .about-wrap { padding-bottom: 50px; }
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.c-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; padding: 24px 14px; }
.c-card i { font-style: normal; font-size: 30px; color: var(--red); }
.c-card h4 { margin: 8px 0 6px; font-size: 16px; color: var(--dark); }
.c-card p { font-size: 13px; color: var(--muted); }
.c-card a { color: var(--red); }
.map-block { margin-top: 34px; }
.map-block h2 { font-size: 20px; color: var(--dark); border-left: 4px solid var(--red); padding-left: 10px; }
.map-note { color: var(--muted); font-size: 13px; margin: 8px 0 12px; padding-left: 14px; }
.map-frame { width: 100%; height: 420px; border: 1px solid var(--line); border-radius: var(--radius); }
.about-wrap .rich { margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.about-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 24px; }
.an-item { background: var(--navy); color: #fff; border-radius: var(--radius); text-align: center; padding: 22px 10px; }
.an-item b { font-size: 28px; color: var(--orange); display: block; }
.an-item small { opacity: .8; }

/* ===== 后台 ===== */
.admin-login { min-height: 62vh; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.admin-card { background: #fff; border-radius: 10px; box-shadow: 0 8px 30px rgba(23,43,77,.10); padding: 36px 40px; width: 360px; text-align: center; }
.admin-card h2 { color: var(--dark); font-size: 20px; }
.admin-card > p { color: var(--muted); font-size: 13px; margin: 6px 0 20px; }
.admin-card input { width: 100%; border: 1px solid var(--line); border-radius: 5px; padding: 11px 14px; font-size: 14px; margin-bottom: 16px; }
.admin-card small { display: block; margin-top: 12px; color: #b6bcc6; }
.admin-err { background: var(--red-light); color: var(--red); font-size: 13px; border-radius: 5px; padding: 8px; margin-bottom: 14px; }
.admin-page { padding: 30px 0 60px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.admin-head h2 { font-size: 22px; color: var(--dark); }
.admin-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.admin-stat { color: var(--muted); font-size: 14px; }
.admin-stat b { color: var(--red); font-size: 17px; }
.admin-note { color: var(--muted); font-size: 13px; margin-top: 8px; background: var(--bg); border-radius: 5px; padding: 8px 12px; }
.admin-table-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; min-width: 900px; background: #fff; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--line); padding: 11px 12px; font-size: 13px; text-align: left; white-space: nowrap; }
.admin-table td:nth-child(6) { white-space: normal; min-width: 140px; }
.admin-table thead th { background: #fafbfc; color: var(--navy); }
.admin-table tbody tr:hover { background: #fafcff; }
.pushed { color: #1d9e55; background: #e8f7ee; padding: 1px 8px; border-radius: 3px; font-size: 12px; }

/* ===== 404 ===== */
.empty-page { text-align: center; padding: 90px 20px; }
.empty-page h2 { font-size: 70px; color: var(--red); }
.empty-page p { color: var(--muted); margin: 10px 0 24px; }

/* ===== 响应式 ===== */
@media (max-width: 1240px) {
  .course-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-strip { grid-template-columns: repeat(3, 1fr); }
  .g-grid { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
}
@media (max-width: 992px) {
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 10px 4%; border-bottom: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0,0,0,.08); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; border-bottom: 1px solid var(--bg); }
  .nav-toggle { display: block; }
  .header-in { height: 68px; }
  .logo-text strong { font-size: 17px; }
  .logo-text small { display: none; }
  .hotline-num { font-size: 16px; }
  .banner { height: 300px; }
  .b-text h2 { font-size: 26px; }
  .b-text p { font-size: 14px; }
  .cat-strip { grid-template-columns: repeat(2, 1fr); margin-top: -30px; }
  .course-grid, .course-grid.grid-3 { grid-template-columns: repeat(2, 1fr); }
  .news-wrap { grid-template-columns: 1fr; }
  .list-wrap { grid-template-columns: 1fr; }
  .side-cats { display: flex; flex-wrap: wrap; gap: 6px; }
  .side-cats a { margin-bottom: 0; padding: 6px 10px; font-size: 13px; }
  .side-cta { display: none; }
  .detail-top { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .contact-cards, .about-nums { grid-template-columns: repeat(2, 1fr); }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .float-bar { display: none; }
  .m-bottom-bar { display: flex; }
  body { padding-bottom: 52px; }
  .footer-main { grid-template-columns: 1fr; gap: 20px; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .topbar-links a { margin-left: 8px; }
  .topbar-in span:first-child { display: none; }
  .banner { height: 240px; }
  .b-text h2 { font-size: 21px; }
  .b-btns .btn { padding: 8px 16px; font-size: 13px; }
  .cat-strip { grid-template-columns: 1fr 1fr; gap: 10px; }
  .course-grid, .course-grid.grid-3 { grid-template-columns: 1fr; }
  .floor-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .news-big { flex-direction: column; }
  .news-big img { width: 100%; height: 160px; }
  .article-item { flex-direction: column; }
  .ai-cover { width: 100%; }
  .ai-cover img { height: 180px; }
  .detail-cta { text-align: center; justify-content: center; }
  .footer-main { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; }
  .modal-card { padding: 22px 18px; }
}

/* ===== 课程详情页V2 ===== */
.d-count { color: var(--muted); font-size: 13px; margin: 6px 0 8px; }
.d-count b { color: var(--orange); font-size: 15px; }
.d-price-note { display: block; margin: 4px 0 0; }
.d-trust { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.d-trust span { background: #e8f7ee; color: #1d9e55; font-size: 12px; padding: 3px 10px; border-radius: 3px; }
.cert-tabs { margin-top: 14px; }
.cert-pane { display: none; background: var(--bg); border-radius: 6px; padding: 8px 12px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.cert-pane.on { display: block; }
.cert-pane p { margin: 0; }
.d-tel-row { margin-top: 12px; font-size: 14px; color: var(--muted); }
.d-tel-row b { color: var(--red); font-size: 20px; letter-spacing: .5px; }
.course-article { margin-top: 0; }
/* 手机宽度下隐藏底部留言框（手机版已有独立报名表单，避免重复） */
@media (max-width: 768px) {
  .bottom-form-mod { display: none; }
}
.rich h2 { font-size: 18px; color: var(--dark); margin: 22px 0 10px; border-left: 4px solid var(--red); padding-left: 10px; }
.pn-links { display: flex; justify-content: space-between; gap: 14px; border-top: 1px dashed var(--line); margin-top: 26px; padding-top: 14px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.pn-links a { color: var(--muted); }
.pn-links a:hover { color: var(--red); }

/* ===== 右侧公共模块（80:20 右栏） ===== */
.sm-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 16px; }
.sm-title { font-size: 15px; color: var(--dark); border-left: 4px solid var(--red); padding-left: 8px; margin-bottom: 12px; }
.sm-form input, .sm-form select { width: 100%; border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; font-size: 13px; margin-bottom: 8px; background: #fff; }
.sm-form input:focus, .sm-form select:focus { outline: none; border-color: var(--red); }
.qr-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: center; }
.qr-two .qr-placeholder { width: 100%; height: auto; aspect-ratio: 1; margin: 0 0 4px; }
.qr-two small { font-size: 12px; color: var(--muted); }
.sm-tel { margin-top: 10px; text-align: center; font-size: 13px; color: var(--muted); }
.sm-tel b { color: var(--red); font-size: 16px; }
.side-courses { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.sc-item { display: block; text-align: center; }
.sc-item img { width: 92%; max-width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; margin: 0 auto; }
.sc-item span { display: block; font-size: 13px; margin-top: 4px; color: var(--text); }
.sc-item:hover span { color: var(--red); }
.rec-list li { border-bottom: 1px dashed var(--line); }
.rec-list li:last-child { border-bottom: none; }
.rec-list a { display: flex; gap: 6px; align-items: center; padding: 7px 0; font-size: 13px; min-width: 0; }
.rec-list a span, .rec-list a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-list i { font-style: normal; flex-shrink: 0; color: var(--red); border: 1px solid var(--red); font-size: 11px; line-height: 1.4; padding: 0 3px; border-radius: 2px; }

/* ===== 题库页 ===== */
.tiku-wrap { display: grid; grid-template-columns: 4fr 1fr; gap: 20px; padding-bottom: 50px; }
.tiku-main { min-width: 0; }
.tiku-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tiku-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.tiku-card h3 { color: var(--dark); font-size: 17px; }
.tiku-card p { color: var(--muted); font-size: 13px; margin: 8px 0 14px; }
.tk-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.tk-btns .btn { padding: 7px 16px; font-size: 13px; }
@media (max-width: 992px) {
  .article-layout, .tiku-wrap { grid-template-columns: 1fr; }
  .tiku-grid { grid-template-columns: 1fr; }
}

/* ===== 文章页V2 ===== */
.a-consult { margin-left: auto; color: var(--red); font-weight: bold; }
.a-consult:hover { color: var(--red-dark); }
.region-tags { align-items: center; }
.region-tags b { font-size: 13px; color: var(--dark); margin-right: 4px; }
.region-tags span { background: #eef4fb; color: #2b5aa0; }
.a-tips { margin-top: 20px; background: #fff8ec; border: 1px solid #f3e2c0; border-radius: 6px; padding: 14px 18px; }
.a-tips h4 { color: #b26a00; font-size: 15px; margin-bottom: 8px; }
.a-tips p { font-size: 13px; color: #7a5a20; margin-bottom: 4px; }
.a-bottom-btns { display: flex; gap: 14px; justify-content: center; margin: 26px 0 6px; }
.bottom-form-mod { margin-top: 26px; background: #eef4fb; border-radius: 8px; padding: 24px; }
.bottom-form-mod h3 { text-align: center; color: #2b5aa0; font-size: 20px; margin-bottom: 18px; }
.bottom-form-mod h3 b { color: var(--red); margin-left: 6px; }
.bf-wrap { display: grid; grid-template-columns: 1fr 240px; gap: 24px; align-items: start; }
.bf-form .bf-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.bf-form label { flex-shrink: 0; width: 86px; text-align: right; font-size: 13px; color: var(--dark); padding-top: 8px; }
.bf-form label b { color: var(--red); }
.bf-form input, .bf-form select, .bf-form textarea { flex: 1; border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; font-size: 13px; background: #fff; }
.bf-form input:focus, .bf-form select:focus, .bf-form textarea:focus { outline: none; border-color: #2b5aa0; }
.bf-foot { display: flex; align-items: center; gap: 12px; padding-left: 96px; }
.bf-foot small { color: var(--muted); font-size: 12px; }
.bf-qr { text-align: center; }
.bf-qr .qr-placeholder { width: 150px; height: 150px; margin: 0 auto 8px; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 12px; }
.bf-qr p { color: var(--red); font-size: 12px; }
@media (max-width: 768px) {
  .bf-wrap { grid-template-columns: 1fr; }
  .bf-form label { width: 76px; }
  .bf-foot { padding-left: 0; flex-wrap: wrap; }
  .a-consult { margin-left: 0; width: 100%; }
}

/* 课程详情页紧凑头部 */
.course-header { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; margin-bottom: 20px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); min-height: 220px; }
.ch-cover { width: 300px; height: auto; max-height: 420px; object-fit: contain; border-radius: 8px; background: #f6f8fb; }
.ch-title-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.ch-title-row h1 { font-size: 24px; color: var(--dark); margin: 0; }
.ch-price { color: var(--red); font-size: 24px; font-weight: bold; white-space: nowrap; flex-shrink: 0; margin-left: auto; }
.ch-price small { font-size: 13px; color: var(--muted); font-weight: normal; }
.ch-trust { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.ch-trust span { background: #e8f7ee; color: #1d9e55; font-size: 12px; padding: 2px 8px; border-radius: 3px; flex-shrink: 0; }
.ch-tel { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.ch-tel b { color: var(--red); font-size: 14px; }
.detail-heading { font-size: 20px; color: var(--dark); padding: 10px 14px; margin: 0 0 14px; background: #fff; border: 1px solid var(--line); border-radius: 6px 6px 0 0; border-bottom: 2px solid var(--red); font-weight: bold; }
@media (max-width: 768px) {
  .course-header { grid-template-columns: 1fr; min-height: auto; }
  .ch-cover { width: 100%; height: auto; }
  .ch-trust { flex-wrap: wrap; }
}

/* ===== 文章详情页新增 ===== */
.ad-banner { margin: 16px 0; }
.ad-banner img { width: 100%; max-height: 50px; object-fit: cover; border-radius: 4px; }
.ad-banner-page { margin: 16px 0; }
.ad-banner-page img { width: 100%; max-height: 160px; object-fit: cover; border-radius: var(--radius); }
.content-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 16px 0; }
.content-box .a-summary { background: #f8f9fa; border-left: 3px solid var(--red); padding: 12px 16px; margin-bottom: 16px; font-size: 14px; color: var(--muted); }
.related-section { margin-top: 30px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.related-title { font-size: 18px; color: var(--dark); border-left: 4px solid var(--red); padding-left: 10px; margin-bottom: 14px; margin-top: 0; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.related-item { display: flex; align-items: center; gap: 6px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13px; color: var(--text); }
.related-item:hover { color: var(--red); }
.ri-icon { flex-shrink: 0; font-size: 16px; }
.ri-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== 资讯列表页新增 ===== */
.news-banner { margin-bottom: 0; }
.news-banner img { width: 100%; max-height: 200px; object-fit: cover; border-radius: var(--radius); }
.news-announce { background: #fff8ec; border: 1px solid #f3e2c0; border-radius: 6px; padding: 10px 16px; margin: 14px 0; font-size: 13px; color: #7a5a20; }
.news-announce b { color: #b26a00; }
.side-cats a { font-size: 15px; font-weight: 600; padding: 8px 12px; }

/* ===== 后台内容管理 ===== */
.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.admin-nav a { padding: 7px 18px; border-radius: 4px; font-size: 14px; color: var(--muted); }
.admin-nav a.on, .admin-nav a:hover { background: var(--red); color: #fff; }
.admin-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.ac-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; padding: 26px 10px; }
.ac-card b { display: block; font-size: 30px; color: var(--red); }
.ac-card span { color: var(--muted); font-size: 13px; }
.admin-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; max-width: 760px; }
.admin-form label { display: block; margin-bottom: 12px; font-size: 13px; color: var(--dark); }
.admin-form input[type=text], .admin-form input[type=tel], .admin-form input[type=password], .admin-form select, .admin-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; font-size: 13px; margin-top: 4px; background: #fff; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus { outline: none; border-color: var(--red); }
.admin-form small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.admin-form .chk { display: flex; align-items: center; gap: 6px; }
.admin-form .chk input { width: auto; margin-top: 0; }
.seo-box { background: var(--bg); border-radius: 6px; padding: 14px 16px; margin: 14px 0; }
.seo-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.seo-head b { color: var(--dark); font-size: 14px; }

/* ===== 移动端悬浮电话按钮 & 头部自适应 ===== */
.m-call { display: none; position: fixed; right: 14px; bottom: 66px; z-index: 100; width: 54px; height: 54px; border-radius: 50%; background: var(--red); color: #fff; font-size: 26px; font-style: normal; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(200, 22, 29, .45); text-decoration: none; }
.m-call:active { transform: scale(.94); }
@media (max-width: 992px) { .m-call { display: flex; } }
@media (max-width: 620px) {
  .header-in { gap: 10px; }
  .logo-badge { font-size: 16px; padding: 8px 10px; }
  .logo-text strong { font-size: 15px; letter-spacing: 0; }
  .header-right { gap: 8px; }
  .hotline-label { display: none; }
  .hotline-num { font-size: 15px; white-space: nowrap; }
  .m-bottom-bar a { padding: 10px 0; font-size: 14px; }
}
