* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
    background-color: #e60012;
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: linear-gradient(135deg, #e60012 0%, #8b0000 100%);
}

/* 添加类名来防止滚动 */
body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

.navbar {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px 25px;
    margin-bottom: 20px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    letter-spacing: 1px;
}

.nav-logo span {
    color: #ffcc00;
        font-size: 1.5rem;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

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

.nav-item {
    margin-left: 25px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffcc00;
}

.nav-link.active {
    background-color: #ffcc00;
    color: #8b0000;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.breadcrumb {
    padding: 10px 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 0.9rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
}

.breadcrumb a {
    color: #e60012;
    text-decoration: none;
}

.breadcrumb span {
    margin: 0px;
    color: rgba(0, 0, 0, 0.5);
}

.main-content {
    display: flex;
    gap: 20px;
}

.article-container {
    flex: 1;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    color: #333;
}

.article-header {
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 2px solid rgba(230, 0, 18, 0.2);
    padding-bottom: 20px;
}

.article-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 15px;
    color: #000000;
    line-height: 1.4;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 0.95rem;
    color: rgba(0,0,0,0.7);
    margin-top: 15px;
}

.article-body {
    color: #333;
    font-size: 16px;
    line-height: 1.8;
}

.article-body img {
    height: auto;
    max-width: 100%;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 可放大图片的样式 - 移除悬停效果 */
.article-body img.zoomable {
    cursor: zoom-in;
    border: 2px solid transparent;
}

/* 移除悬停动画效果 */
.article-body img.zoomable:hover {
    /* 移除所有transform和box-shadow效果 */
    transform: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    overflow-y: auto;
    padding: 20px;
    /* 防止查看器滚动条影响页面 */
    overscroll-behavior: contain;
}

.image-viewer.active {
    opacity: 1;
    visibility: visible;
}

.image-viewer-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-viewer-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}

.image-viewer-close:hover {
    background-color: rgba(230, 0, 18, 0.9);
    transform: rotate(90deg);
}

