/* ===== 页面标题 ===== */
.page-title-section {
    background: #f5f7f7;
    padding: 30px 0 20px;
}

.page-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #00a0e9;
    border-radius: 2px;
}

/* ===== 今日铝价概览 ===== */
.price-overview-section {
    background: #fff;
    padding: 30px 0 20px;
}

.price-overview-section .price-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.price-overview-section .price-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 16px;
    transition: all 0.3s;
    cursor: pointer;
}

.price-overview-section .price-card:hover {
    border-color: #00a0e9;
    box-shadow: 0 2px 8px rgba(0, 160, 233, 0.1);
}

.price-overview-section .price-card .price-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.price-overview-section .price-card .price-name {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.price-overview-section .price-card .price-trend {
    width: 24px;
    height: 24px;
    display: inline-block;
}

.price-overview-section .price-card .price-trend img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.price-overview-section .price-card .price-trend.up {
    color: #f56c6c;
}

.price-overview-section .price-card .price-trend.down {
    color: #67c23a;
}

.price-overview-section .price-card .price-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}

.price-overview-section .price-card .price-value .amount {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

.price-overview-section .price-card .price-value .unit {
    font-size: 12px;
    color: #999;
}

.price-overview-section .price-card .price-value .change {
    font-size: 16px;
    font-weight: bold;
}

.price-overview-section .price-card .price-value .change.up {
    color: #f56c6c;
}

.price-overview-section .price-card .price-value .change.down {
    color: #67c23a;
}

.price-overview-section .price-card .price-range {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.price-overview-section .price-card .price-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.price-overview-section .price-card .price-footer .price-unit {
    flex-shrink: 0;
}

.price-overview-section .price-card .price-footer .price-date {
    flex-shrink: 0;
}

.price-overview-section .price-disclaimer {
    font-size: 12px;
    color: #999;
    margin-top: 12px;
}

/* ===== 铝价详情Tab与表格 ===== */
.price-detail-section {
    background: #fff;
    /*padding: 0 0 40px;*/
    width: 100%;
}

.price-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.price-tab {
    padding: 8px 20px;
    font-size: 14px;
    color: #666;
    background: #f5f5f5;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.price-tab:hover {
    color: #00a0e9;
    border-color: #00a0e9;
}

.price-tab.active {
    background: #00a0e9;
    color: #fff;
    border-color: #00a0e9;
}

.price-unit {
    /*margin-left: auto;*/
    font-size: 13px;
    color: #999;
}

.price-table-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    padding: 20px 0 16px;
}

.price-table-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    gap: 16px;
}

.price-table-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #00a0e9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.price-table-loading .loading-text {
    font-size: 14px;
    color: #999;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.price-table-wrapper.loaded .price-table-loading {
    display: none;
}

.price-tab-contents {
    position: relative;
}

.price-tab-contents .price-table-wrapper {
    display: none;
}

.price-tab-contents .price-table-wrapper.active {
    display: block;
}

.price-table-wrapper {
    overflow-x: auto;
}

.price-table-body {
    overflow: hidden;
}

.price-table-body.collapsed tbody tr:nth-child(n+7) {
    display: none;
}

.price-table-toggle {
    display: block;
    margin: 16px auto;
    padding: 8px 32px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.price-table-toggle:hover {
    border-color: #00a0e9;
    color: #00a0e9;
}

.price-table-toggle .toggle-arrow {
    display: inline-block;
    margin-left: 6px;
    transition: transform 0.3s;
}

.price-table-wrapper.expanded .price-table-toggle .toggle-arrow {
    transform: rotate(180deg);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
}

.price-table thead th {
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-align: center;
    border-bottom: 2px solid #eee;
    background: #fafafa;
}

.price-table tbody td {
    padding: 16px;
    font-size: 15px;
    color: #333;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.price-table tbody tr:hover {
    background: #f8f9fa;
}

.price-table .date-cell {
    font-size: 16px;
    font-weight: 500;
}

.price-table .date-cell.up {
    color: #f56c6c;
}

.price-table .date-cell.down {
    color: #67c23a;
}

.trend-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.trend-badge img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.trend-badge.up {
    background: #f56c6c;
}

.trend-badge.down {
    background: #67c23a;
}

.fade-row {
    opacity: 0.4;
}

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
    .price-overview-section .price-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .page-title-section {
        padding: 20px 0 14px;
    }

    .page-title {
        font-size: 22px;
    }

    .price-overview-section {
        padding: 20px 0 16px;
    }

    .price-overview-section .price-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .price-overview-section .price-card .price-value .amount {
        font-size: 22px;
    }

    .price-tabs {
        gap: 8px;
    }

    .price-tab {
        padding: 6px 14px;
        font-size: 13px;
    }

    .price-table-title {
        font-size: 16px;
        padding: 16px 0 12px;
    }

    .price-table thead th {
        padding: 10px 8px;
        font-size: 13px;
    }

    .price-table tbody td {
        padding: 12px 8px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 20px;
    }

    .price-overview-section .price-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .price-overview-section .price-card {
        padding: 10px;
    }

    .price-overview-section .price-card .price-name {
        font-size: 12px;
    }

    .price-overview-section .price-card .price-value .amount {
        font-size: 18px;
    }

    .price-overview-section .price-card .price-value .unit {
        font-size: 11px;
    }

    .price-overview-section .price-card .price-value .change {
        font-size: 13px;
    }

    .price-overview-section .price-card .price-range {
        font-size: 11px;
    }

    .price-overview-section .price-card .price-footer {
        font-size: 11px;
        margin-top: 4px;
        padding-top: 4px;
    }

    .price-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 12px;
    }

    .price-tab {
        flex-shrink: 0;
        padding: 6px 12px;
        font-size: 12px;
    }

    .price-unit {
        flex-shrink: 0;
    }

    .price-table-title {
        font-size: 15px;
    }

    .price-table thead th {
        padding: 8px 6px;
        font-size: 12px;
    }

    .price-table tbody td {
        padding: 10px 6px;
        font-size: 12px;
    }

    .trend-badge {
        padding: 4px 10px;
        font-size: 12px;
    }
}