/* ============================================================
   第 24 轮 · 工作动态改版（政务新闻式：焦点大图 + 栏目页签列表）
   PC / 手机共用，配 home.html#/news 与 #/ndetail/<id> 详情页
   ============================================================ */

.dyn-wrap {
    max-width: 1200px; margin: 0 auto; padding: 26px 24px 10px;
    display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: 26px; color: #1f2733; align-items: stretch;
}

/* 左侧焦点大图 */
.dyn-feature {
    position: relative; display: block; min-height: 320px; max-height: 380px;
    border-radius: 4px; overflow: hidden; text-decoration: none;
    background: #b02a1e; box-shadow: 0 8px 24px rgba(23, 54, 93, .12);
}
.dyn-feature img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.dyn-feature::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(10, 16, 28, .05) 30%, rgba(10, 16, 28, .62) 100%);
}
.dyn-feature-inner {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 22px 26px; color: #fff;
}
.dyn-feature-inner h2 {
    margin: 0 0 8px; font-size: 24px; line-height: 1.5; font-weight: 700;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.dyn-feature-inner p { margin: 0; font-size: 13px; opacity: .88; }
/* 无封面时的政务红渐变兜底 */
.dyn-feature-plain {
    background: linear-gradient(160deg, #c3272b 0%, #a31414 55%, #7d0f0f 100%);
}
.dyn-feature-plain::after { display: none; }
.dyn-feature-plain .dyn-feature-inner {
    position: static; height: 100%; box-sizing: border-box;
    display: flex; flex-direction: column; justify-content: center; text-align: center;
    padding: 34px 30px;
}
.dyn-feature-plain .dyn-feature-inner h2 { font-size: 26px; }

/* 右侧栏目页签 + 列表 */
.dyn-side {
    display: flex; flex-direction: column; min-width: 0;
    background: #fff; border: 1px solid #e6ebf2; border-radius: 4px;
    padding: 4px 20px 14px;
}
.dyn-tabs {
    display: flex; align-items: center; gap: 2px;
    border-bottom: 1px solid #eceff4; padding: 6px 0 0; overflow: hidden;
}
.dyn-tab {
    appearance: none; background: none; border: none; cursor: pointer;
    font: inherit; font-size: 16.5px; color: #3c4654; padding: 12px 18px 12px;
    position: relative; white-space: nowrap;
}
.dyn-tab + .dyn-tab::before {
    content: ''; position: absolute; left: 0; top: 14px; bottom: 14px;
    width: 1px; background: #e3e8ef;
}
.dyn-tab:hover { color: #c3272b; }
.dyn-tab.active { color: #17365d; font-weight: 700; }
.dyn-tab.active::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px;
    height: 3px; background: #c3272b; border-radius: 2px 2px 0 0;
}
.dyn-more {
    appearance: none; background: none; border: none; cursor: pointer;
    margin-left: auto; padding: 8px 6px 8px 14px;
    font-size: 20px; line-height: 1; color: #9aa8b8; font-weight: 700; letter-spacing: 1px;
}
.dyn-more:hover, .dyn-more.active { color: #c3272b; }

.dyn-list { flex: 1 1 auto; display: flex; flex-direction: column; padding-top: 6px; }
.dyn-row {
    display: flex; align-items: center; gap: 10px; min-width: 0;
    padding: 12.5px 4px; text-decoration: none; border-bottom: 1px dashed #eef1f5;
}
.dyn-row:last-child { border-bottom: none; }
.dyn-row i {
    flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%;
    background: #c3272b; margin-top: 2px;
}
.dyn-row span {
    flex: 1 1 auto; min-width: 0; font-size: 14.5px; color: #2a3542;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dyn-row:hover span { color: #c3272b; }
.dyn-row time { flex: 0 0 auto; font-size: 12.5px; color: #98a3b1; }
.dyn-empty { padding: 30px 0; text-align: center; font-size: 13.5px; color: #8b98a8; }

/* 详情页 */
.dyn-detail { max-width: 1200px; margin: 0 auto; padding: 20px 24px 40px; color: #1f2733; }
.dyn-detail-card {
    background: #fff; border: 1px solid #e6ebf2; border-radius: 4px;
    padding: 38px 46px 40px; margin-top: 14px;
}
.dyn-detail-title {
    margin: 0 0 14px; font-size: 27px; line-height: 1.5; font-weight: 700;
    color: #17365d; text-align: center;
}
.dyn-detail-meta {
    text-align: center; font-size: 13px; color: #8b98a8;
    padding-bottom: 18px; border-bottom: 1px solid #eef1f5; margin-bottom: 22px;
}
.dyn-detail-cover {
    display: block; width: 100%; max-width: 860px; margin: 0 auto 24px;
    border-radius: 4px;
}
.dyn-detail-body {
    max-width: 860px; margin: 0 auto; font-size: 15.5px; line-height: 2.0; color: #333e4c;
}
.dyn-detail-empty { color: #8b98a8; }

/* 手机端 */
@media (max-width: 900px) {
    .dyn-wrap { grid-template-columns: 1fr; gap: 18px; padding: 16px 14px 6px; }
    .dyn-feature { min-height: 220px; max-height: 260px; }
    .dyn-feature-inner { padding: 16px 18px; }
    .dyn-feature-inner h2 { font-size: 19px; }
    .dyn-feature-plain .dyn-feature-inner h2 { font-size: 21px; }
    .dyn-side { padding: 2px 14px 10px; }
    .dyn-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .dyn-tabs::-webkit-scrollbar { display: none; }
    .dyn-tab { font-size: 15px; padding: 10px 13px; }
    .dyn-tab.active::after { left: 10px; right: 10px; }
    .dyn-row { padding: 11px 2px; }
    .dyn-row span { font-size: 13.5px; }
    .dyn-detail { padding: 12px 14px 30px; }
    .dyn-detail-card { padding: 24px 18px 28px; }
    .dyn-detail-title { font-size: 21px; }
    .dyn-detail-body { font-size: 14.5px; }
}

/* 第 26 轮：工作动态页下方「内容页图片导航」横幅条 */
.dyn-banners {
  display: flex; align-items: center; gap: 14px;
  background: none; border: none; border-radius: 0;
  padding: 4px 0 0; margin-top: 18px;
}
/* 头部正方形标签：红底金字双描边，文字后台可改 */
.dyn-badge {
  flex: 0 0 auto; width: 88px; height: 88px;
  background: linear-gradient(135deg, #c01818, #8e0d0d);
  border-radius: 6px; position: relative;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 2px rgba(255, 216, 119, .85), inset 0 0 0 5px #a41010, 0 3px 8px rgba(140, 15, 15, .3);
}
.dyn-badge span {
  font-family: SimHei, 'Microsoft YaHei', sans-serif; font-weight: 700;
  font-size: 17px; line-height: 1.45; color: #ffd977;
  text-align: center; padding: 6px; letter-spacing: 1px;
}
.dyn-bn-body { flex: 1 1 auto; display: flex; align-items: center; gap: 6px; min-width: 0; }
.dyn-bn-arrow {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid #e5d5d5; background: #faf6f6; color: #9a4a4a;
  font-size: 16px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.dyn-bn-arrow:hover { background: #c01818; border-color: #c01818; color: #fff; }
.dyn-bn-track-wrap { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.dyn-bn-track {
  display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px;
}
.dyn-bn-track::-webkit-scrollbar { display: none; }
.dyn-banner { flex: 0 0 auto; display: block; }
.dyn-banner img {
  display: block; height: 64px; width: auto; max-width: 300px;
  border-radius: 4px; object-fit: cover;
  box-shadow: 0 2px 6px rgba(120, 20, 20, .18);
  transition: transform .15s, box-shadow .15s;
}
.dyn-banner:hover img { transform: translateY(-2px); box-shadow: 0 5px 12px rgba(120, 20, 20, .28); }

/* 电脑端：4 张正好平铺一行，间距均分，不溢出 */
@media (min-width: 761px) {
  .dyn-bn-track { gap: 14px; overflow: hidden; }
  .dyn-banner { flex: 1 1 0; min-width: 0; }
  .dyn-banner img { width: 100%; height: auto; max-width: none; }
}

@media (max-width: 760px) {
  .dyn-banners { padding: 10px; gap: 10px; }
  .dyn-badge { width: 64px; height: 64px; }
  .dyn-badge span { font-size: 12.5px; padding: 4px; }
  .dyn-banner img { height: 44px; }
  .dyn-bn-arrow { width: 22px; height: 22px; font-size: 14px; }
}

/* 第 27 轮：工作动态页下方「内容栏目」两列区（每栏 10 篇） */
.dyn-content {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px; margin-top: 18px;
}
.dyn-col-card {
  background: #fff; border: 1px solid #eceff3; border-radius: 8px;
  padding: 0 0 8px; overflow: hidden;
  box-shadow: 0 1px 6px rgba(20, 40, 70, .04);
}
.dyn-col-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px 11px; border-bottom: 1px solid #dbe7f6;
  background: linear-gradient(180deg, #e3eefb, #fff);
}
.dyn-col-head h3 {
  position: relative; margin: 0; padding-left: 12px;
  font-family: SimHei, 'Microsoft YaHei', sans-serif; font-weight: 700;
  font-size: 18px; color: #1f2733; letter-spacing: .5px;
}
.dyn-col-head h3::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 17px; border-radius: 2px;
  background: linear-gradient(180deg, #2f7bd9, #1a4f9c);
}
.dyn-c-list { list-style: none; margin: 0; padding: 4px 16px 2px; }
.dyn-c-list li { height: 34px; display: flex; align-items: center; }
.dyn-c-row {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: #2b3440; font-size: 14px; line-height: 34px;
  border-bottom: 1px dashed #f1f3f6;
}
.dyn-c-row i {
  flex: 0 0 auto; width: 4px; height: 4px; border-radius: 50%;
  background: #2f7bd9; opacity: .75;
}
.dyn-c-row span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dyn-c-row time { flex: 0 0 auto; font: 11.5px var(--mono, monospace); color: #9aa5b1; }
.dyn-c-row:hover { color: #2f7bd9; }
.dyn-c-empty { border-bottom: 1px dashed #f4f6f9; }
.dyn-c-empty:last-child { border-bottom: none; }

/* 第 28 轮：横幅条下方「AI夜校进行时」专栏（仿六项战役进行时版式：毛笔字 + 两侧蓝线） */
.dyn-ai {
  margin-top: 18px; background: #fff; border: 1px solid #eceff3; border-radius: 8px;
  padding: 0 0 8px; overflow: hidden;
  box-shadow: 0 1px 6px rgba(20, 40, 70, .04);
}
.dyn-ai-head {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px 12px;
}
.dyn-ai-line {
  flex: 1 1 auto; height: 2px; min-width: 30px; border-radius: 1px;
  background: linear-gradient(90deg, rgba(26, 86, 184, .05), #1a56b8);
}
.dyn-ai-line:last-of-type {
  background: linear-gradient(90deg, #1a56b8, rgba(26, 86, 184, .05));
}
.dyn-ai-title {
  flex: 0 0 auto; margin: 0; white-space: nowrap;
  font-family: 'STXingkai', '华文行楷', 'STKaiti', 'KaiTi', '楷体', serif;
  font-weight: 700; font-size: 58px; letter-spacing: 3px; line-height: 1;
  color: #1a56b8;
}
.dyn-ai-title i {
  font-style: normal; display: inline-block; margin-left: 8px;
  font-size: 34px; letter-spacing: 2px; color: #e60012;
  transform: translateY(11px) skewX(-8deg);
}
/* 字母 I 用衬线体，避免华文行楷里像「7」 */
.dyn-ai-title .ai-i {
  font-family: 'Times New Roman', Georgia, serif; letter-spacing: 0;
}
.dyn-ai-more {
  flex: 0 0 auto; border: none; background: none; cursor: pointer;
  font-size: 13.5px; color: #1a56b8; padding: 4px 2px;
}
.dyn-ai-more:hover { text-decoration: underline; }
.dyn-ai-list { list-style: none; margin: 0; padding: 2px 20px 4px; }
.dyn-ai-list li { height: 34px; display: flex; align-items: center; }
.dyn-ai-list .dyn-c-row i { background: #e60012; }
.dyn-ai-empty span { color: #9aa5b1; font-size: 13px; }

@media (max-width: 760px) {
  .dyn-ai-head { padding: 12px 12px 8px; gap: 10px; }
  .dyn-ai-title { font-size: 30px; letter-spacing: 1.5px; }
  .dyn-ai-title i { font-size: 20px; }
  .dyn-ai-list { padding: 2px 14px 4px; }
  .dyn-ai-list li { height: 32px; }
}

@media (max-width: 760px) {
  .dyn-content { grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
  .dyn-col-head { padding: 11px 14px 10px; }
  .dyn-col-head h3 { font-size: 16px; }
  .dyn-c-list { padding: 2px 14px 2px; }
  .dyn-c-list li { height: 32px; }
  .dyn-c-row { font-size: 13.5px; line-height: 32px; }
}

/* ============================================================
   第 27 轮 · 工作动态「最新文章直出」版式（参考政务新闻专题）
   单篇大图 + 蓝色标题 + 缩进正文 + 阅读全文/查看更多
   ============================================================ */
.dyn-wrap--latest {
    display: block;
    background: #fff;
    border: 1px solid #e7edf4;
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(23, 54, 93, .08);
    padding: 30px 34px;
}
.dyn-latest {
    display: grid; grid-template-columns: 640px minmax(0, 1fr);
    gap: 30px; align-items: start;
}
.dyn-latest-media {
    display: block; position: relative; height: 420px;
    border-radius: 3px; overflow: hidden; text-decoration: none;
    background: linear-gradient(160deg, #1a5284 0%, #0d2a4d 100%);
    box-shadow: 0 4px 14px rgba(13, 42, 77, .22);
}
.dyn-latest-media img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .3s ease;
}
.dyn-latest-media:hover img { transform: scale(1.03); }
.dyn-latest-media.noimg {
    display: flex; align-items: center; justify-content: center;
}
.dyn-latest-noimg {
    color: rgba(255, 255, 255, .9); font-size: 15px; letter-spacing: 4px;
    font-weight: 700;
}
.dyn-latest-body h2 {
    margin: 2px 0 10px; font-size: 24px; line-height: 1.5; font-weight: 700;
}
.dyn-latest-body h2 a {
    color: #15649c; text-decoration: none;
}
.dyn-latest-body h2 a:hover { color: #0d4a78; }
.dyn-latest-meta { margin: 0 0 14px; font-size: 13px; color: #8a97a6; }
.dyn-latest-text {
    margin: 0 0 18px; font-size: 15.5px; line-height: 2.05; color: #3d4756;
    text-indent: 2em;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.dyn-latest-links { display: flex; gap: 26px; align-items: center; }
.dyn-latest-links a,
.dyn-latest-more {
    font-size: 14.5px; font-weight: 700; color: #15649c; text-decoration: none;
    background: none; border: none; padding: 0; cursor: pointer;
    font-family: inherit;
}
.dyn-latest-links a:hover,
.dyn-latest-more:hover { color: #b02a1e; }
.dyn-more-list {
    margin-top: 26px; padding-top: 20px;
    border-top: 1px solid #eef2f7;
}
.dyn-more-list .dyn-row { font-size: 15px; }
@media (max-width: 720px) {
    .dyn-wrap--latest { padding: 18px 16px; }
    .dyn-latest { grid-template-columns: 1fr; gap: 16px; }
    .dyn-latest-media { height: 180px; }
    .dyn-latest-body h2 { font-size: 19px; }
    .dyn-latest-text { font-size: 14px; line-height: 1.9; }
}

/* ============================================================
   第 28 轮 · 焦点图轮播（全栏目采集，最多 6 张，自动滚动）
   ============================================================ */
.dyn-media-col {
    position: relative; display: flex; flex-direction: column; gap: 0;
}
.dyn-carousel {
    position: relative; height: 357px;
    border-radius: 3px; overflow: hidden;
    background: linear-gradient(160deg, #1a5284 0%, #0d2a4d 100%);
    box-shadow: 0 4px 14px rgba(13, 42, 77, .22);
}
.dyn-slide {
    position: absolute; inset: 0; display: block;
    opacity: 0; transition: opacity .6s ease;
    text-decoration: none;
}
.dyn-slide.active { opacity: 1; }
.dyn-slide img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.dyn-carousel-dots {
    position: absolute; right: 14px; bottom: 48px; z-index: 3;
    display: flex; gap: 8px;
}
.dyn-dot {
    width: 11px; height: 11px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.85);
    background: rgba(255,255,255,.28); cursor: pointer; padding: 0;
    transition: background .2s ease, transform .2s ease;
}
.dyn-dot:hover { transform: scale(1.15); }
.dyn-dot.active { background: #fff; box-shadow: 0 0 6px rgba(255,255,255,.6); }
/* 标题覆盖在图片最底部：半透明深蓝条 + 白字 */
.dyn-carousel-title {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    margin: 0; padding: 8px 14px 9px;
    font-size: 17px; font-weight: 700; color: #fff;
    line-height: 1.5; text-decoration: none;
    background: linear-gradient(180deg, rgba(9, 30, 60, 0), rgba(9, 30, 60, .72));
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}
.dyn-carousel-title:hover { color: #ffd9d3; }
@media (max-width: 720px) {
    .dyn-carousel { height: 187px; }
    .dyn-carousel-title { font-size: 14px; padding: 6px 10px 7px; }
    .dyn-carousel-dots { bottom: 40px; }
}

/* 第 42 轮：hidden 修复 + 栏目「更多」入口与栏目全部文章页 */
/* 关键修复：列表项使用 display:flex，会覆盖 hidden 属性的默认 display:none，导致「查看更多」隐藏失效 */
[hidden] { display: none !important; }
.dyn-col-more { flex: 0 0 auto; font-size: 13px; color: #1a56b8; text-decoration: none; padding: 4px 2px; }
.dyn-col-more:hover { text-decoration: underline; }
.dyn-colpage { margin: 4px 0 34px; }
.dyn-colpage .dyn-c-list { padding: 8px 20px 14px; }
.dyn-colpage .dyn-c-empty { height: auto; padding: 18px 0 22px; justify-content: center; color: #9aa5b1; font-size: 13px; }
