/* ============================================================
   全站公共头部（top.html）样式 — 主色 #0056b3
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue:    #0056b3;
  --blue-d:  #004494;
  --blue-l:  #e8f1fc;
  --blue-ink:#003d80;
  --orange:  #FF6B00;
  --orange-d:#e55e00;
  --dark:    #0b2f5f;
  --text:    #2d2d2d;
  --muted:   #5a6b7d;
  --border:  #0056b3;
  --bg:      #f5f8fd;
  --white:   #ffffff;
  --font:    'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  --radius:  6px;
  --shadow:  0 2px 12px rgba(0,86,179,.12);
  --shadow-l:0 1px 4px rgba(0,86,179,.08);
  --max:     1200px;
}
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: visible;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 80%; max-width: 1800px; margin: 0 auto; padding: 0 24px; }

/* ---------- 按钮（头部联系方式按钮） ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .72rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all .18s ease;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-d); border-color: var(--blue-d); text-decoration: none; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-l);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 1.5rem;
  position: relative;
}
.nav-logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; line-height: 0; }
.nav-logo:hover { text-decoration: none; }
.nav-logo img { display: block; width: auto; height: 40px; }
.nav-main { display: flex; align-items: center; gap: .1rem; list-style: none; padding: 0; margin: 0 auto; flex: 1; justify-content: center; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: .3rem;
  padding: .5rem .75rem;
  font-size: .92rem; font-weight: 500; color: var(--text);
  border-radius: var(--radius);
  transition: background .15s; cursor: pointer; white-space: nowrap;
}
.nav-link:hover { background: var(--bg); text-decoration: none; }
.nav-link.active { color: var(--blue-ink); }
.nav-chevron { width: 11px; height: 11px; transition: transform .2s; }
.nav-item:hover .nav-chevron { transform: rotate(180deg); }
.nav-dropdown {
  display: none;
  position: absolute; top: calc(100% + 2px); left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,56,125,.14);
  min-width: 220px; padding: .5rem; z-index: 100;
}
.nav-item:hover .nav-dropdown { display: block; }
.nav-item:focus-within .nav-dropdown { display: block; }
.nav-dropdown a { display: block; padding: .55rem .9rem; font-size: .88rem; color: var(--text); border-radius: 4px; }
.nav-dropdown a:hover { background: var(--bg); color: var(--blue-ink); text-decoration: none; }
.nav-dropdown-all { margin-top: .35rem; border-top: 1px solid var(--border); padding-top: .55rem !important; color: var(--blue-ink) !important; font-weight: 600 !important; font-size: .82rem !important; }
.nav-dropdown-all:hover { background: var(--blue-l) !important; }
.nav-cta { margin-left: 1rem; }
.nav-item-cta-mobile { display: none; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: all .2s; }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .container { width: 100%; padding: 0 18px; }
  .nav-main, .nav-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-main.open {
    display: flex;
    flex-direction: column;
    position: absolute; top: 66px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: .9rem 1rem 1rem;
    gap: .25rem;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 66px);
    overflow-y: auto;
    margin: 0;
  }
  .nav-item { width: 100%; }
  .nav-item-cta-mobile { display: block; }
  .nav-link { width: 100%; justify-content: space-between; padding: .8rem .4rem; }
  .nav-dropdown { display: block; position: static; box-shadow: none; border: none; background: var(--bg); margin: .25rem 0 .5rem; min-width: 0; padding: .35rem; }
  .nav-dropdown a { padding: .7rem .8rem; }
}


/* ============================================================
   侧边栏（left.html）样式 — 主色 #0056b3
   ============================================================ */
