/* wenbita.cn 焦点资讯轮播模块样式 */
.wbt-focus{max-width:1180px;margin:14px auto 4px;padding:0 16px;box-sizing:border-box}
.wbt-shell{display:flex;gap:12px;align-items:stretch;max-width:1180px;margin:14px auto 4px;padding:0 16px;box-sizing:border-box}
.wbt-main{flex:1;min-width:0}
.wbt-focus-inner{position:relative;border-radius:8px;overflow:hidden;background:#101a2e;box-shadow:0 6px 22px rgba(8,15,30,.16)}
.wbt-track{display:flex;transition:transform .55s cubic-bezier(.22,.61,.36,1);will-change:transform}
.wbt-slide{flex:0 0 100%;display:flex;flex-direction:column;text-decoration:none;color:#fff;min-width:0}
.wbt-photo{position:relative;aspect-ratio:var(--wbt-ratio,16 / 9);background:#0b1020;overflow:hidden;display:block}
.wbt-photo img{width:100%;height:100%;object-fit:cover;display:block}
.wbt-bar{display:flex;align-items:center;gap:12px;padding:10px 12px;background:#101a2e;min-height:56px;box-sizing:border-box}
.wbt-bar-txt{flex:1;min-width:0}
.wbt-bar-txt h3{margin:0;font-size:15px;line-height:1.45;font-weight:600;color:#fff;
  display:-webkit-box;-webkit-line-clamp:var(--wbt-lines,2);-webkit-box-orient:vertical;overflow:hidden}
.wbt-bar-txt p{margin:3px 0 0;font-size:12px;line-height:1.5;color:rgba(255,255,255,.62);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wbt-tag{display:inline-block;font-size:11px;line-height:1.6;padding:1px 7px;border-radius:3px;margin-right:6px;
  background:var(--accent,var(--gold,#ffd54f));color:#101a2e;font-weight:600;vertical-align:2px;font-style:normal}
.wbt-tabs{position:absolute;right:10px;bottom:9px;display:flex;gap:5px;z-index:4}
.wbt-tabs button{width:24px;height:24px;padding:0;border-radius:4px;border:1px solid rgba(255,255,255,.3);
  background:rgba(255,255,255,.06);color:#fff;font-size:12px;line-height:22px;text-align:center;cursor:pointer}
.wbt-tabs button.on{background:var(--accent,var(--gold,#ffd54f));border-color:transparent;color:#101a2e;font-weight:700}
.wbt-thumbs{display:flex;gap:8px;padding:9px 10px;background:#0b1424;overflow-x:auto}
.wbt-thumbs img{width:78px;height:48px;object-fit:cover;border-radius:4px;opacity:.5;cursor:pointer;flex:0 0 auto;
  border:2px solid transparent;transition:opacity .2s,border-color .2s}
.wbt-thumbs img.on{opacity:1;border-color:var(--accent,var(--gold,#ffd54f))}
.wbt-thumbs img:hover{opacity:.85}
.wbt-arrow{position:absolute;top:38%;transform:translateY(-50%);width:30px;height:46px;border:0;padding:0;z-index:3;
  background:rgba(8,15,30,.4);color:#fff;font-size:17px;line-height:46px;cursor:pointer;opacity:0;transition:opacity .2s}
.wbt-focus-inner:hover .wbt-arrow{opacity:1}
.wbt-prev{left:0;border-radius:0 6px 6px 0}
.wbt-next{right:0;border-radius:6px 0 0 6px}
.wbt-side{flex:0 0 288px;display:flex;flex-direction:column;background:#fff;border:1px solid #e9edf5;
  border-radius:8px;padding:10px 12px;box-sizing:border-box}
.wbt-side-h{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#8a94a6;
  padding-bottom:8px;border-bottom:1px solid #f0f3f8}
.wbt-side-h b{font-size:14px;color:#101a2e;font-weight:700}
.wbt-side ul{list-style:none;margin:0;padding:0;flex:1;display:flex;flex-direction:column;justify-content:space-between}
.wbt-side li{display:flex;gap:8px;align-items:flex-start;padding:7px 0;cursor:pointer;border-bottom:1px dashed #f2f5fa}
.wbt-side li:last-child{border-bottom:0}
.wbt-side li i{font-style:normal;flex:0 0 18px;height:18px;line-height:18px;text-align:center;font-size:11px;
  border-radius:3px;background:#f0f3f8;color:#8a94a6;font-weight:700}
.wbt-side li span{font-size:13px;line-height:1.5;color:#33405a;display:-webkit-box;-webkit-line-clamp:2;
  -webkit-box-orient:vertical;overflow:hidden}
.wbt-side li.on i{background:var(--accent,var(--gold,#ffd54f));color:#101a2e}
.wbt-side li.on span{color:#101a2e;font-weight:600}
.wbt-side li:hover span{color:#c58a00}
/* 主题深色背景下，侧栏在窄屏收起；图片更扁一点，首屏更紧凑 */
@media (max-width:900px){ .wbt-shell{display:block;padding:0 16px} .wbt-side{display:none} }
@media (max-width:640px){ .wbt-photo{aspect-ratio:4 / 3} .wbt-arrow{display:none} .wbt-thumbs img{width:64px;height:40px} }

/* ================= ③④⑤ 首页打磨（纯样式覆盖，不修改主题模板） ================= */

/* ③ 重点专题：把图片下方那条无语义的纯红色块 → 改成新闻网站式角标签（挪到图片左上角） */
.project-card{transition:transform .2s ease,box-shadow .2s ease}
.project-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(15,23,42,.12)}
.project-card-media{position:relative;overflow:hidden}
.project-card-media small{
  position:absolute;left:8px;top:8px;right:auto;bottom:auto;margin:0;display:inline-block;
  background:rgba(214,45,45,.92);color:#fff;font-size:11px;line-height:1.7;padding:1px 8px;
  border-radius:3px;font-weight:600;letter-spacing:.2px;
}
.project-card-body strong{font-size:15px;line-height:1.5;color:#141d2f;font-weight:700;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.project-card-body small, .project-card-body em{font-size:11.5px;color:#8a94a6;font-style:normal}

/* ④ 最新动态右栏：加左侧色条 + 主次分层，改变"纯文字墙"的观感 */
.news-row{position:relative;padding-left:11px;transition:background .2s ease}
.news-row::before{content:'';position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:2px;
  background:#edf1f7;transition:background .2s ease}
.news-row:hover{background:#fafbfe}
.news-row:hover::before{background:var(--accent,var(--gold,#ffd54f))}
.news-row-copy strong{font-size:14.5px;line-height:1.5;color:#1b2437;font-weight:600;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.news-row-copy small{font-size:12px;line-height:1.65;color:#8a94a6;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.news-row time strong{font-size:19px;font-weight:800;color:#b8860b;line-height:1.05}
.news-row time span{font-size:11px;color:#a8b0c0}

/* ⑤ 文山州情：卡片加左侧金边 + 淡底，摆脱"占位卡"观感 */
.policy-card{position:relative;overflow:hidden;border-left:3px solid var(--accent,var(--gold,#ffd54f));
  background:linear-gradient(135deg,#fbfcfe 0%,#f4f7fc 100%);border-radius:6px;
  transition:transform .2s ease,box-shadow .2s ease}
.policy-card:hover{transform:translateY(-2px);box-shadow:0 8px 20px rgba(15,23,42,.1)}
.policy-card-body strong{font-size:15px;font-weight:700;color:#101a2e;line-height:1.45}
.policy-card-body time{font-size:12px;color:#94a0b4}
.policy-badge{border-radius:3px;font-size:11px;padding:2px 7px;font-weight:600}

/* 手机端字号收敛，避免显得笨重 */
@media (max-width:640px){
  .news-row time strong{font-size:16px}
  .project-card-body strong,.policy-card-body strong{font-size:14px}
  .news-row-copy small{display:none}
}

/* ④ 右栏缩略图 */
.news-row{display:flex;gap:10px;align-items:flex-start}
.news-row-thumb{flex:0 0 auto;width:62px;height:62px;object-fit:cover;border-radius:5px;background:#eef1f6}
.news-row time{flex:0 0 auto}
.news-row-copy{flex:1;min-width:0}
@media (max-width:640px){ .news-row-thumb{width:52px;height:52px} }

/* ================= 首页观感加强（第二轮，纯样式） ================= */

/* 1. 分区标题统一加金色竖条 + 放大，打破"四段复制粘贴"的平淡 */
.section-heading{position:relative;padding-left:12px}
.section-heading::before{content:'';position:absolute;left:0;top:4px;bottom:4px;width:4px;border-radius:2px;
  background:linear-gradient(180deg,var(--accent,var(--gold,#ffd54f)),#c58a00)}
.section-heading h2{font-size:22px!important;font-weight:800!important;letter-spacing:.5px}
.section-heading .eyebrow{color:#b8860b!important;font-weight:600;letter-spacing:1.6px;text-transform:uppercase}
.section-heading-row{border-bottom:1px solid #eef1f7;padding-bottom:10px;margin-bottom:18px}

/* 2. 板块底色交替，页面有"节奏" */
.section-news{background:#fff}
.section-activity{background:#f6f8fc}
.section-policy{background:#fff}
.home-projects{background:#f6f8fc}

/* 3. 卡片更立体：统一圆角、阴影、悬停上浮 */
.project-card,.policy-card,.activity-card,.news-row{
  border-radius:8px;transition:transform .22s ease,box-shadow .22s ease,background .22s ease}
.project-card,.policy-card,.activity-card{box-shadow:0 1px 3px rgba(15,23,42,.06)}
.project-card:hover,.policy-card:hover,.activity-card:hover{
  transform:translateY(-3px);box-shadow:0 12px 28px rgba(15,23,42,.13)}

/* 4. ④ 右栏缩略图放大 + 间距拉开，一眼能看出是"图文列表" */
.news-row{padding:10px 10px 10px 12px;gap:12px;border-radius:8px}
.news-row-thumb{width:84px!important;height:84px!important;border-radius:6px}
.news-row-copy strong{font-size:15px!important;line-height:1.5}
.news-row-copy small{font-size:12.5px;color:#98a2b3}
.news-row time strong{font-size:22px!important}

/* 5. ⑤ 文山州情：卡片加高 + 徽标做成色块，摆脱"占位卡" */
.policy-card{padding:14px!important;min-height:96px;border-left-width:4px!important;
  background:linear-gradient(135deg,#ffffff 0%,#f2f6fd 100%)!important}
.policy-badge{display:inline-block;padding:3px 10px!important;border-radius:4px!important;font-size:11.5px!important;
  background:var(--accent,var(--gold,#ffd54f))!important;color:#101a2e!important}
.policy-card-body strong{font-size:15.5px!important;margin-top:6px;display:block}
.policy-card-body time{font-size:12px;color:#9aa5b8}

/* 6. ③ 重点专题：角标更醒目 + 标题更有分量 */
.project-card-media small{font-size:11.5px!important;padding:3px 10px!important;border-radius:4px!important}
.project-card-body strong{font-size:15.5px!important;font-weight:700}

/* 7. 最新活动卡片：图片圆角 + 标题加重 */
.activity-card img{border-radius:6px 6px 0 0}

@media (max-width:640px){
  .section-heading h2{font-size:19px!important}
  .news-row-thumb{width:64px!important;height:64px!important}
  .news-row time strong{font-size:18px!important}
}

/* ================= 第三轮：补齐"薄"的地方 ================= */

/* 1) 最新动态：左主卡不再底部空一截，与右栏等高；图片加高 */
.home-news-grid{display:grid!important;grid-template-columns:1.32fr 1fr!important;gap:18px!important;align-items:stretch!important}
.featured-news{display:flex!important;flex-direction:column!important;background:#fff;border-radius:8px;overflow:hidden;
  border:1px solid #eef1f7;box-shadow:0 1px 3px rgba(15,23,42,.06)}
.featured-news-media{display:block;flex:0 0 auto}
.featured-news-media img{width:100%!important;height:252px!important;object-fit:cover;display:block}
.featured-news-body,.featured-news-copy{padding:12px 15px 16px}
.featured-news:not(:has(.featured-news-media)){padding:14px}

/* 2) 最新活动卡片：图片加高，卡片有"份量" */
.activity-card img{width:100%!important;height:152px!important;object-fit:cover}
.activity-card{padding-bottom:10px}

/* 3) 重点专题：图片加高 + 内边距，角标更贴图 */
.project-card-media img{width:100%!important;height:186px!important;object-fit:cover;display:block}
.project-card-body{padding:12px 14px 14px}

/* 4) 焦点轮播注脚条加一条金色细线，强化"正在播放"的观感 */
.wbt-bar{border-top:1px solid rgba(255,213,79,.28)}

/* 5) 窄屏回退，避免版式错位 */
@media (max-width:900px){
  .home-news-grid{grid-template-columns:1fr!important;gap:14px!important}
  .featured-news-media img{height:200px!important}
  .project-card-media img,.activity-card img{height:170px!important}
}

/* ================= 第四轮：紧凑化（压缩栏目间距/留白，填掉顶部空横幅） ================= */

/* 1) 栏目上下留白大幅压缩 */
.section,.home-section,section.section{padding-top:18px!important;padding-bottom:18px!important;
  margin-top:0!important;margin-bottom:0!important}
.section-inner,.home-section-inner,.container{padding-top:0!important;padding-bottom:0!important}
.section:first-of-type{padding-top:8px!important}
.wbt-focus{margin-top:8px!important;margin-bottom:6px!important}

/* 2) 栏目头与内容间距压缩 */
.section-heading-row{margin-bottom:10px!important;padding-bottom:7px!important}
.section-heading{margin-bottom:0!important}
.section-footer,.section-more{margin-top:8px!important}

/* 3) 卡片网格间距压缩 */
.project-grid,.activity-card-list,.policy-card-grid,.home-news-grid,.card-grid,.news-list{
  gap:12px!important;row-gap:12px!important}
.project-grid,.policy-card-grid,.activity-card-list{margin-top:2px!important;margin-bottom:2px!important}
.policy-card{padding:12px!important;min-height:84px!important}
.project-card-body{padding:10px 12px 12px!important}
.featured-news-media img{height:232px!important}

/* 4) 列表条目本身更紧 */
.news-row{padding:8px 8px 8px 11px!important}

/* 5) 页脚上方也别留大空 */
footer,.site-footer{margin-top:14px!important;padding-top:16px!important}

@media (max-width:640px){
  .section,.home-section{padding-top:14px!important;padding-bottom:14px!important}
  .project-grid,.policy-card-grid,.activity-card-list{gap:10px!important}
  .featured-news-media img{height:190px!important}
}


/* 兜底版式（回到用户认可的版本）：模块自身宽度 + 居中 */
.wbt-focus{max-width:1180px;margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;box-sizing:border-box}
@media (max-width:1220px){.wbt-focus{max-width:100%}}

/* ================= 手机端防溢出（v15）：不让任何模块把页面撑开 ================= */
@media (max-width:900px){
  html,body{overflow-x:hidden!important;max-width:100%!important;width:100%!important}
  body *{max-width:100%}
  .home-news-grid,.project-grid,.policy-card-grid,.activity-card-list,.news-list,.card-grid,
  .home-section-inner,.section-inner,.container{display:grid!important;grid-template-columns:1fr!important;
    gap:12px!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important}
  .section,.home-section{padding-left:12px!important;padding-right:12px!important;box-sizing:border-box!important;overflow:hidden}
  .news-row{display:flex!important;flex-wrap:nowrap!important;width:100%!important;max-width:100%!important;overflow:hidden!important}
  .news-row-copy{flex:1 1 auto!important;min-width:0!important}
  .news-row-thumb{width:64px!important;height:64px!important;flex:0 0 64px!important}
  .featured-news,.featured-news-media,.featured-news-media img{width:100%!important;max-width:100%!important}
  .featured-news-media img{height:190px!important}
  .project-card,.project-card-media img,.project-card-body,.policy-card,.activity-card{width:100%!important;max-width:100%!important;box-sizing:border-box!important}
  .project-card-media img,.activity-card img{height:170px!important}
  .policy-card{min-height:0!important;padding:12px!important}
  .wbt-focus{max-width:100%!important;width:100%!important;padding-left:12px!important;padding-right:12px!important;overflow:hidden!important}
  .wbt-shell{display:block!important;width:100%!important;max-width:100%!important;overflow:hidden!important}
  .wbt-main{display:block!important;width:100%!important;max-width:100%!important}
  .wbt-side{display:none!important}
  .wbt-photo img,.wbt-slide img{width:100%!important;height:auto!important;max-width:100%!important;object-fit:cover!important}
  .wbt-thumbs{display:flex!important;flex-wrap:wrap!important;gap:6px!important;overflow:hidden!important;width:100%!important}
  .wbt-thumbs img,.wbt-thumbs a{width:60px!important;height:34px!important;flex:0 0 auto!important;object-fit:cover!important}
  .wbt-bar-txt h3{font-size:14px!important;line-height:1.4!important}
  img,video,iframe,table,pre{max-width:100%!important;height:auto!important}
  .section-heading h2{font-size:18px!important}
}

/* ================= 手机端对齐（v16）：去掉重复内距，轮播与下方栏目同一边界 ================= */
@media (max-width:900px){
  .wbt-focus{padding-left:0!important;padding-right:0!important;margin-left:0!important;margin-right:0!important;
    max-width:100%!important;width:100%!important}
  .wbt-shell,.wbt-main,.wbt-side{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}
  .section,.home-section,section.section{padding-left:16px!important;padding-right:16px!important;box-sizing:border-box!important}
  .home-section-inner,.section-inner{width:100%!important;max-width:100%!important;padding-left:0!important;padding-right:0!important}
  .wbt-thumbs{margin-left:0!important;margin-right:0!important}
}

/* ================= 手机端精确对齐（v17）：清掉轮播外层容器的额外内距 ================= */
@media (max-width:900px){
  .home-focus{padding-left:32px!important;padding-right:32px!important;box-sizing:border-box!important}
  .home-focus .container,.home-focus .container-fluid,.home-focus .wrap,.home-focus .inner,
  .home-focus .home-section-inner,.home-focus .section-inner,.home-focus > div{
    padding-left:0!important;padding-right:0!important;margin-left:0!important;margin-right:0!important;
    width:100%!important;max-width:100%!important;box-sizing:border-box!important}
  .wbt-focus{padding-left:0!important;padding-right:0!important;margin-left:0!important;margin-right:0!important;
    width:100%!important;max-width:100%!important;box-sizing:border-box!important}
  .wbt-shell,.wbt-main{width:100%!important;max-width:100%!important;margin:0!important}
}
