/* ===== Banner轮播 ===== */
.banner-section {
    position: relative;
    margin-bottom: 0;
}

.banner-wrapper {
    position: relative;
    width: 950px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px 0 0 8px;
}

.banner-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.banner-slide {
    min-width: 100%;
    position: relative;
    cursor: pointer;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-slide .banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: #fff;
}

.banner-slide .banner-overlay h2 {
    font-size: 24px;
    font-weight: bold;
}

.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10;
}

.banner-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}

.banner-arrow.prev {
    left: 15px;
}

.banner-arrow.next {
    right: 15px;
}

.banner-dots {
    position: absolute;
    bottom: 15px;
    right: 40px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.banner-dots .dot.active {
    background: #00a0e9;
}

/* ===== 行业资讯（右侧浮动面板） ===== */
.news-sidebar {
    position: relative;
    width: calc(100% - 950px - 20px);
    min-width: 300px;
    background: #fff;
    border-radius: 0 8px 8px 0;
    padding: 20px;
    z-index: 5;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.news-sidebar .section-header {
    margin-bottom: 14px;
    flex-shrink: 0;
}

.news-sidebar .section-title {
    font-size: 16px;
}

.news-sidebar .section-title::before {
    height: 16px;
}

.news-list-sidebar {
    flex: 1;
    overflow: hidden;
}

.news-list-sidebar .news-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.3s;
}

.news-list-sidebar .news-item:hover {
    background: #f8f9fa;
}

.news-list-sidebar .news-item:last-child {
    border-bottom: none;
}

.news-list-sidebar .news-item img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.news-list-sidebar .news-item .news-info {
    flex: 1;
    min-width: 0;
}

.news-list-sidebar .news-item .news-title {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
}

.news-list-sidebar .news-item .news-title:hover {
    color: #00a0e9;
}

.news-list-sidebar .news-item .news-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    justify-content: space-between;
}

/* ===== 今日铝价 ===== */
.price-section {
    background: #fff;
    padding: 30px 0;
    margin-top: 20px;
}

.price-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.price-tags .price-tag {
    padding: 3px 10px;
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    border-radius: 3px;
}

.price-cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.price-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 16px;
    transition: all 0.3s;
}

.price-card:hover {
    border-color: #00a0e9;
    box-shadow: 0 2px 8px rgba(0, 160, 233, 0.1);
}

