/* ========== 基础重置 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; font-size: 14px; color: #333; background: #f5f5f5; }
a { text-decoration: none; color: inherit; }
ul, li { list-style: none; }
img { max-width: 100%; display: block; }

/* ========== Header ========== */
.header { background: #0046B3; height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; position: sticky; top: 0; z-index: 1000; }
.header_left { display: flex; align-items: center; height: 100%; }
.header_left .logo { height: auto; margin-right: 60px; }
.header_left .logo img { height: 28px; }
.header_left .nav { height: 100%; display: flex; align-items: center; }
.header_left .nav a { position: relative; height: 100%; display: flex; align-items: center; color: rgba(255,255,255,0.7); padding: 0 16px; font-size: 15px; }
.header_left .nav a:hover { color: #fff; }
.header_left .nav a.active { color: #fff; }
.header_left .nav a.active::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 6px solid #fff; }
.header_right { display: flex; align-items: center; gap: 20px; }
.header_right .search { display: flex; align-items: center; }
.header_right .search input { background: transparent; border: none; border-left: 1px solid rgba(255,255,255,0.3); color: #fff; padding: 5px 12px; width: 180px; font-size: 14px; outline: none; }
.header_right .search input::placeholder { color: rgba(255,255,255,0.5); }
.header_right .search img { height: 18px; cursor: pointer; margin-left: 5px; }
.header_right .cart, .header_right .login, .header_right .lang { display: flex; align-items: center; cursor: pointer; }
.header_right .cart img, .header_right .login img, .header_right .lang img { height: 20px; }
.header_right .cart span, .header_right .login span, .header_right .lang span { color: #fff; font-size: 14px; margin-left: 6px; }
.header_right .cart .cart_img { position: relative; }
.header_right .cart .cart_img .cartNum { position: absolute; top: -6px; right: -10px; background: #fff; color: #0046B3; font-size: 11px; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.header_right .lang { position: relative; }
.header_right .changeLang_pop { display: none; position: absolute; top: 100%; right: 0; background: #fff; border-radius: 4px; padding: 6px 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.15); z-index: 10; }
.header_right .lang:hover .changeLang_pop { display: block; }
.header_right .changeLang_pop p { font-size: 13px; padding: 3px 0; color: #333; }
.header_right .changeLang_pop p.active { color: #0046B3; }
.header_right .changeLang_pop p a { color: inherit; }

/* ========== 面包屑 ========== */
.breadcrumb { background: #fff; padding: 14px 40px; font-size: 13px; color: #888; border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 6px; }
.breadcrumb img { width: 14px; display: inline; }
.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: #0046B3; }
.breadcrumb span { color: #333; }

/* ========== 主体布局 ========== */
.container { display: flex; max-width: 1400px; margin: 0 auto; padding: 30px 40px; gap: 30px; min-height: 500px; }

/* 左侧分类 */
.sidebar { width: 240px; flex-shrink: 0; background: #fff; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); overflow: hidden; }
.sidebar .sidebar-title { background: #0046B3; color: #fff; font-size: 16px; font-weight: bold; padding: 16px 20px; }
.sidebar .cat-group { border-bottom: 1px solid #f0f0f0; }
.sidebar .cat-parent { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; cursor: pointer; font-size: 14px; color: #333; }
.sidebar .cat-parent:hover { color: #0046B3; background: #fafafa; }
.sidebar .cat-parent .arrow { font-size: 10px; color: #bbb; transition: transform 0.3s; }
.sidebar .cat-parent .arrow.open { transform: rotate(180deg); }
.sidebar .sub-list { display: none; background: #fafafa; }
.sidebar .sub-list.open { display: block; }
.sidebar .sub-item { display: block; padding: 11px 20px 11px 36px; font-size: 13px; color: #666; cursor: pointer; }
.sidebar .sub-item:hover { color: #0046B3; background: #fff; }
.sidebar .sub-item.active { color: #0046B3; background: #fff; font-weight: bold; border-right: 3px solid #0046B3; }
.sidebar .single-item { display: block; padding: 14px 20px; font-size: 14px; color: #333; cursor: pointer; border-bottom: 1px solid #f0f0f0; }
.sidebar .single-item:hover { color: #0046B3; background: #fafafa; }
.sidebar .single-item.active { color: #0046B3; font-weight: bold; background: #fafafa; }

/* 右侧内容（居中修复版） */
.content {
    flex: 0 0 auto;
    width: 100%;
    max-width: 960px; /* 限制了右侧最大宽度，让它在屏幕中间居中 */
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 24px 30px;
}
.content .content-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0; padding-bottom: 16px; }
.content .content-header h2 { font-size: 20px; color: #222; }
.product-count-display { font-size: 14px; color: #888; white-space: nowrap; }
.product-count-display strong { color: #0046B3; font-size: 16px; margin: 0 2px; }

/* ========== 筛选区 ========== */
.filters-container { background: #f5f5f5; padding: 16px 24px; margin: 16px 0; border-radius: 4px; }
.filters-header { display: flex; justify-content: space-between; align-items: center; }
.filters-header .filters-left { display: flex; align-items: center; gap: 12px; }
.filters-header .filters-left .filters-label { font-size: 16px; color: #333; }
.filters-header .filters-left .filters-reset { background: #e0ecf8; color: #0046B3; border: none; border-radius: 4px; padding: 6px 16px; cursor: pointer; font-size: 13px; transition: background 0.2s; }
.filters-header .filters-left .filters-reset:hover { background: #d0dff0; }
.filters-header .filters-right { display: flex; align-items: center; gap: 4px; cursor: pointer; font-size: 14px; color: #0046B3; user-select: none; transition: color 0.2s; }
.filters-header .filters-right .toggle-arrow { font-size: 10px; transition: transform 0.2s; }
.filters-header .filters-right .toggle-arrow.up { transform: rotate(180deg); }
.filters-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 24px; margin-top: 16px; transition: all 0.2s; }
.filters-grid.hidden { display: none; }

/* 单个筛选项 */
.filter-item { position: relative; }
.filter-item .filter-trigger { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px; height: 40px; padding: 0 12px; cursor: pointer; transition: border-color 0.2s; }
.filter-item .filter-trigger:hover { border-color: #0046B3; }
.filter-item .filter-trigger .filter-name { font-size: 13px; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.filter-item .filter-trigger .filter-values { font-size: 13px; color: #0046B3; margin: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; text-align: right; }
.filter-item .filter-trigger .arrow-icon { font-size: 10px; color: #999; transition: transform 0.2s; flex-shrink: 0; }
.filter-item .filter-trigger .arrow-icon.open { transform: rotate(180deg); }
.filter-item .filter-dropdown { display: none; position: absolute; top: 44px; left: 0; right: 0; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); z-index: 50; padding: 16px; min-width: 100%; }
.filter-item .filter-dropdown.open { display: block; }

/* 滑块筛选 */
.slider-inputs { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.slider-inputs input { width: 48%; height: 32px; border: 1px solid #e0e0e0; border-radius: 4px; text-align: center; font-size: 13px; color: #333; outline: none; }
.slider-inputs input:focus { border-color: #0046B3; }
.slider-track-wrap { position: relative; height: 36px; display: flex; align-items: center; cursor: pointer; margin: 0 8px; }
.slider-track { position: relative; width: 100%; height: 4px; background: #e0e0e0; border-radius: 2px; }
.slider-fill { position: absolute; height: 4px; background: #0046B3; border-radius: 2px; }
.slider-thumb { position: absolute; top: 50%; width: 16px; height: 16px; background: #0046B3; border: 2px solid #0046B3; border-radius: 50%; cursor: pointer; transform: translate(-50%, -50%); z-index: 2; transition: transform 0.1s; }
.slider-thumb:hover { transform: translate(-50%, -50%) scale(1.2); }

/* 复选框筛选 */
.checkbox-list { display: flex; flex-wrap: wrap; gap: 16px 32px; }
.checkbox-list label { display: flex; align-items: center; cursor: pointer; font-size: 14px; color: #333; }
.checkbox-list input[type="checkbox"] { display: none; }
.checkbox-list .check-box { width: 16px; height: 16px; border: 1px solid #ccc; border-radius: 2px; margin-right: 8px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; }
.checkbox-list input:checked + .check-box { background: #0046B3; border-color: #0046B3; }
.checkbox-list input:checked + .check-box::after { content: "✓"; color: #fff; font-size: 11px; line-height: 1; }

/* 表格 */
.table-wrapper { overflow-x: auto; margin-top: 16px; }
table { width: 100%; border-collapse: collapse; }
table thead th { background: #f8f8f8; padding: 14px 12px; text-align: left; font-size: 13px; font-weight: 600; color: #555; border-bottom: 2px solid #eee; white-space: nowrap; }
table tbody td { padding: 14px 12px; font-size: 13px; color: #333; border-bottom: 1px solid #f0f0f0; }
table tbody tr:hover td { background: #fafafa; }
table .model-cell { color: #0046B3; font-weight: 500; cursor: pointer; }
.no-data { text-align: center; padding: 60px 0; color: #bbb; font-size: 15px; }

/* ========== Footer ========== */
.footer { background: url(../img/footer_bg.png); background-size: cover; color: #fff; }
.footer .footer-top { max-width: 1400px; margin: 0 auto; display: flex; padding: 50px 40px; gap: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer .footer-left { flex: 2; }
.footer .footer-left .logo-wechat { display: flex; align-items: center; justify-content: space-between; padding-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 25px; }
.footer .footer-left .logo-wechat .logo-img { height: 35px; }
.footer .footer-left .logo-wechat .wechat-box { display: flex; align-items: center; gap: 10px; }
.footer .footer-left .logo-wechat .wechat-box span { font-size: 14px; color: #ccc; }
.footer .footer-left .logo-wechat .wechat-box img { width: 40px; }
.footer .footer-left .footer-nav { display: flex; gap: 40px; flex-wrap: wrap; }
.footer .footer-left .footer-nav .nav-col h4 { font-size: 15px; color: #fff; margin-bottom: 12px; }
.footer .footer-left .footer-nav .nav-col .line { width: 20px; height: 2px; background: rgba(255,255,255,0.3); margin-bottom: 12px; }
.footer .footer-left .footer-nav .nav-col a { display: block; color: #999; font-size: 13px; padding: 5px 0; transition: color 0.2s; }
.footer .footer-left .footer-nav .nav-col a:hover { color: #fff; }
.footer .footer-right { flex: 1; padding-left: 30px; border-left: 1px solid rgba(255,255,255,0.1); }
.footer .footer-right .contact-item { display: flex; align-items: flex-start; margin-bottom: 18px; }
.footer .footer-right .contact-item img { width: 24px; margin-right: 12px; margin-top: 2px; }
.footer .footer-right .contact-item .contact-label { font-size: 12px; color: #888; margin-bottom: 3px; }
.footer .footer-right .contact-item .contact-value { font-size: 14px; color: #ccc; }
.footer .footer-right .subscribe { margin-top: 30px; }
.footer .footer-right .subscribe p { font-size: 13px; color: #ccc; margin-bottom: 10px; }
.footer .footer-right .subscribe .email-box { display: flex; }
.footer .footer-right .subscribe .email-box input { flex: 1; background: #333; border: none; color: #fff; padding: 10px 15px; font-size: 14px; outline: none; }
.footer .footer-right .subscribe .email-box button { background: #0046B3; border: none; color: #fff; padding: 10px 20px; cursor: pointer; font-size: 14px; }
.footer .footer-right .subscribe .tips2 { margin-top: 12px; }
.footer .footer-right .subscribe .tips2 p { font-size: 12px; color: #777; margin-bottom: 2px; }
.footer .copyright { border-top: 1px solid rgba(255,255,255,0.05); padding: 20px 40px; text-align: center; font-size: 12px; color: #666; }

/* PDF按钮 */
.pdf-btn { display: inline-block; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px; padding: 4px 10px; cursor: pointer; transition: all 0.2s; line-height: 1; }
.pdf-btn:hover { border-color: #0046B3; background: #e0ecf8; }
.pdf-btn img { height: 16px; vertical-align: middle; }

/* ========== 响应式 ========== */
@media (max-width: 900px) { .filters-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .header { padding: 0 15px; }
    .header_left .nav { display: none; }
    .header_right .search input { width: 100px; }
    .container { flex-direction: column; padding: 15px; }
    .sidebar { width: 100%; }
    .content { padding: 15px; }
    .footer .footer-top { flex-direction: column; padding: 30px 15px; }
    .footer .footer-right { padding-left: 0; border-left: none; padding-top: 25px; border-top: 1px solid rgba(255,255,255,0.1); }
    .footer .footer-left .footer-nav { gap: 20px; }
    .footer .footer-left .footer-nav .nav-col { min-width: 40%; }
}
@media (max-width: 600px) { .filters-grid { grid-template-columns: 1fr; } }