﻿
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 15px;
}

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

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

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

    .breadcrumbs .current {
        color: #d90000;
        font-weight: 500;
    }

.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-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;
}


.hot-recommend-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: 15px;
}

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

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

.recommend-item {
    font-size: 16px;
    color: #333;
    padding: 10px 0;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .recommend-item::before {
        content: "♦";
        color: #d90000;
        margin-right: 8px;
    }

.menu-wrap {
    display: flex;
}

    .menu-wrap .brand-list-container {
        width: 160px;
        background: #f7f7f7;
        border: 1px solid #eee;
        border-radius: 4px;
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        height:700px;
        overflow:auto;
    }

    .menu-wrap .active-brand {
        background-color: #fff0f0;
        color: #d90000 !important;
        font-weight: bold;
        padding: 12px 15px;
        border-bottom: 1px solid #eee;
    }
        .menu-wrap .active-brand a {
            color: #d90000 !important;
        }

        .menu-wrap .brand-item {
            padding: 12px 15px;
            font-size: 16px;
            color: #333;
            /* border-bottom: 1px solid #eee; */
            cursor: pointer;
        }

        .menu-wrap .brand-item:hover {
            background-color: #fff;
        }

.menu-wrap-comtent {
    padding: 20px;
    flex: 1;
}

    .menu-wrap-comtent .price-table-wrap {
        width: 100%;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 4px;
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .menu-wrap-comtent .table-title {
        font-size: 18px;
        font-weight: bold;
        color: #d90000;
        padding: 10px 15px;
    }

    .menu-wrap-comtent .gold-price-table {
        width: 100%;
        border-collapse: collapse;
    }

        .menu-wrap-comtent .gold-price-table th,
        .menu-wrap-comtent .gold-price-table td {
            padding: 12px;
            text-align: center;
            font-size: 16px;
            border: 1px solid #eee;
        }

        .menu-wrap-comtent .gold-price-table th {
            background-color: #d90000;
            color: #fff;
            font-weight: bold;
        }

        .menu-wrap-comtent .gold-price-table td {
            color: #333;
        }

    .menu-wrap-comtent .chart-container {
        width: 100%;
        background: #fff;
        border: 1px solid #eee;
        border-radius: 4px;
        padding: 15px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        margin-top: 20px;
    }

    .menu-wrap-comtent .chart-title {
        font-size: 18px;
        font-weight: bold;
        color: #d90000;
        margin-bottom: 10px;
    }

    .menu-wrap-comtent .time-tabs {
        display: flex;
        margin-bottom: 15px;
    }

    .menu-wrap-comtent .time-tab {
        padding: 8px 15px;
        font-size: 16px;
        border: 1px solid #eee;
        cursor: pointer;
    }

        .menu-wrap-comtent .time-tab.active {
            background-color: #d90000;
            color: #fff;
            border-color: #d90000;
        }

    .menu-wrap-comtent .chart-wrapper {
        width: 636px;
        height: 300px;
        background: #f9f9f9;
        overflow: hidden;
    }

        .menu-wrap-comtent .chart-wrapper #chart-image {
            display: block;
            width: 636px;
            height: 300px;
        }


.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;
    }


.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 a {
        font-size: 16px;
        color: #333;
        text-decoration: none;
        white-space: nowrap;
    }

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

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

.disclaimer-bar {
    margin-top:15px;
    width: 100%;
    max-width: 800px;
    padding: 10px 15px;
    background-color: #e2e2e2;
    border: 1px solid #eee;
    border-radius: 4px;
    font-size: 14px;
    color: #666;
}

.disclaimer-bar .highlight {
    color: #d90000;
    font-weight: 500;
}

.disclaimer-bar a {
    color: #0066cc;
    text-decoration: none;
}

.disclaimer-bar a:hover {
    text-decoration: underline;
}

/* 当屏幕宽度小于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;
        padding: 0;
        box-sizing: border-box;
        margin: 0px 0 0 0;
        width: 100%;
    }

    .breadcrumbs {
        display: none;
    }

    .menu-wrap{
        display: block;
    }

    .menu-wrap .brand-list-container{
        width: 100%;
        display: flex;
        height: auto;
    }

    .menu-wrap-comtent .chart-wrapper {
        width: 100%;
    }

    .menu-wrap-comtent .chart-wrapper #chart-image{
        width: 100%;
    }

    .menu-wrap .brand-item {
        padding: 8px 10px;
        box-sizing: border-box;
    }

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

    .menu-wrap-comtent {
        padding: 10px 0px;
        box-sizing: border-box;
    }
}