/* ============================================================================
   CNFX 工业产品独立站 - 前台样式 (完整版)
   ============================================================================ */

/* ===== 重置与基础 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: #007bff; text-decoration: none; transition: color 0.2s; }
a:hover { color: #0056b3; text-decoration: none; }

ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    text-align: center;
}

.btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.btn:active { transform: translateY(0); }

.btn-primary { background: #007bff; }
.btn-primary:hover { background: #0056b3; }

.btn-secondary { 
    background: #6c757d; 
    color: #fff;
}
.btn-secondary:hover { background: #545b62; }

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-sm {
    padding: 6px 16px;
    font-size: 13px;
}

.btn-block { display: flex; width: 100%; }

/* ===== 头部 ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 20px;
}

.logo h1 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.main-nav {
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.main-nav a:hover { color: #007bff; }

.lang-switcher select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}

/* ===== Hero Banner ===== */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: #3498db;
    margin-bottom: 15px;
    font-weight: 500;
}

.hero-desc {
    font-size: 16px;
    color: #aaa;
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== 统计信息 ===== */
.stats {
    padding: 40px 0;
    background: #f8f9fa;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 14px;
}

/* ===== 章节通用 ===== */
.featured-products,
.industries,
.cta {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1a1a2e;
}

.section-header p {
    color: #666;
    font-size: 16px;
}

.section-header .view-all {
    display: inline-block;
    margin-top: 15px;
    font-size: 14px;
    color: #007bff;
}

/* ===== 产品网格 ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: #007bff;
    box-shadow: 0 10px 40px rgba(0,123,255,0.15);
    transform: translateY(-4px);
}

.product-image {
    display: block;
    background: #f8f9fa;
    aspect-ratio: 1;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 44px;
}

.product-info h3 a {
    color: #333;
}

.product-info h3 a:hover { color: #007bff; }

.sku {
    color: #999;
    font-size: 12px;
    font-family: monospace;
    margin-bottom: 10px;
}

.desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    flex: 1;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.price {
    color: #dc3545;
    font-weight: 700;
    font-size: 18px;
}

.brand {
    color: #666;
    font-size: 13px;
}

/* ===== 空状态 ===== */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-icon {
    width: 120px;
    height: 90px;
    margin: 0 auto 20px;
}

.empty-state .btn { margin-top: 15px; }

/* ===== 行业网格 ===== */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.industry-card {
    display: block;
    padding: 30px 25px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    color: inherit;
}

.industry-card:hover {
    border-color: #007bff;
    box-shadow: 0 10px 40px rgba(0,123,255,0.1);
    transform: translateY(-3px);
    text-decoration: none;
}

.industry-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}

.industry-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.industry-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.industry-card p {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

/* ===== CTA ===== */
.cta {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.cta p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.cta .btn {
    background: #fff;
    color: #007bff;
}

.cta .btn:hover {
    background: #f8f9fa;
}

/* ===== 页脚 ===== */
.site-footer {
    background: #1a1a2e;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
}

.footer-col p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.7;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul a {
    color: #aaa;
    font-size: 14px;
}

.footer-col ul a:hover {
    color: #3498db;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
    color: #aaa;
    font-size: 13px;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; }
    .main-nav { 
        display: none; 
        order: 3; 
        width: 100%; 
        flex-direction: column;
        padding: 20px 0;
        border-top: 1px solid #eee;
    }
    .main-nav.active { display: flex; }
    .mobile-menu-btn { display: block; }
    
    .hero { padding: 70px 0; }
    .hero h1 { font-size: 32px; }
    .hero-subtitle { font-size: 18px; }
    
    .stats-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .industry-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
    .industry-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .btn-lg { width: 100%; }
}

/* ===== 工具类 ===== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none !important; }

/* ===== 加载动画 ===== */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
    display: inline-block;
    width: 24px; height: 24px;
    border: 3px solid #eee;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ============================================================================
   产品列表页专用样式
   ============================================================================ */

/* 产品列表页容器 */
.product-list-page {
    padding: 30px 0 60px;
    min-height: 60vh;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #666;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
    color: #0056b3;
}

.breadcrumb span {
    color: #999;
}

/* 筛选面板 */
.filter-panel {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    position: sticky;
    top: 90px;  /* 考虑固定头部的高度 */
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.filter-panel h4 {
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 13px;
    color: #333;
}

.filter-group input[type="text"],
.filter-group input[type="number"],
.filter-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.price-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.price-inputs input {
    flex: 1;
    min-width: 0;
}

.price-inputs span {
    color: #999;
    font-size: 14px;
}

/* 产品列表头部 */
.product-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.product-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

.result-count {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* 产品网格布局 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

/* 产品卡片 */
.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: #007bff;
    box-shadow: 0 12px 40px rgba(0,123,255,0.15);
    transform: translateY(-4px);
}

.product-card .product-image {
    display: block;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.03);
}

.product-info {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.4;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-info h3 a {
    color: #333;
    text-decoration: none;
}

.product-info h3 a:hover {
    color: #007bff;
}

.product-info .sku {
    color: #999;
    font-size: 12px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    margin-bottom: 10px;
    background: #f8f9fa;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
}

.product-info .desc {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.product-meta .price {
    color: #dc3545;
    font-weight: 700;
    font-size: 18px;
}

.product-meta .brand {
    color: #666;
    font-size: 12px;
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 4px;
}

/* 空状态 */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px dashed #dee2e6;
}

.empty-icon {
    width: 120px;
    height: 90px;
    margin: 0 auto 20px;
    opacity: 0.6;
}

.empty-state p {
    color: #666;
    font-size: 15px;
    margin-bottom: 15px;
}

.empty-state .btn {
    margin-top: 5px;
}

/* 分页 */
.pagination {
    margin-top: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
    text-decoration: none;
}

.pagination a.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    font-weight: 600;
}

/* 排序下拉（可选） */
.sort-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.sort-bar label {
    font-size: 13px;
    color: #666;
}

.sort-bar select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    min-width: 150px;
}

