/* 第五批 UI 整改：PC / 平板 / 手机统一响应式版面。仅覆盖视觉，不改采集、发布和 SEO 数据逻辑。 */
:root{
  --content:1280px;
  --home-gap:18px;
  --home-card-radius:16px;
}

/* 全局宽度与纵向节奏 */
.site-shell{width:min(var(--content),calc(100% - 40px))}
.main-content{padding-top:20px;padding-bottom:54px}
.home-seo-intro{align-items:center;margin-bottom:16px;padding:16px 20px;border-radius:16px}
.home-seo-intro h1{font-size:28px;line-height:1.24}
.home-seo-intro p{max-width:620px;font-size:13px;line-height:1.65}

/* 首页头条：PC 端主视觉 + 紧凑动态列表 */
.home-lead{grid-template-columns:minmax(0,1.72fr) minmax(320px,.72fr);gap:18px;margin-bottom:0}
.home-lead-main{min-height:410px;border-radius:20px}
.home-lead-overlay{padding:110px 30px 28px}
.home-lead-overlay strong{max-width:820px;font-size:30px;line-height:1.28}
.home-lead-overlay em{max-width:720px;font-size:13px;line-height:1.7}
.home-lead-side{border-radius:18px}
.home-lead-side-head{padding:18px 18px 13px}
.home-lead-side>a{min-height:101px;padding:14px 18px;align-content:center}
.home-lead-side>a>strong{font-size:14px;line-height:1.5}