.price-card .price-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.price-card .price-name {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.price-card .price-trend {
    width: 24px;
    height: 24px;
    display: inline-block;
}

.price-card .price-trend img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.price-card .price-trend.up {
    color: #f56c6c;
}

.price-card .price-trend.down {
    color: #67c23a;
}

.price-card .price-value {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}

.price-card .price-value .amount {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}

.price-card .price-value .unit {
    font-size: 12px;
    color: #999;
}

.price-card .price-value .change {
    font-size: 16px;
    font-weight: bold;
}

.price-card .price-value .change.up {
    color: #f56c6c;
}

.price-card .price-value .change.down {
    color: #67c23a;
}

.price-card .price-range {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.price-card .price-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.price-disclaimer {
    font-size: 12px;
    color: #999;
    margin-top: 12px;
}

/* ===== 企业动态 ===== */
.company-news-section {
    padding: 30px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.news-grid.collapsed .news-card.hidden-card {
    display: none;
}

.news-grid.collapsed .news-card.fade-card {
    position: relative;
    overflow: hidden;
    pointer-events: none;
}

@media (min-width: 993px) {
    .news-grid.collapsed .news-card.hidden-card,
    .news-grid.collapsed .news-card.fade-card {
        display: block;
        opacity: 1;
        filter: none;
        pointer-events: auto;
    }
}

.news-toggle-btn {
    display: none;
    margin: 20px auto 0;
    padding: 8px 32px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.news-toggle-btn:hover {
    border-color: #00a0e9;
    color: #00a0e9;
}

.news-toggle-btn .arrow-icon {
    display: inline-block;
    margin-left: 6px;
    transition: transform 0.3s;
}

.news-toggle-btn.expanded .arrow-icon {
    transform: rotate(180deg);
}

.news-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
    cursor: pointer;
    display: block;
}

.news-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.news-card .news-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.news-card .news-body {
    padding: 12px;
}

.news-card .news-title {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.news-card .news-title:hover {
    color: #00a0e9;
}

.news-card .news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

/* ===== 广告Swiper轮播 ===== */
.ad-banner {
    background: #fff;
    padding: 30px 0;
    margin: 20px 0;
}

.ad-swiper {
    position: relative;
    padding-bottom: 30px;
}

.ad-swiper-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.ad-swiper-track {
    display: flex;
    transition: transform 0.5s ease;
}

.ad-slide {
    position: relative;
    cursor: pointer;
}

.ad-slide-inner {
    position: relative;
    background: #f8f9fa;
    border: 1px dashed #ddd;
    border-radius: 6px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
}

.ad-slide-inner .ad-text {
    font-size: 48px;
    color: #ccc;
    font-weight: bold;
    letter-spacing: 4px;
}

.ad-slide-inner .ad-label {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 11px;
    color: #bbb;
    background: #f0f0f0;
    padding: 1px 6px;
    border-radius: 2px;
}

.ad-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.ad-arrow:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ad-arrow.ad-prev {
    left: 10px;
}

.ad-arrow.ad-next {
    right: 10px;
}

.ad-swiper .swiper-pagination {
    bottom: 0;
}

.ad-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ddd;
    opacity: 1;
    margin: 0 4px;
}

.ad-swiper .swiper-pagination-bullet-active {
    background: #00a0e9;
}

/* ===== 产品推荐 ===== */
.product-section {
    padding: 30px 0;
}

.product-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 16px;
}

.product-tab {
    padding: 10px 28px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    border: 1px solid #eee;
    background: #fff;
    transition: all 0.3s;
}

.product-tab:first-child {
    border-radius: 4px 0 0 4px;
}

.product-tab:last-child {
    border-radius: 0 4px 4px 0;
}

.product-tab:not(:first-child) {
    border-left: none;
}

.product-tab:hover {
    color: #00a0e9;
}

.product-tab.active {
    background: #00a0e9;
    color: #fff;
    border-color: #00a0e9;
}

.product-tab .arrow {
    display: block;
    text-align: center;
    font-size: 12px;
    margin-top: 2px;
}

.product-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.product-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    width: 100%;
}

.product-filter {
    padding: 6px 18px;
    font-size: 13px;
    color: #666;
    background: #f5f5f5;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.product-filter:hover,
.product-filter.active {
    color: #00a0e9;
    border-color: #00a0e9;
    background: #e8f4fd;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.product-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
    cursor: pointer;
    display: block;
}

.product-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-card .product-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f5f5f5;
}

.product-card .product-body {
    padding: 12px;
}

.product-card .product-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
    height: 42px;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.product-card .product-tag {
    margin-bottom: 10px;
}

.product-card .product-company {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.product-card .product-company img {
    width: 100px;
    height: 50px;
    object-fit: contain;
}

.product-card .product-company span {
    font-size: 12px;
    color: #999;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== 响应式 ===== */
@media (max-width: 1200px) {
    .banner-wrapper {
        width: 70%;
    }

    .news-sidebar {
        width: calc(30% - 20px);
    }

    .price-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .news-grid,
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .banner-section .container {
        flex-direction: column;
        margin-top: 10px;
    }

    .banner-wrapper {
        width: 100%;
        border-radius: 8px;
    }

    .news-sidebar {
        position: static;
        width: 100%;
        min-width: auto;
        border-radius: 8px;
        margin-top: 0;
    }

    .banner-slide img {
        height: 240px;
    }

    .banner-arrow {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .price-section {
        padding: 20px 0;
        margin-top: 10px;
    }

    .price-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .price-card .price-value .amount {
        font-size: 22px;
    }

    .company-news-section {
        padding: 20px 0;
    }

    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .news-toggle-btn {
        display: block;
    }

    .news-grid.collapsed .news-card.fade-card .news-img {
        filter: blur(1px);
        opacity: 0.6;
    }

    .news-grid.collapsed .news-card.fade-card .news-body {
        height: 36px;
        overflow: hidden;
        opacity: 0.5;
        filter: blur(1px);
    }

    .news-grid.collapsed .news-card.fade-card::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 40px;
        background: linear-gradient(transparent, rgba(255, 255, 255, 0.9));
        z-index: 2;
    }

    .ad-banner {
        padding: 20px 0;
        margin: 10px 0;
    }

    .ad-slide {
        min-width: 50%;
    }

    .ad-slide-inner {
        height: 90px;
    }

    .ad-slide-inner .ad-text {
        font-size: 28px;
    }

    .ad-arrow {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .product-section {
        padding: 20px 0;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-tab {
        padding: 8px 16px;
        font-size: 13px;
    }

    .product-filter {
        padding: 6px 14px;
        font-size: 12px;
    }

    .product-filter-group {
        gap: 6px;
    }

    .section-title {
        font-size: 18px;
    }

    .section-title .subtitle {
        display: none;
    }

    .section-header {
        margin-bottom: 14px;
        padding-bottom: 12px;
    }
}

@media (max-width: 576px) {
    .banner-section .container {
        margin-top: 8px;
        gap: 0;
    }

    .banner-wrapper {
        border-radius: 6px;
    }

    .banner-slide img {
        height: 180px;
    }

    .banner-arrow {
        display: none;
    }

    .banner-dots {
        bottom: 10px;
        right: 50%;
        transform: translateX(50%);
    }

    .news-sidebar {
        padding: 14px;
        border-radius: 0 0 6px 6px;
    }

    .news-list-sidebar .news-item img {
        width: 80px;
        height: 56px;
    }

    .news-list-sidebar .news-item .news-title {
        font-size: 12px;
        height: 36px;
    }

    .price-section {
        padding: 16px 0;
    }

    .price-tags {
        gap: 6px;
    }

    .price-tags .price-tag {
        padding: 2px 8px;
        font-size: 11px;
    }

    .price-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .price-card {
        padding: 10px;
    }

    .price-card .price-name {
        font-size: 12px;
    }

    .price-card .price-value .amount {
        font-size: 18px;
    }

    .price-card .price-value .unit {
        font-size: 11px;
    }

    .price-card .price-value .change {
        font-size: 13px;
    }

    .price-card .price-range {
        font-size: 11px;
    }

    .price-card .price-footer {
        font-size: 11px;
        margin-top: 4px;
        padding-top: 4px;
    }

    .company-news-section {
        padding: 16px 0;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .news-toggle-btn {
        display: block;
    }

    .news-card .news-img {
        height: 100px;
    }

    .news-card .news-body {
        padding: 8px;
    }

    .news-card .news-title {
        font-size: 12px;
        height: 36px;
        margin-bottom: 6px;
    }

    .news-card .news-meta {
        font-size: 11px;
    }

    .ad-banner {
        padding: 16px 0;
        margin: 8px 0;
    }

    .ad-slide {
        min-width: 50%;
    }

    .ad-slide-inner {
        height: 80px;
    }

    .ad-slide-inner .ad-text {
        font-size: 24px;
    }

    .ad-arrow {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .product-section {
        padding: 16px 0;
    }

    .product-tabs {
        gap: 0;
        margin-bottom: 12px;
    }

    .product-tab {
        padding: 8px 12px;
        font-size: 12px;
        flex: 1;
        text-align: center;
    }

    .product-filters {
        gap: 8px;
        margin-bottom: 14px;
        padding: 0 10px;
    }

    .product-filter-group {
        gap: 8px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .product-filter-group::-webkit-scrollbar {
        display: none;
    }

    .product-filter {
        padding: 6px 12px;
        font-size: 12px;
        flex-shrink: 0;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product-card .product-img {
        height: 120px;
    }

    .product-card .product-body {
        padding: 8px;
    }

    .product-card .product-title {
        font-size: 13px;
        margin-bottom: 4px;
    }

    .product-card .product-company span {
        font-size: 11px;
    }

    .section-title {
        font-size: 16px;
    }

    .section-more {
        font-size: 12px;
    }

    .section-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
}