/* ============================================================================
   响应式适配
   ============================================================================ */

@media (max-width: 992px) {
    .filter-panel {
        position: static;
        max-height: none;
        margin-bottom: 30px;
    }
    
    .product-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-header .result-count {
        order: -1;
    }
}

@media (max-width: 768px) {
    .product-list-page {
        padding: 20px 0 40px;
    }
    
    .breadcrumb {
        font-size: 13px;
        padding: 12px 0;
    }
    
    .filter-panel {
        padding: 15px;
    }
    
    .filter-group {
        margin-bottom: 15px;
    }
    
    .price-inputs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .price-inputs span {
        text-align: center;
        padding: 5px 0;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .product-info h3 {
        font-size: 14px;
        min-height: 38px;
    }
    
    .product-meta .price {
        font-size: 16px;
    }
    
    .pagination a {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-header h1 {
        font-size: 20px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-info .sku {
        font-size: 11px;
        padding: 2px 6px;
    }
    
    .pagination {
        gap: 4px;
    }
    
    .pagination a {
        min-width: 28px;
        height: 28px;
        padding: 0 8px;
        font-size: 12px;
    }
}

/* ============================================================================
   动画效果
   ============================================================================ */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card {
    animation: fadeIn 0.3s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }

/* 加载状态 */
.product-grid.loading .product-card {
    opacity: 0.5;
    pointer-events: none;
}

/* ============================================================================
   辅助工具类
   ============================================================================ */

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.tag-new {
    background: #d4edda;
    color: #155724;
}

.tag-hot {
    background: #fff3cd;
    color: #856404;
}

.tag-sale {
    background: #f8d7da;
    color: #721c24;
}

/* 库存状态 */
.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.stock-badge.in-stock {
    background: #d4edda;
    color: #155724;
}

.stock-badge.in-stock::before {
    content: "●";
    color: #28a745;
}

.stock-badge.low-stock {
    background: #fff3cd;
    color: #856404;
}

.stock-badge.out-of-stock {
    background: #f8f9fa;
    color: #6c757d;
    text-decoration: line-through;
}

/* 快速查看按钮 */
.quick-view-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    padding: 8px 15px;
    background: rgba(255,255,255,0.95);
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 12px;
    color: #333;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s;
    cursor: pointer;
}

.product-card:hover .quick-view-btn {
    opacity: 1;
    transform: translateY(0);
}

.quick-view-btn:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

/* ============================================================================
   产品详情页专用样式
   ============================================================================ */

.product-detail-page {
    padding: 30px 0 60px;
}

/* 面包屑 */
.product-detail-page .breadcrumb {
    margin-bottom: 25px;
}

/* 产品画廊 */
.product-gallery .main-image {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery .main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0 10px;
}

.thumbnail-list .thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #f8f9fa;
}

.thumbnail-list .thumbnail:hover,
.thumbnail-list .thumbnail.active {
    border-color: #007bff;
    transform: scale(1.05);
}

/* 产品信息 */
.product-name {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px;
    line-height: 1.3;
}

.sku {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.sku code {
    background: #f8f9fa;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 13px;
}

.sku .mpn {
    margin-left: 15px;
    color: #999;
}

.manufacturer {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.manufacturer a {
    color: #007bff;
    font-weight: 500;
}

.country-flag {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 8px;
    color: #666;
}

/* 价格区块 */
.price-block {
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 12px;
    border: 1px solid #eee;
}

.price-block .price {
    font-size: 32px;
    font-weight: 700;
    color: #dc3545;
}

.price-tiers {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

.price-tiers small {
    display: block;
    margin-bottom: 5px;
    color: #999;
}

.price-tiers span {
    display: inline-block;
    margin-right: 15px;
    background: #e9ecef;
    padding: 3px 10px;
    border-radius: 4px;
}

/* 库存状态 */
.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.stock-status.in_stock {
    background: #d4edda;
    color: #155724;
}

.stock-status.low_stock {
    background: #fff3cd;
    color: #856404;
}

.stock-status.out_of_stock {
    background: #f8d7da;
    color: #721c24;
}

.stock-status.made_to_order {
    background: #e2e3e5;
    color: #383d41;
}

/* 交货信息 */
.delivery-info {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 13px;
    color: #666;
}

.delivery-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 操作按钮 */
.product-actions {
    display: flex;
    gap: 12px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.product-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 参数表格 */
.key-specs {
    margin: 35px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
}

.key-specs h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
    color: #1a1a2e;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #eee;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 12px 15px;
    font-size: 14px;
}

.specs-table td:first-child {
    font-weight: 500;
    color: #666;
    width: 40%;
}

.specs-table td:last-child {
    color: #333;
}

.specs-table .unit {
    color: #999;
    font-size: 13px;
    margin-left: 5px;
}

/* 内容区块通用样式 */
.product-description,
.application-scenarios,
.technical-highlights,
.product-documents {
    margin: 40px 0;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.product-description h2,
.application-scenarios h2,
.technical-highlights h2,
.product-documents h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a2e;
}

.description-content {
    line-height: 1.8;
    color: #333;
}

.description-content img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 8px;
}

.description-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.description-content th,
.description-content td {
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    text-align: left;
}

.description-content th {
    background: #f8f9fa;
    font-weight: 600;
}

.application-scenarios p {
    line-height: 1.8;
    color: #555;
}

.technical-highlights ul {
    list-style: none;
    padding: 0;
}

.technical-highlights li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #555;
}

.technical-highlights li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* 文档列表 */
.document-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.2s;
    color: inherit;
    text-decoration: none;
}

.document-item:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.1);
    transform: translateY(-2px);
}

