﻿/* ===== NEWS LAYOUT ===== */
.news-layout{display:grid;grid-template-columns:1fr 340px;gap:60px;align-items:start}

/* 列表页 Banner 标题：PC 渐变字 */
.page-hero--news-list .page-hero-title-accent{
  background:linear-gradient(135deg,#a8c4ff,#fff);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}

/* 分类筛选 */
.news-filter{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:40px}
.news-filter-btn{padding:8px 22px;border-radius:50px;font-size:14px;font-weight:500;cursor:pointer;transition:var(--tr);border:1.5px solid var(--border);background:#fff;color:var(--text-2)}
.news-filter-btn:hover{border-color:var(--blue);color:var(--blue)}
.news-filter-btn.active{background:var(--blue);color:#fff;border-color:var(--blue);box-shadow:0 6px 20px rgba(24,77,196,.28)}

/* 置顶大图新闻 */
.news-featured{border-radius:var(--r);overflow:hidden;box-shadow:var(--sh-m);margin-bottom:32px;cursor:pointer;display:grid;grid-template-columns:1fr 1fr;transition:var(--tr);color:inherit;text-decoration:none;    align-items: center;}
.news-featured:hover{box-shadow:var(--sh-l);transform:translateY(-4px)}
.news-featured-img{position:relative;height:280px;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:0 0 0 18px;box-sizing:border-box}
.news-featured-img img{width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .6s ease;display:block;margin:0 auto}
.news-featured:hover .news-featured-img img{transform:scale(1.05)}
.news-featured-body{padding:36px 32px;background:#fff;display:flex;flex-direction:column;justify-content:center}
.news-hot-tag{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;background:linear-gradient(135deg,#ff4d4d,#ff8c00);color:#fff;border-radius:50px;font-size:11px;font-weight:700;margin-bottom:14px;width:fit-content}
.news-featured-cat{display:inline-block;padding:3px 10px;background:var(--blue-bg);color:var(--blue);border-radius:50px;font-size:11px;font-weight:600;margin-bottom:12px}
.news-featured-title{font-size:22px;font-weight:800;color:var(--dark);line-height:1.45;margin-bottom:14px}
.news-featured-desc{font-size:14px;color:var(--text-2);line-height:1.9;margin-bottom:20px;flex:1}
.news-featured-meta{display:flex;align-items:center;gap:16px;font-size:12px;color:var(--text-3)}
.news-featured-meta span{display:flex;align-items:center;gap:4px}

/* 新闻列表 */
.news-list{display:flex;flex-direction:column;gap:20px}
.news-item{display:grid;grid-template-columns:200px 1fr;gap:20px;border-radius:var(--r-s);overflow:hidden;background:#fff;box-shadow:var(--sh);border:1px solid var(--border);cursor:pointer;transition:var(--tr);color:inherit;text-decoration:none;    align-items: center;}
.news-item:hover{transform:translateY(-4px);box-shadow:var(--sh-m);border-color:transparent}
.news-item-img{height:130px;overflow:hidden;position:relative;margin:0}
.news-item-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease;display:block}
.news-item:hover .news-item-img img{transform:scale(1.06)}
.news-item-body{padding:16px 18px 16px 0;display:flex;flex-direction:column;justify-content:space-between}
.news-item-cat{display:inline-block;padding:2px 9px;background:var(--blue-bg);color:var(--blue);border-radius:50px;font-size:11px;font-weight:600;margin-bottom:8px;width:fit-content}
.news-item-title{font-size:16px;font-weight:700;color:var(--dark);line-height:1.5;margin-bottom:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.news-item-desc{font-size:13px;color:var(--text-2);line-height:1.65;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:10px}
.news-item-meta{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--text-3);flex-wrap:wrap}
.news-item-meta-cat{display:none}

/* PC：列表缩略图居中，两侧留白 */
@media (min-width: 769px) {
  .news-layout .news-item-img {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    box-sizing: border-box;
  }
  .news-layout .news-item-img img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
  }
}

/* 分页 */
.pagination{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:48px}
.page-btn{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:500;cursor:pointer;transition:var(--tr);border:1.5px solid var(--border);background:#fff;color:var(--text-2)}
.page-btn:hover{border-color:var(--blue);color:var(--blue)}
.page-btn.active{background:var(--blue);color:#fff;border-color:var(--blue);box-shadow:0 4px 14px rgba(24,77,196,.3)}
.page-btn.dots{border:none;cursor:default;background:none}
.page-btn.dots:hover{color:var(--text-3);border:none}

/* 侧边栏 */
.sidebar{display:flex;flex-direction:column;gap:28px;position:sticky;top:90px}
.sidebar-box{background:#fff;border-radius:var(--r);box-shadow:var(--sh);border:1px solid var(--border);overflow:hidden}
.sidebar-box--search .sidebar-search-inner{padding:16px 20px}
.sidebar-search-form{display:flex;align-items:center;gap:8px;width:100%}
.sidebar-search-input{flex:1;min-width:0;padding:11px 14px;border:1.5px solid var(--border);border-radius:12px;font-size:13px;color:var(--text);background:#fff;transition:var(--tr)}
.sidebar-search-input:focus{border-color:var(--blue);outline:none;box-shadow:0 0 0 3px rgba(24,77,196,.1)}
.sidebar-search-btn{padding:11px 18px;background:var(--blue);color:#fff;border:none;border-radius:12px;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap;transition:var(--tr)}
.sidebar-search-btn:hover{background:#1240ad}
.sidebar-title{font-size:16px;font-weight:700;color:var(--dark);padding:18px 22px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:8px}
.sidebar-title::before{content:"";display:block;width:3px;height:16px;background:var(--blue);border-radius:2px}

/* 热门文章 */
.hot-list{padding:10px 0}
.hot-item{display:flex;align-items:flex-start;gap:12px;padding:12px 20px;cursor:pointer;transition:var(--tr)}
.hot-item:hover{background:var(--cream)}
.hot-rank{width:22px;height:22px;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;flex-shrink:0;margin-top:1px}
.hot-rank.r1{background:#ff4d4d;color:#fff}
.hot-rank.r2{background:#ff8c00;color:#fff}
.hot-rank.r3{background:#f5c400;color:#fff}
.hot-rank.r4,.hot-rank.r5{background:var(--cream-d);color:var(--text-2)}
.hot-title{font-size:13px;color:var(--text);line-height:1.6;font-weight:500}
.hot-date{font-size:11px;color:var(--text-3);margin-top:3px}

/* 分类列表 */
.cat-list{padding:10px 0}
.cat-item{display:flex;align-items:center;justify-content:space-between;padding:11px 20px;cursor:pointer;transition:var(--tr);font-size:14px;color:var(--text-2)}
.cat-item:hover{background:var(--cream);color:var(--blue)}
.cat-count{font-size:11px;padding:2px 8px;background:var(--cream-d);border-radius:50px;font-weight:600;color:var(--text-3)}
.cat-item:hover .cat-count{background:var(--blue-bg);color:var(--blue)}

/* 关注我们 */
.follow-box{padding:22px}
.follow-qr{width:120px;height:120px;margin:0 auto 12px;border-radius:12px;box-shadow:var(--sh)}
.follow-desc{font-size:13px;color:var(--text-2);text-align:center;line-height:1.7;margin-bottom:16px}
.follow-tel{text-align:center;font-size:20px;font-weight:800;color:var(--blue);letter-spacing:1px}
.follow-tel-lbl{text-align:center;font-size:11px;color:var(--text-3);margin-bottom:6px}

/* ===== QUOTE / CTA ===== */
.quote-sec{background:linear-gradient(rgba(20,56,180,.88),rgba(14,40,136,.92)),url(/img/comp.png) center/cover no-repeat;padding:100px 0;position:relative;overflow:hidden}
.quote-sec::before{content:"";position:absolute;top:-180px;right:-180px;width:600px;height:600px;border-radius:50%;background:rgba(255,255,255,.07);filter:blur(80px);pointer-events:none}
.quote-sec::after{content:"";position:absolute;bottom:-120px;left:-60px;width:400px;height:400px;border-radius:50%;background:rgba(0,0,0,.12);filter:blur(70px);pointer-events:none}
.quote-grid{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:center;position:relative;z-index:1}
.q-left h2{font-size:38px;font-weight:900;color:#fff;line-height:1.25;margin-bottom:18px}
.q-left p{font-size:16px;color:rgba(255,255,255,.82);line-height:2;margin-bottom:28px}
.q-tel-lbl{font-size:11px;color:rgba(255,255,255,.5);letter-spacing:2px;margin-bottom:6px}
.q-tel{font-size:32px;font-weight:900;color:#fff;letter-spacing:2px}
.q-card{background:rgba(255,255,255,.97);border-radius:var(--r);padding:36px}
.q-card-h{font-size:17px;font-weight:700;color:var(--dark);margin-bottom:22px;line-height:1.4}
.q-checks{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.q-chk{display:inline-flex;align-items:center;gap:7px;padding:7px 16px;border:1.5px solid var(--border);border-radius:50px;font-size:13px;font-weight:500;color:var(--text-2);cursor:pointer;transition:var(--tr)}
.q-chk:hover{border-color:var(--blue);color:var(--blue)}
.q-chk input{accent-color:var(--blue)}
.q-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}
.q-field label{display:block;font-size:12px;font-weight:600;color:var(--text-2);margin-bottom:7px}
.q-input{width:100%;padding:12px 15px;border:1.5px solid var(--border);border-radius:10px;font-size:14px;color:var(--text);background:#fff;transition:var(--tr)}
.q-input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(24,77,196,.1)}
.q-captcha-row{display:flex;gap:10px;margin-bottom:18px;align-items:flex-end}
.q-captcha-row .q-field{flex:1;margin:0}
.q-captcha-box{display:flex;gap:8px;align-items:center;flex-shrink:0}
.captcha-img{height:44px;border-radius:10px;overflow:hidden;border:1.5px solid var(--border);display:flex;align-items:center;cursor:pointer;background:linear-gradient(135deg,#e8effc,#c7d7fb);min-width:110px;user-select:none}
.captcha-img canvas{display:block}
.captcha-refresh{font-size:12px;color:rgba(255,255,255,.75);cursor:pointer;white-space:nowrap;font-weight:500;transition:color .2s}
.captcha-refresh:hover{color:#fff}
.q-submit{width:100%;padding:14px;background:var(--dark);color:#fff;border:none;border-radius:50px;font-size:16px;font-weight:700;letter-spacing:2px;cursor:pointer;transition:var(--tr)}
.q-submit:hover{background:#222;transform:translateY(-2px)}

/* ===== 新闻列表页 · 手机端 ===== */
@media (max-width: 768px) {
  .sec.news-page {
    --news-m-gutter: 16px;
    --news-thumb-w: 108px;
    --news-thumb-h: 70px;
  }

  .page-hero.page-hero--news-list {
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
  }
  .page-hero--news-list .page-hero-body {
    padding: 58px 14px 0;
    box-sizing: border-box;
  }
  .page-hero--news-list .page-hero-crumb {
    margin-bottom: 8px;
    font-size: 12px;
  }
  .page-hero--news-list .page-hero-title {
    font-size: 20px;
    margin-bottom: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
    letter-spacing: -0.5px;
  }
  .page-hero--news-list .page-hero-title-accent {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: #fff !important;
    color: #fff !important;
  }
  .page-hero--news-list .page-hero-sub {
    display: none;
  }

  .sec.news-page {
    background: #f0f2f5;
    padding: 12px 0 32px;
    overflow: visible;
  }
  .sec.news-page > .wrap {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: var(--news-m-gutter) !important;
    padding-right: var(--news-m-gutter) !important;
    margin: 0 auto;
    overflow: visible;
  }
  .sec.news-page .news-layout,
  .sec.news-page .news-layout > div {
    min-width: 0;
    max-width: 100%;
  }
  .sec.news-page .news-layout {
    gap: 12px;
  }

  /* 分类 */
  .sec.news-page .news-filter-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    scrollbar-width: none;
    margin-bottom: 10px;
  }
  .sec.news-page .news-filter-wrap::-webkit-scrollbar {
    display: none;
  }
  .sec.news-page .news-filter {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
    width: max-content;
    min-width: 100%;
    margin-bottom: 0;
    padding: 8px 10px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
  }
  .sec.news-page .news-filter-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 6px 14px;
    font-size: 13px;
  }

  /* 列表卡片通用网格：标题 / 左图右文 / 底部信息 */
  .sec.news-page .news-featured,
  .sec.news-page .news-item {
    display: grid !important;
    grid-template-columns: var(--news-thumb-w) 1fr !important;
    grid-template-areas:
      "title title"
      "thumb desc"
      "meta meta" !important;
    gap: 8px 10px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
    color: inherit;
    text-decoration: none;
    overflow: hidden;
  }

  /* 置顶推荐：与列表项同样式 */
  .sec.news-page .news-featured {
    margin-bottom: 10px;
  }
  .sec.news-page .news-featured-body {
    display: contents;
  }
  .sec.news-page .news-hot-tag,
  .sec.news-page .news-featured-cat {
    display: none;
  }
  .sec.news-page .news-featured-img {
    grid-area: thumb;
    width: var(--news-thumb-w) !important;
    height: var(--news-thumb-h) !important;
    min-height: 0 !important;
    max-height: none;
    padding: 0 4px;
    margin: 0;
    line-height: normal;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
    background: #f5f5f5;
    box-sizing: border-box;
  }
  .sec.news-page .news-featured-img img {
    width: auto !important;
    max-width: 100%;
    height: auto !important;
    max-height: 100%;
    object-fit: contain !important;
    object-position: center;
    display: block;
    margin: 0;
    transform: none;
  }
  .sec.news-page .news-featured-title {
    grid-area: title;
    margin: 0;
    font-size:16px;
    font-weight: 700;
    line-height: 1.45;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .sec.news-page .news-featured-desc {
    grid-area: desc;
    height: var(--news-thumb-h);
    max-height: var(--news-thumb-h);
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #666;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
  }
  .sec.news-page .news-featured-meta {
    grid-area: meta;
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    gap: 10px 12px;
    font-size: 11px;
    color: #999;
    flex-wrap: wrap;
  }

  /* 普通列表项 */
  .sec.news-page .news-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .sec.news-page .news-item {
    align-items: start !important;
  }
  .sec.news-page .news-item:hover {
    transform: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  }
  .sec.news-page .news-item-body {
    display: contents;
  }
  .sec.news-page .news-item-cat {
    display: none !important;
  }
  .sec.news-page .news-item-title {
    grid-area: title;
    margin: 0;
    font-size:16px;
    font-weight: 700;
    line-height: 1.45;
    color: #222;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .sec.news-page .news-item-img {
    grid-area: thumb;
    width: var(--news-thumb-w) !important;
    height: var(--news-thumb-h) !important;
    min-height: 0 !important;
    max-height: none;
    overflow: hidden;
    border-radius: 6px;
    background: #f5f5f5;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-sizing: border-box;
  }
  .sec.news-page .news-item-img img {
    width: auto !important;
    max-width: 100%;
    height: auto !important;
    max-height: 100%;
    object-fit: contain !important;
    object-position: center;
    display: block;
    border-radius: 0;
    transform: none;
  }
  .sec.news-page .news-item-desc {
    grid-area: desc;
    height: var(--news-thumb-h);
    max-height: var(--news-thumb-h);
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #666;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
  }
  .sec.news-page .news-item-meta {
    grid-area: meta;
    margin: 0;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
    gap: 10px 12px;
    font-size: 11px;
    color: #999;
    flex-wrap: wrap;
  }
  .sec.news-page .news-item-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
  }
  .sec.news-page .news-item-meta-cat {
    display: inline-flex !important;
    align-items: center;
    gap: 3px;
    color: var(--blue);
    font-weight: 500;
  }
  .sec.news-page .pagination {
    margin-top: 18px;
  }

  /* 移动端隐藏 PC 右侧栏（搜索、热门文章、分类等） */
  .sec.news-page .news-layout {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .sec.news-page .sidebar {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .sec.news-page {
    --news-m-gutter: 14px;
    --news-thumb-w: 96px;
    --news-thumb-h: 62px;
  }
  .sec.news-page .news-item-title,
  .sec.news-page .news-featured-title {
    font-size: 14px;
  }
  .sec.news-page .news-item-desc,
  .sec.news-page .news-featured-desc {
    font-size: 11px;
    -webkit-line-clamp: 4;
  }
}

/* 新闻列表页：主内容默认可见，避免移动端首屏空白 */
.sec.news-page .anim,
.sec.news-page .news-filter,
.sec.news-page .news-featured,
.sec.news-page .news-item,
.sec.news-page .pagination,
.sec.news-page .sidebar {
  opacity: 1 !important;
  transform: none !important;
}