@charset "UTF-8";
/* ===== 全局重置 & 公共类 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    overflow-y: scroll;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
}

a {
    -webkit-tap-highlight-color: transparent;
}

/* ===== 容器（最大宽度650px，居中） ===== */
.container {
    max-width: 650px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
}

/* ===== 板块间距统一 ===== */
.section-spacing {
    padding: 15px;
}
.section-spacing-top {
    margin-top: 15px;
}

/* ===== 头部视频区域 ===== */
.header {
    width: 100%;
}

.banner {
    width: 100%;
    background-color: #000;
    position: relative;
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
}

.video-player-container {
    width: 100%;
    background-color: #000;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    overflow: hidden;
}

.banner-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    background-color: #000;
    object-fit: contain;
    z-index: 1;
}

.video-poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10;
    transition: opacity 0.3s ease;
}

.video-poster-overlay.video-ready {
    opacity: 0;
    pointer-events: none;
}

.video-loading {
    background-color: #000;
}

.poster-text {
    color: #fff;
    font-size: 14px;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.5);
}



/* ===== 游戏信息卡片 ===== */
.game-info {
    padding: 15px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.game-info.is-fixed {
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 650px;
    left: 50%;
    transform: translateX(-50%);
}

.game-info.is-sticky-active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.game-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.game-icon {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.game-details {
    flex: 1;
    min-width: 0;
}

.game-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-tags {
    font-size: 13px;
    color: #999;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-desc {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-download {
    background-color: #4A90E2;
    color: #fff;
    border: none;
    padding: 12px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    flex-shrink: 0;
}

/* ===== 促销横幅 ===== */
.promo-banner {
    padding: 15px 15px 0;
}

.promo-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    object-fit: cover;
}

/* ===== 面包屑导航 ===== */
.breadcrumb {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: #fafafa;
    font-size: 13px;
}

.breadcrumb-home {
    color: #4A90E2;
    text-decoration: none;
}

.breadcrumb-home:hover {
    text-decoration: none;
}

.breadcrumb-item {
    color: #666;
    text-decoration: none;
}

.breadcrumb-item:hover {
    color: #4A90E2;
    text-decoration: none;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #ccc;
}

.breadcrumb-current {
    color: #999;
}

/* ===== Tab导航 ===== */
.tab-nav {
    margin: 15px 0;
    padding: 0 15px;
    border-bottom: 1px solid #eee;
}

.tab-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    position: relative;
}

.tab a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.tab.active {
    color: #4A90E2;
    font-weight: bold;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: #4A90E2;
}

/* Tab内容区域 */
.tab-content {
    position: relative;
}

.tab-panel {
    display: none;
}

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

/* ===== 游戏截图画廊 ===== */
.gallery {
    display: flex;
    gap: 8px;
    padding: 0 15px;
    margin-bottom: 15px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.gallery::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    flex: 0 0 auto;
    width: 33.333%;
    min-width: 100px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

/* ===== 游戏介绍 ===== */
.game-intro {
    padding: 0 15px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    position: relative;
    padding-left: 10px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background-color: #4A90E2;
    border-radius: 2px;
}

.intro-text {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    text-align: justify;
}

/* ===== 下载按钮区 ===== */
.download-section {
    padding: 20px 15px;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
}

/* ===== 页脚 ===== */
.footer {
    background-color: #f9f9f9;
    padding: 20px 15px 0;
    margin-top: 10px;
    margin-bottom: 0;
}

.security-section {
    text-align: center;
    margin-bottom: 10px;
}

.security-badge {
    width: 100%;
    max-width: 130px;
    height: auto;
    margin-top: 5px;
    border-radius: 6px;
}

.friend-link-section {
    /* padding: 0 15px; */
    margin-bottom: 15px;
}

.friend-link-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    position: relative;
    padding-left: 10px;
}

.friend-link-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background-color: #4A90E2;
    border-radius: 2px;
}

.friend-link-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
}