/* 首页栏目：取消“更多最新内容”重复层后，让真正栏目成为连续内容流 */
.section-block{margin-top:20px;padding:20px;border-radius:18px}
.section-title{align-items:center;margin-bottom:15px}
.section-title h2{font-size:22px;line-height:1.3}
.section-title a{font-size:13px;white-space:nowrap}
.card-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.content-card{display:flex;min-width:0;flex-direction:column;border-radius:var(--home-card-radius);box-shadow:0 5px 18px rgba(20,42,78,.05)}
.card-image{height:auto;aspect-ratio:16/9;min-height:0}
.card-image img{position:absolute;inset:0;width:100%;height:100%}
.image-placeholder{position:absolute;inset:0;height:auto;padding:14px;text-align:center}
.card-body{display:flex;min-width:0;flex:1;flex-direction:column;padding:13px 14px 14px}
.card-topline{min-width:0;align-items:center}
.category-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card-body h3{margin:7px 0 6px;font-size:15px;line-height:1.45}
.card-body h3 a{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.card-body p{min-height:41px;font-size:12.5px;line-height:1.62;-webkit-line-clamp:2}
.card-meta{margin-top:auto;padding-top:9px}

/* 避免首页无图卡像“大块空白”，统一做内容型占位 */
.card-image:not(.video-card-image) .image-placeholder{background:linear-gradient(145deg,#eaf3ff,#dceafe);font-size:15px;letter-spacing:.02em}
.home-lead-placeholder{font-size:34px}

/* 平板 */
@media (max-width:1080px){
  :root{--content:1040px}
  .site-shell{width:min(var(--content),calc(100% - 30px))}
  .home-lead{grid-template-columns:minmax(0,1.45fr) minmax(290px,.75fr);gap:14px}
  .home-lead-main{min-height:370px}
  .home-lead-overlay strong{font-size:27px}
  .card-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
}

/* 小平板：头条改一列，卡片 2 列 */
@media (max-width:860px){
  .home-seo-intro{display:block}
  .home-seo-intro p{max-width:none;margin-top:6px;text-align:left}
  .home-lead{grid-template-columns:1fr}
  .home-lead-main{min-height:360px}
  .home-lead-side{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
  .home-lead-side-head{grid-column:1/-1}
  .home-lead-side>a{min-height:112px;border-right:1px solid #edf1f6;border-bottom:0}
  .home-lead-side>a:last-child{border-right:0}
  .card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* 手机：真正的“图左文右”信息流，避免以前固定高度导致拥挤和大片空白 */
@media (max-width:700px){
  :root{--home-gap:10px}
  .site-shell{width:calc(100% - 20px)}
  .main-content{padding-top:11px;padding-bottom:36px}
  .home-seo-intro{margin-bottom:10px;padding:12px 13px;border-radius:13px}
  .home-seo-intro span{font-size:10px}
  .home-seo-intro h1{font-size:21px;line-height:1.28}
  .home-seo-intro p{margin-top:5px;font-size:12px;line-height:1.55;-webkit-line-clamp:2}

  .home-lead{gap:10px}
  .home-lead-main{min-height:270px;border-radius:14px}
  .home-lead-overlay{padding:74px 16px 16px}
  .home-lead-overlay small{font-size:10px}
  .home-lead-overlay strong{margin:8px 0 4px;font-size:21px;line-height:1.32;-webkit-line-clamp:2}
  .home-lead-overlay em{font-size:12px;line-height:1.55;-webkit-line-clamp:2}
  .home-lead-overlay b{margin-top:8px;font-size:12px}
  .home-lead-placeholder{font-size:25px}

  .home-lead-side{display:block;border-radius:13px}
  .home-lead-side-head{display:flex;align-items:center;justify-content:space-between;padding:11px 13px 9px}
  .home-lead-side-head span,.home-lead-side-head strong{display:inline}
  .home-lead-side-head strong{font-size:16px}
  .home-lead-side>a{display:grid;grid-template-columns:minmax(0,1fr) auto;min-height:0;padding:11px 13px;border-right:0;border-bottom:1px solid #edf1f6}
  .home-lead-side>a>strong{font-size:13px;line-height:1.42;-webkit-line-clamp:2}
  .home-lead-side>a>small{font-size:10px}

  .section-block{margin-top:12px;padding:12px;border-radius:14px}
  .section-title{margin-bottom:10px}
  .section-title small{font-size:10px}
  .section-title h2{font-size:19px}
  .section-title a{padding:5px 2px;font-size:12px}
  .card-grid,.list-grid{grid-template-columns:1fr;gap:9px}
  .content-card{display:grid;height:auto!important;min-height:116px!important;grid-template-columns:126px minmax(0,1fr);align-items:stretch;border-radius:12px;transform:none!important}
  .card-image{height:100%!important;min-height:116px!important;aspect-ratio:auto;border-radius:0}
  .card-image img{object-fit:cover}
  .card-body{padding:9px 10px 9px}
  .card-topline{font-size:10px;line-height:1.3}
  .card-body h3{margin:5px 0 4px;font-size:14px;line-height:1.38}
  .card-body p{display:-webkit-box!important;min-height:0;margin:0;font-size:11.5px;line-height:1.45;-webkit-line-clamp:2}
  .card-meta{margin-top:auto;padding-top:5px;font-size:10px}
  .video-play-button{width:40px;height:40px;border-width:2px}
  .video-play-button span{border-top-width:7px;border-bottom-width:7px;border-left-width:12px}
  .video-badge{right:6px;top:6px;padding:2px 6px;font-size:10px}
}

/* 窄屏：进一步收紧图片宽度，保留标题/摘要/阅读信息，不挤压文字 */
@media (max-width:430px){
  .site-shell{width:calc(100% - 16px)}
  .home-seo-intro h1{font-size:20px}
  .home-lead-main{min-height:245px}
  .home-lead-overlay strong{font-size:19px}
  .content-card{grid-template-columns:108px minmax(0,1fr);min-height:112px!important}
  .card-image{min-height:112px!important}
  .card-body{padding:8px 9px}
  .card-body h3{font-size:13.5px}
  .card-body p{font-size:11px;-webkit-line-clamp:2}
  .card-meta a{display:none}
  .card-topline time{display:none}
}

/* 第五批 UI 二次整改：手机端与 Telegram 官方频道入口。放在文件末尾，专门收口历史样式冲突。 */
html,body{max-width:100%;overflow-x:hidden}
.channel-cta-wrap{padding:12px 0;background:linear-gradient(110deg,#0b3c78 0%,#0b67b9 48%,#12a4c9 100%)}
.channel-cta-panel{display:grid;grid-template-columns:minmax(260px,.72fr) minmax(0,1.8fr);align-items:center;gap:18px}
.channel-cta-heading{display:flex;align-items:center;gap:11px;min-width:0;color:#fff}
.channel-telegram-mark{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border:1px solid rgba(255,255,255,.22);border-radius:14px;background:rgba(255,255,255,.14);box-shadow:inset 0 1px 0 rgba(255,255,255,.12)}
.channel-telegram-mark svg,.channel-icon svg{display:block;width:22px;height:22px;fill:currentColor}
.channel-cta-heading-copy{display:block;min-width:0}
.channel-cta-heading-copy strong{display:block;font-size:15px;line-height:1.25;letter-spacing:.01em}
.channel-cta-heading-copy small{display:block;margin-top:3px;color:rgba(255,255,255,.76);font-size:11px;line-height:1.4}
.channel-cta-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
.channel-cta{position:relative;display:flex;align-items:center;gap:11px;min-width:0;min-height:64px;padding:10px 12px;border:1px solid rgba(255,255,255,.22);border-radius:15px;background:rgba(255,255,255,.12);color:#fff;text-decoration:none;box-shadow:0 7px 22px rgba(4,35,74,.10);overflow:hidden;isolation:isolate}
.channel-cta::after{content:"";position:absolute;right:-24px;top:-36px;z-index:-1;width:100px;height:100px;border-radius:50%;background:rgba(255,255,255,.08)}
.channel-cta:hover{transform:translateY(-2px);border-color:rgba(255,255,255,.38);background:rgba(255,255,255,.18);box-shadow:0 10px 26px rgba(4,35,74,.16)}
.channel-cta-news{background:linear-gradient(135deg,rgba(41,146,235,.38),rgba(255,255,255,.10))}
.channel-cta-gossip{background:linear-gradient(135deg,rgba(28,190,196,.34),rgba(255,255,255,.10))}
.channel-icon{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border:1px solid rgba(255,255,255,.2);border-radius:13px;background:rgba(255,255,255,.17);color:#fff}
.channel-copy{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto;align-items:center!important;column-gap:10px!important;min-width:0;flex:1}
.channel-copy small{grid-column:1;display:block!important;color:rgba(255,255,255,.72)!important;font-size:10px!important;line-height:1.3}
.channel-copy strong{grid-column:1;display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px!important;line-height:1.35}
.channel-copy strong b{font-weight:650;color:#dff5ff}
.channel-copy em{grid-column:2!important;grid-row:1/3!important;display:inline-flex!important;align-items:center;gap:4px;white-space:nowrap;font-size:11px!important;font-weight:800;font-style:normal;color:#fff}
.channel-copy em i{font-size:15px;font-style:normal;line-height:1}

@media(max-width:900px){
  .channel-cta-panel{grid-template-columns:1fr;gap:9px}
  .channel-cta-heading{padding:0 2px}
}

@media(max-width:700px){
  body{background:linear-gradient(180deg,#f3f7fc 0,#f7f9fc 270px)}
  .site-shell{width:calc(100% - 24px);max-width:none}
  .site-header{backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
  .header-inner{min-height:64px!important;grid-template-columns:minmax(0,1fr) 44px 44px!important;gap:8px!important;padding:8px 0!important}
  .brand{min-width:0;gap:9px}
  .brand-mark,.brand-logo{flex:0 0 40px;width:40px!important;height:40px!important;border-radius:13px}
  .brand-copy{min-width:0}
  .brand-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px!important;line-height:1.25}
  .brand-copy small{display:none!important}
  .mobile-nav-toggle,.search-toggle{width:44px!important;height:44px!important;border-radius:13px!important;box-shadow:0 4px 12px rgba(20,42,78,.04)}
  .mobile-nav-toggle{padding:10px!important}
  .mobile-nav-toggle span{height:2px;margin:4px 1px}
  .main-nav{margin-top:1px;padding:7px 0 2px!important;border-top:1px solid #edf1f6}
  .main-nav a{padding:7px 10px!important;font-size:12.5px!important}

  .channel-cta-wrap{padding:10px 0 11px;background:linear-gradient(135deg,#0d4b8f 0%,#0a73bb 54%,#10a6c8 100%)}
  .channel-cta-panel{width:calc(100% - 24px);gap:9px}
  .channel-cta-heading{gap:9px;padding:0 2px}
  .channel-telegram-mark{flex-basis:36px;width:36px;height:36px;border-radius:11px}
  .channel-telegram-mark svg{width:19px;height:19px}
  .channel-cta-heading-copy strong{font-size:14px}
  .channel-cta-heading-copy small{margin-top:2px;font-size:10.5px}
  .channel-cta-grid{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;overflow:visible!important;scroll-snap-type:none!important}
  .channel-cta{width:100%;min-width:0!important;min-height:60px;padding:9px 10px;border-radius:13px;scroll-snap-align:none!important}
  .channel-icon{flex-basis:38px;width:38px;height:38px;border-radius:12px}
  .channel-icon svg{width:20px;height:20px}
  .channel-copy small{font-size:9.5px!important}
  .channel-copy strong{font-size:13.5px!important}
  .channel-copy em{display:inline-flex!important;padding:5px 7px;border:1px solid rgba(255,255,255,.17);border-radius:999px;background:rgba(255,255,255,.12);font-size:10px!important}

  .main-content{padding-top:12px!important;padding-bottom:34px}
  .home-seo-intro{margin-bottom:10px;padding:13px 14px;border-radius:14px}
  .home-seo-intro h1{margin-top:2px;font-size:20px;letter-spacing:-.02em}
  .home-seo-intro p{display:-webkit-box;overflow:hidden;margin:6px 0 0;font-size:11.5px;line-height:1.55;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .home-lead-main{min-height:250px!important;border-radius:15px}
  .home-lead-overlay{padding:70px 15px 15px!important}
  .home-lead-overlay small{padding:4px 8px;font-size:9.5px}
  .home-lead-overlay strong{margin:8px 0 3px;font-size:19px!important;line-height:1.33!important;-webkit-line-clamp:3!important}
  .home-lead-overlay em{display:none!important}
  .home-lead-overlay b{margin-top:9px;font-size:11px}
  .home-lead-side{border-radius:14px}
  .home-lead-side-head{padding:10px 12px 8px!important}
  .home-lead-side-head span{font-size:9.5px}
  .home-lead-side-head strong{font-size:15px!important}
  .home-lead-side>a{grid-template-columns:minmax(0,1fr) auto!important;gap:3px 8px!important;padding:10px 12px!important}
  .home-lead-side>a>strong{grid-column:1/-1!important;font-size:12.5px!important;line-height:1.4!important}
  .home-lead-side>a>small{font-size:9.5px!important}
  .section-block{margin-top:11px!important;padding:12px!important}
  .section-title{margin-bottom:9px!important}
  .section-title h2{font-size:18px!important}
  .section-title a{font-size:11px!important}
}

@media(max-width:430px){
  .site-shell,.channel-cta-panel{width:calc(100% - 20px)}
  .header-inner{grid-template-columns:minmax(0,1fr) 42px 42px!important;gap:7px!important}
  .brand-mark,.brand-logo{flex-basis:38px;width:38px!important;height:38px!important}
  .brand-copy strong{font-size:15px!important}
  .mobile-nav-toggle,.search-toggle{width:42px!important;height:42px!important}
  .channel-cta-heading-copy small{max-width:250px}
  .channel-cta{min-height:58px}
  .channel-copy strong{font-size:13px!important}
  .channel-copy em{padding:4px 6px;font-size:9.5px!important}
  .home-lead-main{min-height:236px!important}
  .home-lead-overlay strong{font-size:18px!important}
}

/* 第五批 UI 三次整改：手机端栏目导航常驻、美化、紧凑自动换行。 */
@media(max-width:700px){
  .header-inner{grid-template-columns:minmax(0,1fr) 44px!important;gap:8px!important}
  .mobile-nav-toggle{display:none!important}
  .search-toggle{grid-column:2!important;grid-row:1!important}
  .main-nav{
    display:flex!important;
    grid-column:1/-1!important;
    grid-row:2!important;
    width:100%;
    margin:2px 0 1px!important;
    padding:9px!important;
    gap:7px!important;
    flex-wrap:wrap!important;
    overflow:visible!important;
    border:1px solid #e3ebf5!important;
    border-radius:15px!important;
    background:linear-gradient(180deg,#fbfdff 0%,#f5f9fe 100%)!important;
    box-shadow:0 5px 16px rgba(23,55,96,.045)!important;
  }
  .main-nav a{
    flex:0 0 auto!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:34px!important;
    margin:0!important;
    padding:7px 11px!important;
    border:1px solid transparent!important;
    border-radius:10px!important;
    background:transparent!important;
    color:#41536d!important;
    font-size:12.5px!important;
    font-weight:760!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    box-shadow:none!important;
  }
  .main-nav a:hover{background:#edf5ff!important;color:#1264c8!important}
  .main-nav a.active{
    border-color:#c7dcf7!important;
    background:linear-gradient(135deg,#eaf4ff,#f5f9ff)!important;
    color:#1264c8!important;
    box-shadow:0 3px 9px rgba(18,100,200,.09)!important;
  }
  .channel-cta-wrap{margin-top:8px!important}
}
@media(max-width:430px){
  .header-inner{grid-template-columns:minmax(0,1fr) 42px!important}
  .main-nav{padding:8px!important;gap:6px!important;border-radius:14px!important}
  .main-nav a{min-height:32px!important;padding:6px 9px!important;font-size:12px!important;border-radius:9px!important}
}
