/* 背景图片区域样式 */
.hero-banner {
    width: 100%;
    height: 350px;
    background-image: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/product/background.webp') center/cover;
    opacity: 0.3;
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.8) 0%, rgba(41, 128, 185, 0.8) 100%);
}

.banner-titles {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.banner-titles h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    letter-spacing: 2px;
}

.banner-titles h2 {
    font-size: 1.8rem;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-banner {
        height: 300px;
    }
    
    .banner-titles h1 {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    .banner-titles h2 {
        font-size: 1.4rem;
    }
}

/* 导航跳转栏样式 */
.subnav-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.subnav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.subnav-item {
    padding: 14px 32px;
    color: #4a5568;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.subnav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.subnav-item:hover::before {
    left: 100%;
}

.subnav-item:hover {
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.subnav-item.active {
    color: white;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .subnav-container {
        gap: 20px;
    }
    
    .subnav-item {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* 主内容区域 */
.news-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 60px;
}

.news-item {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 30px 0;
    transition: all 0.3s ease;
    position: relative;
}

.news-item:hover {
    background-color: #f8f9fa;
    transform: translateX(8px);
}

.news-item:last-child {
    border-bottom: none;
}

.news-content {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 30px;
    align-items: center;
}

.news-text {
    flex: 1;
}

.news-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 12px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-item:hover .news-content h3 {
    color: #3498db;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #6c757d;
}

.news-date {
    color: #3498db;
    font-weight: 500;
}

.news-tags {
    display: flex;
    gap: 8px;
}

.tag {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-content p {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-image {
    width: 200px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 12px;
    transition: all 0.3s ease;
}

.read-more::after {
    content: '→';
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #2980b9;
}

.read-more:hover::after {
    transform: translateX(3px);
}

/* 分页控件 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
}

.pagination a {
    padding: 10px 16px;
    color: #4a5568;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.pagination a:hover:not(.active) {
    background-color: #f7fafc;
    color: #3498db;
    border-color: #3498db;
}

.pagination a.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination a.disabled {
    color: #cbd5e0;
    cursor: not-allowed;
    pointer-events: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-container {
        margin: 40px auto;
        padding: 0 15px;
    }
    
    .news-item {
        padding: 20px 0;
    }
    
    .news-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-content h3 {
        font-size: 1.3rem;
    }
    
    .news-image {
        width: 100%;
        height: 160px;
        order: -1;
    }
    
    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .pagination {
        gap: 6px;
    }
    
    .pagination a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .news-content h3 {
        font-size: 1.2rem;
    }
    
    .news-image {
        height: 140px;
    }
    
    .news-meta {
        font-size: 0.85rem;
    }
    
    .news-content p {
        font-size: 0.9rem;
    }
}
