/* 媒体中心页面样式 */

/* === BANNER 区域 === */
.banner {
    position: relative;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 2;
}

.banner-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--text-white);
}

.banner-title {
    font-size: 28px;
    font-weight: 400;
    line-height: 36px;
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-align: center;
}

.banner-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.banner-desc {
    font-size: 20px;
    font-weight: 400;
    line-height: 34px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.banner-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    font-size: 14px;
}

.banner-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-normal);
}

.banner-breadcrumb a:hover {
    color: var(--text-white);
}

.separator {
    color: rgba(255, 255, 255, 0.6);
}

.current {
    color: var(--text-white);
    font-weight: 500;
}

.banner-btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--secondary-green);
    color: var(--text-white);
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition-normal);
    text-decoration: none;
}

.banner-btn:hover {
    background: #219a52;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* === 新闻内容区域 === */
.news-content {
    padding: var(--section-padding);
    background: var(--bg-gray);
    min-height: 800px;
}

.content-layout {
    max-width: 1200px;
    margin: 0 auto;
}

.news-main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* === 主要新闻 === */
.featured-news-slider {
    position: relative;
    margin-bottom: 40px;
}

.featured-news-slider .featured-news {
    background: var(--bg-white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    display: none;
    grid-template-columns: 1fr 1fr;
    color: inherit;
    text-decoration: none;
}

.featured-news-slider .featured-news.active {
    display: grid;
}

.featured-news-slider .news-dots {
    position: absolute;
    left: 75%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

.news-image {
    width: 100%;
    height: 100%;
    min-height: 320px;
    overflow: hidden;
}

.featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    border-radius: 0;
}

.featured-news:hover .featured-img {
    transform: scale(1.05);
}

.news-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #F9F9F9;
}

.news-date {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 500;
}

.news-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 16px;
}

.news-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
}

.news-category {
    font-size: 14px;
    color: var(--primary-blue);
    background: rgba(52, 152, 219, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.news-views {
    font-size: 14px;
    color: var(--text-secondary);
}

.news-excerpt {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.news-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition-normal);
}

.dot.active,
.dot:hover {
    background: var(--primary-blue);
    opacity: 1;
}

.featured-news.fade-in-right,
.featured-news.fade-in-left {
    animation-duration: 0.45s;
    animation-fill-mode: both;
    animation-timing-function: ease;
}

.featured-news.fade-in-right {
    animation-name: fadeInRightNews;
}

.featured-news.fade-in-left {
    animation-name: fadeInLeftNews;
}

@keyframes fadeInRightNews {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInLeftNews {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* === 新闻列表 === */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-item {
    background: var(--bg-white);
    border-radius: 0;
    padding: 0;
    box-shadow: var(--shadow-small);
    overflow: hidden;
    transition: var(--transition-normal);
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 180px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.news-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.item-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    border-radius: 0;
}

.news-item:hover .item-img {
    transform: scale(1.05);
}

.item-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.item-header {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.item-date {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.item-category {
    font-size: 12px;
    color: var(--primary-blue);
    background: rgba(52, 152, 219, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.item-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 12px;
}

.item-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-link {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: var(--primary-blue);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition-normal);
    text-decoration: none;
}

.item-link:hover {
    background: var(--primary-blue-dark);
    transform: translateX(4px);
}

/* === 响应式设计 === */
@media (max-width: 1024px) {
    .featured-news {
        grid-template-columns: 1fr;
    }
    
    .news-image {
        height: 250px;
    }
    
    .news-info {
        padding: 30px;
    }
    
    .news-title {
        font-size: 24px;
    }
    
    .news-item {
        grid-template-columns: 1fr;
    }
    
    .item-image {
        width: 100%;
        height: 200px;
    }
    
    .item-content {
        padding: 20px;
    }
    
    .item-link {
        position: static;
        align-self: flex-end;
        margin-top: 12px;
    }
}

@media (max-width: 768px) {
    .banner {
        height: 300px;
    }
    
    .banner-title {
        font-size: 36px;
    }
    
    .banner-subtitle {
        font-size: 16px;
        letter-spacing: 2px;
    }
    
    .news-info {
        padding: 20px;
    }
    
    .news-title {
        font-size: 20px;
    }
    
    .news-excerpt {
        font-size: 14px;
    }
    
    .item-content {
        padding: 16px;
    }
    
    .item-title {
        font-size: 16px;
    }
    
    .item-excerpt {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .banner-breadcrumb {
        flex-direction: column;
        gap: 4px;
    }
    
    .banner-breadcrumb .separator {
        display: none;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .item-header {
        flex-direction: column;
        gap: 8px;
    }
}
