/* ============================================================
   CPPS 城市站样式（city-* / idx-*）
   配色沿用站点：品牌橙 #EA4E1B / 深墨 #142033 / 纸白 #FBFAF8
   PC 与手机端同源，断点 960px / 640px
   ============================================================ */

.city-hero {
  position: relative;
  padding: 56px 0 48px;
  background:
    radial-gradient(1100px 380px at 82% -10%, rgba(234, 78, 27, .10), transparent 62%),
    linear-gradient(180deg, #0E1828 0%, #142033 100%);
  color: #fff;
  overflow: hidden;
}
.ch-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 44px;
  align-items: center;
}
.ch-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #C9D3E0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 99px;
  padding: 6px 12px;
}
.ch-kicker .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #EA4E1B;
  box-shadow: 0 0 0 4px rgba(234, 78, 27, .22);
}
.ch-copy h1 {
  margin: 18px 0 10px;
  font-size: 40px;
  line-height: 1.22;
  letter-spacing: -.5px;
  color: #fff;
}
.ch-pos {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
  color: #FFB59B;
}
.ch-serve {
  margin: 0 0 24px;
  font-size: 14px;
  color: #BEC8D6;
}
.ch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.ch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ch-chips span {
  font-size: 12.5px;
  color: #D6DEE9;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 99px;
  padding: 6px 11px;
}
.ch-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.ch-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1400 / 933;
  object-fit: cover;
}
.ch-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(14, 24, 40, .82);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 8px 12px;
}
.ch-tag b {
  font-size: 13px;
  letter-spacing: .16em;
  color: #fff;
}
.ch-tag span {
  font-size: 10px;
  letter-spacing: .16em;
  color: #98A6B8;
}

/* ---------- 关键数据条 ---------- */
.city-facts {
  background: #fff;
  border-bottom: 1px solid #EDE9E2;
}
.cf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.cf-grid > div {
  padding: 26px 0 24px;
  text-align: center;
  border-right: 1px solid #F0ECE5;
}
.cf-grid > div:last-child { border-right: 0; }
.cf-grid b {
  display: block;
  font-size: 30px;
  line-height: 1.1;
  color: #EA4E1B;
  letter-spacing: -.5px;
}
.cf-grid span {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #7A818B;
}

/* ---------- 通用段落 ---------- */
.city-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin: 26px 0 34px;
}
.city-intro p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.95;
  color: #52585F;
  text-align: justify;
}

.city-ind {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.ci-card {
  background: #fff;
  border: 1px solid #E8E4DC;
  border-radius: 12px;
  padding: 22px 20px 20px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ci-card:hover {
  transform: translateY(-3px);
  border-color: #F2C9B4;
  box-shadow: 0 14px 30px rgba(20, 32, 51, .08);
}
.ci-no {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #EA4E1B;
}
.ci-card h3 {
  margin: 10px 0 8px;
  font-size: 16.5px;
  line-height: 1.45;
  color: #16181C;
}
.ci-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: #6B7178;
}

/* ---------- 痛点 ---------- */
.city-pain {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 30px;
}
.cp-item {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid #EDE9E2;
  border-left: 3px solid #EA4E1B;
  border-radius: 10px;
  padding: 20px 22px;
}
.cp-no {
  flex: 0 0 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #FBEDE6;
  color: #EA4E1B;
  font-weight: 700;
  font-size: 14px;
}
.cp-item h3 {
  margin: 2px 0 6px;
  font-size: 15.5px;
  color: #16181C;
}
.cp-item p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.85;
  color: #6B7178;
}

