/* 文章页面基础样式 */
.article-page {
    min-height: 100vh;
    background: var(--bg-color);
    padding-bottom: 60px;
}

/* 文章头部 */
.article-page .article-header {
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), var(--bg-color)),
                url('/static/index/img/news-banner.png') center/cover;
    padding: 60px 0;
    margin-bottom: 40px;
    position: relative;
}

.article-page .article-header .article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.article-page .article-header .article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-color-light);
    font-size: 14px;
}

.article-page .article-header .article-meta .article-category {
    color: var(--primary-color);
    background: rgba(255, 107, 0, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
}

.article-page .article-header .article-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.4;
}

.article-page .article-header .article-desc {
    font-size: 16px;
    color: var(--text-color-secondary);
    max-width: 800px;
    line-height: 1.6;
}

/* 文章内容布局 */
.article-page .article-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

/* 文章主体 */
.article-page .article-main {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 文章封面 */
.article-page .article-cover {
    margin: -30px -30px 30px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.article-page .article-cover img {
    width: 100%;
    height: auto;
    display: block;
}

/* 文章内容 */
.article-page .article-body {
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.8;
}

.article-page .article-body h1,
.article-page .article-body h2,
.article-page .article-body h3,
.article-page .article-body h4,
.article-page .article-body h5,
.article-page .article-body h6 {
    margin: 30px 0 15px;
    color: #fff;
    font-weight: 600;
    line-height: 1.4;
}

.article-page .article-body h1 { font-size: 28px; }
.article-page .article-body h2 { font-size: 24px; }
.article-page .article-body h3 { font-size: 20px; }
.article-page .article-body h4 { font-size: 18px; }
.article-page .article-body h5 { font-size: 16px; }
.article-page .article-body h6 { font-size: 14px; }

.article-page .article-body p {
    margin-bottom: 20px;
}

.article-page .article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-page .article-body a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-page .article-body a:hover {
    text-decoration: underline;
}

.article-page .article-body blockquote {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
}

.article-page .article-body code {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
}

.article-page .article-body pre {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-page .article-body pre code {
    background: none;
    padding: 0;
}

/* 文章标签 */
.article-page .article-tags {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.article-page .article-tags i {
    color: var(--text-color-light);
    font-size: 16px;
}

.article-page .article-tags .tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-page .article-tags .tag-item {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    color: var(--text-color-light);
    font-size: 13px;
    transition: all 0.3s ease;
}

.article-page .article-tags .tag-item:hover {
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary-color);
}

/* 文章分享 */
.article-page .article-share {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    text-align: center;
}

.article-page .article-share .share-title {
    color: var(--text-color);
    font-size: 16px;
    margin-bottom: 15px;
}

.article-page .article-share .share-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.article-page .article-share .share-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-color-light);
    transition: all 0.3s ease;
}

.article-page .article-share .share-item i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.article-page .article-share .share-item span {
    font-size: 13px;
}

.article-page .article-share .share-item:hover {
    color: var(--primary-color);
}

.article-page .article-share .share-item:hover i {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* 文章导航 */
.article-page .article-nav {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.article-page .article-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.article-page .article-nav .nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.article-page .article-nav .nav-item.prev {
    text-align: left;
}

.article-page .article-nav .nav-item.next {
    text-align: right;
    flex-direction: row-reverse;
}

.article-page .article-nav .nav-content {
    flex: 1;
    min-width: 0;
}

.article-page .article-nav .nav-label {
    display: block;
    color: var(--text-color-light);
    font-size: 13px;
    margin-bottom: 5px;
}

.article-page .article-nav .nav-title {
    color: var(--text-color);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-page .article-nav i {
    font-size: 20px;
    color: var(--text-color-light);
}

/* 右侧边栏 */
.article-page .article-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    height: fit-content;
}

.article-page .article-sidebar .sidebar-block {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    margin-bottom: 20px;
}

.article-page .article-sidebar .block-header {
    margin-bottom: 20px;
}

.article-page .article-sidebar .block-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
}

/* 相关推荐 */
.article-page .related-articles .related-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.article-page .related-articles .related-item:first-child {
    padding-top: 0;
}

.article-page .related-articles .related-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.article-page .related-articles .related-img {
    width: 100px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.article-page .related-articles .related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.article-page .related-articles .related-item:hover .related-img img {
    transform: scale(1.05);
}

.article-page .related-articles .related-info {
    flex: 1;
    min-width: 0;
}

.article-page .related-articles .related-info h4 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.article-page .related-articles .related-info h4 a {
    color: var(--text-color);
    transition: all 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-page .related-articles .related-info h4 a:hover {
    color: var(--primary-color);
}

.article-page .related-articles .related-meta {
    display: flex;
    gap: 15px;
}

.article-page .related-articles .related-meta span {
    color: var(--text-color-light);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 热门文章 */
.article-page .hot-articles .hot-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.article-page .hot-articles .hot-item:first-child {
    padding-top: 0;
}

.article-page .hot-articles .hot-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.article-page .hot-articles .hot-rank {
    width: 24px;
    height: 24px;
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
}

.article-page .hot-articles .hot-info {
    flex: 1;
    min-width: 0;
}

.article-page .hot-articles .hot-info h4 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.article-page .hot-articles .hot-info h4 a {
    color: var(--text-color);
    transition: all 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-page .hot-articles .hot-info h4 a:hover {
    color: var(--primary-color);
}

.article-page .hot-articles .hot-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.article-page .hot-articles .hot-views {
    color: var(--text-color-light);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 响应式样式 */
@media screen and (max-width: 1200px) {
    .article-page .article-content {
        gap: 30px;
    }
}

@media screen and (max-width: 992px) {
    .article-page .article-content {
        grid-template-columns: 1fr;
    }

    .article-page .article-sidebar {
        position: static;
    }
}

@media screen and (max-width: 768px) {
    .article-page {
        padding-bottom: 40px;
    }

    .article-page .article-header {
        padding: 40px 0;
        margin-bottom: 20px;
    }

    .article-page .article-header .article-title {
        font-size: 24px;
    }

    .article-page .article-header .article-desc {
        font-size: 14px;
    }

    .article-page .article-main {
        padding: 20px;
    }

    .article-page .article-cover {
        margin: -20px -20px 20px;
    }

    .article-page .article-body {
        font-size: 14px;
    }

    .article-page .article-nav {
        grid-template-columns: 1fr;
    }
}

/* 阅读进度条 */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), #ff4d4d);
    z-index: 1000;
    transition: width 0.1s ease;
}

/* 作者信息 */
.article-page .article-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.article-page .article-author .author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    padding: 2px;
}

.article-page .article-author .author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.article-page .article-author .author-info {
    flex: 1;
}

.article-page .article-author .author-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.article-page .article-author .author-bio {
    font-size: 14px;
    color: var(--text-color-light);
}

/* 文章目录 */
.article-page .article-toc {
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.article-page .article-toc .toc-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-page .article-toc .toc-content {
    font-size: 14px;
    line-height: 1.6;
}

.article-page .article-toc .toc-content ul {
    list-style: none;
    padding-left: 15px;
}

.article-page .article-toc .toc-content a {
    color: var(--text-color-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}

.article-page .article-toc .toc-content a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.article-page .article-toc .toc-content .active {
    color: var(--primary-color);
}

/* 文章评分 */
.article-page .article-rating {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    text-align: center;
}

.article-page .article-rating .rating-title {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 15px;
}

.article-page .article-rating .rating-stars {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.article-page .article-rating .rating-stars i {
    font-size: 24px;
    color: var(--text-color-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.article-page .article-rating .rating-stars i:hover,
.article-page .article-rating .rating-stars i.active {
    color: #ffd700;
}

.article-page .article-rating .rating-count {
    font-size: 14px;
    color: var(--text-color-light);
}

.article-page .article-rating .current-rating {
    color: #ffd700;
    font-weight: 600;
}

/* 分享统计 */
.article-page .article-share .share-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.article-page .article-share .share-stats span {
    color: var(--text-color-light);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 作者卡片 */
.article-page .author-card {
    text-align: center;
}

.article-page .author-card .author-header {
    margin-bottom: 20px;
}

.article-page .author-card .author-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    padding: 3px;
}

.article-page .author-card .author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.article-page .author-card .author-name {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.article-page .author-card .author-bio {
    font-size: 14px;
    color: var(--text-color-light);
}

.article-page .author-card .author-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.article-page .author-card .stat-item {
    text-align: center;
}

.article-page .author-card .stat-value {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.article-page .author-card .stat-label {
    font-size: 12px;
    color: var(--text-color-light);
}

/* 推荐游戏 */
.article-page .recommended-games .game-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
}

.article-page .recommended-games .game-cover {
    position: relative;
    height: 160px;
}

.article-page .recommended-games .game-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-page .recommended-games .game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.article-page .recommended-games .game-item:hover .game-overlay {
    opacity: 1;
}

.article-page .recommended-games .play-now {
    padding: 8px 20px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.article-page .recommended-games .play-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.article-page .recommended-games .game-info {
    padding: 15px;
}

.article-page .recommended-games .game-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.article-page .recommended-games .game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-page .recommended-games .game-type {
    font-size: 12px;
    color: var(--text-color-light);
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.article-page .recommended-games .game-rating {
    font-size: 12px;
    color: #ffd700;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

/* 微信分享弹窗 */
.wechat-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.wechat-share-modal.active {
    opacity: 1;
    visibility: visible;
}

.wechat-share-modal .modal-content {
    background: var(--bg-color);
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.wechat-share-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.wechat-share-modal .modal-header h3 {
    font-size: 20px;
    color: #fff;
}

.wechat-share-modal .close-modal {
    background: none;
    border: none;
    color: var(--text-color-light);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

.wechat-share-modal .qrcode-wrapper {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.wechat-share-modal #share-qrcode {
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.wechat-share-modal p {
    text-align: center;
    color: var(--text-color-light);
    font-size: 14px;
}

/* 图片预览 */
.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: zoom-out;
}

.image-overlay img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .article-page .article-author {
        flex-direction: column;
        text-align: center;
    }

    .article-page .article-rating .rating-stars i {
        font-size: 20px;
    }

    .article-page .article-share .share-stats {
        flex-direction: column;
        gap: 10px;
    }

    .wechat-share-modal .modal-content {
        padding: 20px;
    }

    .wechat-share-modal #share-qrcode {
        width: 150px;
        height: 150px;
    }
} 