/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* 夜晚模式样式 */
body.dark-mode {
    background-color: #0f1419;
    color: #e8eaed;
}

body.dark-mode .header {
    background-color: #1a1d21;
    border-bottom-color: #2d3238;
}

body.dark-mode .header-top {
    background-color: #1a1d21;
}

body.dark-mode .logo {
    color: #e8eaed;
}

body.dark-mode .main-nav {
    background-color: #1a1d21;
    border-bottom-color: #2d3238;
}

body.dark-mode .trending-bar {
    background-color: #1a1d21;
    border-bottom-color: #2d3238;
}

body.dark-mode .trending-topics a {
    color: #e8eaed;
}

body.dark-mode .trending-topics a:hover {
    color: #4a9eff;
}

body.dark-mode .nav-menu a {
    color: #e8eaed;
}

body.dark-mode .nav-menu a:hover {
    color: #4a9eff;
}

body.dark-mode .submenu {
    background-color: #1a1d21;
    border-color: #2d3238;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body.dark-mode .submenu li {
    border-bottom-color: #2d3238;
}

body.dark-mode .submenu a {
    color: #e8eaed;
}

body.dark-mode .submenu a:hover {
    background-color: #242729;
    color: #4a9eff;
}

body.dark-mode .hero-column,
body.dark-mode .category-section,
body.dark-mode .entertainment-section,
body.dark-mode .random-articles-section,
body.dark-mode .newsletter-section {
    background-color: #1a1d21;
    border-color: #2d3238;
}

body.dark-mode .category-item,
body.dark-mode .featured-main,
body.dark-mode .featured-item,
body.dark-mode .advertisement,
body.dark-mode .random-article-item,
body.dark-mode .operation-featured,
body.dark-mode .operation-item {
    background-color: #242729;
    border-color: #2d3238;
}

body.dark-mode .category-item h3 a,
body.dark-mode .featured-main h3 a,
body.dark-mode .featured-item h4 a,
body.dark-mode .entertainment-main h3 a,
body.dark-mode .random-article-item h3 a,
body.dark-mode .article-content h3 a,
body.dark-mode .operation-featured h3 a,
body.dark-mode .operation-item h4 a {
    color: #e8eaed;
}

body.dark-mode .operation-featured .featured-description {
    color: #b0b3b8;
}

body.dark-mode .category-item h3 a:hover,
body.dark-mode .featured-main h3 a:hover,
body.dark-mode .featured-item h4 a:hover,
body.dark-mode .entertainment-main h3 a:hover,
body.dark-mode .random-article-item h3 a:hover,
body.dark-mode .article-content h3 a:hover,
body.dark-mode .operation-featured h3 a:hover,
body.dark-mode .operation-item h4 a:hover {
    color: #4a9eff;
}

body.dark-mode .related-articles a {
    color: #e8eaed;
}

body.dark-mode .related-articles a:hover {
    color: #4a9eff;
}

body.dark-mode .newsletter-section {
    background-color: #1a1d21;
}

body.dark-mode .newsletter-section h2 {
    color: #e8eaed;
}

body.dark-mode .newsletter-section p {
    color: #bdc1c6;
}

body.dark-mode .random-articles-header h2 {
    color: #e8eaed;
}

body.dark-mode .category-header h2 {
    color: #e8eaed;
}

body.dark-mode .category-header {
    border-bottom-color: #2d3238;
}

body.dark-mode .article-item {
    border-bottom-color: #2d3238;
}

body.dark-mode .related-articles li {
    border-bottom-color: #2d3238;
}

body.dark-mode .tab-button {
    background-color: #242729;
    border-color: #2d3238;
    color: #e8eaed;
}

body.dark-mode .tab-button:hover {
    background-color: #2d3238;
    color: #fff;
}

body.dark-mode .tab-button.active {
    background-color: #4a9eff;
    color: white;
    border-color: #4a9eff;
}

body.dark-mode .bottom-footer {
    background-color: #0f1419;
    border-color: #1a1d21;
}

body.dark-mode .bottom-footer-nav a {
    color: #bdc1c6;
}

body.dark-mode .bottom-footer-nav a:hover {
    color: #e8eaed;
}

body.dark-mode .bottom-footer p {
    color: #9aa0a6;
}

body.dark-mode .copyright {
    color: #9aa0a6;
}

/* 顶部趋势新闻栏 */
.trending-bar {
    background-color: #f5f5f5;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.trending-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 30px;
}