/* ---------- 一城一策 ---------- */
.city-route {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.cr-step {
  position: relative;
  background: #fff;
  border: 1px solid #E8E4DC;
  border-radius: 12px;
  padding: 24px 22px 22px;
}
.cr-step::after {
  content: "";
  position: absolute;
  top: 34px;
  right: -12px;
  width: 24px;
  height: 1px;
  background: #E0DAD0;
}
.cr-step:last-child::after { display: none; }
.cr-h {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 700;
  color: #142033;
}
.cr-h span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #fff;
  background: #142033;
  border-radius: 6px;
  padding: 3px 7px;
}
.cr-step p {
  margin: 12px 0 0;
  font-size: 13.8px;
  line-height: 1.9;
  color: #5A6169;
}
.cr-step p b { color: #EA4E1B; }
.cr-note {
  margin-top: 18px;
  background: #FBEDE6;
  border: 1px solid #F2C9B4;
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 13.5px;
  line-height: 1.85;
  color: #7A3A22;
}
.cr-note b { color: #B2380F; }

/* ---------- 人才地图 ---------- */
.city-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.cm-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #FCFBF9 100%);
  border: 1px solid #E8E4DC;
  border-radius: 12px;
  padding: 20px 18px;
}
.cm-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.5;
  color: #142033;
  padding-bottom: 8px;
  border-bottom: 1px dashed #E8E4DC;
}
.cm-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: #6B7178;
}

/* ---------- 报考条件 ---------- */
.city-qual table,
.city-exam table,
.idx-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #E8E4DC;
  border-radius: 12px;
  overflow: hidden;
  font-size: 13.8px;
}
.city-qual th,
.city-exam th,
.idx-table th {
  background: #142033;
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 14px 16px;
  font-size: 13px;
  letter-spacing: .02em;
}
.city-qual td,
.city-exam td,
.idx-table td {
  padding: 14px 16px;
  border-top: 1px solid #F0ECE5;
  line-height: 1.75;
  color: #52585F;
  vertical-align: top;
}
.city-qual td:first-child,
.city-exam td:first-child {
  font-weight: 600;
  color: #142033;
  background: #FCFBF9;
  width: 120px;
}
.city-qual tr:nth-child(even) td,
.idx-table tr:nth-child(even) td { background: #FDFCFA; }
.cq-tip {
  margin: 16px 0 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: #7A818B;
  background: #F7F5F0;
  border-left: 3px solid #EA4E1B;
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
}

/* ---------- 考试与考点 ---------- */
.city-exam {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 24px;
  margin-top: 28px;
}
.ce-note {
  margin: 14px 0 0;
  font-size: 13.2px;
  line-height: 1.85;
  color: #6B7178;
}
.ce-photos {
  display: grid;
  gap: 14px;
}
.ce-photos figure {
  margin: 0;
  background: #fff;
  border: 1px solid #E8E4DC;
  border-radius: 12px;
  overflow: hidden;
}
.ce-photos img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1400 / 787;
  object-fit: cover;
}
.ce-photos figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: #8A9099;
  text-align: center;
}

