﻿.container {
    max-width: 1200px;
    margin: 0px auto;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* 分类菜单样式 */
.category-menu {
    padding: 0;
    background-color: #f1f5f975;
    border-radius: 8px;
    padding: 20px;
}

.category-menu-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.category-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

    .category-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.category-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 4px;
}

    .category-title:hover {
        background-color: #e9ecef;
    }

/* 箭头样式 - 使用特殊字符 */
.arrow::after {
    font-size: 20px;
    color: #666;
}

.category-title.active .arrow::after {
}

.subcategory-list {
    padding-left: 20px;
    display: none;
    margin-top: 10px;
}

.subcategory-item {
    padding: 8px 10px;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 4px;
}

    .subcategory-item:hover {
        background-color: #e9ecef;
    }

    .subcategory-item.active {
        background-color: #e9ecef;
        color: #0066cc;
    }

/* 当前选择提示样式 */
.current-selection {
    /*     margin-bottom: 18px;*/
    padding: 16px 0px;
    font-size: 16px;
    /*        border-bottom: 1px solid #e0e0e0;*/
}

    .current-selection span {
        font-weight: bold;
        color: #333;
        font-size: 20px;
    }

/* 产品列表样式 */
.product-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
    position: relative;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

    .product-card a {
        text-decoration: none;
    }

.product-name:hover {
    color: #004098
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image-container {
    position: relative;
    width: 100%;
    /*  height: 220px;*/
    border-radius: 8px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-name {
    font-size: 16px;
    /*        font-weight: bold;*/
    margin: 8px;
    color: #222;
    position: relative;
    z-index: 1;
    text-align: center;
}

.product-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination-item {
    padding: 8px 14px;
    margin: 0 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

    .pagination-item:hover, .pagination-item.active {
        background-color: #0066cc;
        color: white;
    }

/* 响应式布局 */
@media (max-width: 992px) {
    .container {
        grid-template-columns: 1fr;
    }

    .product-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .product-list {
        grid-template-columns: 1fr;
    }
}





.article-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 8px;
    /*            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);*/
    overflow: hidden;
}

.article-header {
    padding: 40px;
    /*           border-bottom: 1px solid #eee;*/
    text-align: center;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
    line-height: 1.3;
}

.article-meta {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    color: #666;
    font-size: 0.9rem;
}

.article-author {
    font-weight: 500;
    color: #444;
    margin-right: 15px;
}

.article-date,
.article-category,
.article-views {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

    .article-date::before,
    .article-category::before,
    .article-views::before {
        content: "•";
        margin-right: 8px;
        color: #999;
    }

/* 文章内容 */
.article-content {
    padding: 00px;
    font-size: 1.1rem;
    line-height: 1.8;
}

    .article-content p {
        margin-bottom: 25px;
    }

/*    .article-content h2 {
        font-size: 1.8rem;
        font-weight: 600;
        color: #222;
        margin-top: 40px;
        margin-bottom: 20px;
        border-left: 4px solid #165DFF;
        padding-left: 12px;
    }*/

    .article-content h3 {
        font-size: 1.4rem;
        font-weight: 600;
        color: #333;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .article-content img {
        max-width: 100%;
        height: auto;
        border-radius: 6px;
        margin: 30px 0;
        display: block;
    }

    .article-content blockquote {
        background-color: #f8f9fa;
        border-left: 4px solid #ddd;
        padding: 20px;
        margin: 30px 0;
        font-style: italic;
        color: #555;
    }

    .article-content ul,
    .article-content ol {
        margin: 20px 0;
        padding-left: 25px;
    }

    .article-content ul {
        list-style-type: disc;
    }

    .article-content ol {
        list-style-type: decimal;
    }

    .article-content li {
        margin-bottom: 10px;
    }

/* 文章底部互动区 */
.article-footer {
    padding: 40px;
    border-top: 1px solid #eee;
}

.article-tags {
    margin-bottom: 30px;
}

.tag {
    display: inline-block;
    background-color: #f0f0f0;
    color: #666;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-right: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    transition: background-color 0.3s;
}

    .tag:hover {
        background-color: #e0e0e0;
    }

.article-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.prev-article,
.next-article {
    flex: 1;
    max-width: 48%;
}

    .prev-article a,
    .next-article a {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: #333;
        transition: color 0.3s;
    }

        .prev-article a:hover,
        .next-article a:hover {
            color: #165DFF;
        }

    .prev-article a {
        justify-content: flex-start;
    }

    .next-article a {
        justify-content: flex-end;
    }

.prev-icon,
.next-icon {
    font-size: 1.2rem;
}

.prev-text,
.next-text {
    margin: 0 10px;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-container {
        border-radius: 0;
    }

    .article-header,
    .article-content,
    .article-footer {
        padding: 25px;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.2rem;
    }

    .article-navigation {
        flex-direction: column;
    }

    .prev-article,
    .next-article {
        max-width: 100%;
        margin-bottom: 20px;
    }
}

.share-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0px;
}

.share-icon {
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: transform 0.3s;
}

.related-products {
    margin-bottom: 40px;
}

.related-title {
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.product-card {
    border: 1px solid #ddd;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    border-radius: 6px;
}

    .product-card a {
        text-decoration: none;
        color: #333
    }


    .product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

.related-image {
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .related-image {
    transform: scale(1.05);
}

.related-info {
    padding: 10px;
}

.related-name {
    font-size: 16px;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}