/* 背景图片区域样式 */
.hero-banner {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 50%, #1abc9c 100%);
    background-size: 400% 400%;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/product/background.webp') center/cover;
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.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) 50%, rgba(26, 188, 156, 0.8) 100%);
}

.banner-titles {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.2s ease-out;
}

.banner-titles h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-weight: 800;
    letter-spacing: 3px;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.banner-titles h2 {
    font-size: 2rem;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
    letter-spacing: 1px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-banner {
        height: 350px;
    }
    
    .banner-titles h1 {
        font-size: 3rem;
        letter-spacing: 2px;
    }
    
    .banner-titles h2 {
        font-size: 1.6rem;
    }
}

/* 导航跳转栏样式 */
.subnav-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.subnav-section.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(40px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.subnav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 50px;
}

.subnav-item {
    padding: 16px 36px;
    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;
    border: 2px solid transparent;
}

.subnav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.subnav-item:hover::before {
    left: 100%;
}

.subnav-item:hover {
    color: #3498db;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.1) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.25);
    border-color: rgba(52, 152, 219, 0.2);
}

.subnav-item.active {
    color: white;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.4);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .subnav-container {
        gap: 25px;
    }
    
    .subnav-item {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

/* 主内容区域 */
.news-container {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 30px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 80px;
}

.news-item {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: slideInFromBottom 0.8s ease-out;
    cursor: pointer; /* 添加鼠标指针样式 */
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(41, 128, 185, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-item:hover::before {
    opacity: 1;
}

.news-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.2);
}

/* 添加点击效果 */
.news-item:active {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(52, 152, 219, 0.3);
    transition: all 0.1s ease;
}

/* 确保链接样式不影响整体点击 */
.news-item .read-more {
    pointer-events: none; /* 防止链接阻止卡片点击 */
}

.news-item .news-content {
    pointer-events: none; /* 防止内容阻止卡片点击 */
}

/* 恢复链接的点击功能 */
.news-item .read-more {
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.news-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: center;
}

.news-text {
    line-height: 1.8;
}

.news-content h3 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 15px;
    font-weight: 700;
    transition: color 0.3s ease;
    line-height: 1.3;
}

.news-item:hover .news-content h3 {
    color: #3498db;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.news-date {
    color: #718096;
    font-size: 14px;
    padding: 8px 16px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.news-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.tag:hover::before {
    left: 100%;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.news-content p {
    color: #4a5568;
    margin-bottom: 20px;
    line-height: 1.7;
}

.news-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    position: relative;
}

.news-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-image.loading::after {
    opacity: 1;
}

.news-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.4s ease;
}

.news-image img.loaded {
    transform: scale(1);
}

.news-item:hover .news-image {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.3);
}

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

.news-item:nth-child(1) { animation-delay: 0.1s; }
.news-item:nth-child(2) { animation-delay: 0.2s; }
.news-item:nth-child(3) { animation-delay: 0.3s; }
.news-item:nth-child(4) { animation-delay: 0.4s; }

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.1) 100%);
    border: 2px solid rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.read-more:hover::before {
    left: 100%;
}

.read-more:hover {
    color: white;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.read-more::after {
    content: '→';
    font-size: 18px;
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(5px);
}

.read-more:active {
    transform: translateY(0);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    color: #4a5568;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(52, 152, 219, 0.2);
    background: white;
    position: relative;
    overflow: hidden;
}

.pagination a:hover:not(.active) {
    color: #3498db;
    border-color: rgba(52, 152, 219, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.pagination a.active {
    color: white;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.pagination a.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .news-container {
        margin: 60px auto;
        padding: 0 20px;
    }
    
    .news-item {
        padding: 30px;
        margin-bottom: 20px;
    }
    
    .news-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .news-content h3 {
        font-size: 1.5rem;
    }
    
    .news-image img {
        height: 180px;
    }
    
    .news-meta {
        gap: 15px;
    }
    
    .pagination {
        gap: 8px;
    }
    
    .pagination a {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .news-content h3 {
        font-size: 1.3rem;
    }
    
    .news-image img {
        height: 150px;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .news-content p {
        font-size: 1rem;
    }
}

/* 鼠标悬停时的光效 */
.news-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
    pointer-events: none;
}

.news-item:hover::after {
    left: 100%;
}

/* 页面滚动进度条 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    z-index: 1000;
    transition: width 0.1s ease;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.4);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.6);
}

.back-to-top::before {
    content: '↑';
    font-size: 20px;
    font-weight: bold;
}

/* 加载状态 */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .scroll-progress {
        height: 2px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .news-item {
        background: #1a202c;
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .news-item:hover {
        background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    }
    
    .news-content h3 {
        color: #e2e8f0;
    }
    
    .news-content p {
        color: #a0aec0;
    }
    
    .news-date {
        background: rgba(52, 152, 219, 0.2);
        color: #e2e8f0;
    }
}

/* 打印样式 */
@media print {
    .hero-banner,
    .subnav-section,
    .pagination,
    .share-section,
    .back-to-top {
        display: none;
    }
    
    .news-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .news-content {
        grid-template-columns: 1fr;
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.tag {
    position: relative;
    overflow: hidden;
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.tag:hover::before {
    left: 100%;
}

.news-image {
    position: relative;
    overflow: hidden;
}

.news-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-image.loading::after {
    opacity: 1;
}

.news-image img {
    transition: all 0.4s ease;
}

.news-image img.loaded {
    transform: scale(1);
}

.read-more:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .news-container {
        margin: 60px auto;
        padding: 0 20px;
    }
    
    .news-item {
        padding: 30px;
        margin-bottom: 20px;
    }
    
    .news-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .news-content h3 {
        font-size: 1.5rem;
    }
    
    .news-image img {
        height: 180px;
    }
    
    .news-meta {
        gap: 15px;
    }
    
    .pagination {
        gap: 8px;
    }
    
    .pagination a {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .news-content h3 {
        font-size: 1.3rem;
    }
    
    .news-image img {
        height: 150px;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .news-content p {
        font-size: 1rem;
    }
}

