/* ---- CSS变量定义 ---- */
:root {
  --primary: #0c61be;
  --primary-hover: #2385f0;
  --primary-dark: #00346c;
  --accent: #abcd03;
  --text: #666;
  --text-dark: #1b1b1b;
  --text-light: #999;
  --bg: #fff;
  --bg-section: #f0f0f0;
  --bg-breadcrumb: #f4f7f9;
  --border: #ccc;
  --border-light: #e0e0e0;
  --footer-top: #0c61be;
  --footer-mid: #fff;
  --footer-bottom: #333134;
  --max-width: 1200px;
  --sidebar-width: 260px;
  --gap: 20px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 20px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
}
/* 全局强制禁止水平溢出，根治左右滑动留白 */
html, body {
  overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100vw;
}
body {
  width: 100%;
  max-width: 100vw;
}

/* ---- 基础重置 ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 14px; line-height: 1.6; color: var(--text); background: var(--bg);
}
a { text-decoration: none; color: var(--text-dark); transition: var(--transition); }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
input, button, textarea { font-family: inherit; outline: none; }

/* ---- 通用容器 ---- */
.container {
  max-width: var(--max-width); margin: 0 auto; padding: 0 15px;
}
.section { padding: 60px 0; }
.section-title {
  text-align: center; margin-bottom: 40px;
}
.section-title h2 {
  font-size: 28px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px;
}
.section-title .sub-title {
  font-size: 13px; color: var(--text-light); text-transform: uppercase; letter-spacing: 2px;
}
.section-title .line {
  width: 50px; height: 3px; background: var(--primary); margin: 12px auto 0;
}

/* ---- 顶部信息栏 ---- */
.top-bar {
  background: #f0f0f0; border-bottom: 1px solid var(--border-light);
  font-size: 12px; color: var(--text-light); height: 32px;
}
.top-bar-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 15px;
  display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.top-bar-inner span { color: var(--text); }
.top-bar-inner a { color: var(--text); margin-left: 16px; }
.top-bar-inner a:hover { color: var(--primary); }

