﻿

body {
    background-color: #fff;
}

/* 主内容区与侧边栏布局 */
.main-content {
    display: flex;
}

.module-table {
    flex: 1;
}

.module-news {
    width: 390px;
    padding-left: 20px;
}


.breadcrumbs {
    font-size: 14px;
    color: #666;
    padding: 10px 20px;
    /* background-color: #f5f5f5; */
}

    .breadcrumbs a {
        color: #666;
        text-decoration: none;
    }

        .breadcrumbs a:hover {
            color: #d90000;
        }

    .breadcrumbs span {
/*        margin: 0 5px;*/
        color: #999;
    }

.area-container {
    padding: 15px;
    /* background-color: #fff; */
    border-bottom: 1px solid #eee;
    border-radius: 4px;
    width: fit-content;
}

.area-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    
}

    .area-list .area-item {
        display: inline-block;
        padding: 8px 15px;
        background-color: #f5f5f5;
        border-radius: 4px;
        text-decoration: none;
        color: #333;
        cursor: pointer;
        position: relative;
    }
        .area-list .area-item a {
            text-decoration: none;
            text-align: left;
            color:#000;
        }
        .area-list .area-item:hover {
            background-color: #e02020;
            color: #fff;
        }

        .area-list .area-item .area-item-child {
            background-color: #fff;
            display: flex;
            position: absolute;
            top: 35px;
            
            z-index: 39;
            color: #000;
            padding: 10px 10px;
            border: 1px solid #eee;
            border-radius: 4px;
            padding: 15px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            display: none;
        }

        .area-list .area-item:hover > .area-item-child {
            display: block;
        }

        .area-list .area-item .area-item-child .area-grid-box {
            width: 150px;
            box-sizing: border-box;
            padding: 8px 0;
        }

            .area-list .area-item .area-item-child .area-grid-box:hover>a{
                color: #e02020;
            }

            .area-list .area-item .area-item-child .area-grid-box .area-item-child {
                display: none;
            }

            .area-list .area-item .area-item-child .area-grid-box:hover > .area-item-child {
                top: 0;
                left: 150px;
                display: block;
            }

.search-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    /* 可根据需求调整宽度 */
    margin-top: 10px;
}

.search-input {
    flex: 1;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e02020;
    border-right: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-size: 16px;
}

.search-btn {
    height: 36px;
    padding: 0 18px;
    background-color: #e02020;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    font-size: 16px;
    cursor: pointer;
}

    .search-btn:hover {
        background-color: #c01010;
    }

.brand-price-container {
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

    .brand-price-container .section-header {
        background-color: #d90000;
        color: #fff;
        padding: 10px 15px;
        font-size: 18px;
        font-weight: bold;
    }

.price-list {
    padding: 15px;
    list-style: none;
    margin: 0;
}

    .price-list li {
        padding: 8px 0;
        font-size: 16px;
        color: #333;
    }

        .price-list li::before {
            content: "◆";
            color: #d90000;
            margin-right: 8px;
        }

.related-articles {
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.article-header {
    background-color: #d90000;
    color: #fff;
    padding: 10px 15px;
    font-size: 18px;
    font-weight: bold;
}

.article-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .article-list li {
        padding: 10px 15px;
        border-bottom: 1px solid #eee;
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

        .article-list li:nth-child(1) {
            background-color: #fceaea;
        }

        .article-list li:nth-child(2) {
            background-color: #fdf6e6;
        }

        .article-list li:nth-child(3) {
            background-color: #eafae6;
        }

        .article-list li:last-child {
            border-bottom: none;
        }

.hot-articles {
    width: 100%;
    /*background: #fff;*/
    /*border: 1px solid #eee;*/
    border-radius: 4px;
    padding: 15px;
    /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);*/
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #d90000;
    margin-bottom: 15px;
}

.article-item {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

    .article-item:last-child {
        border-bottom: none;
    }

.article-img {
    width: 140px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.article-content {
    flex: 1;
}

.article-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    text-decoration: none;
    display: block;
}

    .article-title:hover {
        color: #d90000;
    }

.article-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
}

.article-meta {
    font-size: 14px;
    color: #999;
    display: flex;
    justify-content: space-between;
}

.brand-price-section {
    margin-top: 20px;
    width: 100%;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

    .brand-price-section .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        /* background-color: #d90000; */
        border-bottom: 1px solid #d90000;
        color: #d90000;
        padding: 10px 15px;
        font-size: 18px;
        font-weight: bold;
    }

.expand-btn {
    color: #d90000;
    text-decoration: none;
    font-size: 16px;
    font-weight: normal;
}

.price-grid {
    padding: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    /* 默认高度，超出部分隐藏 */
    max-height: 200px;
    overflow: hidden;
    /* 过渡动画，让展开/收起更平滑 */
    transition: max-height 0.5s ease;
}

    /* 展开状态样式 */
    .price-grid.expanded {
        max-height: none; /* 展开后高度自适应 */
    }

        .price-grid a:hover {
            color: #d90000;
        }

.brand-mobile-entrance {
    width: 800px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    color: #d90000;
}

.expand-btn {
    color: #d90000;
    text-decoration: none;
    font-size: 16px;
}

.price-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

    .price-grid a {
        font-size: 16px;
        color: #333;
        text-decoration: none;
        white-space: nowrap;
    }

        .price-grid a:hover {
            color: #d90000;
        }


.pagination-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 15px;
    font-size: 14px;
    color: #666;
}

.pagination-btn {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: #fff;
    cursor: pointer;
    text-decoration: none;
    color: #666;
}

    .pagination-btn:hover {
        border-color: #d90000;
        color: #d90000;
    }

.page-number {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    color: #000;
    text-decoration: none;
}

    .page-number.active {
        background-color: #d90000;
        color: #fff;
        border-color: #d90000;
    }

.page-ellipsis {
    padding: 5px 0;
}

.jump-select {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-left: 10px;
}

.pagination-info {
    margin-left: 20px;
}

/* 当屏幕宽度小于725px时 */
@media (max-width: 725px) {
    .main-content {
        display: flex;
        flex-direction: column;
        padding: 0 10px;
        box-sizing: border-box;
    }

    .module-table {
        order: 1;
    }

    .module-news {
        order: 2;
        width: 100%;
    }

    .breadcrumbs {
        display: none;
    }

    .wholesale-strategy-container {
        display: block;
    }

    .gold-price-table th, .gold-price-table td {
        font-size: 12px;
        padding: 10px 0;
        box-sizing: border-box;
    }

    .article-desc {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .article-item a {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .article-content {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .area-list .area-item{
        width:22%;
        text-align:center;
        padding:5px 0;
        box-sizing:border-box;
    }

    .area-list .area-item .area-item-child .area-grid-box{
        text-align:left;
    }

    .area-container .area-list .area-item:nth-child(4n+1) .area-item-child {
        left: 0;
    }

    .area-container .area-list .area-item:nth-child(4n+2) .area-item-child {
        left: -75px;
    }

    .area-container .area-list .area-item:nth-child(4n+3) .area-item-child {
        left: -155px;
    }

    .area-container .area-list .area-item:nth-child(4n+4) .area-item-child {
        left: -240px;
    }
}