.trending-label {
    font-weight: bold;
    margin-right: 15px;
    color: #666;
}

.trending-topics {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.trending-topics a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.trending-topics a:hover {
    color: #007bff;
}

/* 头部区域 */
.header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.header-top {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icon {
    width: 35px;
    height: 35px;
    background-color: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-icon {
    font-size: 18px;
    cursor: pointer;
}

.toggle-switch {
    width: 50px;
    height: 25px;
    background-color: #ddd;
    border-radius: 25px;
    position: relative;
    cursor: pointer;
    transition: 0.3s;
}

.toggle-switch::after {
    content: '';
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 2.5px;
    left: 2.5px;
    transition: 0.3s;
}

/* 夜晚模式下的toggle-switch */
body.dark-mode .toggle-switch {
    background-color: #4a9eff;
}

body.dark-mode .toggle-switch::after {
    transform: translateX(25px);
}

/* 主导航栏 */
.main-nav {
    background-color: #fff;
    border-bottom: 2px solid #000;
}

/* 汉堡菜单按钮 - 默认隐藏 */
.hamburger-menu {
    display: none;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 30px;
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 15px 0;
    display: block;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #007bff;
}

/* 二级菜单样式 */
.dropdown {
    position: relative;
}

.dropdown:hover .submenu {
    display: block;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 180px;
    z-index: 1000;
}

.submenu li {
    display: block;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.submenu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.submenu a:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

/* 主要内容区域 */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 30px;
}

/* 英雄区域 */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 2.5fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.hero-column {
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    background-color: #fff;
}

.hero-column {
    background-color: #fff;
}

.hero-column h2 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000;
}

.article-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

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

.article-thumbnail {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 4px;
}

.article-content h3 {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-content h3 a {
    color: #333;
    text-decoration: none;
}

.article-content h3 a:hover {
    color: #007bff;
}

.article-time {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* LATEST区域特殊样式 - 不显示图片 */
.latest-column .article-item {
    flex-direction: column;
    gap: 8px;
}

.latest-column .article-thumbnail {
    display: none;
}

.latest-column .article-content {
    width: 100%;
}

/* DAILY FEED区域特殊样式 - 显示图片，限制6篇文章，3排2列布局 */
.daily-feed-column {
    display: flex;
    flex-direction: column;
}

.daily-feed-column h2 {
    margin-bottom: 20px;
}

.daily-feed-column .articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: calc(100% - 60px);
}

.daily-feed-column .article-item {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    display: flex;
}

.daily-feed-column .article-thumbnail {
    width: 100%;
    height: 100px;
    margin-bottom: 8px;
    object-fit: cover;
    border-radius: 6px;
}

.daily-feed-column .article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.daily-feed-column .article-content h3 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.daily-feed-column .article-time {
    font-size: 12px;
    margin-top: 5px;
}

.daily-feed-column .article-item:nth-child(n+7) {
    display: none;
}

/* 特色文章 */
.featured-main {
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 8px;
    background-color: #fafafa;
}

.featured-main img {
    width: 100%;
    height: 300px;
    margin-bottom: 15px;
    object-fit: cover;
    border-radius: 8px;
}

.featured-main h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.featured-main h3 a {
    color: #333;
    text-decoration: none;
}

.featured-main h3 a:hover {
    color: #007bff;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.featured-item {
    text-align: center;
    border: 1px solid #e0e0e0;
    padding: 10px;
    border-radius: 6px;
    background-color: #fafafa;
}

.featured-item img {
    width: 100%;
    height: 120px;
    margin-bottom: 10px;
    object-fit: cover;
    border-radius: 6px;
}

.featured-item h4 {
    font-size: 14px;
    line-height: 1.3;
}

.featured-item h4 a {
    color: #333;
    text-decoration: none;
}

.featured-item h4 a:hover {
    color: #007bff;
}

/* 新闻订阅区域 */
.newsletter-section {
    background-color: #f8f9fa;
    padding: 40px 30px;
    margin: 40px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.newsletter-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.newsletter-content {
    flex: 1;
    text-align: left;
}

.newsletter-section h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.3;
}

.newsletter-section p {
    font-size: 16px;
    color: #666;
    margin-bottom: 0;
}

.newsletter-form-container {
    flex: 0 0 auto;
    min-width: 300px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: flex-start;
}

.newsletter-form input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 300px;
    font-size: 14px;
}

.newsletter-form button {
    padding: 12px 25px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.newsletter-form button:hover {
    background-color: #333;
}

.newsletter-consent {
    font-size: 12px;
    color: #666;
}

.newsletter-consent a {
    color: #007bff;
    text-decoration: none;
}

/* 分类内容区域 */
.category-section {
    margin: 40px 0;
    border: 1px solid #e0e0e0;
    padding: 30px;
    border-radius: 8px;
    background-color: #fff;
}

/* 体育区域特殊样式 - 减少底部间距 */
.category-section:last-of-type {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000;
}

.category-title-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-header h2 {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.view-more-btn {
    padding: 6px 12px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.view-more-btn:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

/* TAB样式 */
.category-tabs {
    display: flex;
    gap: 10px;
}

.tab-button {
    padding: 8px 16px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background-color: #e9e9e9;
    color: #333;
}

.tab-button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

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

.category-item {
    text-align: center;
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 8px;
    background-color: #fafafa;
}

.category-item img {
    width: 100%;
    height: 150px;
    margin-bottom: 15px;
    object-fit: cover;
    border-radius: 6px;
}

.category-item h3 {
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 10px;
}

.category-item h3 a {
    color: #333;
    text-decoration: none;
}

.category-item h3 a:hover {
    color: #007bff;
}

/* 娱乐区域特殊布局 */
.entertainment-section {
    display: grid;
    grid-template-columns: 1fr 2.5fr 1fr;
    gap: 40px;
    margin: 40px 0;
    border: 1px solid #e0e0e0;
    padding: 30px;
    border-radius: 8px;
    background-color: #fff;
}

.advertisement {
    background-color: #f8f9fa;
    padding: 20px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.advertisement h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.advertisement img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}



.entertainment-main {
    text-align: center;
}

.entertainment-main img {
    width: 100%;
    height: 300px;
    margin-bottom: 15px;
    object-fit: cover;
    border-radius: 8px;
}

.entertainment-main h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.entertainment-main h3 a {
    color: #333;
    text-decoration: none;
}

.related-articles {
    list-style: none;
}

.related-articles li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.related-articles li:last-child {
    border-bottom: none;
}

.related-articles a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
}

.related-articles a:hover {
    color: #007bff;
}

/* 运营分享新布局 */
.operation-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.operation-main {
    display: flex;
    flex-direction: column;
}

.operation-featured {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.operation-featured img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

.operation-featured h3 {
    padding: 15px 20px 10px;
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
}

.operation-featured .featured-description {
    padding: 0 20px 15px;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    flex-grow: 1;
}

.operation-featured h3 a {
    color: #333;
    text-decoration: none;
}

.operation-featured h3 a:hover {
    color: #007bff;
}

.operation-sidebar {
    display: flex;
    flex-direction: column;
}

.operation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  /*  grid-template-rows: repeat(3, 1fr);*/
    gap: 15px;
    height: 100%;
}

.operation-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.operation-item img {
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.operation-item h4 {
    padding: 12px;
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

.operation-item h4 a {
    color: #333;
    text-decoration: none;
}

.operation-item h4 a:hover {
    color: #007bff;
}

/* operation-item时间显示样式 */
.operation-time {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    padding: 0 12px 12px;
    line-height: 1.2;
}

.operation-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.operation-item h4 {
    flex-grow: 1;
    margin-bottom: 0;
}





/* 杂志广告横幅 */
.magazine-banner {
    margin: 40px 0;
    border-radius: 8px;
    overflow: hidden;
}

.magazine-banner img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* 随机文章模块 */
.random-articles-section {
    margin: 40px 0;
    border: 1px solid #e0e0e0;
    padding: 30px;
    border-radius: 8px;
    background-color: #fff;
}

.random-articles-header {
    margin-bottom: 30px;
}

.random-articles-header h2 {
    font-size: 24px;
    color: #333;
    margin: 0;
}

.random-articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.random-article-item {
    padding: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.random-article-item:hover {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
    transform: translateY(-2px);
}

.random-article-item h3 {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.random-article-item h3 a {
    color: #333;
    text-decoration: none;
    display: block;
}

.random-article-item h3 a:hover {
    color: #007bff;
}



/* 底部页脚 */
.bottom-footer {
    background-color: #333;
    color: white;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid #333;
    border-radius: 8px;
    margin-top: 20px;
}

.bottom-footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.bottom-footer .logo {
    color: white;
    font-size: 24px;
    margin-bottom: 15px;
}

.bottom-footer p {
    margin-bottom: 20px;
    color: #ccc;
}

.bottom-footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.bottom-footer-nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
}

.bottom-footer-nav a:hover {
    color: white;
}

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

/* 响应式设计 */
@media (min-width: 1600px) {
    .main-content {
        max-width: 1600px;
    }
    
    .trending-container,
    .header-top,
    .nav-container,
    .footer-nav-container,
    .bottom-footer-container {
        max-width: 1600px;
    }
    
    .hero-section {
        grid-template-columns: 1.2fr 3fr 1.8fr;
        gap: 50px;
    }
    
    .category-grid {
        gap: 30px;
    }
    
    .entertainment-section {
        grid-template-columns: 1.2fr 3fr 1.2fr;
        gap: 50px;
    }
    

}

@media (max-width: 768px) {
    /* 隐藏热门新闻栏 */
    .trending-bar {
        display: none;
    }
    
    /* 头部布局调整 */
    .header-top {
        padding: 15px 20px;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .social-icons {
        display: none;
    }
    
    /* 导航菜单改为汉堡菜单 */
    .nav-container {
        padding: 0 20px;
        position: relative;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        z-index: 1000;
        padding: 20px;
        margin: 10px 20px;
    }
    
    .nav-menu.active {
        display: block;
    }
    
    .nav-menu li {
        margin-bottom: 15px;
    }
    
    .nav-menu a {
        padding: 12px 0;
        font-size: 16px;
        border-bottom: 1px solid #f0f0f0;
    }
    
    /* 移动端二级菜单样式 */
    .dropdown {
        position: static;
    }
    
    .submenu {
        position: static;
        display: none;
        background-color: #f8f9fa;
        border: none;
        box-shadow: none;
        margin-left: 20px;
        margin-top: 10px;
    }
    
    .dropdown.active .submenu {
        display: block;
    }
    
    .submenu li {
        border-bottom: 1px solid #e0e0e0;
        margin-bottom: 0;
    }
    
    .submenu a {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .nav-menu li:last-child a {
        border-bottom: none;
    }
    
    /* 汉堡菜单按钮 */
    .hamburger-menu {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        padding: 5px;
    }
    
    .hamburger-menu:hover {
        opacity: 0.7;
    }
    
    /* 主要内容区域调整 */
    .main-content {
        padding: 20px 15px;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .daily-feed-column .articles-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .daily-feed-column .article-thumbnail {
        height: 60px;
    }
    
    .daily-feed-column .article-content h3 {
        font-size: 13px;
    }
    
    .daily-feed-column .article-time {
        font-size: 11px;
    }
    
    .daily-feed-column .article-item:nth-child(n+7) {
        display: none;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .category-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .tab-button {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .category-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .view-more-btn {
        padding: 5px 10px;
        font-size: 13px;
    }
    
    .entertainment-section {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .operation-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .operation-featured {
        flex-direction: column;
    }
    
    .operation-featured .featured-description {
        flex-grow: 0;
    }
    
    .operation-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 10px;
    }
    
    .operation-featured img {
        height: 300px;
    }
    
    .operation-item img {
        height: 100px;
    }
    
    .magazine-banner img {
        height: 150px;
    }
    
    .random-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .random-article-item {
        padding: 12px;
    }
    
    .random-article-item h3 {
        font-size: 13px;
    }
    

    
    .newsletter-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .newsletter-content {
        text-align: center;
    }
    
    .newsletter-section h2 {
        font-size: 24px;
    }
    
    .newsletter-form-container {
        min-width: auto;
        width: 100%;
    }
    
    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }
    
    .newsletter-form input {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    

    
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .random-articles-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .random-article-item {
        padding: 10px;
    }
    
    .random-article-item h3 {
        font-size: 12px;
    }
    
    .category-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .tab-button {
        padding: 8px 12px;
        font-size: 12px;
        text-align: center;
    }
    
    .view-more-btn {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .operation-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 8px;
    }
    
    .operation-item img {
        height: 80px;
    }
    
    .operation-item h4 {
        padding: 10px;
        font-size: 12px;
    }
}

/* ===== 新增的美化样式 ===== */

/* 图标样式 */
.icon-latest::before { content: "📰"; margin-right: 8px; }
.icon-featured::before { content: "⭐"; margin-right: 8px; }
.icon-hot::before { content: "🔥"; margin-right: 8px; }
.icon-newsletter::before { content: "📧"; margin-right: 8px; }
.icon-category::before { content: "📂"; margin-right: 8px; }
.icon-ad::before { content: "📢"; margin-right: 8px; }
.icon-random::before { content: "🎲"; margin-right: 8px; }
.icon-time::before { content: "⏰"; margin-right: 4px; }
.icon-more::before { content: "→"; margin-right: 4px; }
.icon-submit::before { content: "✓"; margin-right: 4px; }
.icon-arrow::before { content: "▶"; margin-right: 6px; font-size: 10px; }

/* 图片链接样式 */
.featured-image-link,
.category-image-link,
.operation-image-link,
.article-image-link,
.entertainment-image-link,
.ad-image-link,
.banner-image-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.featured-image-link:hover,
.category-image-link:hover,
.operation-image-link:hover,
.article-image-link:hover,
.entertainment-image-link:hover,
.ad-image-link:hover,
.banner-image-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* 图片悬停遮罩层 */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,123,255,0.8), rgba(0,86,179,0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.overlay-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.image-overlay:hover .overlay-text {
    transform: translateY(0);
}

/* 夜晚模式下的图片遮罩 */
body.dark-mode .image-overlay {
    background: linear-gradient(135deg, rgba(74,158,255,0.8), rgba(0,123,255,0.8));
}

/* 卡片悬停效果增强 */
.category-item,
.featured-main,
.featured-item,
.advertisement,
.random-article-item,
.operation-featured,
.operation-item {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-item:hover,
.featured-main:hover,
.featured-item:hover,
.advertisement:hover,
.random-article-item:hover,
.operation-featured:hover,
.operation-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 按钮悬停效果增强 */
.view-more-btn,
.newsletter-form button,
.tab-button {
    position: relative;
    overflow: hidden;
}

.view-more-btn::before,
.newsletter-form button::before,
.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.view-more-btn:hover::before,
.newsletter-form button:hover::before,
.tab-button:hover::before {
    left: 100%;
}

/* 链接悬停效果 - 已优化为背景图片方式，支持多行文字 */

/* 多行文字悬停下划线效果优化 */
.article-content h3 a,
.category-item h3 a,
.featured-main h3 a,
.featured-item h4 a,
.entertainment-main h3 a,
.random-article-item h3 a,
.operation-featured h3 a,
.operation-item h4 a,
.related-articles a {
    text-decoration: none;
    background-image: linear-gradient(90deg, #007bff, #0056b3);
    background-size: 0 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: background-size 0.3s ease;
}

.article-content h3 a:hover,
.category-item h3 a:hover,
.featured-main h3 a:hover,
.featured-item h4 a:hover,
.entertainment-main h3 a:hover,
.random-article-item h3 a:hover,
.operation-featured h3 a:hover,
.operation-item h4 a:hover,
.related-articles a:hover {
    background-size: 100% 2px;
}

/* 夜晚模式下的多行文字悬停下划线 */
body.dark-mode .article-content h3 a,
body.dark-mode .category-item h3 a,
body.dark-mode .featured-main h3 a,
body.dark-mode .featured-item h4 a,
body.dark-mode .entertainment-main h3 a,
body.dark-mode .random-article-item h3 a,
body.dark-mode .operation-featured h3 a,
body.dark-mode .operation-item h4 a,
body.dark-mode .related-articles a {
    background-image: linear-gradient(90deg, #4a9eff, #007bff);
}

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

.hero-section,
.category-section,
.entertainment-section,
.random-articles-section {
    animation: fadeInUp 0.6s ease-out;
}

/* 脉冲动画效果 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.newsletter-form button:hover {
    animation: pulse 0.6s ease-in-out;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #007bff, #0056b3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #0056b3, #004085);
}

/* 夜晚模式下的滚动条 */
body.dark-mode ::-webkit-scrollbar-track {
    background: #2d3238;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #4a9eff, #007bff);
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #007bff, #0056b3);
}

/* 响应式图片链接优化 */
@media (max-width: 768px) {
    .image-overlay {
        opacity: 0.8;
    }
    
    .overlay-text {
        font-size: 12px;
    }
    
    .featured-image-link:hover,
    .category-image-link:hover,
    .operation-image-link:hover,
    .article-image-link:hover,
    .entertainment-image-link:hover,
    .ad-image-link:hover,
    .banner-image-link:hover {
        transform: none;
    }
    
    .category-item:hover,
    .featured-main:hover,
    .featured-item:hover,
    .advertisement:hover,
    .random-article-item:hover,
    .operation-featured:hover,
    .operation-item:hover {
        transform: none;
    }
} 