/* 
 * 资讯网站样式表
 * 包含响应式设计，适配各种设备尺寸
 */

/* ----------------- 重置与基础样式 ----------------- */
:root {
    --primary-color: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    --secondary-color: #2dd4bf;
    --accent-color: #f43f5e;
    --text-primary: #18181b;
    --text-secondary: #3f3f46;
    --text-light: #71717a;
    --background: #fafafa;
    --background-card: #ffffff;
    --border-color: #e4e4e7;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    
    /* 游戏主题特殊颜色 */
    --neon-glow: 0 0 10px var(--primary-light);
    --gaming-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gaming-gradient-hover: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
}

/* 添加游戏风格的动画 */
@keyframes neonPulse {
    0% { box-shadow: 0 0 5px var(--primary-light); }
    50% { box-shadow: 0 0 20px var(--primary-light); }
    100% { box-shadow: 0 0 5px var(--primary-light); }
}

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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    background-image: 
        linear-gradient(120deg, rgba(37, 99, 235, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: var(--text-primary);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

::selection {
    background-color: var(--primary-light);
    color: white;
}

/* ----------------- 布局与容器 ----------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.main-content {
    padding: 2rem 0;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eaeaea;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #0066cc;
}

/* ----------------- 头部与导航 ----------------- */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 1.5rem;
}

.logo a {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gaming-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.logo a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gaming-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.logo a:hover::after {
    transform: scaleX(1);
}

/* 添加游戏风格的卡片效果 */
.featured-item, .news-item {
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.featured-item::before, .news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(124, 58, 237, 0.1),
        rgba(45, 212, 191, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-item:hover, .news-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--neon-glow);
    border-color: var(--primary-light);
}

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

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-list a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ----------------- 首页样式 ----------------- */
/* 焦点新闻区域 */
.featured-news {
    margin-bottom: 4rem;
    padding-top: 1.5rem;
}

.section-title {
    font-size: 1.75rem;
    margin-bottom: 1.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    color: var(--text-primary);
    font-weight: 800;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.featured-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    background-color: var(--background-card);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
}

.featured-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

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

.featured-image img {
    width: 100%;
    transition: transform 0.6s ease;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.featured-item:hover .featured-image img {
    transform: scale(1.08);
}

.featured-item.main {
    grid-row: span 2;
}

.featured-item.main h3 {
    font-size: 1.6rem;
    padding: 1.25rem 1.5rem 0.75rem;
    font-weight: 700;
    line-height: 1.4;
}

.featured-item.main p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.featured-sidebar {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 2rem;
}

.featured-sidebar .featured-item h3 {
    font-size: 1.2rem;
    padding: 1rem 1.25rem;
    line-height: 1.4;
}

.featured-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
    border-radius: var(--radius-lg);
}

.featured-item:hover::before {
    opacity: 0.2;
}

/* 最新资讯区域 */
.latest-news {
    padding: 2rem 0;
}

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

.news-item {
    background-color: var(--background-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    position: relative;
}

.news-item:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

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

.news-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.02) 50%,
        rgba(0,0,0,0.1) 100%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.news-item:hover .news-image::after {
    opacity: 1;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

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

.news-content {
    padding: 1.5rem;
    position: relative;
}

.news-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 1px;
    background: linear-gradient(90deg, 
        var(--border-color) 0%,
        var(--primary-light) 50%,
        var(--border-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.news-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-primary);
}

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

.news-meta {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-light);
    gap: 1rem;
}

.news-meta::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 0.25rem;
}

/* ----------------- 栏目页样式 ----------------- */
.category-header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.category-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

.category-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.category-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-list .news-item {
    background-color: var(--background-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    margin-bottom: 0;
}

.news-list .news-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.news-list .news-item a {
    display: flex;
    flex-direction: row;
}

.news-list .news-image {
    width: 320px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.news-list .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    border-radius: 0;
}

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

.news-list .news-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    justify-content: center;
}

.news-list .news-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 700;
    color: var(--text-primary);
}

