/* ============================================================
   考试项目二级页样式
   ============================================================ */

/* ---------- 面包屑区 ---------- */
.p-crumb { background: #fff; border-bottom: 1px solid var(--line-2); }

/* ---------- 项目 Hero ---------- */
.p-hero { background: linear-gradient(120deg, #00245A 0%, #0A3E8C 60%, #1257B5 100%); color: #fff; position: relative; overflow: hidden; }
.p-hero::after { content: ''; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.05); }
.p-hero .container { position: relative; z-index: 2; padding-top: 28px; padding-bottom: 28px; display: grid; grid-template-columns: 1fr 300px; gap: 30px; align-items: start; }
.p-hero .tt { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.p-hero h1 { font-size: 30px; font-weight: 800; letter-spacing: 1px; line-height: 1.2; }
.p-hero .lv { background: rgba(255,255,255,.16); padding: 3px 10px; border-radius: 4px; font-size: 12px; border: 1px solid rgba(255,255,255,.25); }
.p-hero .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.p-hero .tags span { background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2); padding: 2px 10px; border-radius: 20px; font-size: 12px; }
.p-hero .desc { font-size: 14px; opacity: .88; line-height: 1.8; max-width: 620px; margin-bottom: 18px; }
.p-hero .metas { display: grid; grid-template-columns: repeat(4, auto); gap: 0 30px; }
.p-hero .meta-item { }
.p-hero .meta-item .k { font-size: 12px; opacity: .62; margin-bottom: 3px; }
.p-hero .meta-item .v { font-size: 15px; font-weight: 700; }
.p-hero .meta-item .v.hl { color: #FFC46B; }

/* Hero 右侧报名卡 */
.p-sign { background: #fff; border-radius: var(--r-l); padding: 20px; color: var(--ink); box-shadow: var(--shadow-3); }
.p-sign .sc-t { font-size: 15px; font-weight: 700; color: var(--brand); margin-bottom: 4px; }
.p-sign .sc-s { font-size: 12px; color: var(--ink-3); margin-bottom: 14px; }
.p-sign .sc-cd { background: var(--accent-050); border: 1px dashed var(--accent); border-radius: var(--r); padding: 12px; text-align: center; margin-bottom: 14px; }
.p-sign .sc-cd .n { font-size: 30px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.p-sign .sc-cd .t { font-size: 12px; color: var(--ink-3); }
.p-sign .sc-p { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.p-sign .sc-p .now { font-size: 26px; font-weight: 800; color: var(--accent); }
.p-sign .sc-p .now i { font-size: 15px; }
.p-sign .sc-p .old { font-size: 13px; color: var(--ink-4); text-decoration: line-through; }
.p-sign .sc-p .tip { font-size: 12px; color: var(--danger); background: var(--danger-050); padding: 1px 6px; border-radius: 3px; }
.p-sign .sc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.p-sign .sc-sv { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--ink-3); border-top: 1px dashed var(--line); padding-top: 12px; }
.p-sign .sc-sv span { display: flex; align-items: center; gap: 4px; }
.p-sign .sc-sv .ico { color: var(--success); font-size: 13px; }

/* ---------- 主体布局 ---------- */
.p-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; padding: 24px 0 40px; }
.p-content, .p-side { min-width: 0; }
.p-side { position: sticky; top: 192px; display: flex; flex-direction: column; gap: 14px; }

/* 锚点 Tab */
.p-nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: calc(var(--hd) + var(--hd-nav)); z-index: 30; }
.p-nav .container { display: flex; align-items: center; gap: 4px; overflow-x: auto; }
.p-nav a { padding: 14px 20px; font-size: 15px; color: var(--ink-2); position: relative; white-space: nowrap; font-weight: 500; }
.p-nav a:hover { color: var(--brand-500); }
.p-nav a.on { color: var(--brand-500); font-weight: 700; }
.p-nav a.on::after { content: ''; position: absolute; left: 20px; right: 20px; bottom: 0; height: 3px; background: var(--brand-500); border-radius: 2px; }
.p-nav .pn-btn { margin-left: auto; display: flex; gap: 8px; align-items: center; padding-left: 16px; }

/* 内容区块 */
.p-box { background: #fff; border-radius: var(--r); border: 1px solid var(--line); padding: 24px; margin-bottom: 20px; }
.p-box > h3 { font-size: 19px; font-weight: 800; color: var(--brand); display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.p-box > h3::before { content: ''; width: 4px; height: 16px; background: var(--accent); border-radius: 2px; }
.p-box > h3 .en { font-size: 12px; color: var(--ink-4); font-weight: 400; letter-spacing: 1px; text-transform: uppercase; }
.p-box > h3 .more { margin-left: auto; font-size: 13px; font-weight: 400; color: var(--ink-3); }
.p-box > h3 .more:hover { color: var(--accent); }

/* 考试科目表 */
.subj-table { border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.subj-table table th { background: var(--brand-025); color: var(--brand); font-weight: 700; font-size: 13px; padding: 11px 14px; text-align: left; }
.subj-table table td { padding: 11px 14px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); }
.subj-table table tr:hover td { background: #FAFCFF; }
.subj-table .sn { width: 62px; color: var(--ink-4); }

/* 报考条件 */
.cond-box { background: var(--brand-025); border-left: 3px solid var(--brand-500); border-radius: 0 var(--r) var(--r) 0; padding: 14px 18px; margin-top: 16px; }
.cond-box h4 { font-size: 14px; font-weight: 700; color: var(--brand); margin-bottom: 6px; }
.cond-box p { font-size: 13px; color: var(--ink-2); line-height: 1.9; }

/* 时间轴 */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 26px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 10%; right: 10%; top: 15px; height: 2px; background: var(--line); }
.tl-item { text-align: center; position: relative; z-index: 2; }
.tl-item .dot { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 3px solid var(--line); margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--ink-4); }
.tl-item.done .dot { border-color: var(--success); background: var(--success); color: #fff; }
.tl-item.now .dot { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 0 0 5px rgba(255,122,0,.16); }
.tl-item h5 { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.tl-item p { font-size: 12px; color: var(--ink-3); }
.tl-item.now h5 { color: var(--accent); }

/* 资讯列表 */
.p-news-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.p-news-tabs li { padding: 6px 16px; border-radius: 20px; font-size: 13px; background: var(--brand-025); color: var(--ink-2); cursor: pointer; transition: all .18s; }
.p-news-tabs li:hover { background: #E0E9F7; }
.p-news-tabs li.on { background: var(--brand-500); color: #fff; font-weight: 600; }
.p-news-list li { border-bottom: 1px dashed var(--line-2); }
.p-news-list li:last-child { border: 0; }
.p-news-list a { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.p-news-list .nt { flex: 1; min-width: 0; }
.p-news-list h4 { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-news-list a:hover h4 { color: var(--brand-500); }
.p-news-list .nm { font-size: 12px; color: var(--ink-4); display: flex; gap: 14px; }
.p-news-list .nb { flex: none; font-size: 12px; color: var(--ink-4); }

/* 师资 */
.p-tea { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tea-lg { border: 1px solid var(--line-2); border-radius: var(--r); padding: 18px; display: flex; gap: 16px; transition: all .22s; background: #FCFDFF; }
.tea-lg:hover { border-color: #CFDAEE; box-shadow: var(--shadow-1); transform: translateY(-3px); background: #fff; }
.tea-lg .av { width: 66px; height: 66px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 26px; font-weight: 700; box-shadow: 0 4px 12px rgba(0,36,90,.16); }
.tea-lg .tx { flex: 1; min-width: 0; }
.tea-lg .tx .hn { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.tea-lg .tx h4 { font-size: 16px; font-weight: 700; color: var(--ink); }
.tea-lg .tx .ti { font-size: 12px; color: var(--brand-500); margin-bottom: 7px; }
.tea-lg .tx .in { font-size: 12.5px; color: var(--ink-3); line-height: 1.75; margin-bottom: 9px; }
.tea-lg .tx .mt { display: flex; gap: 12px; font-size: 12px; color: var(--ink-4); flex-wrap: wrap; }
.tea-lg .tx .mt b { color: var(--accent); }
.tea-lg .tx .ac { margin-top: 10px; display: flex; gap: 8px; }

/* 课程班型 */
.p-course { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cs-card { border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; transition: all .22s; position: relative; background: #fff; }
.cs-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.cs-card.rec { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.cs-card .cs-top { padding: 14px 16px 12px; color: #fff; position: relative; }
.cs-card .cs-top .cn { font-size: 16px; font-weight: 800; letter-spacing: .5px; }
.cs-card .cs-top .cl { font-size: 12px; opacity: .85; margin-top: 3px; }
.cs-card .cs-top .hot { position: absolute; right: 0; top: 10px; background: rgba(0,0,0,.28); font-size: 11px; padding: 2px 8px; border-radius: 12px 0 0 12px; }
.cs-card .cs-body { padding: 14px 16px 16px; }
.cs-card .cp { display: flex; align-items: baseline; gap: 7px; margin-bottom: 10px; }
.cs-card .cp .now { font-size: 24px; font-weight: 800; color: var(--accent); }
.cs-card .cp .now i { font-size: 14px; }
.cs-card .cp .old { font-size: 12px; color: var(--ink-4); text-decoration: line-through; }
.cs-card .ci { font-size: 12.5px; color: var(--ink-2); line-height: 2; }
.cs-card .ci span { display: flex; align-items: center; gap: 5px; }
.cs-card .ci .ico { color: var(--success); font-size: 13px; }
.cs-card .cb { margin-top: 12px; }
.cs-card .cb .btn { width: 100%; }
.cs-card .cs-sold { text-align: center; font-size: 12px; color: var(--ink-4); margin-top: 8px; }

/* 班型对比表 */
.cmp-table { margin-top: 20px; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.cmp-table table th { background: var(--brand-025); color: var(--brand); font-weight: 700; font-size: 13px; padding: 12px 10px; text-align: center; }
.cmp-table table th:first-child { text-align: left; }
.cmp-table table td { padding: 12px 10px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); text-align: center; }
.cmp-table table td:first-child { text-align: left; color: var(--ink-3); background: #FAFCFF; }
.cmp-table .y { color: var(--success); font-weight: 700; }
.cmp-table .n { color: var(--ink-4); }

/* 资料下载 */
.mat-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mat-item { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 12px 14px; background: #FCFDFF; transition: all .18s; }
.mat-item:hover { border-color: var(--brand-400); background: var(--brand-025); }
.mat-item .fi { width: 34px; height: 34px; border-radius: 6px; background: var(--brand-050); color: var(--brand-500); display: flex; align-items: center; justify-content: center; flex: none; }
.mat-item .fi .ico { font-size: 17px; }
.mat-item .mt2 { flex: 1; min-width: 0; }
.mat-item .mt2 b { display: block; font-size: 13.5px; color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mat-item .mt2 span { font-size: 12px; color: var(--ink-4); }
.mat-item .dl { flex: none; font-size: 13px; color: var(--accent); font-weight: 600; }

/* FAQ */
.faq-item { border: 1px solid var(--line-2); border-radius: var(--r-s); margin-bottom: 10px; overflow: hidden; background: #FCFDFF; }
.faq-item .fq { display: flex; align-items: center; gap: 10px; padding: 14px 16px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink); }
.faq-item .fq .qi { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; flex: none; }
.faq-item .fq .ar { margin-left: auto; color: var(--ink-4); transition: transform .2s; }
.faq-item.open .fq { color: var(--brand-500); }
.faq-item.open .fq .ar { transform: rotate(180deg); }
.faq-item .fa { display: none; padding: 0 16px 16px 46px; font-size: 13px; color: var(--ink-3); line-height: 1.9; }
.faq-item.open .fa { display: block; }

/* 侧栏小组件 */
.sd-box { background: #fff; border-radius: var(--r); border: 1px solid var(--line); padding: 16px 18px; }
.sd-box h4 { font-size: 15px; font-weight: 700; color: var(--brand); margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }
.sd-box h4::before { content: ''; width: 3px; height: 13px; background: var(--accent); border-radius: 2px; }
.sd-list li { padding: 9px 0; border-bottom: 1px dashed var(--line-2); font-size: 13px; }
.sd-list li:last-child { border: 0; }
.sd-list a { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.sd-list a:hover { color: var(--brand-500); }
.sd-list .no { width: 16px; height: 16px; border-radius: 3px; background: var(--line-2); color: var(--ink-3); font-size: 11px; display: flex; align-items: center; justify-content: center; flex: none; }
.sd-list li:nth-child(1) .no { background: var(--danger); color: #fff; }
.sd-list li:nth-child(2) .no { background: var(--accent); color: #fff; }
.sd-list li:nth-child(3) .no { background: var(--brand-400); color: #fff; }
.sd-rel { display: flex; flex-wrap: wrap; gap: 8px; }
.sd-rel a { padding: 5px 12px; border: 1px solid var(--line); border-radius: 16px; font-size: 13px; color: var(--ink-2); }
.sd-rel a:hover { border-color: var(--brand-500); color: var(--brand-500); background: var(--brand-025); }
.sd-cta { background: linear-gradient(135deg, var(--brand-500), var(--brand)); color: #fff; border-radius: var(--r); padding: 18px; text-align: center; }
.sd-cta h4 { color: #fff; font-size: 16px; margin-bottom: 6px; }
.sd-cta h4::before { display: none; }
.sd-cta p { font-size: 12px; opacity: .8; margin-bottom: 14px; }
.sd-cta .btn { width: 100%; }

/* 相关项目 */
.rel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rel-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; transition: all .22s; display: block; position: relative; overflow: hidden; }
.rel-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; }
.rel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: #CFDAEE; }
.rel-card:hover::before { transform: scaleX(1); }
.rel-card h4 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.rel-card:hover h4 { color: var(--brand-500); }
.rel-card p { font-size: 12px; color: var(--ink-3); margin-bottom: 10px; }
.rel-card span { font-size: 12px; color: var(--accent); display: flex; align-items: center; gap: 3px; font-weight: 600; }
.rel-card span .ico { font-size: 13px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .p-course { grid-template-columns: repeat(2, 1fr); }
  .rel-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
  .p-hero .container { grid-template-columns: minmax(0, 1fr); }
  .p-hero .metas { grid-template-columns: repeat(2, 1fr); gap: 12px 20px; }
  .p-main { grid-template-columns: minmax(0, 1fr); }
  .p-side { position: static; }
  .p-tea { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 20px 0; }
  .timeline::before { display: none; }
  .mat-list { grid-template-columns: 1fr; }
  .rel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .p-hero h1 { font-size: 22px; }
  .p-hero .desc { font-size: 13px; }
  .p-hero .metas { grid-template-columns: 1fr 1fr; }
  .p-box { padding: 16px; }
  .p-box > h3 { font-size: 17px; }
  .p-course { grid-template-columns: 1fr; }
  .p-nav a { padding: 12px 14px; font-size: 14px; }
  .p-nav .pn-btn { display: none; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .subj-table, .cmp-table { overflow-x: auto; }
  .subj-table table, .cmp-table table { min-width: 560px; }
  .rel-grid { grid-template-columns: 1fr 1fr; }
  .tea-lg { flex-direction: column; text-align: center; }
  .tea-lg .tx .hn, .tea-lg .tx .mt, .tea-lg .tx .ac { justify-content: center; }
}
