/* 资讯动态页面专用样式 */

/* ==================== 下拉菜单样式（与主样式保持一致） ==================== */
/* 注：下拉菜单样式已在 style.css 中定义，此处不再重复 */

/* ==================== 资讯页面头部 ==================== */
.news-hero {
    min-height: 400px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 60px;
}

.news-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.3) 0%, transparent 50%);
}

.news-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.news-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.news-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-breadcrumb a:hover {
    color: white;
}

.news-breadcrumb .separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.news-breadcrumb .current {
    color: white;
    font-weight: 500;
}

.news-hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.news-hero-content p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

/* ==================== 分类标签 ==================== */
.news-tabs {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--bg-tertiary);
    padding: 0;
    position: sticky;
    top: 70px;
    z-index: 100;
}

.tabs-wrapper {
    display: flex;
    justify-content: center;
    gap: 0;
}

.tab-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem 2rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-item i {
    font-size: 1.1rem;
}

.tab-item:hover {
    color: var(--primary-color);
    background: var(--bg-secondary);
}

.tab-item.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--bg-secondary);
}

/* ==================== 文章列表 ==================== */
.news-list {
    background: var(--bg-secondary);
    padding: 4rem 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.article-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.article-card:hover .article-image img {
    transform: scale(1.1);
}

.article-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-gradient);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.article-meta i {
    margin-right: 0.3rem;
}

.article-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.article-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content h3 a:hover {
    color: var(--primary-color);
}

.article-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover {
    gap: 0.7rem;
    color: var(--primary-light);
}

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

/* ==================== 分页 ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.8rem;
    background: white;
    border: 1px solid var(--bg-tertiary);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-btn:hover:not(.disabled):not(.active) {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-ellipsis {
    color: var(--text-light);
    padding: 0 0.5rem;
}

/* ==================== 成果统计 ==================== */
.achievements-stats {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.achievements-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.3) 0%, transparent 50%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ==================== 文章详情页 ==================== */
.article-detail-hero {
    min-height: 500px;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 80px;
}

.article-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.3) 0%, transparent 50%);
}

.article-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.article-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.article-breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-breadcrumb a:hover {
    color: white;
}

.article-breadcrumb .separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.article-breadcrumb .current {
    color: white;
    font-weight: 500;
}

.article-category-tag {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.article-hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.article-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.meta-item i {
    opacity: 0.8;
}

/* ==================== 文章内容区域 ==================== */
.article-content-section {
    background: var(--bg-secondary);
    padding: 4rem 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
}

.article-main {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.article-body {
    padding: 3rem;
}

.article-body .article-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.article-body .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.article-body .article-category-tag {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.article-summary {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    margin-bottom: 2rem;
}

.article-body h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2.5rem 0 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--bg-tertiary);
}

.article-body h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.article-body p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-body li {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.article-body li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.article-body blockquote {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
}

.article-body blockquote p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.8;
}

/* ==================== 文章底部信息 ==================== */
.article-footer {
    padding: 2rem 3rem;
    border-top: 1px solid var(--bg-tertiary);
    background: var(--bg-secondary);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: white;
    border: 1px solid var(--bg-tertiary);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.article-share {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.share-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn.weixin {
    background: #07c160;
}

.share-btn.weibo {
    background: #e6162d;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ==================== 上一篇/下一篇导航 ==================== */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    padding: 0 3rem 3rem;
}

.nav-prev,
.nav-next {
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--bg-tertiary);
    transition: all 0.3s ease;
}

.nav-prev:hover,
.nav-next:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.1);
}

.nav-next {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.nav-prev a,
.nav-next a {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.nav-prev a:hover,
.nav-next a:hover {
    color: var(--primary-color);
}

/* ==================== 侧边栏 ==================== */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--bg-tertiary);
}

/* 搜索框 */
.search-box {
    display: flex;
    gap: 0.5rem;
}

.search-box input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--bg-tertiary);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-box button {
    padding: 0.8rem 1.2rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* 分类列表 */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.category-list a:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    padding-left: 1.2rem;
}

.category-list a i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.category-list .count {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* 热门文章 */
.hot-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hot-article-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--bg-tertiary);
}

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

.hot-article-item .rank {
    width: 28px;
    height: 28px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.hot-article-item:nth-child(1) .rank {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.hot-article-item:nth-child(2) .rank {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    color: white;
}

.hot-article-item:nth-child(3) .rank {
    background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%);
    color: white;
}

.hot-article-info {
    flex: 1;
    min-width: 0;
}

.hot-article-info a {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hot-article-info a:hover {
    color: var(--primary-color);
}

.hot-article-info .views {
    font-size: 0.85rem;
    color: var(--text-light);
}

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

.tag-item {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 订阅框 */
.subscribe-widget {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
}

.subscribe-widget .widget-title {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.subscribe-widget p {
    opacity: 0.9;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.subscribe-form input {
    padding: 0.9rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
}

.subscribe-form input::placeholder {
    color: var(--text-light);
}

.subscribe-form button {
    padding: 0.9rem;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-form button:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        order: 2;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .subscribe-widget {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .news-hero {
        min-height: 350px;
        padding-top: 100px;
    }
    
    .news-hero-content h1 {
        font-size: 2rem;
    }
    
    .news-hero-content p {
        font-size: 1.1rem;
    }
    
    .tabs-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding: 0 1rem;
    }
    
    .tab-item {
        padding: 1rem 1.2rem;
        white-space: nowrap;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .article-detail-hero {
        min-height: 400px;
        padding-top: 120px;
    }
    
    .article-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .article-body {
        padding: 1.5rem;
    }
    
    .article-body h2 {
        font-size: 1.4rem;
    }
    
    .article-sidebar {
        grid-template-columns: 1fr;
    }
    
    .subscribe-widget {
        grid-column: span 1;
    }
    
    .article-navigation {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .nav-next {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .tab-item span {
        display: none;
    }
    
    .tab-item i {
        font-size: 1.3rem;
    }
}
