/* 新闻页面增强样式 - 精美设计版 */

/* ========== Hero区域增强设计 ========== */
.news-hero {
    background: linear-gradient(135deg, #00a6fb 0%, #0084d4 100%);
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
    min-height: 450px;
}

/* 动态背景装饰 */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    animation: float-up 20s linear infinite;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* 新闻统计卡片 */
.news-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    min-width: 150px;
    text-align: center;
}

.stat-card:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

/* ========== 文章卡片美化 ========== */
.news-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.news-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,166,251,0.15);
}

/* 封面图美化 */
.news-image {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 不同分类的渐变配色 */
.news-image-default {
    background: linear-gradient(135deg, #00a6fb 0%, #0084d4 100%);
}

.news-image-product {
    background: linear-gradient(135deg, #00a6fb 0%, #0084d4 100%);
}

.news-image-case {
    background: linear-gradient(135deg, #00d4ff 0%, #00a6fb 100%);
}

.news-image-insight {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.news-image-company {
    background: linear-gradient(135deg, #00a6fb 0%, #43e97b 100%);
}

.news-image-event {
    background: linear-gradient(135deg, #667eea 0%, #00a6fb 100%);
}

/* 图标样式 */
.news-icon {
    font-size: 60px;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 3px 15px rgba(0,0,0,0.2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* 分类标签美化 */
.news-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.95);
    color: #00a6fb;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 2;
}

/* 新闻内容区域 */
.news-body {
    padding: 25px;
}

.news-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1c3d;
    margin: 15px 0 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-body p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #999;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.news-tag {
    background: #f0f7ff;
    color: #00a6fb;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    border: 1px solid rgba(0,166,251,0.2);
}

/* ========== 置顶文章美化 ========== */
.featured-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.featured-main {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,166,251,0.2);
}

.featured-image {
    width: 100%;
    height: 350px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(255,107,107,0.4);
    z-index: 2;
}

.featured-content {
    padding: 30px;
}

.featured-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1c3d;
    margin: 15px 0;
    line-height: 1.3;
}

.featured-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 15px 0;
}

.featured-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00a6fb;
    font-weight: 600;
    text-decoration: none;
    margin-top: 15px;
    transition: gap 0.3s ease;
}

.featured-link:hover {
    gap: 12px;
}

/* 侧边置顶文章 */
.featured-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-item {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured-item:hover {
    transform: translateX(-5px);
    box-shadow: 0 8px 30px rgba(0,166,251,0.15);
}

.featured-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1c3d;
    margin-bottom: 10px;
    line-height: 1.4;
}

.featured-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.featured-item-meta {
    font-size: 12px;
    color: #999;
}

/* ========== 侧边栏美化 ========== */
.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.sidebar-widget h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1c3d;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #00a6fb;
    position: relative;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #00a6fb, transparent);
}

/* 热门文章样式 */
.hot-article {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f2f8;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hot-article:hover {
    padding-left: 10px;
    background: linear-gradient(90deg, rgba(0,166,251,0.05), transparent);
}

.hot-article:last-child {
    border-bottom: none;
}

.hot-number {
    width: 30px;
    height: 30px;
    background: #f0f7ff;
    color: #00a6fb;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.hot-number.top {
    background: linear-gradient(135deg, #00a6fb, #0084d4);
    color: white;
}

.hot-title {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    flex: 1;
}

.hot-views {
    font-size: 12px;
    color: #999;
}

/* 标签云美化 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cloud-tag {
    background: #f0f7ff;
    color: #00a6fb;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid rgba(0,166,251,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cloud-tag:hover {
    background: #00a6fb;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,166,251,0.3);
}

/* 订阅框美化 */
.subscribe-box {
    background: linear-gradient(135deg, #f0f7ff, #fff);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0,166,251,0.1);
}

.subscribe-box p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.subscribe-box input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e5eb;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.subscribe-box input:focus {
    outline: none;
    border-color: #00a6fb;
    box-shadow: 0 0 0 3px rgba(0,166,251,0.1);
}

.subscribe-box button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #00a6fb, #0084d4);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,166,251,0.4);
}

/* ========== 响应式设计 ========== */
@media (max-width: 1024px) {
    .featured-wrapper {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .news-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-card {
        width: 200px;
    }
    
    .news-layout {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
}