/* 全局重置 */
* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
body.leader-body { background-color: #ffffff; color: #333333; font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif; overflow-x: hidden; width: 100%; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* 容器与顶部区域 */
.leader-container { max-width: 1200px; margin: 0 auto; padding: 0 15px; width: 100%; }
.leader-topbar { background-color: #333333; color: #aaaaaa; font-size: 12px; height: 35px; line-height: 35px; }
.leader-topbar-wrap { display: flex; justify-content: space-between; align-items: center; }
.leader-topbar-phone { color: #ffffff; font-weight: bold; font-size: 14px; }
.leader-header { background: #ffffff; border-bottom: 1px solid #f0f0f0; height: 80px; }
.leader-header-wrap { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.leader-logo img { max-height: 50px; max-width: 220px; object-fit: contain; }

/* 导航栏 */
.leader-nav { display: flex; list-style: none; height: 100%; align-items: center; }
.leader-nav-item { height: 100%; display: flex; align-items: center; }
.leader-nav-item a { display: block; padding: 0 20px; font-size: 15px; font-weight: bold; color: #333333; transition: all 0.3s; position: relative; }
.leader-nav-item a:hover, .leader-nav-item.active a { color: #d32f2f; }
.leader-nav-item.active a::after { content: ""; position: absolute; bottom: -28px; left: 20px; right: 20px; height: 3px; background: #d32f2f; }

/* 搜索框 */
.leader-search-box { display: flex; align-items: center; border: 1px solid #dddddd; border-radius: 4px; overflow: hidden; height: 34px; }
.leader-search-input { border: none; padding: 0 10px; font-size: 12px; height: 100%; width: 150px; outline: none; }
.leader-search-btn { background: #ffffff; border: none; border-left: 1px solid #ddd; color: #333; width: 34px; height: 100%; cursor: pointer; }

/* 标题与公告 */
.leader-notice { background: #fdfdfd; border-left: 4px solid #d32f2f; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.03); margin: 20px auto; padding: 12px 20px; font-size: 14px; color: #555555; }
.leader-sec-title { font-size: 22px; font-weight: bold; color: #d32f2f; margin: 50px 0 30px; display: flex; align-items: flex-end; gap: 10px; }
.leader-sec-title span { font-size: 12px; color: #999999; font-weight: normal; text-transform: uppercase; padding-bottom: 3px; }

/* 方框一：产品中心 2x2 */
.leader-prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.leader-prod-card { display: flex; background: #fbfbfb; border: 1px solid #eeeeee; transition: all 0.3s; }
.leader-prod-card:hover { border-color: #d32f2f; box-shadow: 0 5px 15px rgba(211,47,47,0.1); }
.leader-prod-img-wrap { width: 40%; background: #ffffff; padding: 15px; display: flex; align-items: center; justify-content: center; }
.leader-prod-img { width: 100%; height: 120px; object-fit: contain; }
.leader-prod-info { width: 60%; padding: 25px 20px; display: flex; flex-direction: column; justify-content: space-between; }
.leader-prod-title { font-size: 16px; font-weight: bold; color: #333; margin-bottom: 10px; }
.leader-prod-desc { font-size: 12px; color: #888; line-height: 1.6; margin-bottom: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.leader-prod-bottom { display: flex; justify-content: space-between; align-items: center; }

/* 方框二：案例展示 4列 */
.leader-case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.leader-case-card { background: #f0f0f0; position: relative; overflow: hidden; transition: all 0.3s; }
.leader-case-card:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.leader-case-img { width: 100%; height: 180px; object-fit: cover; display: block; }
.leader-case-tag { position: absolute; top: 0; left: 0; background: rgba(0,0,0,0.6); color: #fff; font-size: 12px; padding: 4px 12px; }
.leader-case-info { padding: 15px; background: #f9f9f9; display: flex; justify-content: space-between; align-items: center; }

/* 方框三：关于我们 海报 */
.leader-about-hero { background: #222222; position: relative; padding: 60px 0; margin-bottom: 40px; color: #ffffff; text-align: left; overflow: hidden; }
.leader-about-hero::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(211,47,47,0.9) 0%, rgba(211,47,47,0.4) 100%); z-index: 1; }
.leader-about-content { position: relative; z-index: 2; max-width: 600px; }
.leader-about-title { font-size: 24px; font-weight: bold; margin-bottom: 20px; }

/* 方框四：新闻动态 4列 */
.leader-news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.leader-news-card { border: 1px solid #eeeeee; padding: 25px 20px; background: #ffffff; transition: all 0.3s; }
.leader-news-card:hover { border-color: #d32f2f; }
.leader-news-title { font-size: 15px; font-weight: bold; color: #333; margin-bottom: 15px; }
.leader-news-line { width: 30px; height: 2px; background: #d32f2f; margin-bottom: 15px; }
.leader-news-date { font-size: 12px; color: #999; margin-bottom: 10px; }
.leader-news-desc { font-size: 12px; color: #666; line-height: 1.6; margin-bottom: 20px; }

/* 友情链接 */
.leader-links-wrap { display: flex; align-items: center; padding: 20px 0; border-top: 1px solid #eee; margin-bottom: 40px; }
.leader-links-title { font-size: 16px; font-weight: bold; margin-right: 20px; color: #333; }
.leader-links-grid { display: flex; gap: 20px; flex-wrap: wrap; }
.leader-links-grid a { font-size: 13px; color: #666; }
.leader-links-grid a:hover { color: #d32f2f; }

/* 按钮与通用组件 */
.leader-btn { background: #d32f2f; color: #ffffff; padding: 6px 16px; border-radius: 2px; font-size: 13px; font-weight: 500; display: inline-block; border: none; cursor: pointer; transition: background 0.3s; }
.leader-btn:hover { background: #b71c1c; }
.leader-btn-outline { background: transparent; color: #333; border: 1px solid #ddd; padding: 4px 12px; font-size: 12px; }
.leader-btn-outline:hover { color: #d32f2f; border-color: #d32f2f; }
.leader-price { color: #d32f2f; font-weight: bold; font-size: 16px; }

/* 表格与内页 */
.leader-table { width: 100%; border-collapse: collapse; background: #ffffff; border: 1px solid #eeeeee; margin-bottom: 40px; }
.leader-table th, .leader-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.leader-table th { background: #fafafa; color: #333333; font-weight: bold; }
.leader-badge { display: inline-block; padding: 3px 8px; border-radius: 2px; font-size: 11px; }
.leader-badge-auto { background: #fdeceb; color: #d32f2f; }
.leader-badge-manual { background: #f5f5f5; color: #666; }
.leader-detail-wrap { background: #ffffff; padding: 30px; margin: 30px auto; border: 1px solid #eeeeee; }

/* 底部区域 */
.leader-footer { background: #222222; color: #888888; padding: 50px 0 20px; }
.leader-footer-top { display: flex; justify-content: space-between; margin-bottom: 40px; align-items: center; }
.leader-footer-nav { display: flex; gap: 30px; list-style: none; }
.leader-footer-nav a { color: #cccccc; font-size: 14px; }
.leader-footer-nav a:hover { color: #ffffff; }
.leader-footer-bottom { border-top: 1px solid #333; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.leader-footer-contact { display: flex; align-items: center; gap: 15px; }

/* ================= 全局通用防溢出与移动端自适应补丁 ================= */
[style*="nowrap"], div[class*="title"], p[class*="title"], a[class*="title"] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 768px) {
    .leader-prod-grid, .leader-case-grid, .leader-news-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 15px; }
    .leader-prod-card { flex-direction: column; }
    .leader-prod-img-wrap, .leader-prod-info { width: 100%; }
    .leader-footer-top { flex-direction: column; gap: 20px; }
    .leader-footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
@media (max-width: 480px) {
    .leader-prod-grid, .leader-case-grid, .leader-news-grid { grid-template-columns: 1fr !important; }
}