.news-list .news-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.news-list .news-meta {
    font-size: 0.9rem;
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3.5rem;
    gap: 0.5rem;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    background-color: var(--background-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 40px;
}

.page-link:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.page-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.page-link.disabled {
    color: var(--text-light);
    pointer-events: none;
    background-color: var(--background);
    border-color: var(--border-color);
}

/* ----------------- 文章页样式 ----------------- */
.article-content {
    background-color: var(--background-card);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    border: 1px solid var(--border-color);
}

.article-header {
    margin-bottom: 2rem;
    text-align: center;
}

.article-meta {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

.article-category {
    position: relative;
}

.article-category a {
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.article-category a:hover {
    background-color: var(--primary-color);
    color: white;
}

.article-date {
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.article-date::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: var(--text-light);
    border-radius: 50%;
    margin-right: 0.75rem;
}

.article-title {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.article-author {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--background);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 1rem;
    border: 2px solid var(--primary-light);
    padding: 2px;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.article-featured-image {
    margin: 2rem -3rem;
    position: relative;
}

.article-featured-image img {
    width: 100%;
    border-radius: 0;
}

.image-caption {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}

.article-body {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

.article-body h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    font-weight: 700;
}

.article-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    background-color: var(--background);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-primary);
}

.article-body blockquote p {
    margin: 0;
}

.article-body blockquote cite {
    display: block;
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

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

.article-body ul li {
    list-style-type: none;
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.article-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.article-tags {
    margin: 2.5rem 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

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

.tag {
    display: inline-flex;
    padding: 0.5rem 1rem;
    background-color: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

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

.article-share {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-button {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background-color: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.share-button:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 相关文章 */
.related-articles {
    margin: 4rem auto;
    max-width: 1000px;
}

.related-articles .section-title {
    text-align: center;
    border-bottom: none;
    margin-bottom: 2.5rem;
}

.related-articles .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-item {
    background-color: var(--background-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    position: relative;
}

.related-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.related-image {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.related-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-item:hover .related-image::after {
    opacity: 1;
}

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

.related-item:hover .related-image img {
    transform: scale(1.08);
}

.related-item h4 {
    padding: 1.25rem;
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--text-primary);
    position: relative;
}

.related-item h4::after {
    content: '→';
    position: absolute;
    right: 1.25rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.related-item:hover h4::after {
    opacity: 1;
    transform: translateX(0);
}

/* 添加一些动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-item, .featured-item, .related-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

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

/* 轮播图样式 */
.hero-slider {
    margin-bottom: 3rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.slider-container {
    position: relative;
    height: 400px;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slider-item.active {
    opacity: 1;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.slider-caption h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.slider-controls {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
}

.slider-controls button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-controls button:hover {
    background: var(--primary-color);
}

/* 游戏分类导航 */
.game-categories {
    margin-bottom: 3rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.category-card {
    display: block;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 120px;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: rgba(0,0,0,0.6);
    color: white;
    margin: 0;
    font-size: 1.1rem;
}

/* 改进的新闻卡片 */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.featured-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.featured-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.featured-content {
    padding: 1.5rem;
    background: var(--background-card);
}

.featured-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

/* 排行榜样式 */
.ranking-column {
    background: var(--background-card);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ranking-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.ranking-list li:last-child {
    border-bottom: none;
}

.rank {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    margin-right: 0.75rem;
    font-size: 0.8rem;
}

.trend {
    margin-left: auto;
    color: var(--secondary-color);
    font-weight: bold;
}

.trend.down {
    color: var(--accent-color);
}

/* 视频资讯区 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.video-thumbnail {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.duration {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

/* 响应式布局 */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .slider-caption h2 {
        font-size: 1.5rem;
        color: white;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .news-and-ranking {
        flex-direction: column;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* 社交媒体链接样式 */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-link {
    color: var(--text-light);
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(124, 58, 237, 0.1);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gaming-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.social-link span {
    position: relative;
    z-index: 2;
}

.social-link:hover {
    color: white;
    transform: translateX(5px);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link.weixin { background: rgba(82, 196, 26, 0.1); }
.social-link.bilibili { background: rgba(0, 161, 214, 0.1); }
.social-link.weibo { background: rgba(230, 22, 45, 0.1); }
.social-link.discord { background: rgba(88, 101, 242, 0.1); }

/* 优化游戏风格的分类标签 */
.news-meta {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 1rem;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.news-meta::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: var(--gaming-gradient);
    opacity: 0.7;
    z-index: -1;
    border-radius: var(--radius-md);
    transition: opacity 0.3s ease;
}

.news-item:hover .news-meta {
    background: rgba(0, 0, 0, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.news-item:hover .news-meta::before {
    opacity: 0.9;
}

/* 优化新闻卡片内容区域 */
.news-content {
    position: relative;
    padding: 1.25rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    transition: all 0.3s ease;
}

.news-content h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.news-content p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 清新活泼的游戏标签样式 */
.news-meta {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
    transition: all 0.2s ease;
}

.news-meta:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* 日期样式 */
.news-meta .article-date {
    margin-left: 0.5rem;
    padding-left: 0.5rem;
    border-left: 1px solid rgba(255,255,255,0.3);
    font-weight: 500;
    color: rgba(255,255,255,0.9);
}
/* 改进文章卡片的悬停效果 */
.featured-item:hover .featured-image img,
.news-item:hover .news-image img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* 确保meta信息始终可见 */
.news-item .news-content {
    position: relative;
    z-index: 2;
}

.news-meta {
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.news-item:hover .news-meta {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 添加游戏风格的按钮效果 */
.page-link {
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    z-index: 1;
}

.page-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gaming-gradient);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.page-link:hover {
    color: white;
    border-color: transparent;
}

.page-link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.page-link.active {
    background: var(--gaming-gradient);
    border-color: transparent;
    color: white;
    animation: neonPulse 2s infinite;
}

/* 添加栏目标题的游戏风格 */
.section-title {
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-left: 1rem;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--gaming-gradient);
    border-radius: 2px;
}

/* ----------------- 页脚样式 ----------------- */
.footer {
    background: linear-gradient(180deg, 
        var(--background) 0%,
        rgba(37, 99, 235, 0.05) 100%);
    color: var(--text-secondary);
    padding: 4rem 0 1rem;
    position: relative;
    margin-top: 4rem;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--border-color) 15%,
        var(--border-color) 85%,
        transparent 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    position: relative;
}

.footer-section h4 {
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-section ul li a::before {
    content: '→';
    margin-right: 0.5rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    transform: translateX(4px);
}

.footer-section ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--border-color) 15%,
        var(--border-color) 85%,
        transparent 100%);
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ----------------- 响应式设计 ----------------- */
/* 大型平板电脑和小型桌面 */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-sidebar {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 1fr;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 平板电脑 */
@media (max-width: 768px) {
    .header .container {
        height: 60px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-list {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-list.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list li {
        margin: 0.5rem 0;
    }
    
    .news-list .news-item a {
        flex-direction: column;
    }
    
    .news-list .news-image {
        width: 100%;
        height: 200px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
}

/* 手机 */
@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    .featured-sidebar {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .article-content {
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-body {
        font-size: 1rem;
    }
}

/* 小型手机 */
@media (max-width: 375px) {
    .container {
        padding: 0 10px;
    }
    
    .article-content {
        padding: 1rem;
    }
}

/* 当JavaScript启用时的菜单交互 */
.js-enabled .nav-list.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.js-enabled .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.js-enabled .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.js-enabled .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}