/* ===== 统一CSS样式 - 适用于首页、列表页、详情页 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", Arial, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
/* ===== Logo样式优化 ===== */
.logo {
    flex: 0 0 220px; /* 稍微增加宽度容纳LOGO图片 */
}

.logo img {
    transition: opacity 0.3s ease;
    max-width: 100%;
    height: auto;
}

.logo img:hover {
    opacity: 0.9;
}

/* 或者如果要用文字+图片组合： */
.logo-with-text {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}
/* ===== 顶部区域样式 ===== */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.logo {
    flex: 0 0 200px;
}

.logo h2 {
    color: #2c3e50;
    font-size: 24px;
}

.logo p {
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 5px;
}

.search-box {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search-box form {
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.search-box button {
    padding: 0 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.wechat-qr {
    flex: 0 0 120px;
    text-align: center;
}

.wechat-qr img {
    max-width: 80px;
    height: auto;
}

.wechat-qr p {
    font-size: 12px;
    margin-top: 5px;
    color: #666;
}

/* ===== 导航栏样式 ===== */
.main-nav {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.nav-list {
    display: flex;
    list-style: none;
    justify-content: center;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-list a i {
    margin: 0 6px -1px 0;
    font-size: 18px;
    transition: all 0.3s ease;
}

.nav-list a:hover, .nav-list a.active {
    color: #3498db;
}

.nav-list a:hover i, .nav-list a.active i {
    color: #3498db;
}

/* ===== 面包屑导航 ===== */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #7f8c8d;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 5px;
}

/* ===== 内容区域通用样式 ===== */
.content {
    padding: 30px 0;
    min-height: 600px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.section-title h2 {
    font-size: 28px;
    color: #2c3e50;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #3498db;
}

/* ===== 首页特有样式 ===== */
.banner {
    height: 400px;
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    margin: 20px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner-content h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.banner-content p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.category-card, .product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover, .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.category-img, .product-img {
    height: 200px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-size: 50px;
}

.category-info, .product-info {
    padding: 20px;
    text-align: center;
}

.category-info h3, .product-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.category-info p, .product-desc {
    color: #7f8c8d;
    margin-bottom: 15px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.product-img {
    height: 180px;
    font-size: 24px;
    position: relative;
}

.product-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e74c3c;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.product-specs {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    justify-content: center;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #7f8c8d;
}

.spec-item i {
    color: #3498db;
}

/* ===== 列表页特有样式 ===== */
.list-content {
    display: flex;
    gap: 30px;
}

.sidebar {
    flex: 0 0 250px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 25px;
    height: fit-content;
}

.filter-section {
    margin-bottom: 25px;
}

.filter-title {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.filter-options {
    list-style: none;
}

.filter-options li {
    margin-bottom: 10px;
}

.filter-options a {
    color: #7f8c8d;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    justify-content: space-between;
}

.filter-options a:hover, .filter-options a.active {
    color: #3498db;
}

.filter-count {
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.price-range {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.price-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filter-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.filter-btn:hover {
    background: #2980b9;
}

.products-area {
    flex: 1;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.results-count {
    color: #7f8c8d;
    font-size: 14px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-label {
    color: #7f8c8d;
    font-size: 14px;
}

.sort-select {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
}

.view-options {
    display: flex;
    gap: 10px;
}

.view-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    color: #7f8c8d;
    transition: all 0.3s;
}

.view-btn.active, .view-btn:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.list-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.list-product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.list-product-card:hover {
    transform: translateY(-5px);
}

.list-product-img {
    height: 200px;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.list-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-product-info {
    padding: 15px;
}

.list-product-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #2c3e50;
}

.list-product-info p {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 15px;
    height: 60px;
    overflow: hidden;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.feature-tag {
    background: #f1f8ff;
    color: #3498db;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
}

/* ===== 详情页特有样式 ===== */
.article-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    overflow: hidden;
    margin: 30px 0;
    padding: 0;
}

.article-header {
    padding: 40px 40px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.article-title {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 10px;
}

.meta-item {
    margin: 0 15px;
}

.article-body {
    padding: 30px 40px;
}

/* 产品亮点样式 */
.product-highlights {
    display: flex;
    flex-wrap: wrap;
    margin: 30px 0;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
}

.highlight-item {
    flex: 0 0 25%;
    text-align: center;
    padding: 15px;
}

.highlight-icon {
    font-size: 36px;
    color: #3498db;
    margin-bottom: 15px;
    display: block;
}

.highlight-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 16px;
}

.highlight-desc {
    font-size: 14px;
    color: #7f8c8d;
}

/* 应用领域样式 */
.applications {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 25px 0;
}

.application-card {
    flex: 0 0 calc(33.333% - 14px);
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.application-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.app-icon {
    font-size: 40px;
    color: #3498db;
    margin-bottom: 15px;
    display: block;
}

.app-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 18px;
}

.product-image {
    width: 100%;
    margin: 25px 0;
    text-align: center;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-size: 18px;
    border-radius: 8px;
}

.product-video {
    width: 100%;
    margin: 25px 0;
    text-align: center;
}

.video-placeholder {
    width: 100%;
    height: 400px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-size: 18px;
    border-radius: 8px;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.color-sample {
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s;
}

.color-sample:hover {
    transform: scale(1.1);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.specs-table th, .specs-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.specs-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    width: 200px;
}

.cta-section {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    padding: 40px;
    text-align: center;
    border-radius: 8px;
    margin: 40px 0;
}

.cta-title {
    font-size: 28px;
    margin-bottom: 15px;
}

.cta-desc {
    font-size: 18px;
    margin-bottom: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-options {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.contact-option {
    text-align: center;
    flex: 0 0 200px;
}

.contact-icon {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
}

.contact-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.contact-detail {
    margin-bottom: 15px;
    font-size: 16px;
}

.qr-code {
    width: 150px;
    height: 150px;
    background: white;
    margin: 0 auto 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-size: 14px;
    text-align: center;
    padding: 10px;
}

.phone-number {
    font-size: 22px;
    font-weight: bold;
    margin-top: 10px;
}

/* ===== 通用按钮样式 ===== */
.btn {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-outline {
    background: transparent;
    border: 1px solid #3498db;
    color: #3498db;
}

.btn:hover {
    opacity: 0.9;
}

.category-link {
    display: inline-block;
    padding: 8px 20px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s;
}

.category-link:hover {
    background: #2980b9;
}

.product-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* ===== 分页样式 ===== */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.pagination-list {
    display: flex;
    list-style: none;
    gap: 5px;
}

.pagination-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #7f8c8d;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination-item a:hover, .pagination-item a.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* ===== 页脚样式 ===== */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-section {
    flex: 0 0 30%;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #3498db;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3498db;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    margin-top: 20px;
    font-size: 14px;
    color: #95a5a6;
}

/* ===== 响应式调整 ===== */
@media (max-width: 992px) {
    .category-grid, .list-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .highlight-item {
        flex: 0 0 50%;
    }
    
    .application-card {
        flex: 0 0 calc(50% - 10px);
    }
    
    .color-grid {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .contact-options {
        gap: 20px;
    }
    
    .footer-section {
        flex: 0 0 48%;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
    }
    
    .logo, .search-box, .wechat-qr {
        margin-bottom: 15px;
    }
    
    .nav-list {
        flex-wrap: wrap;
    }
    
    .nav-list a {
        padding: 10px 15px;
    }
    
    .category-grid, .product-grid, .list-product-grid {
        grid-template-columns: 1fr;
    }
    
    .list-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .article-header, .article-body {
        padding: 20px;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .highlight-item {
        flex: 0 0 100%;
    }
    
    .application-card {
        flex: 0 0 100%;
    }
    
    .color-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .footer-section {
        flex: 0 0 100%;
    }
    
    .contact-options {
        flex-direction: column;
        gap: 30px;
    }
    
    .qr-code {
        flex-direction: column;
        text-align: center;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .banner-content h1 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
}
</style> 