﻿
body {
    background-color: #fff;
}
/* 主内容区与侧边栏布局 */
.main-content {
    display: flex;
}

.module-table {
    flex: 1;
}

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


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

    .search-wrap .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-wrap .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-wrap .search-btn:hover {
            background-color: #c01010;
        }

.breadcrumbs {
    font-size: 14px;
    color: #666;
    padding: 10px 15px;
}

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

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

    .breadcrumbs span {
/*        color: #d90000;*/
        font-weight: 500;
    }

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



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

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

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

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

        .search-container .search-item::before {
            content: "●";
            color: #d90000;
            margin-right: 8px;
        }

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

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

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

.popular-item {
    padding: 10px 15px;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    /* 前三项渐变背景色 */
    .popular-item:nth-child(1) {
        background-color: #ffe6e6;
    }

    .popular-item:nth-child(2) {
        background-color: #fff3e6;
    }

    .popular-item:nth-child(3) {
        background-color: #e6ffe6;
    }

.chart-container {
    width: 100%;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
}

    .chart-container .chart-title {
        font-size: 18px;
        font-weight: bold;
        color: #d90000;
        margin-bottom: 10px;
        margin-top:40px;
    }

    .chart-container .chart-img {
        width: 90%;
        border-radius: 4px;
    }




.real-time-price-container {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.container-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    font-size: 14px;
}

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

.source-text {
    color: #666;
    font-size: 12px;
}

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

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

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

    .price-table .drop {
        color: #d90000;
    }








.declaration-bar {
    width: 100%;
    background-color: #f9f9f9;
    /* border: 1px solid #eee; */
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

    .declaration-bar strong {
        color: #d90000;
        font-weight: 600;
    }

.brand-price-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);
    margin-top: 15px;
}

.section-header {
    background-color: #d90000;
    color: #fff;
    padding: 10px 15px;
    font-size: 18px;
    font-weight: bold;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.module-news .section-title {
    font-size: 18px;
    font-weight: bold;
}

.module-news .view-more {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
}

.brand-list {
    padding: 15px;
    font-size: 16px;
    color: #333;
    line-height: 2;
}

    .brand-list a{
        display:inline-block;
        width:100px;
    }



    .brand-item {
        margin-right: 12px;
        cursor: pointer;
    }

/* 表格区域 */

.gold-table-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

    .gold-table-container .table-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 15px;
        border-bottom: 1px solid #eee;
    }

    .gold-table-container .table-title {
        font-size: 18px;
        font-weight: bold;
        color: #e02020;
    }

    .gold-table-container .update-time {
        font-size: 16px;
        color: #999;
    }

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

    .gold-table-container th,
    .gold-table-container td {
        padding: 10px 15px;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .gold-table-container th {
        background-color: #f9f2f2;
        color: #666;
        font-weight: normal;
    }

    .gold-table-container tr:nth-child(even) {
        background-color: #fcfcfc;
    }

    .gold-table-container tr:hover {
        background-color: #fef5f5;
    }

    .gold-table-container .rise {
        color: #e02020;
    }

    .gold-table-container .fall {
        color: #28a745;
    }

    .gold-table-container .high {
        color: #e02020;
        display: block;
    }

    .gold-table-container .low {
        color: #28a745;
        display: block;
    }

.disclaimer-bar {
    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;
        width: 100%;
    }

    .chart-container {
        margin: 0 0 0 0;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .chart-container .chart-title {
        margin-top: 20px;
    }

    .breadcrumbs, .update-time {
        display: none;
    }

    .brand-list {
        font-size:14px;
    }

    .brand-item {
        margin-right: 0;
    }

    .module-news .view-more, .popular-item {
        font-size: 13px;
    }

    .gold-table-container th, .gold-table-container td {
        padding: 5px 0px;
        font-size: 13px;
    }

    .search-container .search-item{
        font-size: 14px;
        padding:5px 0;
    }
}