.doc-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.doc-icon.doc-dat { background: linear-gradient(135deg, #dc3545, #bd2130); }
.doc-icon.doc-cer { background: linear-gradient(135deg, #28a745, #1e7e34); }
.doc-icon.doc-cad { background: linear-gradient(135deg, #6f42c1, #5a32a3); }

.doc-info {
    flex: 1;
    min-width: 0;
}

.doc-title {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 3px;
}

.doc-meta {
    font-size: 12px;
    color: #999;
}

.doc-version {
    background: #e9ecef;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    color: #666;
}

/* 询价弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    line-height: 1;
}

.modal .close:hover {
    color: #333;
}

.modal h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #1a1a2e;
}

.modal input,
.modal textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.modal input:focus,
.modal textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.modal textarea {
    resize: vertical;
    min-height: 100px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .product-detail-page {
        padding: 20px 0 40px;
    }
    
    .product-name {
        font-size: 22px;
    }
    
    .price-block .price {
        font-size: 26px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .specs-table td {
        display: block;
        padding: 8px 15px;
    }
    
    .specs-table td:first-child {
        width: 100%;
        color: #333;
        font-weight: 600;
        padding-bottom: 4px;
    }
    
    .specs-table td:last-child {
        padding-top: 0;
    }
    
    .document-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .doc-info {
        width: 100%;
    }
    
    .modal-content {
        padding: 25px 20px;
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .product-gallery .main-image {
        aspect-ratio: 1;
    }
    
    .thumbnail-list .thumbnail {
        width: 55px;
        height: 55px;
    }
    
    .delivery-info {
        flex-direction: column;
        gap: 8px;
    }
}

/* 分类下拉筛选 */
.filter-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
}

.filter-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

/* 分类层级缩进 */
.filter-group option[level="2"] {
    padding-left: 20px;
}

.filter-group option[level="3"] {
    padding-left: 40px;
}

/* ============================================================================
   树形分类筛选样式
   ============================================================================ */

/* 树形分类筛选 */
.category-tree {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    padding: 8px 0;
}

.tree-item { margin: 2px 0; }

.tree-node {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    gap: 8px;
    transition: background 0.2s;
}

.tree-node:hover { background: #f8f9fa; }

.tree-toggle {
    width: 20px; height: 20px;
    padding: 0; background: none; border: none;
    border-radius: 4px; cursor: pointer;
    color: #666; display: flex; align-items: center; justify-content: center;
}

.tree-toggle:hover { background: #e9ecef; color: #007bff; }

.tree-toggle svg { transition: transform 0.2s; }
.tree-toggle[aria-expanded="false"] svg { transform: rotate(-90deg); }

.tree-leaf { width: 20px; height: 20px; }

.tree-link {
    flex: 1; color: #333; text-decoration: none;
    font-size: 14px; padding: 2px 4px; border-radius: 4px;
}

.tree-link:hover { color: #007bff; background: #e7f1ff; }
.tree-link.active { color: #fff; background: #007bff; font-weight: 500; }

.tree-count {
    font-size: 11px; color: #999;
    background: #f1f1f1; padding: 2px 6px; border-radius: 10px; margin-left: 8px;
}

.tree-children {
    margin-left: 20px;
    border-left: 1px dashed #eee;
    padding-left: 4px;
}

.tree-item.root-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 8px; padding-bottom: 8px;
}
.tree-item.root-item .tree-link { font-weight: 600; font-size: 15px; }