/* 叁佰建站 前台 default 模板 - 公共样式（白色企业风） */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; font-size: 14px; color: #333; background: #fff; line-height: 1.6; }
a { text-decoration: none; color: #333; transition: color .2s; }
a:hover { color: #0a58ca; }
img { border: 0; max-width: 100%; }
ul, ol { list-style: none; }
.container { width: 1200px; margin: 0 auto; }
.clearfix::after { content: ""; display: block; clear: both; }

/* 顶部信息栏 */
.topbar { background: #1f2d3d; color: #aeb9c7; font-size: 12px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar a { color: #aeb9c7; }
.topbar a:hover { color: #fff; }
.topbar .tel { color: #ffd04b; font-size: 14px; font-weight: 700; margin-left: 6px; }

/* 主头部 */
.header { border-bottom: 1px solid #eee; }
.header .container { display: flex; justify-content: space-between; align-items: center; height: 96px; }
.logo { display: flex; align-items: center; }
.logo img { height: 56px; max-width: 260px; object-fit: contain; }

/* 导航 */
.nav { background: #0a58ca; }
.nav .container { display: flex; }
.nav .menu { position: relative; }
.nav .menu > a { display: block; padding: 0 30px; height: 52px; line-height: 52px; color: #fff; font-size: 15px; }
.nav .menu > a:hover, .nav .menu.on > a { background: #08459e; }
.nav .menu .sub { position: absolute; top: 52px; left: 0; min-width: 160px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.12); display: none; z-index: 20; border-top: 2px solid #0a58ca; }
.nav .menu:hover .sub { display: block; }
.nav .menu .sub a { display: block; padding: 11px 20px; color: #555; font-size: 13px; border-bottom: 1px solid #f4f4f4; }
.nav .menu .sub a:hover { color: #0a58ca; background: #f6f9ff; }

/* Banner */
.banner { width: 100%; }
.banner img { width: 100%; height: auto; display: block; }
.banner-empty { height: 120px; background: linear-gradient(135deg, #0a58ca, #1f6ce0); }

/* 页面主体 */
.main { padding: 30px 0 50px; }
.page-body { display: flex; gap: 26px; align-items: flex-start; }
.sidebar { width: 240px; flex-shrink: 0; background: #fff; border: 1px solid #eef0f3; }
.sidebar .side-title { padding: 14px 18px; background: #0a58ca; color: #fff; font-size: 16px; font-weight: 700; }
.sidebar .side-nav a { display: block; padding: 12px 18px; border-bottom: 1px solid #f0f1f3; color: #555; font-size: 14px; }
.sidebar .side-nav a:hover, .sidebar .side-nav a.on { color: #0a58ca; background: #f6f9ff; padding-left: 22px; }
.sidebar .side-nav .lv2 a { padding-left: 34px; font-size: 13px; color: #888; }
.content { flex: 1; min-width: 0; }
.page-title { padding-bottom: 14px; border-bottom: 2px solid #0a58ca; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; }
.page-title h2 { font-size: 20px; color: #1f2d3d; }
.crumb { font-size: 13px; color: #999; }
.crumb a { color: #999; }
.crumb a:hover { color: #0a58ca; }

/* 首页各板块 */
.section { padding: 46px 0; }
.section.gray { background: #f7f8fa; }
.section-head { text-align: center; margin-bottom: 30px; }
.section-head h2 { font-size: 26px; color: #1f2d3d; }
.section-head .line { width: 46px; height: 3px; background: #0a58ca; margin: 12px auto 0; }
.section-head p { color: #999; font-size: 13px; margin-top: 10px; }
.home-banner { position: relative; }
.home-banner img { width: 100%; display: block; max-height: 420px; object-fit: cover; }

/* 首页产品网格 */
.pro-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pro-grid .item { background: #fff; border: 1px solid #eef0f3; transition: box-shadow .2s, transform .2s; }
.pro-grid .item:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-3px); }
.pro-grid .item .pic { height: 170px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #f7f8fa; }
.pro-grid .item .pic img { width: 100%; height: 100%; object-fit: cover; }
.pro-grid .item .pic .noimg { color: #bbb; font-size: 13px; }
.pro-grid .item .name { padding: 12px 14px; font-size: 14px; color: #333; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 首页公告/新闻列表 */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 40px; row-gap: 0; }
.news-grid li { padding: 12px 0; border-bottom: 1px dashed #e5e8ec; display: flex; justify-content: space-between; align-items: center; }
.news-grid li a { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.news-grid li a:hover { color: #0a58ca; }
.news-grid li .time { color: #999; font-size: 12px; margin-left: 12px; flex-shrink: 0; }

/* 文章/产品列表 */
.art-list li { padding: 16px 0; border-bottom: 1px solid #f0f1f3; display: flex; justify-content: space-between; align-items: center; }
.art-list li a { font-size: 15px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 20px; }
.art-list li a:hover { color: #0a58ca; }
.art-list li .time { color: #999; font-size: 12px; flex-shrink: 0; }
.pro-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pro-list .item { border: 1px solid #eef0f3; background: #fff; transition: box-shadow .2s; }
.pro-list .item:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.pro-list .item .pic { height: 190px; overflow: hidden; background: #f7f8fa; display: flex; align-items: center; justify-content: center; }
.pro-list .item .pic img { width: 100%; height: 100%; object-fit: cover; }
.pro-list .item .pic .noimg { color: #bbb; }
.pro-list .item .name { padding: 13px 15px; font-size: 15px; text-align: center; }
.pro-list .item .name:hover { color: #0a58ca; }

/* 详情页 */
.detail-title { font-size: 22px; color: #1f2d3d; text-align: center; padding-bottom: 14px; }
.detail-sub { text-align: center; color: #86909c; font-size: 14px; padding-bottom: 10px; }
.detail-gallery { margin-bottom: 16px; }
.detail-gallery img { width: 100%; display: block; border-radius: 4px; margin-bottom: 10px; }
.detail-meta { text-align: center; color: #999; font-size: 12px; padding-bottom: 14px; border-bottom: 1px solid #f0f1f3; margin-bottom: 20px; }
.detail-meta span { margin: 0 10px; }
.detail-body { color: #444; font-size: 14px; line-height: 1.9; }
.detail-body p { margin: 10px 0; }
.detail-body img { max-width: 100%; margin: 6px 0; }
.detail-body h3 { font-size: 16px; color: #1f2d3d; margin: 16px 0 8px; }
.detail-body table { border-collapse: collapse; width: 100%; margin: 10px 0; }
.detail-body table td, .detail-body table th { border: 1px solid #e5e8ec; padding: 8px 10px; }
.pn { margin-top: 24px; padding-top: 14px; border-top: 1px solid #f0f1f3; color: #666; font-size: 13px; }
.pn div { padding: 4px 0; }
.pn a { color: #666; }
.pn a:hover { color: #0a58ca; }

/* 产品参数表 */
.param-table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; }
.param-table td { border: 1px solid #e5e8ec; padding: 10px 14px; }
.param-table td.k { width: 160px; background: #f7f8fa; color: #1f2d3d; font-weight: 600; text-align: right; }

/* 分页 */
.pagination { text-align: center; margin-top: 26px; }
.pagination a, .pagination span { display: inline-block; min-width: 34px; height: 34px; line-height: 32px; border: 1px solid #e0e3e8; margin: 0 3px; padding: 0 10px; color: #555; font-size: 13px; }
.pagination .cur { background: #0a58ca; color: #fff; border-color: #0a58ca; }
.pagination a:hover { border-color: #0a58ca; color: #0a58ca; }

/* 底部 */
.footer { background: #1f2d3d; color: #93a0ad; padding: 40px 0 0; font-size: 13px; }
.footer .cols { display: flex; gap: 60px; padding-bottom: 30px; }
.footer .col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer .col a { display: block; color: #93a0ad; padding: 5px 0; }
.footer .col a:hover { color: #fff; }
.footer .col.contact { margin-left: auto; text-align: right; }
.footer .col.contact h4 { text-align: right; }
.footer .col.contact p { padding: 3px 0; }
.footer .copy { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; text-align: center; color: #7a8794; font-size: 12px; }
.footer .copy a { color: #93a0ad; }
.footer .copy a:hover { color: #fff; }
.footer .copy .sep { color: #55626f; }

/* 搜索框 */
.search-form { display: flex; }
.search-form input { width: 220px; height: 32px; border: 1px solid #d5d9de; padding: 0 10px; font-size: 13px; outline: none; }
.search-form button { height: 32px; background: #0a58ca; color: #fff; border: 0; padding: 0 16px; cursor: pointer; }
.search-form button:hover { background: #08459e; }

/* 提示 */
.empty-tip { text-align: center; color: #999; padding: 50px 0; font-size: 14px; }

/* ===== Footer v2：品牌 + 分组导航（default 主题） ===== */
.footer .f-grid { display:grid; grid-template-columns:1.7fr 1fr 1fr 1fr; gap:44px; padding:44px 0 34px; }
.footer .f-logo { font-size:22px; font-weight:700; color:#fff; text-decoration:none; letter-spacing:.5px; display:inline-block; margin-bottom:14px; }
.footer .f-logo span { color:#4d8dff; }
.footer .f-desc { font-size:13px; line-height:1.8; color:#8a97a8; margin:0 0 18px; max-width:340px; }
.footer .f-contact p { font-size:13px; color:#93a0ad; margin:0 0 7px; line-height:1.6; }
.footer .f-contact em { font-style:normal; display:inline-block; color:#6d7a8a; width:34px; }
.footer .f-col h4 { color:#e8eef5; font-size:14px; font-weight:600; margin:6px 0 16px; letter-spacing:.5px; }
.footer .f-col a { display:block; color:#93a0ad; padding:6px 0; font-size:13px; text-decoration:none; transition:color .15s, padding-left .15s; }
.footer .f-col a:hover { color:#fff; padding-left:4px; }
.footer .f-links { border-top:1px solid rgba(255,255,255,.08); padding:14px 0; font-size:13px; color:#6d7a8a; }
.footer .f-links a { color:#9db3c8; text-decoration:none; margin-right:14px; }
.footer .f-links a:hover { color:#fff; }
@media (max-width:900px){ .footer .f-grid { grid-template-columns:1fr 1fr; gap:28px; } .footer .f-brand { grid-column:1 / -1; } }