.image-viewer img {
    max-width: 100%;
    max-height: calc(100vh - 60px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.image-viewer-tip {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    z-index: 10000;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    font-weight: 600;
    line-height: 1.4;
    margin: 32px 0 16px;
}

.article-body h4,
.article-body h5 {
    font-weight: 500;
}

.article-body h1 {
    font-size: 24px;
}

.article-body h2 {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 22px;
    padding-bottom: 12px;
}

.article-body h3 {
    font-size: 20px;
}

.article-body > h3 {
    border: none;
    line-height: 1.46;
    padding-left: 18px;
    position: relative;
}

.article-body > h3:before {
    background-color: #e60012;
    background-image: linear-gradient(180deg, hsla(0, 0%, 100%, .15), transparent);
    border-radius: 3px;
    content: "";
    height: calc(100% - 8px);
    left: 0;
    position: absolute;
    top: 4px;
    width: 3px;
}

.article-body p {
    line-height: 1.8;
    margin-bottom: 20px;
    word-wrap: break-word;
    text-align: justify;
}

.article-body p > img {
    vertical-align: baseline;
}

.article-body > p {
    white-space: pre-wrap;
}

.article-body p.has-drop-cap:not(:focus):first-letter {
    font-size: 3em;
    font-weight: 300;
    line-height: 1;
}

.article-body blockquote {
    background: rgba(230, 0, 18, 0.04);
    border-left-color: rgba(0, 0, 0, 0.1);
    color: #333;
    font-size: 14px;
    margin: 25px 0;
    padding: 20px 25px 20px 55px;
    border-left: 4px solid #e60012;
    border-radius: 0 8px 8px 0;
    position: relative;
}

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

.article-body blockquote:before {
    color: rgba(230, 0, 18, 0.2);
    content: "\201C";
    font-family: Georgia, serif;
    font-size: 48px;
    left: 15px;
    line-height: 1;
    position: absolute;
    top: 10px;
}

.article-body ol,
.article-body ul {
    list-style-position: outside;
    margin-bottom: 20px;
    padding-left: 2em;
}

.article-body li {
    line-height: 1.46;
    margin-bottom: .5em;
}

.article-body img {
    height: auto;
    max-width: 100%;
    vertical-align: top;
}

.article-body .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.article-body .aligncenter img {
    margin: 0 auto;
}

.article-body .alignleft {
    float: left;
    margin-bottom: 10px;
    margin-right: 10px;
}

.article-body .alignright {
    float: right;
    margin-bottom: 10px;
    margin-left: 10px;
}

.article-body table {
    border-collapse: collapse;
    margin-bottom: 20px;
    width: 100%;
}

.article-body table td,
.article-body table th {
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: .5em;
}

.article-body table th {
    background-color: rgba(230, 0, 18, 0.05);
    font-weight: 600;
}

/* 修改：相关文章栏目 - 将game改为arc */

.related-arcs-header {
    margin-bottom: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(230, 0, 18, 0.15);
}

.related-arcs-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e60012;
    display: flex;
    align-items: center;
}

.related-arcs-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-arc-item {
    background-color: white;
    padding: 20px 10px 20px 0px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #e9ecef;
}

/* 修改：图片区域设置为180*120比例 */
.related-arc-image {
    flex-shrink: 0;
    width: 180px; /* 固定宽度180px */
    height: 120px; /* 固定高度120px */
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.related-arc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例填充 */
}

.related-arc-content {
    flex: 1;
    min-width: 0;
}

.related-arc-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.related-arc-title a {
    color: #333;
    text-decoration: none;
}

.related-arc-title a:hover {
    color: #e60012;
}

.related-arc-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar {
    width: 300px;
    position: relative;
}

.sidebar-content {
    position: sticky;
    top: 20px;
}

.sidebar-section {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    color: #333;
}

.sidebar-section h3 {
    color: #e60012;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(230, 0, 18, 0.2);
    padding-bottom: 10px;
}

.image-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.image-item img {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.image-item-content {
    flex: 1;
    min-width: 0;
}

.image-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    max-height: 2.8em;
}

.image-item-title a {
    color: #333;
    text-decoration: none;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #e60012;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #8b0000;
    transform: translateY(-3px);
}

footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links {
    margin-top: 15px;
    font-size: 14px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 8px;
    padding: 5px 0;
}

.footer-links a:hover {
    color: #ffcc00;
    text-decoration: underline;
}

/* 修改：侧边栏文章推荐板块 - 将game改为arc */
.arc-recommend-section {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    color: #333;
}

.arc-recommend-section h3 {
    color: #e60012;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(230, 0, 18, 0.2);
    padding-bottom: 10px;
}

.arc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.arc-item {
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(230, 0, 18, 0.1);
}

.arc-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.arc-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.arc-titles {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #333;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.8em;
}

.arc-titles a {
    color: #333;
    text-decoration: none;
}

.arc-meta {
    font-size: 0.75rem;
    color: #666;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.arc-rating {
    color: #e60012;
    font-weight: bold;
}

.arc-price {
    background-color: #e60012;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* ========== 以下是新增的快讯版块CSS样式 ========== */

/* 快讯栏目样式 */
.flash-news-section {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333;
    overflow: visible;
}

.flash-news-section h3 {
    color: #e60012;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(230, 0, 18, 0.2);
    padding-bottom: 10px;
}

.flash-news-section h3::before {
    content: "🔥";
    margin-right: 8px;
    font-size: 1.2em;
}

.flash-news-list {
    list-style: none;
    overflow: visible;
}

.flash-news-item {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 8px;
    background-color: rgba(230, 0, 18, 0.05);
    border: 1px solid rgba(230, 0, 18, 0.1);
    position: relative;
    cursor: pointer;
    overflow: visible;
}

.flash-news-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.flash-news-content {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.8);
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: all 0.3s;
}

.flash-news-content.expanded {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
}

.flash-news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.5);
}

.flash-news-time {
    display: flex;
    align-items: center;
}

.flash-news-time::before {
    content: "🕒";
    margin-right: 4px;
}

.flash-news-expand {
    color: #e60012;
    font-size: 0.7rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s;
    padding: 5px 8px;
}

.flash-news-expand:hover {
    color: #8b0000;
}

/* 侧边栏通用样式（确保一致性） */
.sidebar-section, .flash-news-section, .subscribe-section, .game-recommend-section {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333;
    overflow: visible;
}

.sidebar-section h3, .flash-news-section h3, .subscribe-section h3, .game-recommend-section h3 {
    color: #e60012;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(230, 0, 18, 0.2);
    padding-bottom: 10px;
}




/* 游戏网格布局 */
.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* 游戏项目卡片 */
.game-item {
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(230, 0, 18, 0.1);
}

.game-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border-color: #e60012;
}

/* 游戏图片 */
.game-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    aspect-ratio: 1/1;
    display: block;
}

/* 游戏信息区域 */
.game-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 游戏标题 */
.game-titles {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #333;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.8em;
}