/* ---- 顶部导航 ---- */
.header {
  position: fixed; top: 32px; left: 0; width: 100%; z-index: 1000;
  background: linear-gradient(to bottom, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: top 0.3s ease;
}
.header.sticky { top: 0; }
.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 15px;
  display: flex; align-items: center; justify-content: space-between; height: 100px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
}
.logo-img {
  width: 60px; height: 60px; background: #fff; border-radius: var(--radius);
  object-fit: cover;
}
.logo-text { color: #fff; }
.logo-text h1 { font-size: 20px; font-weight: 700; line-height: 1.2; }
.logo-text span { font-size: 14px; opacity: 0.85; }

.nav-desktop { display: flex; align-items: center; gap: 4px; }
.nav-desktop a {
  display: block; padding: 8px 14px; color: #fff; font-size: 14px; border-radius: var(--radius);
}
.nav-desktop a:hover, .nav-desktop a.active {
  background: var(--primary-hover); color: #fff;
}

.header-tel {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.12); padding: 8px 16px; border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.25); color: #fff; font-size: 15px; font-weight: 600;
}
.header-tel svg { width: 18px; height: 18px; stroke: #fff; }

.mobile-menu-btn {
  display: none; width: 36px; height: 36px; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.15); border-radius: var(--radius); border: none; cursor: pointer;
}
.mobile-menu-btn svg { width: 20px; height: 20px; stroke: #fff; }

/* ---- Banner区域 ---- */
.banner {
  width: 100%; margin-top: 100px; position: relative; overflow: hidden;
  background: var(--primary-dark);
}
.banner-slider { position: relative; width: 100%; height: 480px; }
.banner-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background-size: cover; background-position: center; opacity: 0;
  transition: opacity 0.8s ease;
}
.banner-slide.active { opacity: 1; }
.banner-slide .banner-content {
  text-align: center; color: #fff; max-width: 800px; padding: 0 20px;
}
.banner-slide h2 { font-size: 42px; font-weight: 700; margin-bottom: 16px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.banner-slide p { font-size: 18px; opacity: 0.9; line-height: 1.8; }
.banner-dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.banner-dot {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.5);
  cursor: pointer; transition: var(--transition); border: none;
}
.banner-dot.active { background: #fff; width: 28px; border-radius: 5px; }

/* 内页Banner */
.banner-inner {
  width: 100%; margin-top: 100px; height: 220px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  position: relative;
}
.banner-inner h2 { color: #fff; font-size: 32px; font-weight: 700; }

/* ---- 面包屑导航 ---- */
.breadcrumb-wrap {
  width: 100%; background: var(--bg-breadcrumb); border-bottom: 1px solid var(--border-light);
}
.breadcrumb {
  max-width: var(--max-width); margin: 0 auto; padding: 12px 15px;
  font-size: 13px; color: var(--text);
}
.breadcrumb a { color: var(--text); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; color: var(--text-light); }
.breadcrumb strong { color: var(--primary); font-weight: 600; }

/* ---- 页面主体布局（带侧边栏） ---- */
/* ---- 页面主体布局（带侧边栏） ---- */
.page-body { padding: 40px 0; }
.page-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  gap: 30px;
  width: 100%;
  min-width: 0; /* 父容器允许收缩 */
}
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
}
.sidebar-block {
  background: var(--bg); border: 1px solid var(--border-light); margin-bottom: 20px;
}
.sidebar-title {
  background: var(--primary); color: #fff; padding: 14px 18px; font-size: 15px; font-weight: 600;
}
.sidebar-nav { padding: 10px 0; }
.sidebar-nav a {
  display: block; padding: 11px 18px; font-size: 14px; color: var(--text-dark);
  border-bottom: 1px solid var(--border-light);
}
.sidebar-nav a:last-child { border-bottom: none; }
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(12,97,190,0.06); color: var(--primary); padding-left: 22px;
}
.sidebar-contact { padding: 8px; }
.sidebar-contact .contact-img {
  width: 100%; height: 120px; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px;
  background: var(--bg-section);
}
.sidebar-contact p { font-size: 13px; line-height: 1.8; color: var(--text); margin-bottom: 6px; }
.sidebar-contact .c-name { font-size: 15px; font-weight: 600; color: var(--text-dark); margin-bottom: 10px; }
.sidebar-contact .c-tel { font-size: 16px; font-weight: 700; color: var(--primary); }

.main-content {
  flex: 1;
  min-width: 0; /* 关键：允许内容压缩，不会溢出撑屏 */
}
.page-title {
  font-size: 22px; font-weight: 700; color: var(--text-dark); margin-bottom: 24px;
  padding-bottom: 12px; border-bottom: 2px solid var(--primary); display: inline-block;
}