.friend-link-item {
    font-size: 12px;
    color: #666;
    text-decoration: none;
    padding: 4px 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.friend-link-item:hover {
    background-color: #4A90E2;
    color: #fff;
}

.info-section {
    text-align: center;
    padding: 0 15px;
    margin-bottom: 15px;
}

.info-item {
    font-size: 13px;
    color: #999;
    line-height: 1.8;
    margin: 4px 0;
}

.copyright {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #f0f0f0;
}

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

.copyright a {
    text-decoration: none;
    color: inherit;
}

/* ===== 评论区样式 ===== */
.comment-section {
    padding: 15px;
    background-color: #fff;
    border-top: 1px solid #f0f0f0;
    margin-top: 15px;
}

.comment-list {
    margin-bottom: 20px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.comment-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-avatar .icon-avatar {
    width: 100%;
    height: 100%;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-user {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

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

.comment-text {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /*! autoprefixer: ignore next */
    -webkit-line-clamp: 2;
}

.comment-empty {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 15px;
}

.comment-empty p {
    color: #999;
    font-size: 14px;
    margin: 0;
}

.comment-form {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 15px;
}

.comment-form h3 {
    font-size: 16px;
    color: #333;
    margin: 0 0 12px 0;
}

.comment-input {
    width: 100%;
    height: 100px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    resize: none;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 15px;
}

.btn-submit {
    background-color: #2563eb;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    display: block;
    margin-left: auto;
}

/* ===== 礼包板块样式 ===== */
.gift-list {
    margin-bottom: 20px;
}

.gift-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.gift-info {
    flex: 1;
    padding-right: 15px;
    overflow: hidden;
}

.gift-info h3 {
    font-size: 14px;
    color: #333;
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gift-title-link {
    text-decoration: none;
    color: inherit;
}

.gift-content {
    font-size: 13px;
    color: #666;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gift-time {
    font-size: 12px;
    color: #999;
    margin: 0;
}

.btn-redeem {
    background-color: #f59e0b;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
}

.gift-bottom {
    text-align: center;
    padding: 10px 0;
}

.btn-download-more {
    background-color: transparent;
    color: #f59e0b;
    border: 2px solid #f59e0b;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

/* ===== 福利板块样式 ===== */
.benefits-list {
    margin-top: 10px;
}

.benefit-item {
    display: flex;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.benefit-content {
    flex: 1;
    padding-right: 12px;
    overflow: hidden;
}

.benefit-content h3 {
    font-size: 14px;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.benefit-content h3 a {
    color: inherit;
    text-decoration: none;
}

.benefit-content p {
    font-size: 12px;
    color: #999;
    margin: 0 0 8px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /*! autoprefixer: ignore next */
    -webkit-line-clamp: 2;
}

.benefit-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.benefit-meta span {
    font-size: 11px;
    color: #bbb;
}

.benefit-link {
    font-size: 12px;
    color: #4A90E2;
    text-decoration: none;
}

.benefit-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    align-self: center;
    background-color: #f5f5f5;
}

/* ===== 攻略板块样式 ===== */
.guide-list {
    margin-top: 10px;
}

.guide-item {
    display: flex;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.guide-content {
    flex: 1;
    padding-right: 12px;
    overflow: hidden;
}

.guide-content h3 {
    font-size: 14px;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.guide-content h3 a {
    color: inherit;
    text-decoration: none;
}

.guide-content p {
    font-size: 12px;
    color: #999;
    margin: 0 0 8px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    /*! autoprefixer: ignore next */
    -webkit-line-clamp: 2;
}

.guide-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.guide-meta span {
    font-size: 11px;
    color: #bbb;
}

.guide-link {
    font-size: 12px;
    color: #4A90E2;
    text-decoration: none;
}

.guide-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    align-self: center;
    background-color: #f5f5f5;
}

/* ===== 响应式适配 ===== */
@media (max-width: 480px) {
    .game-info {
        padding: 12px;
    }

    .game-icon {
        width: 60px;
        height: 60px;
    }

    .game-title {
        font-size: 18px;
    }

    .btn-download {
        padding: 10px 28px;
        font-size: 14px;
    }

    .promo-banner {
        padding: 12px 12px 0;
    }

    .tab-nav {
        margin: 12px 0;
    }

    .tab {
        padding: 10px 0;
        font-size: 15px;
    }

    .gallery {
        padding: 0 12px;
        margin-bottom: 12px;
        gap: 6px;
    }

    .gallery-item {
        min-width: 120px;
        width: 60%;
    }

    .game-intro {
        padding: 0 12px;
        margin-bottom: 12px;
    }

    .intro-text {
        font-size: 14px;
    }

    .download-section {
        padding: 15px 12px;
    }

    .btn-primary {
        padding: 12px 30px;
        font-size: 14px;
    }

    .footer {
        padding: 15px 12px;
    }
}

/* ===== 图片查看器 ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background-color: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: 15px;
}

.lightbox-next {
    right: 15px;
}

.lightbox-img {
    max-width: 90%;
    max-height: 70vh;
    object-fit: contain;
    z-index: 1000;
    border-radius: 8px;
}

.lightbox-caption {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    text-align: center;
    z-index: 1001;
    padding: 0 20px;
}

/* 画廊图片可点击 */
.gallery-img {
    cursor: pointer;
}

/* 移动端优化 */
@media (max-width: 480px) {
    .lightbox-prev {
        left: 10px;
        width: 44px;
        height: 44px;
    }

    .lightbox-next {
        right: 10px;
        width: 44px;
        height: 44px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}

/* ===== 图标样式 ===== */
.icon {
    display: inline-block;
    font-style: normal;
    vertical-align: middle;
}

.icon-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #4A90E2;
    position: relative;
}

.icon-avatar::before {
    content: '';
    position: absolute;
    top: 28%;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 38%;
    border-radius: 50%;
    background-color: #fff;
}

.icon-avatar::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 35%;
    border-radius: 50% 50% 45% 45%;
    background-color: #fff;
}

.icon-avatar.blue {
    background-color: #4A90E2;
}

.icon-avatar.green {
    background-color: #10B981;
}

.icon-avatar.purple {
    background-color: #8B5CF6;
}

.icon-avatar.orange {
    background-color: #F59E0B;
}

.icon-avatar.pink {
    background-color: #EC4899;
}

.icon-avatar.red {
    background-color: #EF4444;
}

.icon-avatar.cyan {
    background-color: #06B6D4;
}

/* ===== 评论审核弹窗 ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px 20px;
    max-width: 320px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    background-color: #4A90E2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}

.modal-icon::before {
    content: '✓';
    font-weight: bold;
}

.modal-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.modal-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.modal-btn {
    background-color: #4A90E2;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
}

/* ===== 文章内容页样式 ===== */
.article-content {
    padding: 20px;
    background-color: #fff;
}

.article-header {
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 25px;
}

.article-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.5;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    text-align: center;
}

.article-time {
    font-size: 13px;
    color: #999;
    display: block;
    text-align: right;
}

.meta-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.meta-item a:hover {
    color: #4A90E2;
}

.article-body {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    min-height: 300px;
}

.article-body p {
    margin-bottom: 15px;
    text-align: justify;
    text-indent: 2em;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.article-body h2 {
    font-size: 19px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 30px 0 15px;
    padding-left: 12px;
    border-left: 4px solid #4A90E2;
    line-height: 1.5;
}

.article-body h3 {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin: 25px 0 12px;
    padding-left: 10px;
    border-left: 5px solid #09bdf3;
}

.article-body ul,
.article-body ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.article-body li {
    margin-bottom: 10px;
    color: #555;
}

.article-body blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    background-color: #f8f9fc;
    border-left: 4px solid #4A90E2;
    border-radius: 0 6px 6px 0;
    color: #666;
    font-style: italic;
}

.article-body strong {
    color: #4A90E2;
    font-weight: 600;
}

.article-body a {
    color: #4A90E2;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.article-body a:hover {
    border-bottom-color: #4A90E2;
}

.article-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.tags-label {
    font-size: 14px;
    color: #999;
    font-weight: 500;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    color: #4A90E2;
    text-decoration: none;
    padding: 5px 14px;
    background-color: #f0f5ff;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid #e6f0ff;
}

.tag-item:hover {
    background-color: #4A90E2;
    color: #fff;
    border-color: #4A90E2;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.article-nav {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    background-color: #fafafa;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 50%;
}

.nav-item.prev {
    padding-left: 20px;
    border-left: 3px solid #4A90E2;
}

.nav-item.next {
    padding-left: 20px;
    border-left: 3px solid #666;
    justify-content: flex-end;
}

@media (max-width: 650px) {
    .article-nav {
        flex-direction: column;
        gap: 15px;
    }

    .nav-item {
        max-width: 100%;
    }

    .nav-item.next {
        justify-content: flex-start;
    }
}

.nav-label {
    font-size: 12px;
    color: #999;
    font-weight: 500;
    flex-shrink: 0;
}

.nav-item a {
    font-size: 14px;
    color: #333;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    max-width: calc(100% - 60px);
    transition: color 0.3s ease;
}

.nav-item a:hover {
    color: #4A90E2;
}

.icon-time::before {
    content: '📅';
    font-size: 14px;
}

.icon-author::before {
    content: '👤';
    font-size: 14px;
}

.icon-cat::before {
    content: '📁';
    font-size: 14px;
}

/* ===== 栏目列表页 ===== */
.article-list {
    padding: 0 15px;
}

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

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

.list-thumb {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #f5f5f5;
}

.list-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.list-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}

.list-title:hover {
    color: #4A90E2;
}

.list-desc {
    font-size: 13px;
    color: #999;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.list-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    font-size: 12px;
    color: #bbb;
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 25px 15px;
    flex-wrap: wrap;
}

.page-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 14px;
    color: #666;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-item:hover {
    color: #4A90E2;
    border-color: #4A90E2;
}

.page-item.active {
    color: #fff;
    background-color: #4A90E2;
    border-color: #4A90E2;
}

.page-item.disabled {
    color: #ccc;
    pointer-events: none;
    cursor: not-allowed;
}

/* ===== 分页区域（系统 {$pages} 输出） ===== */
.xrpagination {
    width: 100%;
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.xrpagination ul.pagination {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.xrpagination ul.pagination li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.xrpagination ul.pagination li > a,
.xrpagination ul.pagination li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 12px;
    font-size: 14px;
    line-height: 1;
    border-radius: 4px;
    border: 1px solid #dcdfe6;
    background: #fff;
    color: #606266;
    box-sizing: border-box;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.xrpagination ul.pagination li > a:not([href]) {
    cursor: default;
    background: #f5f7fa;
    border-color: #ebeef5;
    color: #909399;
}

.xrpagination ul.pagination li > a[href]:hover {
    color: #4A90E2;
    border-color: #a0cfff;
}

.xrpagination ul.pagination li.active > a,
.xrpagination ul.pagination li.active > span {
    background: #4A90E2;
    border-color: #4A90E2;
    color: #fff;
    cursor: default;
}

.xrpagination ul.pagination li.active > a:hover {
    color: #fff;
    border-color: #4A90E2;
    background: #4A90E2;
}

.xrpagination ul.pagination li.disabled > a,
.xrpagination ul.pagination li.disabled > span {
    cursor: not-allowed;
    opacity: 0.55;
    background: #f5f7fa;
}

/* 兼容：分页直接挂在 .xrpagination 下（无 ul） */
.xrpagination > a,
.xrpagination > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 12px;
    font-size: 14px;
    border-radius: 4px;
    border: 1px solid #dcdfe6;
    background: #fff;
    color: #606266;
    box-sizing: border-box;
    text-decoration: none;
}

.xrpagination > a:hover {
    color: #4A90E2;
    border-color: #a0cfff;
}

.xrpagination .active > span,
.xrpagination .active > a,
.xrpagination li.active > a,
.xrpagination span.current,
.xrpagination .current {
    background: #4A90E2;
    border-color: #4A90E2;
    color: #fff;
}

/* 列表页响应式 */
@media (max-width: 480px) {
    .list-thumb {
        width: 100px;
        height: 68px;
    }

    .list-title {
        font-size: 15px;
    }

    .list-desc {
        font-size: 12px;
    }
}