/* ============================================
   正佰物资MRO商城 - 主样式
   配色方案：蓝橙工业风
   主色：#0056b3 (深蓝) | 辅色：#e67e22 (橙色) | 背景白灰
   ============================================ */

/* ---- Reset & Base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; color: #333; background: #f5f6f8; font-size: 14px; line-height: 1.6; }
a { color: #333; text-decoration: none; transition: color 0.2s; }
a:hover { color: #e67e22; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.clearfix::after { content: ''; display: table; clear: both; }

/* ---- 顶部栏 ---- */
.top-bar { background: #2c3e50; color: #bdc3c7; font-size: 12px; height: 36px; line-height: 36px; }
.top-bar .container { display: flex; justify-content: space-between; }
.top-left span { margin-right: 20px; }
.top-left span i { margin-right: 4px; }
.top-right a { color: #bdc3c7; margin-left: 15px; }
.top-right a:hover { color: #fff; }
.top-right .highlight { color: #e67e22; font-weight: 600; }

/* ---- Logo & 搜索 ---- */
.header-main { background: #fff; padding: 15px 0; border-bottom: 3px solid #0056b3; }
.header-main .container { display: flex; align-items: center; gap: 30px; }
.logo h1 { font-size: 28px; color: #0056b3; font-weight: 700; letter-spacing: 2px; }
.logo p { font-size: 11px; color: #999; letter-spacing: 3px; text-transform: uppercase; }
.search-box { flex: 1; max-width: 550px; }
.search-input { display: flex; border: 2px solid #0056b3; border-radius: 4px; overflow: hidden; }
.search-input input { flex: 1; border: none; padding: 10px 15px; font-size: 14px; outline: none; }
.search-input button { background: #0056b3; color: #fff; border: none; padding: 10px 25px; cursor: pointer; font-size: 14px; transition: background 0.2s; }
.search-input button:hover { background: #004494; }
.hot-words { padding: 6px 0 0; font-size: 12px; color: #999; }
.hot-words a { color: #999; margin-right: 10px; }
.hot-words a:hover { color: #e67e22; }
.header-contact { min-width: 200px; text-align: center; }
.phone-big { display: inline-flex; align-items: center; gap: 10px; }
.phone-big i { font-size: 28px; color: #e67e22; }
.phone-big .label { display: block; font-size: 11px; color: #999; }
.phone-big .number { display: block; font-size: 22px; color: #e67e22; font-weight: 700; }

/* ---- 主导航 ---- */
.main-nav { background: #0056b3; position: relative; z-index: 100; }
.main-nav .container { display: flex; align-items: stretch; }
.nav-category { background: #003d80; width: 220px; position: relative; }
.cat-trigger { display: block; color: #fff; padding: 12px 15px; font-size: 15px; font-weight: 600; cursor: pointer; }
.cat-trigger i { margin-right: 8px; }
.category-dropdown { display: none; position: absolute; top: 100%; left: 0; width: 220px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 200; }
.nav-category:hover .category-dropdown { display: block; }
.cat-item { position: relative; }
.cat-item > a { display: flex; align-items: center; padding: 10px 15px; color: #333; font-size: 13px; border-bottom: 1px solid #f0f0f0; }
.cat-item > a:hover { background: #f8f9fa; color: #0056b3; }
.cat-item > a i { width: 20px; text-align: center; color: #0056b3; margin-right: 8px; font-size: 12px; }
.cat-sub { display: none; position: absolute; left: 220px; top: 0; background: #fff; min-width: 300px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); padding: 15px 20px; }
.cat-item:hover > .cat-sub { display: block; }
.cat-sub a { display: inline-block; padding: 4px 10px; margin: 2px 0; color: #555; font-size: 12px; }
.cat-sub a:hover { color: #0056b3; }
.nav-links { display: flex; flex: 1; }
.nav-links li { flex: 1; text-align: center; }
.nav-links a { display: block; color: #fff; padding: 12px 10px; font-size: 14px; transition: background 0.2s; }
.nav-links a:hover, .nav-links a.active { background: #003d80; color: #fff; }
.nav-links .nav-xunjia { background: #e67e22; font-weight: 600; }
.nav-links .nav-xunjia:hover { background: #d35400; }

/* ---- Banner 轮播 ---- */
.banner-section { position: relative; }
.banner-slider { position: relative; height: 400px; overflow: hidden; background: #ddd; }
.banner-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; transition: opacity 0.6s; }
.banner-slide.active { opacity: 1; z-index: 1; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; color: #fff; }
.banner-placeholder h2 { font-size: 36px; margin-bottom: 10px; }
.banner-placeholder p { font-size: 18px; opacity: 0.8; }
.banner-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 8px; }
.banner-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.3s; }
.banner-dot.active { background: #fff; }
.banner-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 45px; height: 70px; background: rgba(0,0,0,0.3); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; cursor: pointer; transition: background 0.3s; }
.banner-nav:hover { background: rgba(0,0,0,0.6); }
.banner-prev { left: 0; border-radius: 0 4px 4px 0; }
.banner-next { right: 0; border-radius: 4px 0 0 4px; }

/* ---- 区块标题 ---- */
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; border-bottom: 2px solid #0056b3; padding-bottom: 10px; }
.section-title h2 { font-size: 20px; color: #0056b3; position: relative; padding-left: 12px; }
.section-title h2::before { content: ''; position: absolute; left: 0; top: 2px; width: 4px; height: 20px; background: #e67e22; }
.section-title .more { color: #999; font-size: 13px; }
.section-title .more:hover { color: #e67e22; }

/* ---- Tabs ---- */
.tabs { display: flex; gap: 0; margin-bottom: 15px; border-bottom: 1px solid #e0e0e0; }
.tab-btn { padding: 8px 20px; cursor: pointer; font-size: 14px; color: #666; border-bottom: 2px solid transparent; transition: all 0.2s; }
.tab-btn:hover { color: #0056b3; }
.tab-btn.active { color: #0056b3; font-weight: 600; border-bottom-color: #0056b3; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ---- 公告轮播 ---- */
.notice-section { background: #fff; padding: 15px 0; margin-bottom: 0; }
.notice-bar { display: flex; gap: 20px; }
.notice-tabs { flex-shrink: 0; }
.notice-list { flex: 1; overflow: hidden; height: 30px; line-height: 30px; }
.notice-list a { font-size: 13px; color: #555; }
.notice-list a:hover { color: #e67e22; }

/* ---- 首页各区块 ---- */
.home-section { padding: 25px 0; }
.bg-white { background: #fff; }

/* ---- 产品卡片 ---- */
.goods-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.goods-grid-5 { grid-template-columns: repeat(5, 1fr); }
.goods-grid-3 { grid-template-columns: repeat(3, 1fr); }
.goods-card { background: #fff; border: 1px solid #eee; border-radius: 4px; overflow: hidden; transition: box-shadow 0.3s, transform 0.2s; }
.goods-card:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.1); transform: translateY(-2px); }
.goods-card .thumb { height: 180px; background: #f5f5f5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.goods-card .thumb img { width: 100%; height: 100%; object-fit: contain; }
.goods-card .thumb-placeholder { color: #ccc; font-size: 40px; }
.goods-card .info { padding: 10px; }
.goods-card .name { font-size: 13px; color: #333; height: 40px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 5px; }
.goods-card .name:hover { color: #0056b3; }
.goods-card .model { font-size: 12px; color: #999; margin-bottom: 5px; }
.goods-card .price { color: #e74c3c; font-size: 16px; font-weight: 700; }
.goods-card .tags { margin-top: 5px; }
.goods-card .tag { display: inline-block; padding: 1px 6px; font-size: 11px; border-radius: 2px; margin-right: 4px; }
.tag-new { background: #e74c3c; color: #fff; }
.tag-hot { background: #e67e22; color: #fff; }
.tag-stock { background: #27ae60; color: #fff; }
.tag-ask { background: #95a5a6; color: #fff; }
.goods-card .btn-inquiry { display: block; text-align: center; background: #0056b3; color: #fff; padding: 8px; margin-top: 8px; font-size: 13px; border-radius: 3px; transition: background 0.2s; }
.goods-card .btn-inquiry:hover { background: #004494; color: #fff; }

/* ---- 分类展示 ---- */
.category-show { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.category-block { background: #fff; border: 1px solid #eee; border-radius: 4px; padding: 15px; }
.category-block h3 { font-size: 16px; color: #0056b3; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid #f0f0f0; display: flex; justify-content: space-between; }
.category-block h3 a { font-size: 12px; color: #999; }
.category-block .sub-list a { display: inline-block; padding: 3px 8px; margin: 2px; font-size: 12px; color: #555; background: #f5f6f8; border-radius: 3px; }
.category-block .sub-list a:hover { background: #e8f4fd; color: #0056b3; }

/* ---- 品牌展示 ---- */
.brand-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.brand-item { background: #fff; border: 1px solid #eee; border-radius: 4px; height: 80px; display: flex; align-items: center; justify-content: center; transition: border-color 0.2s; }
.brand-item:hover { border-color: #0056b3; }
.brand-item img { max-height: 50px; max-width: 100px; }
.brand-name { font-size: 12px; color: #555; text-align: center; padding: 5px; }

/* ---- 资讯列表 ---- */
.news-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.news-card { display: flex; gap: 12px; padding: 12px; background: #fff; border: 1px solid #eee; border-radius: 4px; }
.news-card .thumb { width: 140px; height: 90px; flex-shrink: 0; background: #f0f0f0; border-radius: 4px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.news-card .title { font-size: 14px; color: #333; line-height: 1.5; height: 42px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.news-card .title:hover { color: #0056b3; }
.news-card .meta { font-size: 12px; color: #999; }

/* ---- 供求信息 ---- */
.supply-list { display: flex; flex-direction: column; gap: 10px; }
.supply-item { display: flex; align-items: center; padding: 10px 15px; background: #fff; border: 1px solid #eee; border-radius: 4px; }
.supply-type { width: 50px; height: 50px; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 600; margin-right: 15px; flex-shrink: 0; }
.supply-type.supply { background: #27ae60; }
.supply-type.demand { background: #e67e22; }
.supply-info { flex: 1; }
.supply-info .title { font-size: 14px; color: #333; }
.supply-info .title:hover { color: #0056b3; }
.supply-info .desc { font-size: 12px; color: #999; margin-top: 3px; }
.supply-date { font-size: 12px; color: #bbb; flex-shrink: 0; }

/* ---- 品牌详情页 ---- */
.brand-list-page { padding: 20px 0; }
.brand-letters { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 20px; padding: 15px; background: #fff; border-radius: 4px; }
.brand-letters a { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: 1px solid #ddd; border-radius: 3px; font-size: 13px; color: #555; }
.brand-letters a:hover, .brand-letters a.active { background: #0056b3; color: #fff; border-color: #0056b3; }
.brand-group { margin-bottom: 20px; }
.brand-group h3 { font-size: 18px; color: #0056b3; margin-bottom: 10px; padding: 8px 12px; background: #fff; border-left: 4px solid #e67e22; }
.brand-group ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.brand-group li { background: #fff; border: 1px solid #eee; border-radius: 4px; padding: 15px; text-align: center; transition: border-color 0.2s; }
.brand-group li:hover { border-color: #0056b3; }
.brand-group li img { max-height: 40px; margin: 0 auto 8px; }
.brand-group li .name { font-size: 13px; color: #333; }

/* ---- 产品列表页 ---- */
.category-page { padding: 20px 0; }
.category-layout { display: flex; gap: 20px; }
.category-sidebar { width: 220px; flex-shrink: 0; }
.sidebar-box { background: #fff; border: 1px solid #eee; border-radius: 4px; margin-bottom: 15px; }
.sidebar-box h3 { background: #0056b3; color: #fff; padding: 10px 15px; font-size: 14px; border-radius: 4px 4px 0 0; }
.sidebar-box ul { padding: 10px; }
.sidebar-box li a { display: block; padding: 6px 10px; font-size: 13px; color: #555; border-radius: 3px; }
.sidebar-box li a:hover, .sidebar-box li a.active { background: #e8f4fd; color: #0056b3; }
.category-main { flex: 1; }
.filter-bar { background: #fff; padding: 12px 15px; margin-bottom: 15px; border: 1px solid #eee; border-radius: 4px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-bar .label { color: #999; font-size: 13px; }
.filter-bar select { padding: 4px 8px; border: 1px solid #ddd; border-radius: 3px; font-size: 13px; }

/* ---- 产品详情页 ---- */
.goods-detail { padding: 20px 0; }
.goods-info-section { display: flex; gap: 20px; background: #fff; padding: 20px; border: 1px solid #eee; border-radius: 4px; margin-bottom: 15px; }
.goods-gallery { width: 400px; flex-shrink: 0; }
.goods-main-img { width: 100%; height: 350px; background: #f5f5f5; border: 1px solid #eee; border-radius: 4px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.goods-main-img img { max-width: 100%; max-height: 100%; }
.goods-thumbnails { display: flex; gap: 8px; }
.goods-thumbnails .thumb { width: 60px; height: 60px; background: #f5f5f5; border: 2px solid transparent; border-radius: 4px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.goods-thumbnails .thumb.active, .goods-thumbnails .thumb:hover { border-color: #0056b3; }
.goods-detail-info { flex: 1; }
.goods-detail-info h1 { font-size: 20px; color: #333; margin-bottom: 15px; line-height: 1.5; }
.goods-detail-info .meta-row { display: flex; gap: 15px; margin-bottom: 15px; flex-wrap: wrap; }
.goods-detail-info .meta-item { font-size: 13px; color: #888; }
.goods-detail-info .meta-item span { color: #333; }
.goods-detail-info .price-row { background: #fff8f0; padding: 15px; border-radius: 4px; margin-bottom: 15px; }
.goods-detail-info .price-label { font-size: 13px; color: #999; }
.goods-detail-info .price-value { font-size: 28px; color: #e74c3c; font-weight: 700; }
.goods-detail-info .btn-group { display: flex; gap: 10px; margin-top: 20px; }
.goods-detail-info .btn-primary { padding: 12px 40px; background: #e67e22; color: #fff; border: none; border-radius: 4px; font-size: 16px; cursor: pointer; transition: background 0.2s; }
.goods-detail-info .btn-primary:hover { background: #d35400; color: #fff; }
.goods-detail-info .btn-secondary { padding: 12px 30px; background: #0056b3; color: #fff; border: none; border-radius: 4px; font-size: 16px; cursor: pointer; }
.goods-detail-info .btn-secondary:hover { background: #004494; color: #fff; }

.goods-spec-section { background: #fff; padding: 20px; border: 1px solid #eee; border-radius: 4px; margin-bottom: 15px; }
.goods-desc-section { background: #fff; padding: 20px; border: 1px solid #eee; border-radius: 4px; }

/* ---- 搜索结果页 ---- */
.search-result { padding: 20px 0; }
.search-header { padding: 15px; background: #fff; border: 1px solid #eee; border-radius: 4px; margin-bottom: 15px; }
.search-header h3 { font-size: 16px; color: #333; }
.search-header .keyword { color: #e67e22; font-weight: 600; }

/* ---- 询价页 ---- */
.xunjia-section { padding: 30px 0; }
.xunjia-form { max-width: 700px; background: #fff; padding: 30px; border: 1px solid #eee; border-radius: 4px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; color: #333; margin-bottom: 6px; font-weight: 600; }
.form-group label .required { color: #e74c3c; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; transition: border-color 0.2s; }
.form-group input:focus, .form-group textarea:focus { border-color: #0056b3; outline: none; }
.form-group textarea { height: 100px; resize: vertical; }
.form-submit { padding: 12px 40px; background: #e67e22; color: #fff; border: none; border-radius: 4px; font-size: 16px; cursor: pointer; }
.form-submit:hover { background: #d35400; }

/* ---- 分页 ---- */
.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 20px; padding: 15px 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 35px; height: 35px; padding: 0 10px; border: 1px solid #ddd; border-radius: 3px; font-size: 13px; color: #555; }
.pagination a:hover { border-color: #0056b3; color: #0056b3; }
.pagination .active { background: #0056b3; color: #fff; border-color: #0056b3; }

/* ---- 简单页面 ---- */
.page-section { padding: 25px 0; }
.page-content { background: #fff; padding: 30px; border: 1px solid #eee; border-radius: 4px; }
.page-content h2 { font-size: 22px; color: #0056b3; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #f0f0f0; }
.page-content h3 { font-size: 18px; color: #333; margin: 20px 0 10px; }
.page-content p { margin-bottom: 12px; line-height: 1.8; }

/* ---- 帮助中心 ---- */
.help-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.help-item { background: #fff; border: 1px solid #eee; border-radius: 4px; padding: 20px; }
.help-item h3 { font-size: 16px; color: #0056b3; margin-bottom: 12px; }
.help-item p { font-size: 13px; color: #666; line-height: 1.8; }

/* ---- 底部 ---- */
.site-footer { margin-top: 30px; }
.footer-nav { background: #2c3e50; padding: 30px 0; color: #bdc3c7; }
.footer-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; }
.footer-col h3 { color: #fff; font-size: 15px; margin-bottom: 15px; padding-bottom: 8px; border-bottom: 2px solid #e67e22; display: inline-block; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #bdc3c7; font-size: 13px; }
.footer-col a:hover { color: #e67e22; }
.footer-info { background: #34495e; padding: 30px 0; color: #bdc3c7; }
.footer-contact { display: flex; justify-content: space-between; align-items: center; }
.company-info h2 { color: #fff; font-size: 20px; margin-bottom: 12px; }
.company-info p { margin-bottom: 6px; font-size: 13px; }
.company-info p i { width: 18px; color: #e67e22; }
.qr-area { display: flex; gap: 20px; }
.qr-item { text-align: center; }
.qr-placeholder { width: 100px; height: 100px; background: #fff; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 40px; color: #ccc; margin-bottom: 5px; }
.qr-item span { font-size: 12px; color: #bdc3c7; }
.footer-bottom { background: #2c3e50; padding: 15px 0; text-align: center; }
.friend-links { margin-bottom: 10px; font-size: 13px; color: #7f8c8d; }
.friend-links a { color: #7f8c8d; margin: 0 8px; }
.friend-links a:hover { color: #e67e22; }
.copyright { font-size: 12px; color: #7f8c8d; }
.copyright a { color: #7f8c8d; }

/* ---- 返回顶部 ---- */
.back-to-top { position: fixed; bottom: 50px; right: 30px; width: 42px; height: 42px; background: #0056b3; color: #fff; border-radius: 4px; display: none; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; z-index: 999; transition: background 0.2s; }
.back-to-top:hover { background: #003d80; }
.back-to-top.show { display: flex; }

/* ---- 响应式 ---- */
@media (max-width: 992px) {
    .goods-grid { grid-template-columns: repeat(3, 1fr); }
    .category-show { grid-template-columns: repeat(2, 1fr); }
    .brand-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-cols { grid-template-columns: repeat(3, 1fr); }
    .category-layout { flex-direction: column; }
    .category-sidebar { width: 100%; }
    .nav-links a { padding: 12px 6px; font-size: 12px; }
}
/* ---- 页面Banner ---- */
.page-banner { padding: 60px 0; color: #fff; text-align: center; }
.page-banner h2 { font-size: 32px; margin-bottom: 8px; }
.page-banner p { font-size: 16px; opacity: 0.85; }
.page-content { padding: 30px 0 60px; }
.content-with-sidebar { display: flex; gap: 30px; }
.content-main { flex: 1; min-width: 0; }
.content-sidebar { width: 300px; flex-shrink: 0; }

/* ---- 侧边栏 ---- */
.sidebar-widget { background: #fff; border-radius: 6px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.widget-title { font-size: 16px; color: #0056b3; border-bottom: 2px solid #0056b3; padding-bottom: 10px; margin-bottom: 15px; }
.hot-news-list li { padding: 8px 0; border-bottom: 1px dashed #eee; }
.hot-news-list li a { font-size: 13px; color: #555; }
.hot-news-list li a:hover { color: #0056b3; }
.hot-news-list li i { color: #e67e22; margin-right: 5px; }
.xunjia-widget { background: linear-gradient(135deg, #0056b3, #003d80); color: #fff; text-align: center; }
.xunjia-widget .widget-title { color: #fff; border-bottom-color: rgba(255,255,255,0.3); }
.xunjia-widget p { margin-bottom: 15px; font-size: 13px; opacity: 0.85; }
.btn-xunjia { display: inline-block; background: #e67e22; color: #fff; padding: 10px 24px; border-radius: 4px; font-size: 14px; }
.btn-xunjia:hover { background: #d35400; color: #fff; }

/* ---- 资讯列表 ---- */
.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-item { display: flex; gap: 20px; background: #fff; border-radius: 6px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); transition: box-shadow 0.2s; }
.news-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.news-thumb { width: 200px; height: 140px; flex-shrink: 0; overflow: hidden; border-radius: 4px; background: #f0f0f0; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb .thumb-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #ccc; font-size: 40px; }
.news-info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.news-info h3 { font-size: 16px; margin-bottom: 8px; }
.news-info h3 a:hover { color: #0056b3; }
.news-desc { color: #777; font-size: 13px; line-height: 1.8; }
.news-meta { font-size: 12px; color: #999; }
.news-meta span { margin-right: 15px; }
.news-meta i { margin-right: 3px; color: #bbb; }

/* ---- 资讯详情 ---- */
.news-detail { background: #fff; border-radius: 6px; padding: 30px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); margin-bottom: 20px; }
.detail-title { font-size: 24px; color: #222; margin-bottom: 15px; line-height: 1.4; }
.detail-meta { font-size: 13px; color: #999; padding-bottom: 15px; border-bottom: 1px solid #eee; margin-bottom: 20px; }
.detail-meta span { margin-right: 20px; }
.detail-content { font-size: 15px; line-height: 2; color: #444; }
.detail-content p { margin-bottom: 15px; }
.detail-nav { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; font-size: 14px; }
.detail-nav .disabled { color: #ccc; }
.related-news { background: #fff; border-radius: 6px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.related-news h3 { margin-bottom: 15px; color: #0056b3; font-size: 16px; }
.related-grid { display: flex; gap: 15px; flex-wrap: wrap; }
.related-item { display: flex; align-items: center; gap: 10px; padding: 8px; background: #f8f9fa; border-radius: 4px; width: calc(50% - 8px); }
.related-item .thumb { width: 60px; height: 45px; flex-shrink: 0; overflow: hidden; border-radius: 3px; background: #eee; display: flex; align-items: center; justify-content: center; color: #ccc; }
.related-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-item span { font-size: 13px; color: #555; }

/* ---- 筛选栏 ---- */
.filter-bar { background: #fff; border-radius: 6px; padding: 15px 20px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); display: flex; flex-wrap: wrap; gap: 15px; align-items: center; }
.filter-item { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-item label { font-weight: 600; color: #555; font-size: 13px; white-space: nowrap; }
.filter-btn { display: inline-block; padding: 5px 14px; border-radius: 3px; font-size: 13px; color: #555; background: #f5f5f5; transition: all 0.2s; }
.filter-btn:hover, .filter-btn.active { background: #0056b3; color: #fff; }
.search-inline form { display: flex; gap: 0; }
.search-inline input { padding: 5px 12px; border: 1px solid #ddd; border-radius: 3px 0 0 3px; font-size: 13px; outline: none; }
.search-inline input:focus { border-color: #0056b3; }
.search-inline button { padding: 5px 14px; background: #0056b3; color: #fff; border: none; border-radius: 0 3px 3px 0; cursor: pointer; }
.search-inline button:hover { background: #003d80; }

/* ---- 供求列表 ---- */
.supply-list { display: flex; flex-direction: column; gap: 15px; }
.supply-item { display: flex; align-items: center; gap: 15px; background: #fff; padding: 20px; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.supply-type { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: #fff; flex-shrink: 0; }
.supply-type.supply { background: #27ae60; }
.supply-type.demand { background: #e67e22; }
.supply-info { flex: 1; }
.supply-info h3 { font-size: 15px; margin-bottom: 5px; }
.supply-info h3 a:hover { color: #0056b3; }
.supply-info p { font-size: 13px; color: #777; margin-bottom: 8px; }
.supply-meta { font-size: 12px; color: #999; }
.supply-meta span { margin-right: 15px; }
.supply-meta .cat { background: #f0f0f0; padding: 2px 8px; border-radius: 3px; }

/* ---- 问答列表 ---- */
.qa-ask-bar { background: #fff; border-radius: 6px; padding: 20px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.qa-list { display: flex; flex-direction: column; gap: 15px; }
.qa-item { display: flex; gap: 15px; background: #fff; padding: 20px; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.qa-status { width: 70px; text-align: center; flex-shrink: 0; }
.qa-status i { font-size: 24px; display: block; margin-bottom: 5px; }
.qa-status.answered i, .qa-status.answered span { color: #27ae60; }
.qa-status.pending i, .qa-status.pending span { color: #e67e22; }
.qa-status span { font-size: 12px; }
.qa-content { flex: 1; }
.qa-content h3 { font-size: 15px; margin-bottom: 8px; }
.text-orange { color: #e67e22; }
.text-green { color: #27ae60; }
.qa-answer { background: #f8fdf5; border-left: 3px solid #27ae60; padding: 12px 15px; margin: 10px 0; border-radius: 0 4px 4px 0; font-size: 13px; line-height: 1.8; }
.qa-meta { font-size: 12px; color: #999; margin-top: 8px; }
.qa-meta span { margin-right: 15px; }
.qa-meta .cat { background: #f0f0f0; padding: 2px 8px; border-radius: 3px; }

/* ---- 下载列表 ---- */
.download-list { display: flex; flex-direction: column; gap: 15px; }
.download-item { display: flex; align-items: center; gap: 20px; background: #fff; padding: 20px; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.dl-icon { width: 60px; text-align: center; flex-shrink: 0; }
.dl-info { flex: 1; }
.dl-info h3 { font-size: 15px; margin-bottom: 5px; }
.dl-info h3 a:hover { color: #0056b3; }
.dl-info p { font-size: 13px; color: #777; margin-bottom: 8px; }
.dl-meta { font-size: 12px; color: #999; }
.dl-meta span { margin-right: 15px; }
.dl-action { flex-shrink: 0; }

/* ---- 空状态 ---- */
.empty-state { text-align: center; padding: 60px 20px; color: #bbb; }
.empty-state i { font-size: 48px; margin-bottom: 15px; display: block; }
.empty-state p { font-size: 15px; }

/* ---- 现货标签 ---- */
.stock-badge { position: absolute; top: 8px; left: 8px; background: #c0392b; color: #fff; padding: 2px 8px; border-radius: 3px; font-size: 12px; }
.stock-qty { font-size: 13px; color: #c0392b; margin: 5px 0; }

/* ---- 关于我们 ---- */
.about-section { max-width: 1000px; margin: 0 auto; }
.about-block { background: #fff; border-radius: 6px; padding: 30px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.about-block h2 { font-size: 20px; color: #0056b3; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #0056b3; }
.about-block h2 i { margin-right: 8px; }
.about-text p { margin-bottom: 12px; line-height: 2; color: #555; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.about-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.about-card { text-align: center; padding: 20px; border-radius: 6px; background: #f8f9fa; transition: transform 0.2s; }
.about-card:hover { transform: translateY(-3px); }
.about-icon { font-size: 36px; color: #0056b3; margin-bottom: 12px; }
.about-card h3 { font-size: 16px; margin-bottom: 8px; color: #333; }
.about-card p { font-size: 13px; color: #777; line-height: 1.8; }

/* ---- 联系我们 ---- */
.contact-section { max-width: 1000px; margin: 0 auto; }
.contact-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.contact-card { background: #fff; border-radius: 6px; padding: 25px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.contact-icon { font-size: 36px; color: #0056b3; margin-bottom: 12px; }
.contact-card h3 { font-size: 15px; margin-bottom: 8px; color: #333; }
.contact-card p { font-size: 13px; color: #777; }
.big-phone { font-size: 22px; font-weight: 700; color: #e67e22 !important; }
.contact-form-section { background: #fff; border-radius: 6px; padding: 30px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.contact-form-section h2 { font-size: 20px; color: #0056b3; margin-bottom: 5px; }
.contact-form-section > p { color: #777; margin-bottom: 20px; }
.contact-form .form-row { display: flex; gap: 20px; margin-bottom: 15px; }
.contact-form .form-group { flex: 1; }
.contact-form label { display: block; font-size: 13px; color: #555; margin-bottom: 5px; font-weight: 600; }
.contact-form .required { color: #e74c3c; }
.contact-form input, .contact-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; outline: none; transition: border-color 0.2s; }
.contact-form input:focus, .contact-form textarea:focus { border-color: #0056b3; }
.contact-form textarea { resize: vertical; }
.btn-submit { display: inline-block; background: #0056b3; color: #fff; padding: 12px 36px; border: none; border-radius: 4px; font-size: 15px; cursor: pointer; }
.btn-submit:hover { background: #003d80; }
.form-submit { text-align: center; margin-top: 15px; }

/* ---- 帮助中心 ---- */
.help-section { max-width: 900px; margin: 0 auto; }
.help-group { background: #fff; border-radius: 6px; padding: 25px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.help-group h2 { font-size: 18px; color: #0056b3; margin-bottom: 15px; }
.help-group h2 i { margin-right: 8px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-q { padding: 12px 15px; background: #f8f9fa; border-radius: 4px; cursor: pointer; font-size: 14px; display: flex; align-items: center; gap: 8px; transition: background 0.2s; }
.faq-q:hover { background: #e8f0fe; }
.faq-q i { font-size: 10px; color: #999; transition: transform 0.2s; }
.faq-item.open .faq-q i { transform: rotate(90deg); }
.faq-a { padding: 0 15px; max-height: 0; overflow: hidden; transition: max-height 0.3s, padding 0.3s; }
.faq-item.open .faq-a { max-height: 500px; padding: 15px; }
.faq-a p { font-size: 13px; color: #666; line-height: 1.8; }
.faq-a ol { padding-left: 20px; font-size: 13px; color: #666; line-height: 2; }

/* ---- 分页 ---- */
.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 30px; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; color: #555; background: #fff; }
.page-btn:hover, .page-btn.active { background: #0056b3; color: #fff; border-color: #0056b3; }

@media (max-width: 768px) {
    .header-main .container { flex-direction: column; }
    .header-contact { display: none; }
    .goods-grid { grid-template-columns: repeat(2, 1fr); }
    .news-list { grid-template-columns: 1fr; }
    .brand-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
    .top-left { display: none; }
    .nav-links { flex-wrap: wrap; }
    .goods-info-section { flex-direction: column; }
    .goods-gallery { width: 100%; }
    .content-with-sidebar { flex-direction: column; }
    .content-sidebar { width: 100%; }
    .news-item { flex-direction: column; }
    .news-thumb { width: 100%; }
    .contact-info-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .contact-form .form-row { flex-direction: column; }
    .supply-item { flex-direction: column; text-align: center; }
    .related-grid { grid-template-columns: 1fr; }
}
