/* 新闻动态页面样式 */

/* Hero区域 */
.news-hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.hero-pattern {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.1s backwards;
}

/* 快速筛选标签 */
.hero-tags {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.tag-btn {
    padding: 10px 24px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    color: white;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tag-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.tag-btn.active {
    background: white;
    color: #667eea;
    border-color: white;
}

/* 置顶文章 */
.featured-news {
    padding: 60px 0 40px;
    background: #f8f9fb;
}

.featured-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.featured-main {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.featured-main:hover {
    transform: translateY(-5px);
}

.featured-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.featured-content {
    padding: 30px;
}

.featured-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

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

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

.featured-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.featured-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

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

.featured-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.featured-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

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

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

/* 新闻列表主体 */
.news-main {
    padding: 60px 0;
}

.news-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

/* 工具栏 */
.news-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8eaf2;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.sort-options select {
    padding: 8px 15px;
    border: 1px solid #e8eaf2;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

.view-options {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e8eaf2;
    background: white;
    border-radius: 8px;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover,
.view-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 文章列表 */
.news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.news-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.news-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    background: rgba(102,126,234,0.9);
    color: white;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.news-body {
    padding: 25px;
}

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

.news-body h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1c3d;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-body p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

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

.news-tag {
    padding: 4px 10px;
    background: #f0f2f8;
    color: #666;
    border-radius: 12px;
    font-size: 12px;
}

/* 列表视图 */
.news-list.list-view {
    grid-template-columns: 1fr;
}

.news-list.list-view .news-item {
    display: flex;
    align-items: center;
}

.news-list.list-view .news-image {
    width: 240px;
    flex-shrink: 0;
}

.news-list.list-view .news-body {
    flex: 1;
}

/* 加载更多 */
.load-more {
    text-align: center;
    margin-top: 50px;
}

.btn-outline {
    padding: 12px 40px;
    border: 2px solid #667eea;
    background: transparent;
    color: #667eea;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* 侧边栏 */
.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.sidebar-widget h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1c3d;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #667eea;
}

/* 搜索框 */
.search-box {
    display: flex;
    border: 1px solid #e8eaf2;
    border-radius: 8px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-box button {
    padding: 0 20px;
    background: #667eea;
    border: none;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: #5568d3;
}

/* 热门文章 */
.hot-article {
    padding: 15px 0;
    border-bottom: 1px solid #f0f2f8;
    cursor: pointer;
    transition: padding-left 0.3s ease;
}

.hot-article:hover {
    padding-left: 10px;
}

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

.hot-number {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: #667eea;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 10px;
}

.hot-number.top {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

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

.hot-views {
    display: block;
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

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

.tag-item {
    padding: 6px 14px;
    background: #f0f2f8;
    color: #666;
    border-radius: 15px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: #667eea;
    color: white;
    transform: scale(1.05);
}

/* 订阅框 */
.subscribe-box p {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.subscribe-box input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e8eaf2;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

.subscribe-box .btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.subscribe-box .btn-primary:hover {
    transform: translateY(-2px);
}

/* 下载资料 */
.download-resources {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resource-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fb;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
}

.resource-item:hover {
    background: #667eea;
    color: white;
    transform: translateX(5px);
}

.resource-item i {
    font-size: 18px;
    color: #667eea;
}

.resource-item:hover i {
    color: white;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .news-layout {
        grid-template-columns: 1fr 320px;
    }
}

@media (max-width: 992px) {
    .featured-wrapper {
        grid-template-columns: 1fr;
    }
    
    .featured-side {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-layout {
        grid-template-columns: 1fr;
    }
    
    .news-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .news-hero h1 {
        font-size: 36px;
    }
    
    .news-hero p {
        font-size: 16px;
    }
    
    .hero-tags {
        gap: 10px;
    }
    
    .tag-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .news-list {
        grid-template-columns: 1fr;
    }
    
    .news-sidebar {
        grid-template-columns: 1fr;
    }
    
    .featured-side {
        grid-template-columns: 1fr;
    }
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}