/* 详情页整体样式 - 移除顶部间距 */
html {
    margin: 0 !important;
    padding: 0 !important;
}

body#article-detail {
    margin: 0 !important;
    padding: 0 !important;
}

#article-detail .logo {
    margin-top: 0 !important;
    border-top: 0 !important;
}

/* Logo容器样式 */
.logo-container {
    display: flex;
    align-items: center;
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
}

.logo_a {
    width: 60px !important;
    height: 60px !important;
    background: no-repeat center center !important;
    background-size: contain !important;
    display: block;
    flex-shrink: 0;
    border-radius: 8px;
}

.logo-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e89e0;
    margin-left: 15px;
    line-height: 1.2;
    white-space: nowrap;
}

/* 游戏截图展示区 */
.game-screenshots {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 2px solid #f2f2f2;
    border-bottom: 2px solid #f2f2f2;
}

.screenshots-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-image::before {
    content: "🖼️";
    font-size: 22px;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.screenshot-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
    aspect-ratio: 16/9;
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    cursor: pointer;
}

.screenshot-item:hover img {
    transform: scale(1.05);
}

/* 返回按钮样式 - 默认隐藏，仅移动端显示 */
.back-btn {
    display: none;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    color: #1e89e0;
    text-decoration: none;
    transition: all 0.2s;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.back-btn:active {
    background: #f8f9fa;
    transform: translateY(-50%) scale(0.92);
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.back-btn svg {
    display: block;
    margin: auto;
}

/* 文章详情页样式 */
.article-detail-wrapper {
    width: 920px;
    margin: 20px auto;
    display: flex;
    gap: 20px;
}

.article-detail {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
}

.article-header {
    border-bottom: 2px solid #f2f2f2;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.article-title {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.4;
    color: #333;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #999;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.icon-time::before,
.icon-view::before {
    content: "●";
    color: #1e89e0;
}

.article-cover {
    margin-bottom: 30px;
    text-align: center;
}

.article-cover img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

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

.article-content p {
    margin-bottom: 15px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin: 25px 0 15px 0;
    font-weight: bold;
    color: #333;
}

.article-content h2 {
    font-size: 24px;
}

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

.article-content h4 {
    font-size: 18px;
}

.article-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f2f2f2;
}

.download-box {
    background: linear-gradient(135deg, #1e89e0 0%, #1468ac 100%);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    color: #fff;
}

.download-box h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

.btn-download {
    display: inline-block;
    padding: 12px 40px;
    background: #fff;
    color: #1e89e0;
    font-size: 16px;
    font-weight: bold;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-download:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 侧边栏 */
.article-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.sidebar-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1e89e0;
    color: #333;
}

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

.related-list li {
    margin-bottom: 10px;
}

.related-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.3s;
    color: #333;
    text-decoration: none;
}

.related-list a:hover {
    background: #f5f5f5;
}

.related-list .dot {
    width: 6px;
    height: 6px;
    background: #1e89e0;
    border-radius: 50%;
    flex-shrink: 0;
}

.related-list .text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.download-sidebar .game-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.download-sidebar .game-info img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
}

.download-sidebar .game-text {
    flex: 1;
}

.download-sidebar .game-text strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.download-sidebar .game-text span {
    font-size: 12px;
    color: #999;
}

.btn-download-sidebar {
    display: block;
    width: 100%;
    padding: 12px;
    background: #1e89e0;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-download-sidebar:hover {
    background: #1468ac;
    transform: translateY(-2px);
}

/* 移动端响应式 */
@media screen and (max-width: 768px) {
    /* 移除顶部空隙 */
    html, body {
        margin: 0 !important;
        padding: 0 !important;
    }

    body#article-detail {
        padding: 0 !important;
        margin: 0 !important;
        background: #fff !important;
    }

    #article-detail .logo {
        margin: 0 !important;
        padding: 0 !important;
        border-top: 0 !important;
    }

    .back-btn {
        display: flex !important;
        left: 15px !important;
        width: 40px !important;
        height: 40px !important;
        top: 20px !important;
        transform: translateY(-50%) !important;
    }

    .back-btn:active {
        transform: translateY(-50%) scale(0.92) !important;
    }

    /* 隐藏移动端详情页的 logo */
    .logo_a {
        display: none !important;
    }

    /* 隐藏移动端logo标题 */
    .logo-title {
        display: none !important;
    }

    .logo-container {
        display: none !important;
    }

    /* 导航菜单紧凑布局 */
    #article-detail .logo .nav {
        margin-top: 56px !important;
    }

    /* 隐藏"首页"导航项，避免与返回按钮重叠 */
    #article-detail .logo .nav a:first-child {
        display: none !important;
    }

    .article-detail-wrapper {
        width: 100% !important;
        flex-direction: column !important;
        margin: 10px 0 !important;
        gap: 0 !important;
    }

    .article-detail {
        width: 100% !important;
        padding: 15px !important;
        border-radius: 0 !important;
    }

    .article-title {
        font-size: 20px !important;
    }

    .article-meta {
        font-size: 12px !important;
        gap: 10px !important;
    }

    .article-content {
        font-size: 15px !important;
        line-height: 1.7 !important;
    }

    .article-content h2 {
        font-size: 20px !important;
    }

    /* 截图展示区移动端样式 */
    .game-screenshots {
        margin: 25px 0 !important;
        padding: 20px 0 !important;
    }

    .screenshots-title {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }

    .screenshots-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .screenshot-item {
        border-radius: 6px !important;
    }

    .article-content h3 {
        font-size: 18px !important;
    }

    .article-content h4 {
        font-size: 16px !important;
    }

    .download-box {
        padding: 20px 15px !important;
    }

    .download-box h3 {
        font-size: 18px !important;
    }

    .article-sidebar {
        width: 100% !important;
    }

    .sidebar-box {
        border-radius: 0 !important;
        margin-bottom: 10px !important;
    }
}

@media screen and (max-width: 480px) {
    /* 移除顶部空隙 */
    html, body {
        margin: 0 !important;
        padding: 0 !important;
    }

    body#article-detail {
        padding: 0 !important;
        margin: 0 !important;
        background: #fff !important;
    }

    #article-detail .logo {
        margin: 0 !important;
        padding: 0 !important;
        border-top: 0 !important;
    }

    /* 隐藏"首页"导航项，避免与返回按钮重叠 */
    #article-detail .logo .nav a:first-child {
        display: none !important;
    }

    .article-detail {
        padding: 12px !important;
    }

    .article-title {
        font-size: 18px !important;
    }

    .article-content {
        font-size: 14px !important;
    }

    .download-box h3 {
        font-size: 16px !important;
    }

    .btn-download {
        padding: 10px 30px !important;
        font-size: 14px !important;
    }

    .back-btn {
        left: 12px !important;
        top: 18px !important;
    }

    /* 截图展示区小屏幕样式 */
    .game-screenshots {
        margin: 20px 0 !important;
        padding: 15px 0 !important;
    }

    .screenshots-title {
        font-size: 16px !important;
        padding: 0 12px !important;
    }

    .screenshots-grid {
        padding: 0 12px !important;
    }
}
