/* ============================================================
   首页样式
   ============================================================ */

/* ---------- Hero ---------- */
.hero { background: #fff; padding: 18px 0 24px; }
.hero-wrap { display: grid; grid-template-columns: 262px 1fr 300px; gap: 16px; }

/* 分类侧栏 */
.cat-side { background: var(--brand); border-radius: var(--r); overflow: hidden; position: relative; }
.cat-side > h3 {
  font-size: 15px; font-weight: 700; color: #fff; padding: 13px 16px; letter-spacing: 1px;
  display: flex; align-items: center; gap: 8px; background: #001A42;
}
.cat-side > h3 .ico { font-size: 15px; }
.cat-list { padding: 4px 0 8px; }
.cat-item { position: relative; }
.cat-item > a {
  display: flex; align-items: center; justify-content: space-between; padding: 9px 16px;
  color: rgba(255, 255, 255, .88); font-size: 14px; transition: all .18s;
}
.cat-item:hover > a { background: rgba(255, 255, 255, .12); color: #fff; padding-left: 20px; }
.cat-item > a .ic { font-size: 15px; margin-right: 8px; }
.cat-item > a .nm { flex: 1; }
.cat-item > a .ar { font-size: 11px; opacity: .6; }
.cat-panel {
  position: absolute; left: 100%; top: 0; width: 520px; min-height: 100%; background: #fff;
  box-shadow: var(--shadow-3); border-radius: 0 var(--r) var(--r) 0; padding: 16px 18px; display: none; z-index: 30;
}
.cat-item:hover .cat-panel { display: block; animation: fadeIn .18s; }
.cat-panel h4 { font-size: 13px; color: var(--brand); font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.cat-panel h4 .bar { width: 3px; height: 12px; background: var(--accent); border-radius: 2px; }
.cat-panel .pv { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.cat-panel .pv a { font-size: 13px; color: var(--ink-2); padding: 3px 10px; background: var(--brand-025); border-radius: 14px; transition: all .18s; }
.cat-panel .pv a:hover { background: var(--brand-500); color: #fff; }
.cat-panel .pv a.hot { background: var(--danger-050); color: var(--danger); font-weight: 600; }
.cat-panel .pv a.hot:hover { background: var(--danger); color: #fff; }
.cat-side .all-pro { display: block; text-align: center; padding: 11px; font-size: 13px; color: rgba(255,255,255,.75); border-top: 1px solid rgba(255,255,255,.14); }
.cat-side .all-pro:hover { color: #fff; background: rgba(255,255,255,.1); }

/* Banner */
.banner { position: relative; height: 356px; border-radius: var(--r); overflow: hidden; }
.ban-item { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; display: flex; align-items: center; padding: 0 46px; color: #fff; }
.ban-item.on { opacity: 1; z-index: 2; }
.ban-item .txt { position: relative; z-index: 3; max-width: 60%; }
.ban-item .tg { display: inline-block; padding: 3px 12px; border: 1px solid rgba(255,255,255,.5); border-radius: 20px; font-size: 12px; margin-bottom: 16px; }
.ban-item h2 { font-size: 34px; font-weight: 800; line-height: 1.3; letter-spacing: 1px; margin-bottom: 12px; text-shadow: 0 2px 10px rgba(0,0,0,.2); }
.ban-item p { font-size: 15px; opacity: .9; margin-bottom: 24px; line-height: 1.8; }
.ban-item .deco { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); font-size: 190px; opacity: .16; z-index: 1; }
.ban-dots { position: absolute; left: 46px; bottom: 26px; z-index: 5; display: flex; gap: 8px; }
.ban-dots i { width: 22px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.4); cursor: pointer; transition: all .25s; }
.ban-dots i.on { background: #fff; width: 34px; }
.ban-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,.22); color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 5; opacity: 0; transition: all .25s; font-size: 18px;
}
.banner:hover .ban-arrow { opacity: 1; }
.ban-arrow.l { left: 12px; } .ban-arrow.r { right: 12px; }
.ban-arrow:hover { background: rgba(0,0,0,.45); }

/* Hero 右卡 */
.hero-side { display: flex; flex-direction: column; gap: 12px; }
.hs-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; flex: 1; }
.hs-user { text-align: center; padding: 20px 16px; }
.hs-user .tip { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.hs-user .btn { width: 100%; }
.hs-user .lnk { margin-top: 12px; font-size: 12px; color: var(--ink-3); display: flex; justify-content: space-between; }
.hs-user .lnk a:hover { color: var(--accent); }
.hs-title { font-size: 14px; font-weight: 700; color: var(--brand); display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.hs-title .ico { color: var(--accent); }
.hs-list li { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 13px; color: var(--ink-2); border-bottom: 1px dashed var(--line-2); }
.hs-list li:last-child { border: 0; }
.hs-list .d { color: var(--accent); font-weight: 700; font-size: 12px; flex: none; }
.hs-list .n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 数据条 ---------- */
.stat-bar { background: #fff; padding: 22px 0; }
.stat-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { text-align: center; position: relative; }
.stat-item + .stat-item::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.stat-item .v { font-size: 30px; font-weight: 800; color: var(--brand); line-height: 1.2; letter-spacing: -.5px; }
.stat-item .v em { font-size: 15px; font-weight: 600; color: var(--accent); margin-left: 2px; }
.stat-item .l { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* ---------- 快捷入口 ---------- */
.quick-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.quick-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 10px; text-align: center;
  transition: all .22s; cursor: pointer;
}
.quick-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: #CFDAEE; }
.quick-item .qi {
  width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 12px; background: var(--brand-050); color: var(--brand-500);
  display: flex; align-items: center; justify-content: center; font-size: 24px; transition: all .22s;
}
.quick-item:hover .qi { background: var(--brand-500); color: #fff; transform: rotate(-6deg) scale(1.06); }
.quick-item b { display: block; font-size: 14px; color: var(--ink); font-weight: 700; }
.quick-item span { font-size: 12px; color: var(--ink-4); }

/* ---------- 考试项目 ---------- */
.pro-tabs { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.pro-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pro-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; position: relative;
  transition: all .22s; display: block; overflow: hidden;
}
.pro-card::before {
  content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--brand-500);
  transform: scaleX(0); transition: transform .25s; transform-origin: left;
}
.pro-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: #CFDAEE; }
.pro-card:hover::before { transform: scaleX(1); }
.pro-card .hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.pro-card h3 { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.pro-card:hover h3 { color: var(--brand-500); }
.pro-card .badge {
  flex: none; font-size: 11px; padding: 1px 6px; border-radius: 3px; font-weight: 600;
  background: var(--danger-050); color: var(--danger);
}
.pro-card .meta { font-size: 12px; color: var(--ink-3); display: flex; flex-direction: column; gap: 5px; margin-bottom: 11px; }
.pro-card .meta span { display: flex; align-items: center; gap: 5px; }
.pro-card .meta .ico { color: var(--ink-4); font-size: 13px; }
.pro-card .meta b { color: var(--accent); font-weight: 600; }
.pro-card .tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 12px; min-height: 20px; }
.pro-card .ft { display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed var(--line-2); padding-top: 11px; }
.pro-card .ft .num { font-size: 12px; color: var(--ink-3); }
.pro-card .ft .num b { color: var(--brand-500); }
.pro-card .ft .go { font-size: 13px; color: var(--accent); display: flex; align-items: center; gap: 3px; font-weight: 600; }
.pro-card .ft .go .ico { font-size: 14px; transition: transform .2s; }
.pro-card:hover .ft .go .ico { transform: translateX(3px); }

/* 全部分类区块 */
.cat-block { background: #fff; border-radius: var(--r); border: 1px solid var(--line); padding: 22px; margin-bottom: 14px; }
.cat-block .cb-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.cat-block .cb-ic {
  width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 21px; color: #fff; flex: none;
}
.cat-block .cb-head h3 { font-size: 17px; font-weight: 800; color: var(--ink); }
.cat-block .cb-head span { font-size: 12px; color: var(--ink-4); }
.cat-block .cb-head .more { margin-left: auto; font-size: 13px; color: var(--ink-3); }
.cat-block .cb-head .more:hover { color: var(--accent); }
.cat-block .cb-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cat-block .cb-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r-s); font-size: 14px; color: var(--ink-2); transition: all .18s; background: #FCFDFF; }
.cat-block .cb-item:hover { border-color: var(--brand-500); color: var(--brand-500); background: var(--brand-025); transform: translateY(-2px); }
.cat-block .cb-item .ico { font-size: 12px; opacity: 0; transition: all .18s; }
.cat-block .cb-item:hover .ico { opacity: 1; }

/* ---------- 课程 ---------- */
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.course-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: all .22s; display: block; position: relative; }
.course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.cc-cover { height: 132px; position: relative; display: flex; align-items: center; justify-content: center; color: #fff; }
.cc-cover .cn { font-size: 19px; font-weight: 800; letter-spacing: 1px; text-shadow: 0 2px 8px rgba(0,0,0,.25); text-align: center; padding: 0 16px; }
.cc-cover .lv { position: absolute; left: 10px; top: 10px; background: rgba(0,0,0,.35); padding: 2px 8px; border-radius: 3px; font-size: 11px; }
.cc-cover .rec { position: absolute; right: 0; top: 12px; background: var(--accent); color: #fff; font-size: 11px; padding: 3px 10px 3px 8px; border-radius: 12px 0 0 12px; font-weight: 600; }
.cc-body { padding: 13px 14px 15px; }
.cc-body h4 { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 8px; height: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-body .info { font-size: 12px; color: var(--ink-3); display: flex; gap: 12px; margin-bottom: 10px; }
.cc-body .info span { display: flex; align-items: center; gap: 3px; }
.cc-body .price { display: flex; align-items: baseline; gap: 8px; }
.cc-body .price .now { font-size: 20px; font-weight: 800; color: var(--accent); }
.cc-body .price .now i { font-size: 13px; }
.cc-body .price .old { font-size: 12px; color: var(--ink-4); text-decoration: line-through; }
.cc-body .price .sold { margin-left: auto; font-size: 12px; color: var(--ink-4); }

/* ---------- 名师 ---------- */
.tea-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tea-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 16px; text-align: center; transition: all .22s; }
.tea-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: #CFDAEE; }
.tea-card .av { width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 28px; font-weight: 700; box-shadow: 0 6px 16px rgba(0,36,90,.18); }
.tea-card h4 { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.tea-card .tt { font-size: 12px; color: var(--brand-500); margin-bottom: 8px; }
.tea-card .ds { font-size: 12px; color: var(--ink-3); line-height: 1.7; height: 40px; overflow: hidden; margin-bottom: 10px; }
.tea-card .st { display: flex; justify-content: center; gap: 14px; font-size: 12px; color: var(--ink-4); border-top: 1px dashed var(--line-2); padding-top: 10px; }
.tea-card .st b { color: var(--accent); }

/* ---------- 资讯 ---------- */
.news-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
.news-list { min-width: 0; background: #fff; border-radius: var(--r); border: 1px solid var(--line); padding: 6px 20px; }
.news-item { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px dashed var(--line-2); }
.news-item:last-child { border: 0; }
.news-item .nt { flex: 1; min-width: 0; }
.news-item h4 { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-item:hover h4 { color: var(--brand-500); }
.news-item .nm { font-size: 12px; color: var(--ink-4); display: flex; align-items: center; gap: 12px; }
.news-item .nm .ico { font-size: 12px; }
.news-item .nb { flex: none; text-align: right; }
.news-item .nb .go { font-size: 13px; color: var(--ink-4); }
.news-item:hover .nb .go { color: var(--accent); }

.news-side { display: flex; flex-direction: column; gap: 14px; }
.ns-box { background: #fff; border-radius: var(--r); border: 1px solid var(--line); padding: 16px 18px; }
.ns-box h4 { font-size: 15px; font-weight: 700; color: var(--brand); margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }
.ns-box h4 .ico { color: var(--accent); }
.rank-list li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 13px; color: var(--ink-2); }
.rank-list .no { width: 18px; height: 18px; border-radius: 3px; background: var(--line-2); color: var(--ink-3); font-size: 11px; display: flex; align-items: center; justify-content: center; flex: none; margin-top: 2px; font-weight: 700; }
.rank-list li:nth-child(1) .no { background: var(--danger); color: #fff; }
.rank-list li:nth-child(2) .no { background: var(--accent); color: #fff; }
.rank-list li:nth-child(3) .no { background: var(--brand-400); color: #fff; }
.rank-list .tx { flex: 1; line-height: 1.55; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rank-list li:hover .tx { color: var(--brand-500); }

/* ---------- 流程 ---------- */
.step-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.step-item { text-align: center; position: relative; }
.step-item + .step-item::before {
  content: ''; position: absolute; left: -8%; top: 34px; width: 16%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}
.step-item .sn {
  width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 50%; background: #fff; border: 2px solid var(--brand-050);
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: var(--brand-500);
  box-shadow: var(--shadow-1); transition: all .22s;
}
.step-item:hover .sn { background: var(--brand-500); color: #fff; border-color: var(--brand-500); transform: scale(1.06); }
.step-item h4 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.step-item p { font-size: 13px; color: var(--ink-3); line-height: 1.7; }

/* ---------- 学员案例 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.case-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 18px; transition: all .22s; position: relative; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.case-card .qm { position: absolute; right: 16px; top: 10px; font-size: 42px; color: var(--brand-050); font-family: Georgia, serif; line-height: 1; }
.case-card .ch { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.case-card .ch .av { width: 42px; height: 42px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; flex: none; }
.case-card .ch b { font-size: 14px; color: var(--ink); display: block; }
.case-card .ch span { font-size: 12px; color: var(--ink-4); }
.case-card .ct { font-size: 13px; color: var(--ink-2); line-height: 1.8; min-height: 70px; }
.case-card .cf { display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed var(--line-2); padding-top: 11px; font-size: 12px; color: var(--ink-4); }
.case-card .cf .sc { color: var(--accent); font-weight: 700; font-size: 15px; }

/* ---------- CTA ---------- */
.cta-bar { background: linear-gradient(120deg, var(--brand) 0%, var(--brand-600) 50%, var(--brand-500) 100%); border-radius: var(--r-l); padding: 34px 40px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; overflow: hidden; }
.cta-bar::after { content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.06); }
.cta-bar .cl h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; letter-spacing: .5px; }
.cta-bar .cl p { font-size: 14px; opacity: .85; }
.cta-bar .cr { display: flex; align-items: center; gap: 14px; position: relative; z-index: 2; }
.cta-bar .tel-n { font-size: 26px; font-weight: 800; color: #FFC46B; letter-spacing: 1px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .hero-wrap { grid-template-columns: 240px 1fr; }
  .hero-side { display: none; }
  .cat-panel { width: 420px; }
}
@media (max-width: 992px) {
  .hero-wrap { grid-template-columns: 1fr; }
  .cat-side { display: none; }
  .banner { height: 300px; }
  .ban-item h2 { font-size: 26px; }
  .ban-item .deco { font-size: 130px; }
  .pro-grid, .course-grid, .tea-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-block .cb-list { grid-template-columns: repeat(2, 1fr); }
  .quick-row { grid-template-columns: repeat(3, 1fr); }
  .news-wrap { grid-template-columns: minmax(0, 1fr); }
  .news-side { min-width: 0; }
  .step-row { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .step-item + .step-item::before { display: none; }
  .stat-inner { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-item:nth-child(3)::before, .stat-item:nth-child(4)::before { display: none; }
  .cta-bar { flex-direction: column; text-align: center; padding: 26px 20px; }
}
@media (max-width: 768px) {
  .banner { height: 210px; }
  .ban-item { padding: 0 20px; }
  .ban-item h2 { font-size: 19px; margin-bottom: 8px; }
  .ban-item p { font-size: 12px; margin-bottom: 14px; }
  .ban-item .tg { margin-bottom: 8px; }
  .ban-item .txt { max-width: 100%; }
  .ban-item .deco { display: none; }
  .ban-dots { left: 20px; bottom: 14px; }
  .pro-grid, .course-grid, .tea-grid, .case-grid { grid-template-columns: 1fr; gap: 12px; }
  .cat-block { padding: 16px; }
  .cat-block .cb-list { grid-template-columns: 1fr; }
  .quick-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .quick-item { padding: 14px 6px; }
  .quick-item .qi { width: 38px; height: 38px; font-size: 20px; }
  .quick-item b { font-size: 13px; }
  .quick-item span { display: none; }
  .stat-item .v { font-size: 24px; }
}