/* ---------- 资质 ---------- */
.city-cert {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.cc-card {
  background: #fff;
  border: 1px solid #E8E4DC;
  border-top: 3px solid #142033;
  border-radius: 10px;
  padding: 20px 18px;
}
.cc-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: #142033;
}
.cc-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.85;
  color: #6B7178;
}
.cc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.cc-links a {
  font-size: 13.5px;
  color: #EA4E1B;
  background: #fff;
  border: 1px solid #F2C9B4;
  border-radius: 99px;
  padding: 8px 14px;
}
.cc-links a:hover { background: #FBEDE6; }

/* ---------- FAQ ---------- */
.city-faq {
  max-width: 900px;
  margin: 26px auto 0;
}
.city-faq details {
  background: #fff;
  border: 1px solid #E8E4DC;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}
.city-faq details[open] { border-color: #F2C9B4; }
.city-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-size: 14.8px;
  font-weight: 600;
  color: #16181C;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.city-faq summary::-webkit-details-marker { display: none; }
.city-faq summary::after {
  content: "+";
  color: #EA4E1B;
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
}
.city-faq details[open] summary::after { content: "–"; }
.cf-a {
  padding: 0 20px 18px;
  border-top: 1px dashed #F0ECE5;
}
.cf-a p {
  margin: 12px 0 0;
  font-size: 13.8px;
  line-height: 1.95;
  color: #5A6169;
}

/* ---------- 邻近城市 ---------- */
.city-near {
  background: #142033;
  padding: 48px 0 52px;
  color: #fff;
}
.city-near h2 {
  margin: 0 0 20px;
  font-size: 22px;
  color: #fff;
}
.cn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cn-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}
.cn-card:hover { transform: translateY(-3px); border-color: rgba(234, 78, 27, .6); }
.cn-card img {
  width: 100%;
  aspect-ratio: 1400 / 500;
  object-fit: cover;
  opacity: .92;
  height: auto;
}
.cn-card div {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cn-card b { font-size: 15px; color: #fff; }
.cn-card span { font-size: 12px; line-height: 1.6; color: #A9B6C6; }
.cn-all {
  justify-content: center;
  padding: 26px 18px;
  background: rgba(234, 78, 27, .12);
  border-color: rgba(234, 78, 27, .4);
}

/* ---------- 吸底 CTA（仅手机端） ---------- */
.city-sticky {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  align-items: center;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(14, 24, 40, .96);
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.cs-txt {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 2px;
}
.cs-txt b { font-size: 13px; color: #fff; }
.cs-txt span { font-size: 10.5px; color: #A9B6C6; }
.cs-btn {
  height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.cs-call { background: rgba(255, 255, 255, .12); color: #fff; }
.cs-go { background: #EA4E1B; color: #fff; }

/* ============================================================
   汇总页
   ============================================================ */
.idx-hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(900px 340px at 18% 0%, rgba(234, 78, 27, .12), transparent 60%),
    linear-gradient(180deg, #0E1828 0%, #142033 100%);
  color: #fff;
}
.ih-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #C9D3E0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 99px;
  padding: 6px 12px;
}
.ih-kicker .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #EA4E1B;
  box-shadow: 0 0 0 4px rgba(234, 78, 27, .22);
}
.idx-hero h1 {
  margin: 20px 0 12px;
  font-size: 42px;
  line-height: 1.25;
  letter-spacing: -.6px;
  color: #fff;
}
.idx-hero > .container > p {
  max-width: 760px;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.95;
  color: #BEC8D6;
}
.ih-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.ih-stats div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.ih-stats b { font-size: 28px; color: #EA4E1B; letter-spacing: -.5px; }
.ih-stats span { font-size: 12.5px; color: #A9B6C6; }

.idx-grid-wrap { padding: 46px 0 56px; background: #FBFAF8; }
.idx-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}
.idx-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.idx-tab {
  cursor: pointer;
  font: inherit;
  font-size: 13.5px;
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px solid #E2DCD2;
  background: #fff;
  color: #52585F;
  transition: all .16s ease;
}
.idx-tab:hover { border-color: #F2C9B4; color: #EA4E1B; }
.idx-tab.on {
  background: #142033;
  border-color: #142033;
  color: #fff;
}
.idx-count { font-size: 13px; color: #8A9099; }
.idx-count span {
  font-weight: 700;
  font-size: 16px;
  color: #EA4E1B;
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.city-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #E8E4DC;
  border-radius: 14px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.city-card:hover {
  transform: translateY(-4px);
  border-color: #F2C9B4;
  box-shadow: 0 18px 40px rgba(20, 32, 51, .10);
}
.cc-img { position: relative; display: block; overflow: hidden; }
.cc-img img {
  display: block;
  width: 100%;
  aspect-ratio: 1400 / 620;
  object-fit: cover;
  transition: transform .5s ease;
  height: auto;
}
.city-card:hover .cc-img img { transform: scale(1.04); }
.cc-region {
  position: absolute;
  left: 12px;
  top: 12px;
  font-size: 11.5px;
  letter-spacing: .08em;
  color: #fff;
  background: rgba(20, 32, 51, .78);
  border-radius: 6px;
  padding: 4px 9px;
}
.cc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.cc-body h2 {
  margin: 0 0 6px;
  font-size: 20px;
  color: #142033;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.cc-body h2 a { color: inherit; }
.cc-body h2 i {
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: .14em;
  color: #9AA3AE;
}
.cc-pos {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
  color: #EA4E1B;
  font-weight: 600;
}
.cc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.cc-tags span {
  font-size: 11.5px;
  color: #52585F;
  background: #F7F5F0;
  border: 1px solid #EDE9E2;
  border-radius: 6px;
  padding: 4px 8px;
}
.cc-serve {
  margin: 0 0 16px;
  font-size: 12.5px;
  line-height: 1.75;
  color: #8A9099;
}
.cc-link {
  margin-top: auto;
  font-size: 13.5px;
  font-weight: 600;
  color: #142033;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed #EDE9E2;
  padding-top: 12px;
}
.cc-link span { color: #EA4E1B; transition: transform .16s ease; }
.city-card:hover .cc-link span { transform: translateX(4px); }

/* ---------- 为什么 ---------- */
.iw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.iw-card {
  background: #fff;
  border: 1px solid #E8E4DC;
  border-radius: 12px;
  padding: 24px 22px;
}
.iw-card h3 { margin: 0 0 10px; font-size: 16.5px; color: #142033; }
.iw-card p { margin: 0; font-size: 13.8px; line-height: 1.9; color: #6B7178; }

/* ---------- 速查表 ---------- */
.idx-table { margin-top: 26px; overflow-x: auto; }
.idx-table a { color: #EA4E1B; font-weight: 600; white-space: nowrap; }

/* ---------- 四步流程 ---------- */
.if-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.if-step {
  background: #fff;
  border: 1px solid #E8E4DC;
  border-radius: 12px;
  padding: 22px 20px;
  position: relative;
}
.if-step span {
  font-size: 26px;
  font-weight: 700;
  color: #F2C9B4;
  letter-spacing: -.5px;
}
.if-step h3 { margin: 8px 0 8px; font-size: 15.5px; color: #142033; }
.if-step p { margin: 0; font-size: 13px; line-height: 1.85; color: #6B7178; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1180px) {
  .city-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .ch-grid { grid-template-columns: 1fr; gap: 28px; }
  .ch-copy h1 { font-size: 32px; }
  .ch-visual img { aspect-ratio: 1400 / 800; }
  .cf-grid { grid-template-columns: repeat(2, 1fr); }
  .cf-grid > div:nth-child(2) { border-right: 0; }
  .cf-grid > div:nth-child(1),
  .cf-grid > div:nth-child(2) { border-bottom: 1px solid #F0ECE5; }
  .city-intro { grid-template-columns: 1fr; gap: 14px; }
  .city-ind, .city-map, .city-cert { grid-template-columns: repeat(2, 1fr); }
  .city-pain, .city-route { grid-template-columns: 1fr; }
  .cr-step::after { display: none; }
  .city-exam { grid-template-columns: 1fr; }
  .cn-grid { grid-template-columns: repeat(2, 1fr); }
  .idx-hero h1 { font-size: 30px; }
  .ih-stats { gap: 24px; }
  .iw-grid, .if-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .city-hero { padding: 34px 0 30px; }
  .ch-copy h1 { font-size: 26px; }
  .ch-pos { font-size: 16.5px; }
  .ch-actions .btn { flex: 1; justify-content: center; }
  .city-facts .cf-grid { grid-template-columns: repeat(2, 1fr); }
  .cf-grid b { font-size: 24px; }
  .city-ind, .city-map, .city-cert, .iw-grid, .if-grid { grid-template-columns: 1fr; }
  .city-qual, .city-exam, .idx-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .city-qual table, .city-exam table, .idx-table table { min-width: 620px; font-size: 13px; }
  .city-qual td:first-child, .city-exam td:first-child { width: 90px; }
  .city-faq summary { padding: 14px 16px; font-size: 14px; }
  .cf-a { padding: 0 16px 16px; }
  .cn-grid { grid-template-columns: 1fr 1fr; }
  .city-near { padding: 36px 0 40px; }
  .city-near h2 { font-size: 18px; }
  .idx-hero { padding: 42px 0 36px; }
  .ih-stats b { font-size: 22px; }
  .city-grid { grid-template-columns: 1fr; }
  .cc-img img { aspect-ratio: 1400 / 700; }
  .idx-tabs { width: 100%; }
  .idx-tab { flex: 1; text-align: center; padding: 8px 10px; }
  .city-sticky { display: flex; }
  .city-cta-wrap { padding-bottom: 86px; }
}

/* ============ 教材与证书（实物资料区） ============ */
.mat-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 6px 2px 20px;
}
.mat-rail::-webkit-scrollbar { height: 6px; }
.mat-rail::-webkit-scrollbar-thumb { background: #E0DBD2; border-radius: 6px; }
.mat-card {
  flex: 0 0 46%;
  max-width: 540px;
  margin: 0;
  background: #fff;
  border: 1px solid #E8E4DC;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(20, 32, 51, .06);
  scroll-snap-align: start;
  cursor: zoom-in;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.mat-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(20, 32, 51, .11); }
.mc-img {
  height: 232px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px 4px;
  background: #fff;
}
.mc-img img { max-width: 100%; max-height: 214px; width: auto; height: auto; display: block; }
.mat-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 16px 15px;
  border-top: 1px dashed #E8E4DC;
}
.mc-badge {
  align-self: flex-start;
  background: #FBEDE6;
  color: #EA4E1B;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: .04em;
}
.mat-card figcaption b { font-size: 14.5px; color: #16181C; line-height: 1.4; }
.mat-card figcaption i { font-style: normal; font-size: 12px; color: #8A9099; line-height: 1.65; }

.mat-hint {
  font-size: 12px;
  color: #8A9099;
  margin: -6px 0 0;
  letter-spacing: .01em;
}
.mat-cert {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 44px;
  align-items: center;
  margin-top: 30px;
  padding: 34px 38px;
  background: #fff;
  border: 1px solid #E8E4DC;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(20, 32, 51, .05);
}
.mat-cert-img { position: relative; display: flex; justify-content: center; cursor: zoom-in; }
.mat-cert-img img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 18px 40px rgba(20, 32, 51, .16);
}
.mci-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #142033;
  color: #fff;
  font-size: 12px;
  letter-spacing: .06em;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}
.mat-cert-txt h3 { font-size: 20px; margin: 0 0 18px; color: #16181C; }
.mat-cert-txt ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.mat-cert-txt li { border-left: 3px solid #F2C9B4; padding-left: 14px; }
.mat-cert-txt li b { display: block; font-size: 14px; color: #2B2F36; margin-bottom: 4px; }
.mat-cert-txt li span { font-size: 13px; color: #52585F; line-height: 1.75; }
.mct-note { font-size: 12px; color: #8A9099; margin: 16px 0 0; line-height: 1.7; }
.mat-cert-txt .cc-links { margin-top: 14px; }

.lb-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 16, 26, .9);
}
.lb-mask.on { display: flex; }
.lb-mask figure { margin: 0; max-width: 94vw; text-align: center; }
.lb-mask img {
  max-width: min(1120px, 92vw);
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}
.lb-mask figcaption { color: #fff; font-size: 13px; margin-top: 14px; opacity: .92; }

@media (max-width: 960px) {
  .mat-card { flex-basis: 66%; }
  .mat-cert { grid-template-columns: 1fr; gap: 28px; padding: 26px 22px; }
  .mat-cert-img img { max-width: 280px; }
  .mc-img { height: 206px; }
  .mc-img img { max-height: 190px; }
}
@media (max-width: 640px) {
  .mat-rail { gap: 12px; }
  .mat-card { flex-basis: 84%; max-width: none; }
  .mc-img { height: 186px; }
  .mc-img img { max-height: 172px; }
  .mat-cert-txt h3 { font-size: 18px; }
  .lb-mask { padding: 14px; }
  .lb-mask img { max-height: 74vh; }
}

/* 表格改为内层滚动，说明文字不再被裁切 */
.cq-scroll, .ce-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) {
  .city-qual, .city-exam { overflow: visible; }
  .cq-scroll table, .ce-scroll table { min-width: 620px; font-size: 13px; }
  .cq-tip, .ce-note { padding-left: 16px; padding-right: 16px; }
}

/* 教材图再放大一档，视觉更饱满 */
.mc-img { height: 252px; }
.mc-img img { max-height: 238px; }
@media (max-width: 960px) {
  .mc-img { height: 218px; }
  .mc-img img { max-height: 204px; }
}
@media (max-width: 640px) {
  .mc-img { height: 198px; }
  .mc-img img { max-height: 184px; }
}

/* 修正：手机端考试区网格项最小宽度导致整段文字溢出 */
@media (max-width: 960px) {
  .city-exam { grid-template-columns: 1fr; min-width: 0; }
  .city-exam > *, .ce-table, .ce-scroll { min-width: 0; }
  .ce-note { max-width: 100%; overflow-wrap: anywhere; }
}

/* ===== 本地实务文章 ===== */
.city-arts { background: #fff; }
.art-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.art-item {
  display: block; padding: 22px 24px; border: 1px solid var(--line, #e6e3dd); border-radius: 14px;
  background: #fff; text-decoration: none; transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.art-item:hover { border-color: rgba(217, 72, 15, .35); box-shadow: 0 10px 26px rgba(20, 26, 40, .09); transform: translateY(-2px); }
.ai-top { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #8b8b8b; }
.ai-date { color: #b5501f; font-weight: 700; letter-spacing: .02em; }
.ai-views { color: #9a9a9a; }
.art-item h3 { margin: 10px 0 8px; font-size: 17px; line-height: 1.5; color: #15171c; font-weight: 700; }
.art-item p { margin: 0 0 16px; font-size: 14px; line-height: 1.75; color: #6b6f78; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ai-more { font-size: 13px; font-weight: 700; color: #d9480f; }
.ai-more span { transition: margin-left .18s ease; }
.art-item:hover .ai-more span { margin-left: 5px; }
.art-foot { margin-top: 22px; }
.art-foot a { font-size: 14px; font-weight: 700; color: #15171c; }
.art-foot a span { color: #d9480f; }
@media (max-width: 960px) {
  .art-list { grid-template-columns: 1fr; gap: 14px; }
  .art-item { padding: 18px 18px; }
  .art-item h3 { font-size: 16px; }
}

/* ===== 考试区左侧提示卡 ===== */
.ce-tips {
  margin-top: 18px; padding: 22px 24px; border: 1px solid var(--line, #e6e3dd); border-radius: 14px;
  background: #fff;
}
.ce-tips h3 { margin: 0 0 14px; font-size: 16px; line-height: 1.5; color: #15171c; font-weight: 700; }
.ce-tips ul { margin: 0; padding: 0; list-style: none; }
.ce-tips li {
  display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px;
  padding: 10px 0; border-top: 1px dashed #ece9e3; font-size: 14px; line-height: 1.75;
}
.ce-tips li:first-child { border-top: 0; padding-top: 0; }
.ce-tips li:last-child { padding-bottom: 0; }
.ce-tips b { color: #b5501f; font-weight: 700; }
.ce-tips span { color: #5c6068; }
@media (max-width: 640px) {
  .ce-tips { padding: 18px 16px; }
  .ce-tips li { grid-template-columns: 76px minmax(0, 1fr); gap: 8px; font-size: 13.5px; }
}

/* 教材滑轨控制条（2026-11-20） */
.mat-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; }
.mat-foot .mat-hint { margin: 0; }
.mat-ctrl { display: flex; gap: 8px; flex-shrink: 0; }
.mat-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(15,43,76,.18); background: #fff; color: #0f2b4c; font-size: 19px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, color .2s, border-color .2s; -webkit-tap-highlight-color: transparent; }
.mat-btn:hover { background: #0f2b4c; color: #fff; border-color: #0f2b4c; }
.mat-btn:active { transform: scale(.96); }
@media (max-width: 640px) {
  .mat-foot { flex-wrap: wrap; row-gap: 10px; }
  .mat-btn { width: 34px; height: 34px; font-size: 17px; }
}