:root {
  --blue:    #0056b3;
  --blue-d:  #004494;
  --blue-l:  #e8f1fc;
  --blue-ink:#003d80;
  --orange:  #FF6B00;
  --dark:    #0b2f5f;
  --text:    #2d2d2d;
  --border:  #dde3ec;
  --bg:      #f5f8fd;
  --white:   #ffffff;
}
.sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.sidebar-block + .sidebar-block { border-top: 1px solid var(--border); }
.sidebar-title {
  margin: 0;
  padding: 7px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  border-bottom: 1px solid var(--blue-l);
}
.sidebar-title a { color: var(--blue); text-decoration: none; display: block; }
.sidebar-title a:hover { text-decoration: none; opacity: .8; }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { border-bottom: 1px solid #f3f6fa; }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 5px 8px 5px 16px;
  font-size: 12px;
  color: var(--text);
  text-decoration: none;
  transition: color .15s, background .15s;
}
.sidebar-list a:hover { color: var(--blue); background: var(--blue-l); }
.sidebar-list .count { color: #999; font-size: 11px; flex-shrink: 0; }
.sidebar-list li.active a { color: var(--blue); font-weight: 700; background: #dbe8ff; border-left: 3px solid var(--blue); }


/* ============================================================
   全站公共页脚（foot.html）样式 — 主色 #0056b3
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue:    #0056b3;
  --blue-d:  #004494;
  --blue-l:  #e8f1fc;
  --blue-ink:#003d80;
  --orange:  #FF6B00;
  --orange-d:#e55e00;
  --dark:    #0b2f5f;
  --text:    #2d2d2d;
  --muted:   #5a6b7d;
  --border:  #dde3ec;
  --bg:      #f5f8fd;
  --white:   #ffffff;
  --font:    'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  --radius:  6px;
  --shadow:  0 2px 12px rgba(0,86,179,.12);
  --shadow-l:0 1px 4px rgba(0,86,179,.08);
  --max:     1200px;
}
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: visible;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 80%; max-width: 1800px; margin: 0 auto; padding: 0 24px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--blue); color: rgba(255,255,255,.85); font-size: 14px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--white); }
.site-footer .footer-top { padding: 44px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 3fr 1fr 1fr 1fr 1fr auto; gap: 16px; }
.footer-logo { display: inline-block; margin-bottom: .8rem; line-height: 0; }
.footer-logo img { height: 44px; width: auto; }
.footer-left p { margin-bottom: .5rem; font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.82); }
.footer-left .fp { margin-bottom: .5rem; }
.footer-left .fla { display: inline-block; margin-top: .2rem; }
.footer-col h3 { color: var(--white); font-size: .95rem; margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 6px; font-size: 13px; }
.footer-col ul li a::before { content: '\B7'; margin-right: 4px; color: var(--orange); }
.footer-col ul a { color: rgba(255,255,255,.8); }
.footer-qr { text-align: center; }
.footer-qr img { width: 94px; height: 94px; border-radius: 6px; border: 2px solid rgba(255,255,255,.35); display: inline-block; }
.footer-qr p { font-size: 12px; color: rgba(255,255,255,.75); margin-top: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.2); padding: 18px 0 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 10px; justify-content: center; align-items: center; font-size: 12px; text-align: center; }
.footer-links .links-label { color: var(--white); font-weight: 600; margin-right: 4px; }
.footer-links a { color: rgba(255,255,255,.85); }
.footer-links a:hover { color: var(--white); }
.footer-links .sep { color: rgba(255,255,255,.45); }
.footer-copy { text-align: center; font-size: 12px; color: rgba(255,255,255,.7); margin-top: 14px; }
.footer-copy a { color: var(--white); text-decoration: underline; }

/* ---------- 返回顶部 ---------- */
#backToTop {
  position: fixed; right: 2rem; bottom: 2rem; z-index: 999;
  width: 44px; height: 52px; cursor: pointer; border: none; background: transparent; padding: 0;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
#backToTop.show { opacity: 1; visibility: visible; }
#backToTop img { width: 44px; height: 52px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-qr { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .container { width: 100%; padding: 0 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-qr { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .container { width: 100%; padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { padding: 14px 0 18px; }
}




/* ============================================================
   列表页（list_cp / list_new / list_product）共用样式
   主色 #0056b3，随页面 80%/1800px，移动端 100%
   ============================================================ */
/* 修复：横向溢出裁剪移到 html 层，body 保持可见，使侧边栏 position:sticky 生效 */
html { overflow-x: hidden; }
body { overflow-x: visible; }
/* 修复：csl.css 中 #in_body{overflow:hidden} 会使 position:sticky 失效 */
#in_body { overflow: visible; }
/* ---------- 列表页新排版 ---------- */
#in_body.list-page { width: 80%; max-width: 1800px; margin: 0 auto; padding: 20px 24px 40px; }
.list-breadcrumb { font-size: 12px; color: #666; padding-bottom: 10px; border-bottom: 1px solid #e8ecf2; margin-bottom: 18px; }
.list-breadcrumb a { color: #666; }
.list-breadcrumb a:hover { color: var(--blue, #0056b3); }
.list-layout { display: grid; grid-template-columns: 1fr 150px; gap: 20px; }
.list-main { min-width: 0; }
.cat-header { margin-bottom: 16px; }
.cat-title { font-size: 22px; font-weight: 700; color: var(--dark, #0b2f5f); margin: 0 0 8px; line-height: 1.3; }
.cat-desc { font-size: 13px; color: #666; line-height: 1.75; margin: 0; }
.cat-banner { margin-bottom: 22px; }
.cat-banner img { width: 100%; max-height: 260px; object-fit: cover; border-radius: 8px; display: block; }
.list-items dl { display: flex; gap: 16px; padding: 16px; margin: 0 0 14px; border: 1px solid var(--border, #dde3ec); border-radius: 8px; background: var(--white, #fff); align-items: flex-start; transition: box-shadow .25s, transform .25s, border-color .25s; }
.list-items dl:last-child { margin-bottom: 0; }
.list-items dl:hover { box-shadow: 0 10px 28px rgba(0,86,179,.14); transform: translateY(-3px); border-color: rgba(0,86,179,.4); }
.list-items dt { flex-shrink: 0; line-height: 0; }
.list-items dd { margin: 0; flex: 1; min-width: 0; }
.list-items dd h2 { font-size: 16px; line-height: 1.4; margin: 0 0 8px; color: var(--dark, #0b2f5f); }
.list-items dd h2 a { color: var(--dark, #0b2f5f); }
.list-items dd h2 a:hover { color: var(--blue, #0056b3); }
.list-items dd .product_con, .list-items dd .news-con { font-size: 13px; color: #666; line-height: 1.75; margin-bottom: 10px; }
.list-items dd .product_more a, .list-items dd .news-more a { font-size: 13px; color: var(--blue, #0056b3); font-weight: 600; }
.list-items dd .product_more a:hover, .list-items dd .news-more a:hover { text-decoration: underline; }
.list-side { min-width: 0; }
.sticky-side { position: sticky; top: 84px; }
.pagination { text-align: center; margin: 22px 0 0; font-size: 14px; }
.pagination a { color: var(--blue, #0056b3); }
@media (max-width: 768px) {
  #in_body.list-page { width: 100%; padding: 18px 10px 40px; }
  .list-layout { grid-template-columns: 1fr; }
  .list-items dl { flex-direction: column; }
  .list-items dt img { width: 100% !important; height: auto !important; max-height: 220px; }
  .sticky-side { position: static; }
}