.game-titles a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.game-titles a:hover {
    color: #e60012;
}



/* ========== 响应式样式 ========== */

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 10px;
    }
    
    
    .navbar {
    margin-bottom: 10px;
}

    
    .main-content {
        flex-direction: column;
                margin-top: 0px;
    }
    
    .sidebar ,.breadcrumb{
        display: none;
    }
    
    .nav-container {
        flex-wrap: wrap;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-menu.active {
        max-height: 300px;
    }
    
    .nav-item {
        margin: 8px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        padding: 12px 15px;
        display: block;
        width: 100%;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu-btn {
        display: block;
        min-width: 44px;
        min-height: 44px;
    }
    
    .article-title {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }
    
    .article-container{
        padding:20px
    }
    
    /* 移动端调整相关文章项目 */
    .related-arc-item {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }
    
    /* 移动端调整图片为180*120比例 */
    .related-arc-image {
        width: 100%;
        height: auto;
        aspect-ratio: 180/120; /* 保持3:2比例 */
    }
    
    .related-arc-content {
        width: 100%;
    }
    
    .related-arc-title {
        font-size: 1.2rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .arc-image {
        aspect-ratio: 1/1;
    }
    
    /* 移动端快讯响应式 */
    .sidebar-content {
        position: static;
    }
}

@media (max-width: 480px) {
    .nav-logo span {
        font-size: 1.3rem;
    }
    
    .article-title {
        font-size: 1.6rem;
        line-height: 1.25;
    }
}


	/* 悬浮按钮样式 - 固定在视口中间 */
			.floating-game-btn {
				position: fixed;
				top: 50%;
				transform: translateY(-50%);
				z-index: 1000;
				display: flex;
				flex-direction: column;
				align-items: center;
				transition: all 0.3s ease;
			}
			
			/* 在桌面端大屏幕显示 */
			@media (min-width: 1200px) {
				.floating-game-btn {
					left: calc((100% - 1200px) / 2 - 80px);
				}
			}
			
			@media (min-width: 992px) and (max-width: 1199px) {
				.floating-game-btn {
					left: calc((100% - 960px) / 2 - 70px);
				}
			}
			
			.floating-game-btn .btn-main {
				background-color: #ff3b30;
				color: white;
				border: none;
				padding: 12px 20px;
				border-radius: 25px;
				cursor: pointer;
				font-weight: bold;
				font-size: 16px;
				box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
				transition: all 0.3s ease;
				writing-mode: vertical-rl;
				text-orientation: mixed;
				letter-spacing: 2px;
				white-space: nowrap;
			}
			
			.floating-game-btn .btn-main:hover {
				background-color: #ff1f1f;
				box-shadow: 0 6px 16px rgba(255, 59, 48, 0.4);
				transform: translateY(-2px);
			}
			
			.floating-game-btn .qr-container {
				position: absolute;
				left: 100%;
				top: 50%;
				transform: translateY(-50%) scale(0.9);
				opacity: 0;
				visibility: hidden;
				transition: all 0.3s ease;
				margin-left: 15px;
				background: white;
				padding: 15px;
				border-radius: 10px;
				box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
				width: 200px;
				text-align: center;
				pointer-events: none;
				z-index: 1000;
			}
			
			.floating-game-btn:hover .qr-container {
				transform: translateY(-50%) scale(1);
				opacity: 1;
				visibility: visible;
				pointer-events: auto;
			}
			
			.floating-game-btn .qr-img {
				width: 170px;
				height: 170px;
				border-radius: 5px;
				margin-bottom: 10px;
			}
			
			.floating-game-btn .qr-title {
				font-weight: bold;
				color: #333;
				margin: 0;
				font-size: 16px;
			}
			
			.floating-game-btn .qr-desc {
				color: #666;
				font-size: 12px;
				margin: 5px 0 0 0;
				line-height: 1.4;
			}
			
			/* 响应式调整 */
			@media (max-width: 1200px) {
				.floating-game-btn {
					left: 10px;
				}
				
				.floating-game-btn .btn-main {
					padding: 10px 16px;
					font-size: 14px;
				}
				
				.floating-game-btn .qr-container {
					width: 180px;
					padding: 12px;
				}
				
				.floating-game-btn .qr-img {
					width: 150px;
					height: 150px;
				}
			}
			
			@media (max-width: 992px) {
				.floating-game-btn {
					display: none; /* 在较小屏幕隐藏悬浮按钮 */
				}
			}