/* ---- 首页关于我们 ---- */
.about-home { background: var(--bg); }
.about-home-layout {
  display: flex; gap: 50px; align-items: center;
}
.about-home-img {
  flex: 1; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.about-home-img img { width: 100%; height: 320px; object-fit: cover; }
.about-home-text { flex: 1; }
.about-home-text h3 {
  font-size: 24px; font-weight: 700; color: var(--text-dark); margin-bottom: 16px;
}
.about-home-text p { margin-bottom: 12px; line-height: 1.8; text-align: justify; }
.about-home-text .highlights {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px;
}
.about-home-text .highlights span {
  background: rgba(12,97,190,0.08); color: var(--primary); padding: 6px 14px;
  border-radius: 20px; font-size: 13px;
}

/* ---- 产品展示 ---- */
.products-home { background: var(--bg-section); }
.products-layout {
  display: flex; gap: 24px;
}
.products-cat {
  width: 230px; flex-shrink: 0;
}
.products-cat-title {
  display: flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff; padding: 12px 16px;
  border-radius: var(--radius); margin-bottom: 10px;
  font-size: 15px; font-weight: 600;
}
.products-cat-title svg {
  width: 20px; height: 20px; stroke: #fff; flex-shrink: 0;
}
.products-cat a {
  display: block; padding: 14px 16px; background: var(--bg); margin-bottom: 8px;
  border-radius: var(--radius); font-size: 14px; color: var(--text-dark);
  border-left: 3px solid transparent;
}
.products-cat a:hover, .products-cat a.active {
  border-left-color: var(--primary); color: var(--primary); background: rgba(12,97,190,0.06);
}
.products-cat-slogan {
  margin-top: 12px; padding: 14px 10px;
  background: linear-gradient(135deg, rgba(12,97,190,0.06) 0%, rgba(12,97,190,0.02) 100%);
  border: 1px solid rgba(12,97,190,0.12); border-radius: var(--radius);
  font-size: 17px; line-height: 35px; color: var(--text-dark);
  text-align: center;
}
.products-cat-tel {
  margin-top: 12px; padding: 16px;
  background: var(--primary); border-radius: var(--radius);
  text-align: center; color: #fff;
}
.products-cat-tel .tel-divider {
  border-top: 1px dashed rgba(255,255,255,0.4); margin-bottom: 12px;
}
.products-cat-tel .tel-label {
  font-size: 13px; opacity: 0.9; margin-bottom: 6px;
}
.products-cat-tel .tel-num {
  font-size: 22px; font-weight: 700; margin-bottom: 12px; letter-spacing: 1px;
}
.products-cat-tel .tel-btn {
  display: inline-block; padding: 8px 28px;
  background: #fff; color: var(--primary); border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
}
.products-cat-tel .tel-btn:hover { background: #f0f0f0; }
.products-grid {
  flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.product-card {
  background: var(--bg); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-light); transition: var(--transition);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.product-card img { width: 100%; /*! height: 280px; */ object-fit: cover; }
.product-card .p-name {
  padding: 12px; text-align: center; font-size: 14px; color: var(--text-dark); font-weight: 500;
}

/* ---- 服务优势 ---- */
.advantages-home { background: var(--bg); }
.advantages-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.advantage-card {
  background: var(--bg); border: 1px solid var(--border-light); border-radius: var(--radius-lg);
  padding: 30px 20px; text-align: center; transition: var(--transition);
}
.advantage-card:hover { box-shadow: var(--shadow-hover); border-color: var(--primary); }
.advantage-card .adv-icon {
  width: 60px; height: 60px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--primary); border-radius: 50%;
}
.advantage-card .adv-icon svg { width: 28px; height: 28px; stroke: var(--primary); }
.advantage-card h4 { font-size: 16px; font-weight: 600; color: var(--text-dark); margin-bottom: 10px; }
.advantage-card p { font-size: 13px; line-height: 1.7; }

/* ---- 新闻/资讯/FAQ 列表 ---- */
.news-home { background: var(--bg-section); }
.news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  min-width: 0;
}
.news-item {
  width: 100%;
  overflow: hidden;background: var(--bg); border: 1px solid var(--border-light); border-radius: var(--radius);padding: 16px 18px;
}
.news-item:hover { box-shadow: var(--shadow); border-color: var(--primary); }
.news-item-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;
}
.news-item-header .news-icon { width: 18px; height: 18px; stroke: var(--primary); flex-shrink: 0; margin-right: 8px; }
.news-item-header a {
  flex: 1; min-width: 0; overflow: hidden; display: block;
}
.news-item-header h4 {
  font-size: 14px; font-weight: 600; color: var(--text-dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.news-item-header .news-date { font-size: 12px; color: var(--text-light); flex-shrink: 0; margin-left: 10px; }
.news-item p {
  font-size: 13px; line-height: 1.7; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  padding-left: 26px;
}

/* ---- 案例展示 ---- */
.cases-home { background: var(--bg); }
.cases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.case-card {
  background: var(--bg); border: 1px solid var(--border-light); border-radius: var(--radius);
  overflow: hidden; transition: var(--transition);
}
.case-card:hover { box-shadow: var(--shadow-hover); border-color: var(--primary); }
.case-card img { width: 100%; height: 370px; object-fit: cover; }
.case-card .c-name { padding: 12px; text-align: center; font-size: 14px; color: var(--text-dark); }

/* ---- 常见问题 ---- */
.faq-home { background: var(--bg-section); }

/* ---- 首页新闻/FAQ板块标题左对齐（仅PC端） ---- */
@media (min-width: 768px) {
  .news-home .section-title,
  .faq-home .section-title {
    text-align: left;
  }
  .news-home .section-title .line,
  .faq-home .section-title .line {
    margin-left: 0;
  }
}

/* ---- 首页新闻/FAQ文章标题左对齐 ---- */
.news-item-header h4 { text-align: left; }

/* ---- 栏目页文章列表左对齐 ---- */
@media (min-width: 768px) {
  .page-title { text-align: left; }
}
.article-list .article-card { text-align: left; }
.article-list .article-card-header h4 { text-align: left; }
.article-list .article-card p { text-align: left; }

/* ---- 友情链接 ---- */
.friendlinks {
  background: var(--bg); border-top: 1px solid var(--border-light); padding: 30px 0;
}
.friendlinks h4 { font-size: 15px; font-weight: 600; color: var(--text-dark); margin-bottom: 12px; }
.friendlinks-wrap { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.friendlinks-wrap a { font-size: 13px; color: var(--text); }
.friendlinks-wrap a:hover { color: var(--primary); }

/* ---- 页脚 ---- */
.footer { }
.footer-top {
  background: var(--footer-top); padding: 40px 0 30px; color: #fff;
}
.footer-top-layout {
  max-width: var(--max-width); margin: 0 auto; padding: 0 15px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px;
}
.footer-top h4 { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.footer-top a { display: block; color: rgba(255,255,255,0.8); font-size: 13px; margin-bottom: 8px; }
.footer-top a:hover { color: #fff; }
.footer-mid {
  background: var(--footer-mid); padding: 30px 0; border-bottom: 1px solid var(--border-light);
}
.footer-mid-layout {
  max-width: var(--max-width); margin: 0 auto; padding: 0 15px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
}
.footer-mid .company-info h4 { font-size: 18px; color: var(--text-dark); margin-bottom: 6px; }
.footer-mid .company-info p { font-size: 13px; color: var(--text); line-height: 1.8; }
.footer-mid .footer-contact { text-align: right; }
.footer-mid .footer-contact .tel {
  font-size: 24px; font-weight: 700; color: var(--primary); margin-bottom: 4px;
}
.footer-mid .footer-contact p { font-size: 13px; color: var(--text); }
.footer-bottom {
  background: var(--footer-bottom); padding: 16px 0; text-align: center;
}
.footer-bottom p {
  color: rgba(255,255,255,0.6); font-size: 12px; line-height: 1.8;
}
.footer-bottom p a{color: #ffff}

/* ---- 手机端底部四宫导航 ---- */
.mobile-nav {
  display: none; position: fixed; bottom: 0; left: 0; width: 100%; z-index: 1001;
  background: #fff; border-top: 1px solid var(--border-light);
}
.mobile-nav-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.mobile-nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8px 0; color: var(--text); font-size: 11px; gap: 4px;
}
.mobile-nav-item svg { width: 22px; height: 22px; stroke: var(--text); }
.mobile-nav-item.active { color: var(--primary); }
.mobile-nav-item.active svg { stroke: var(--primary); }

/* ---- 返回顶部按钮 ---- */
.back-to-top {
  position: fixed; bottom: 140px; right: 20px; z-index: 998;
  width: 44px; height: 44px; background: rgba(255,255,255,0.95);
  border: 1px solid var(--border-light); border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: var(--transition);
}
.back-to-top.show { display: flex; }
.back-to-top svg { width: 20px; height: 20px; stroke: var(--primary); }
.back-to-top:hover { background: var(--primary); border-color: var(--primary); }
.back-to-top:hover svg { stroke: #fff; }

/* ---- 悬浮电话按钮 ---- */
.float-tel {
  position: fixed; bottom: 80px; right: 20px; z-index: 999;
  width: 50px; height: 50px; background: var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(12,97,190,0.35); animation: pulse 2s infinite;
}
.float-tel svg { width: 24px; height: 24px; stroke: #fff; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(12,97,190,0.35); }
  50% { box-shadow: 0 4px 20px rgba(12,97,190,0.55); }
}

/* ---- 分页 ---- */
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 30px; flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid var(--border-light); border-radius: var(--radius);
  font-size: 13px; color: var(--text); background: var(--bg);
}
.pagination a:hover, .pagination a.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.pagination .total { border: none; background: transparent; margin-left: 10px; color: var(--text-light); }

/* ---- 详情页上下篇 ---- */
.detail-nav {
  display: flex; justify-content: space-between; margin-top: 30px; padding-top: 20px;
  border-top: 1px solid var(--border-light);
}
.detail-nav a { font-size: 13px; color: var(--text); }
.detail-nav a:hover { color: var(--primary); }

/* ---- 相关推荐 ---- */
.related-section { margin-top: 30px; }
.related-section h3 {
  font-size: 16px; font-weight: 600; color: var(--text-dark); margin-bottom: 16px;
}
.related-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.related-item {
  background: var(--bg); border: 1px solid var(--border-light); border-radius: var(--radius);
  padding: 12px 4px;
}
.related-item-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px;
}
.related-item-header h4 {
  font-size: 14px; font-weight: 500; color: var(--text-dark); flex: 1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.related-item-header span { font-size: 12px; color: var(--text-light); flex-shrink: 0; margin-left: 8px; }
.related-item p {
  font-size: 13px; color: var(--text); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---- 服务流程步骤 ---- */
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px;
}
.step-card {
  background: var(--bg); border: 1px solid var(--border-light); border-radius: var(--radius);
  padding: 24px; text-align: center;
}
.step-card .step-num {
  width: 40px; height: 40px; background: var(--primary); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; margin: 0 auto 12px;
}
.step-card h4 { font-size: 15px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.step-card p { font-size: 13px; color: var(--text); line-height: 1.6; }

/* ---- 增值服务 ---- */
.value-add {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px;
}
.value-item {
  display: flex; align-items: center; gap: 12px; background: var(--bg);
  border: 1px solid var(--border-light); border-radius: var(--radius); padding: 14px 16px;
}
.value-item svg { width: 24px; height: 24px; stroke: var(--primary); flex-shrink: 0; }
.value-item span { font-size: 14px; color: var(--text-dark); }

/* ---- 网站地图 ---- */
.sitemap-section { margin-bottom: 30px; }
.sitemap-section h3 {
  font-size: 16px; font-weight: 600; color: var(--text-dark); margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border-light);
}
.sitemap-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.sitemap-links a { font-size: 14px; color: var(--text); }
.sitemap-links a:hover { color: var(--primary); }

/* ---- 文章/图文列表页面 ---- */
.article-list { display: grid; grid-template-columns: 1fr; gap: 16px; }
.article-card {
  background: var(--bg); border: 1px solid var(--border-light); border-radius: var(--radius);
  padding: 16px 18px; transition: var(--transition);
}
.article-card:hover { box-shadow: var(--shadow); border-color: var(--primary); }
.article-card-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;
}
.article-card-header .a-icon { width: 18px; height: 18px; stroke: var(--primary); flex-shrink: 0; margin-right: 8px; }
.article-card-header a {
  flex: 1; min-width: 0; overflow: hidden; display: block;
}
.article-card-header h4 {
  font-size: 14px; font-weight: 600; color: var(--text-dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.article-card-header .a-date { font-size: 12px; color: var(--text-light); flex-shrink: 0; margin-left: 10px; }
.article-card p {
  font-size: 13px; line-height: 1.7; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  padding-left: 26px;
}

/* ---- 图文卡片列表（产品/案例） ---- */
.card-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  min-width: 0;
}
.card-item {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  width: 100%;
  box-sizing: border-box;
}
.card-item:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

/* 核心：用父容器固定9:16比例，图片铺满裁剪 */
.card-item .img-box {
  width: 100%;
  height: 0;
  padding-top: 177.78%;  /* 9÷16=0.5625，16/9≈1.7778 → 177.78% 实现9:16 */
  position: relative;
  overflow: hidden;
}
.card-item .img-box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;  /* 不变形，多余部分裁剪，完美9:16竖屏 */
  display: block;
}

.card-item .card-name {
  padding: 12px;
  text-align: center;
  font-size: 14px;
  color: var(--text-dark);
}


/* ---- 详情页正文 ---- */
.detail-content { line-height: 1.8; color: var(--text-dark); /*! min-height: 400px; */}
.detail-content h3 { font-size: 18px; margin: 20px 0 12px; }
.detail-content p { margin-bottom: 12px; }
.detail-content img { max-width: 100%; border-radius: var(--radius); margin: 12px 0; }

/* ==================== 响应式适配 ==================== */
@media (max-width: 1199px) {
   .sidebar { display: none; }
  /* 单列布局，彻底消除flex横向撑开隐患 */
  .page-layout {flex-direction: column;gap: 0;}
  .products-layout { flex-direction: column; }
  .products-cat { width: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
  .products-cat a { margin-bottom: 0; flex: 1; min-width: 120px; text-align: center; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .card-list { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .news-list { grid-template-columns: 1fr; }
  .article-list { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .value-add { grid-template-columns: repeat(2, 1fr); }
  .about-home-layout { flex-direction: column; }
  .about-home-img img { height: 240px; }
  .friendlinks { display: none; }
  .footer-mid .footer-contact { text-align: left; }
  .footer-top-layout { flex-direction: column; }
  .banner-slider { height: 360px; }
  .banner-slide h2 { font-size: 28px; }
  .banner-slide p { font-size: 15px; }
  .detail-nav { flex-direction: column; gap: 8px; }
  .top-bar { display: none; }
  .header { top: 0; }
  .banner { margin-top: 90px; }
  .banner-inner { margin-top: 90px; }
}

@media (max-width: 767px) {
  .header-inner { height: 56px; }
  .nav-desktop { display: none; }
  .mobile-menu-btn { display: flex; }
  .products-home .products-cat { display: none; }
  .banner { margin-top: 56px; }
  .banner-inner { margin-top: 56px; height: 160px; }
  .banner-inner h2 { font-size: 22px; }
  .banner-slider { height: 280px; }
  .banner-slide h2 { font-size: 22px; }
  .banner-slide p { font-size: 14px; }
  .section { padding: 40px 0; }
  .section-title h2 { font-size: 22px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .card-list { grid-template-columns: repeat(2, 1fr); }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .value-add { grid-template-columns: 1fr; }
  .mobile-nav { display: block; }
  body { padding-bottom: 60px; }
  .footer-top-layout {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  }
  .float-tel { bottom: 70px; }
  .footer-mid-layout { flex-direction: column; align-items: flex-start; }
  .news-list {grid-template-columns: 1fr;gap: 12px;}
}

@media (max-width: 479px) {
  /* 超小屏改为1列，不再2列挤压溢出 */
  .products-grid { grid-template-columns: 1fr; gap: 10px; }
  .cases-grid { grid-template-columns: 1fr; gap: 10px; }
  .card-list { grid-template-columns: 1fr; gap: 10px; }
  .advantages-grid { grid-template-columns: 1fr; gap: 10px; }

  .product-card .p-name { padding: 8px; font-size: 12px; }
  .case-card .c-name { padding: 8px; font-size: 12px; }
  .card-item .card-name { padding: 8px; font-size: 12px; }
  .logo-text h1 { font-size: 15px; }
  .logo-text span { font-size: 10px; }
}

/* ---- 移动端菜单面板 ---- */
.mobile-menu-panel {
  display: none; position: fixed; top: 56px; left: 0; width: 100%; height: calc(100% - 56px);
  background: #fff; z-index: 999; overflow-y: auto; padding: 20px;
}
.mobile-menu-panel.active { display: block; }
.mobile-menu-panel a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--border-light);
  font-size: 15px; color: var(--text-dark);
}
.mobile-menu-panel a.active { color: var(--primary); font-weight: 600; }
