/**
 * 文章图集 - 前端画廊样式
 * 大图预览 + 底部缩略图轮播（浅色透明风格）
 */

.ripro-gallery {
    margin: 0;
    background: transparent;
    user-select: none;
}

/* ===== 顶部标签栏 ===== */
.ripro-gallery-tabs {
    display: flex;
    align-items: center;
    padding: 0 4px;
    background: transparent;
    border-bottom: 1px solid #e8e8e8;
}

.ripro-gallery-tab {
    padding: 12px 4px;
    font-size: 15px;
    font-weight: 600;
    color: #999;
    cursor: default;
    position: relative;
    transition: color .2s;
}

.ripro-gallery-tab.active {
    color: #333;
}

.ripro-gallery-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: #2d8cf0;
    border-radius: 2px 2px 0 0;
}

/* ===== 大图展示区 ===== */
.ripro-gallery-stage {
    position: relative;
    background: #f5f6f7;
    overflow: hidden;
    border-radius: 6px;
}

.ripro-gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ripro-gallery-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s;
}

.ripro-gallery-slide.active {
    opacity: 1;
    visibility: visible;
}

.ripro-gallery-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
}

/* ===== 左右切换箭头 ===== */
.ripro-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    border: 1px solid rgba(0, 0, 0, .08);
    color: #555;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s, opacity .2s;
    z-index: 5;
    opacity: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.ripro-gallery-stage:hover .ripro-gallery-arrow {
    opacity: 1;
}

.ripro-gallery-arrow:hover {
    background: #2d8cf0;
    color: #fff;
    border-color: #2d8cf0;
}

.ripro-gallery-prev { left: 16px; }
.ripro-gallery-next { right: 16px; }

.ripro-gallery-arrow:disabled {
    opacity: .3 !important;
    cursor: not-allowed;
}

/* ===== 左下角功能按钮 ===== */
.ripro-gallery-actions {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: flex;
    gap: 8px;
    z-index: 5;
}

.ripro-gallery-action {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .85);
    border: 1px solid rgba(0, 0, 0, .08);
    color: #555;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.ripro-gallery-action:hover {
    background: #2d8cf0;
    color: #fff;
    border-color: #2d8cf0;
}

/* ===== 右下角计数器 ===== */
.ripro-gallery-counter {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, .85);
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 20px;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    z-index: 5;
    letter-spacing: .5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.ripro-gallery-counter .ripro-gallery-current {
    color: #2d8cf0;
    font-weight: 700;
}

/* ===== 底部缩略图 ===== */
.ripro-gallery-thumbs-wrap {
    background: transparent;
    padding: 12px 4px 4px;
    overflow: hidden;
}

.ripro-gallery-thumbs-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f0f0f0;
}

.ripro-gallery-thumbs-list::-webkit-scrollbar {
    height: 6px;
}

.ripro-gallery-thumbs-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.ripro-gallery-thumbs-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.ripro-gallery-thumbs-list::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.ripro-gallery-thumb-item {
    flex: 0 0 auto;
    width: 88px;
    height: auto;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #e0e0e0;
    transition: border-color .2s, transform .2s;
    opacity: .7;
}

.ripro-gallery-thumb-item:hover {
    opacity: 1;
    transform: translateY(-2px);
    border-color: #2d8cf0;
}

.ripro-gallery-thumb-item.active {
    border-color: #2d8cf0;
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(45, 140, 240, .2);
}

.ripro-gallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .ripro-gallery-main {
        aspect-ratio: 4 / 3;
    }

    .ripro-gallery-arrow {
        width: 36px;
        height: 36px;
        font-size: 13px;
        opacity: 1;
    }

    .ripro-gallery-prev { left: 8px; }
    .ripro-gallery-next { right: 8px; }

    .ripro-gallery-action {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .ripro-gallery-actions {
        left: 8px;
        bottom: 8px;
    }

    .ripro-gallery-counter {
        right: 8px;
        bottom: 8px;
        font-size: 12px;
        padding: 3px 10px;
    }

    .ripro-gallery-thumb-item {
        width: 72px;
        height: 50px;
    }

    .ripro-gallery-tabs {
        padding: 0 4px;
    }

    .ripro-gallery-tab {
        font-size: 14px;
        padding: 10px 4px;
    }
}

/* ==========================================================================
   游戏信息：游戏视频 / 游戏介绍 / 版本介绍
   ========================================================================== */

.ripro-game-info {
    margin: 0 0 24px;
}

.ripro-game-section {
    margin-bottom: 24px;
}

.ripro-game-section:last-child {
    margin-bottom: 0;
}

/* ===== 方案6：底部双线装饰（粗蓝短线 + 细灰长线） ===== */
.ripro-game-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 14px;
    padding: 0 0 10px;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    line-height: 1.3;
}

/* 覆盖主题自带的标题左侧竖线 */
.ripro-game-title::before {
    display: block !important;
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 50px !important;
    height: 3px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #2d8cf0 !important;
    border-radius: 2px !important;
    font-size: 0 !important;
    line-height: 0 !important;
    z-index: 1 !important;
}

/* 细灰长线贯穿 */
.ripro-game-title::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1px;
    height: 1px;
    background: #eee;
}

.ripro-game-title i {
    color: #2d8cf0;
    font-size: 16px;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    display: inline;
    flex-shrink: 0;
}

.ripro-game-content {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
}

.ripro-game-content p {
    margin: 0 0 12px;
}

.ripro-game-content p:last-child {
    margin-bottom: 0;
}

.ripro-game-content ul,
.ripro-game-content ol {
    margin: 0 0 12px;
    padding-left: 24px;
}

.ripro-game-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* ===== 视频播放器 16:9 响应式 ===== */
.ripro-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
}

/* DPlayer 容器绝对定位填充 */
.ripro-video-wrapper > div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0 !important;
}

.ripro-video-wrapper .dplayer {
    width: 100%;
    height: 100%;
}

.ripro-video-wrapper iframe,
.ripro-video-wrapper video,
.ripro-video-wrapper embed,
.ripro-video-wrapper object {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 视频遮罩层 + 播放按钮 */
.ripro-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 固定 LOGO（播放前后位置不变，层级高于遮罩） */
.ripro-video-wrapper-logo {
    position: absolute;
    top: 16px;
    left: 16px;
    max-height: 32px;
    width: auto;
    z-index: 11;
    opacity: .9;
}

/* 隐藏 DPlayer 自带 LOGO，避免重复显示和位置跳动 */
.ripro-video-wrapper .dplayer-logo {
    display: none !important;
}

.ripro-video-play-btn {
    background: transparent;
    border: none;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ripro-video-play-btn i {
    font-size: 36px;
    color: #fff;
    opacity: .85;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
    margin-left: 3px;
}

.ripro-video-fallback {
    text-align: center;
    padding: 24px;
    background: #f5f6f7;
    border-radius: 6px;
}

.ripro-video-fallback a {
    color: #2d8cf0;
    font-weight: 600;
    text-decoration: none;
}

.ripro-video-fallback a:hover {
    text-decoration: underline;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .ripro-game-title {
        font-size: 15px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .ripro-game-title::before {
        width: 40px !important;
        height: 2px !important;
    }

    .ripro-game-title i {
        font-size: 14px;
    }

    .ripro-game-content {
        font-size: 13px;
    }
}

/* ==========================================================================
   游戏标签云
   ========================================================================== */

.ripro-game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ripro-game-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
    color: #2d8cf0;
    border: 1px solid #bcd8ff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(45, 140, 240, .15), inset 0 1px 0 rgba(255, 255, 255, .8);
    transition: all .18s ease;
    user-select: none;
}

.ripro-game-tag::before {
    content: '#';
    font-weight: 700;
    opacity: .7;
}

.ripro-game-tag:hover {
    background: linear-gradient(180deg, #4a9eff 0%, #2d8cf0 100%);
    color: #fff;
    border-color: #2d8cf0;
    box-shadow: 0 4px 12px rgba(45, 140, 240, .4), inset 0 1px 0 rgba(255, 255, 255, .2);
    transform: translateY(-2px);
}

.ripro-game-tag:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(45, 140, 240, .3), inset 0 2px 4px rgba(0, 0, 0, .1);
}

.ripro-game-tag:hover::before {
    opacity: 1;
}

/* ==========================================================================
   配置要求（最低配置 / 推荐配置 双排）
   ========================================================================== */

.ripro-game-specs {
    display: flex;
    gap: 16px;
}

.ripro-game-spec-col {
    flex: 1;
    background: #f8f9fb;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    padding: 16px 18px;
}

.ripro-game-spec-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ripro-game-spec-min .ripro-game-spec-title i {
    color: #888;
    font-size: 14px;
    font-style: normal;
}

.ripro-game-spec-rec .ripro-game-spec-title {
    color: #2d8cf0;
    border-bottom-color: #d6e8ff;
}

.ripro-game-spec-rec .ripro-game-spec-title i {
    color: #ffb800;
    font-size: 14px;
    font-style: normal;
}

.ripro-game-spec-text {
    font-size: 14px;
    color: #666;
    line-height: 1.9;
}

.ripro-game-spec-text p {
    margin: 0 0 6px;
}

.ripro-game-spec-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .ripro-game-tags {
        gap: 8px;
    }

    .ripro-game-tag {
        padding: 7px 14px;
        font-size: 12px;
        border-radius: 6px;
    }

    .ripro-game-specs {
        flex-direction: column;
        gap: 12px;
    }

    .ripro-game-spec-col {
        padding: 14px 16px;
    }
}

/* ==========================================================================
   暗黑模式兼容（body.dark-open）
   ========================================================================== */
body.dark-open .ripro-game-title {
    color: #e0e6ed;
}

body.dark-open .ripro-game-title::before {
    background: #4a9eff !important;
}

body.dark-open .ripro-game-title::after {
    background: #2a3348;
}

body.dark-open .ripro-game-title i {
    color: #4a9eff;
}

body.dark-open .ripro-game-content {
    color: #a8b3c0;
}

/* 图集大图区 */
body.dark-open .ripro-gallery-stage {
    background: #1a2030;
}

/* 图集缩略图区 */
body.dark-open .ripro-gallery-thumbs-wrap {
    background: transparent;
}

body.dark-open .ripro-gallery-thumb-item {
    border-color: #3a4256;
    opacity: .6;
}

body.dark-open .ripro-gallery-thumb-item:hover,
body.dark-open .ripro-gallery-thumb-item.active {
    border-color: #4a9eff;
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(74, 158, 255, .25);
}

/* 箭头、按钮、计数器 */
body.dark-open .ripro-gallery-arrow {
    background: rgba(30, 38, 56, .85);
    border-color: rgba(255, 255, 255, .1);
    color: #c6cfd8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

body.dark-open .ripro-gallery-arrow:hover {
    background: #4a9eff;
    color: #fff;
    border-color: #4a9eff;
}

body.dark-open .ripro-gallery-action {
    background: rgba(30, 38, 56, .85);
    border-color: rgba(255, 255, 255, .1);
    color: #c6cfd8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

body.dark-open .ripro-gallery-action:hover {
    background: #4a9eff;
    color: #fff;
    border-color: #4a9eff;
}

body.dark-open .ripro-gallery-counter {
    background: rgba(30, 38, 56, .85);
    border-color: rgba(255, 255, 255, .1);
    color: #c6cfd8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

body.dark-open .ripro-gallery-counter .ripro-gallery-current {
    color: #4a9eff;
}

/* 缩略图滚动条 */
body.dark-open .ripro-gallery-thumbs-list {
    scrollbar-color: #3a4256 #1a2030;
}

body.dark-open .ripro-gallery-thumbs-list::-webkit-scrollbar-track {
    background: #1a2030;
}

body.dark-open .ripro-gallery-thumbs-list::-webkit-scrollbar-thumb {
    background: #3a4256;
}

body.dark-open .ripro-gallery-thumbs-list::-webkit-scrollbar-thumb:hover {
    background: #4a5568;
}

/* 标签按钮 */
body.dark-open .ripro-game-tag {
    background: linear-gradient(180deg, #2a3348 0%, #232b3d 100%);
    color: #7ab8ff;
    border-color: #3a4a66;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .05);
}

body.dark-open .ripro-game-tag:hover {
    background: linear-gradient(180deg, #4a9eff 0%, #2d8cf0 100%);
    color: #fff;
    border-color: #4a9eff;
    box-shadow: 0 4px 12px rgba(74, 158, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .15);
}

/* 配置要求 */
body.dark-open .ripro-game-spec-col {
    background: #1e2636;
    border-color: #2a3348;
}

body.dark-open .ripro-game-spec-title {
    color: #c6cfd8;
    border-bottom-color: #2a3348;
}

body.dark-open .ripro-game-spec-rec .ripro-game-spec-title {
    color: #7ab8ff;
    border-bottom-color: #2a3a55;
}

body.dark-open .ripro-game-spec-text {
    color: #8a96a8;
}

/* 视频回退链接 */
body.dark-open .ripro-video-fallback {
    background: #1a2030;
}

body.dark-open .ripro-video-fallback a {
    color: #4a9eff;
}

/* ==========================================================================
   Steam 数据卡片（方案10：仪表盘风）
   ========================================================================== */
.ripro-steam-card {
    margin-bottom: 24px;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 24px;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

/* 左侧圆形进度环 */
.ripro-steam-ring-wrap {
    width: 130px;
    flex-shrink: 0;
    text-align: center;
}

.ripro-steam-ring {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ripro-steam-ring-inner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ripro-steam-ring-inner .num {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.ripro-steam-ring-inner .unit {
    font-size: 11px;
    color: #999;
    margin-top: 3px;
}

.ripro-steam-ring-label {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

/* 右侧信息 */
.ripro-steam-info-wrap {
    flex: 1;
    min-width: 0;
}

.ripro-steam-info-desc {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.ripro-steam-info-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 14px;
}

.ripro-steam-info-meta strong {
    color: #555;
    font-weight: 500;
}

.ripro-steam-info-meta span {
    margin-right: 18px;
}

/* 三宫格数据 */
.ripro-steam-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ripro-steam-stat {
    text-align: center;
    padding: 10px;
    background: #f7f8fa;
    border-radius: 8px;
}

.ripro-steam-stat .val {
    font-size: 18px;
    font-weight: 700;
    color: #2d8cf0;
}

.ripro-steam-stat.rate .val {
    color: #2d8cf0;
}

.ripro-steam-stat.pos .val {
    color: #52c41a;
}

.ripro-steam-stat.neg .val {
    color: #ff4d4f;
}

.ripro-steam-stat .lbl {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}

/* 响应式 */
@media (max-width: 600px) {
    .ripro-steam-card {
        flex-direction: column;
        gap: 16px;
        padding: 18px;
    }
    .ripro-steam-ring-wrap {
        width: 100%;
    }
}

/* 暗黑模式 - Steam 卡片 */
body.dark-open .ripro-steam-card {
    background: #1e2636;
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
}

body.dark-open .ripro-steam-ring-inner {
    background: #1e2636;
}

body.dark-open .ripro-steam-ring-inner .num {
    color: #e0e6ed;
}

body.dark-open .ripro-steam-ring-inner .unit {
    color: #6b7689;
}

body.dark-open .ripro-steam-ring-label {
    color: #6b7689;
}

body.dark-open .ripro-steam-info-desc {
    color: #e0e6ed;
}

body.dark-open .ripro-steam-info-meta {
    color: #8a96a8;
}

body.dark-open .ripro-steam-info-meta strong {
    color: #c6cfd8;
}

body.dark-open .ripro-steam-stat {
    background: #2a3348;
}

body.dark-open .ripro-steam-stat .lbl {
    color: #6b7689;
}

/* ==========================================================================
   文章标题区域优化
   ========================================================================== */

/* 元信息行：左侧元信息，右侧收藏按钮 */
.article-content .entry-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

/* 标题字体优化 */
.article-content .entry-title {
    font-family: "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.5px;
    color: #1a1a1a;
    margin: 0 0 12px;
    -webkit-line-clamp: inherit;
    height: auto;
    margin-bottom: 10px;
}

/* 收藏按钮（元信息行右侧，小巧样式） */
.article-content .custom-fav-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    font-size: 14px;
    font-weight: 500;
    color: #888;
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s ease;
}

.article-content .custom-fav-btn i {
    font-size: 13px;
}

.article-content .custom-fav-btn:hover {
    color: #2d8cf0;
    border-color: #2d8cf0;
    background: #f0f7ff;
}

.article-content .custom-fav-btn.faved {
    color: #ff9800;
    border-color: #ffe0b2;
    background: #fff8e1;
}

.article-content .custom-fav-btn.faved:hover {
    color: #f57c00;
    border-color: #ffcc80;
    background: #ffecb3;
}

.article-content .custom-fav-btn.loading {
    opacity: .6;
    pointer-events: none;
}

/* 元信息优化 */
.article-content .entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    font-size: 13px;
    color: #999;
    margin: 0;
    flex: 1;
}

.article-content .entry-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-content .entry-meta i {
    font-size: 13px;
    color: #bbb;
}

.article-content .entry-meta a {
    color: #666;
    text-decoration: none;
    transition: color .2s;
}

.article-content .entry-meta a:hover {
    color: #2d8cf0;
}

.article-content .entry-meta .meta-category a {
    color: #2d8cf0;
    font-weight: 500;
}

.article-content .entry-meta .meta-category a:hover {
    color: #1a6fd4;
    text-decoration: underline;
}

/* 响应式 */
@media (max-width: 600px) {
    .article-content .entry-title {
        font-size: 20px;
    }
    .article-content .entry-meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .article-content .custom-fav-btn {
        padding: 4px 12px;
        font-size: 12px;
    }
}

/* 暗黑模式 - 标题区域 */
body.dark-open .article-content .entry-title {
    color: #e0e6ed;
}

body.dark-open .article-content .entry-meta-row {
    border-top-color: #2a3348;
    border-bottom-color: #2a3348;
}

body.dark-open .article-content .custom-fav-btn {
    color: #8a96a8;
    background: #1e2636;
    border-color: #2a3348;
}

body.dark-open .article-content .custom-fav-btn:hover {
    color: #4a9eff;
    border-color: #4a9eff;
    background: rgba(74,158,255,.1);
}

body.dark-open .article-content .custom-fav-btn.faved {
    color: #ffb74d;
    border-color: #5d4037;
    background: rgba(255,152,0,.1);
}

body.dark-open .article-content .entry-meta {
    color: #6b7689;
    border-top-color: #2a3348;
    border-bottom-color: #2a3348;
}

body.dark-open .article-content .entry-meta i {
    color: #4a5568;
}

body.dark-open .article-content .entry-meta a {
    color: #8a96a8;
}

body.dark-open .article-content .entry-meta a:hover {
    color: #4a9eff;
}

body.dark-open .article-content .entry-meta .meta-category a {
    color: #4a9eff;
}

/* ==========================================================================
   标题元信息按钮（分类/时间/会员专属）
   ========================================================================== */

.entry-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 24px;
}

.entry-meta-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    transition: all .2s ease;
    border: 1px solid transparent;
}

.meta-btn-category {
    background: rgba(74, 158, 255, .1);
    color: #4a9eff;
    border-color: rgba(74, 158, 255, .25);
}

.meta-btn-category:hover {
    background: #4a9eff;
    color: #fff;
}

.meta-btn-date {
    background: #f5f7fa;
    color: #8a96a8;
    border-color: #e4e9f0;
}

.meta-btn-vip {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    color: #f57f17;
    border-color: #ffe082;
}

.meta-btn-vip i {
    font-size: 13px;
}

.meta-btn-edit {
    background: #f5f7fa;
    color: #8a96a8;
    border-color: #e4e9f0;
}

.meta-btn-edit:hover {
    background: #e4e9f0;
    color: #4a9eff;
}

/* 暗黑模式 */
body.dark-open .entry-meta-row {
    border-top-color: #2a3348;
    border-bottom-color: #2a3348;
}

body.dark-open .meta-btn-date {
    background: #1e2636;
    color: #8a96a8;
    border-color: #2a3348;
}

body.dark-open .meta-btn-vip {
    background: linear-gradient(135deg, #3a2f1a, #2e2510);
    color: #ffb74d;
    border-color: #5d4037;
}

/* ==========================================================================
   客户端提示卡片（资源信息侧边栏）
   ========================================================================== */

.client-tip-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    margin-top: 14px;
    background: #fff8f0;
    border: 1px solid #ffe8cc;
    border-radius: 10px;
    text-decoration: none;
    transition: all .2s ease;
}

.client-tip-card:hover {
    background: #fff3e0;
    border-color: #ffcc80;
    text-decoration: none;
}

.client-tip-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9800, #ff5722);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(255, 87, 34, .3);
}

.client-tip-text {
    flex: 1;
    min-width: 0;
}

.client-tip-title {
    font-size: 14px;
    font-weight: 700;
    color: #e65100;
    line-height: 1.4;
}

.client-tip-desc {
    font-size: 12px;
    color: #bf6f30;
    margin-top: 2px;
}

.client-tip-arrow {
    flex-shrink: 0;
    color: #ffab91;
    font-size: 14px;
}

body.dark-open .client-tip-card {
    background: #2e2010;
    border-color: #5d4037;
}

body.dark-open .client-tip-card:hover {
    background: #3a2818;
    border-color: #8d6e63;
}

body.dark-open .client-tip-title {
    color: #ffb74d;
}

body.dark-open .client-tip-desc {
    color: #a1887f;
}

body.dark-open .client-tip-arrow {
    color: #8d6e63;
}

/* ==========================================================================
   下载链接列表 - 方案一：白卡片+浅色图标+交互动画
   ========================================================================== */

.download-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
    text-decoration: none;
}

.download-item:hover {
    border-color: #d0e3ff;
    background: #f8fbff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 158, 255, .12);
    text-decoration: none;
}

.download-item .dl-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.download-item .dl-icon svg {
    width: 34px;
    height: 34px;
    display: block;
}

.download-item:hover .dl-icon {
    transform: scale(1.1) rotate(-5deg);
}

.download-item.dl-baidu .dl-icon { background: transparent; }
.download-item.dl-quark .dl-icon { background: transparent; }
.download-item.dl-tianyi .dl-icon { background: transparent; }
.download-item .dl-icon { background: #f5f5f5; }

.download-item .dl-body {
    flex: 1;
    min-width: 0;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.download-item .dl-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    transition: color .2s;
    text-align: left;
}

.download-item:hover .dl-name {
    color: #1976d2;
}

.download-item .dl-sub {
    font-size: 12px;
    color: #bbb;
    text-align: left;
    transition: all .2s;
}

.download-item:hover .dl-sub {
    color: #1976d2;
    margin-left: 2px;
}

.download-item .dl-pwd {
    flex-shrink: 0;
    padding: 4px 10px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 12px;
    color: #999;
    cursor: pointer;
    transition: all .2s;
}

.download-item .dl-pwd:hover {
    background: #e3f2fd;
    color: #1976d2;
}

.download-item .dl-pwd.copied {
    background: #e8f5e9;
    color: #4caf50;
}

/* ===== 解压密码条（带动画） ===== */
.unzip-bar {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #fffbf0, #fff8e1, #fff8e1, #fffbf0);
    background-size: 200% 200%;
    border: 1px solid #ffe9a8;
    border-radius: 12px;
    transition: all .3s cubic-bezier(.4, 0, .2, 1);
    animation: unzipGradient 4s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes unzipGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.unzip-bar:hover {
    border-color: #ffd54f;
    box-shadow: 0 6px 20px rgba(255, 193, 7, .2);
    transform: translateY(-1px);
}

.unzip-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent);
    transition: left .6s ease;
}

.unzip-bar:hover::after {
    left: 120%;
}

.unzip-lock {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffb74d, #ff9800);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(255, 152, 0, .4);
    transition: all .3s;
    animation: lockPulse 2s ease-in-out infinite;
}

@keyframes lockPulse {
    0%, 100% { box-shadow: 0 2px 10px rgba(255, 152, 0, .4); }
    50% { box-shadow: 0 2px 18px rgba(255, 152, 0, .7); }
}

.unzip-bar:hover .unzip-lock {
    transform: scale(1.1) rotate(-10deg);
    animation: none;
}

.unzip-label {
    font-size: 15px;
    color: #b8965a;
    flex-shrink: 0;
}

.unzip-value {
    font-size: 16px;
    font-weight: 700;
    color: #e65100;
    letter-spacing: .5px;
    padding: 3px 12px;
    background: rgba(255, 255, 255, .8);
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s;
    flex-shrink: 0;
    border: 1px solid #FFC107;
}

.unzip-value:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(255, 152, 0, .2);
}

.unzip-copy {
    margin-left: auto;
    flex-shrink: 0;
    padding: 5px 12px;
    background: #fff;
    border: 1px solid #ffe082;
    border-radius: 6px;
    font-size: 12px;
    color: #f57f17;
    cursor: pointer;
    transition: all .25s;
}

.unzip-copy:hover {
    background: #fff8e1;
    border-color: #ffb300;
    transform: scale(1.05);
}

.unzip-copy:active {
    transform: scale(.95);
}

.unzip-copy.copied {
    background: #e8f5e9;
    border-color: #a5d6a7;
    color: #4caf50;
}

/* 暗黑模式 */
body.dark-open .download-item {
    background: #2a3348;
    border-color: #33405a;
}

body.dark-open .download-item:hover {
    background: #33405a;
    border-color: #4a6fa5;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}

body.dark-open .download-item .dl-icon {
    background: #1e2636;
}

body.dark-open .unzip-value {
    color: #ffb74d;
    background: rgba(0, 0, 0, .25);
    border: 1px solid rgba(255, 183, 77, .2);
}

body.dark-open .unzip-value:hover {
    background: rgba(0, 0, 0, .4);
}


body.dark-open .download-item.dl-baidu .dl-icon { background: transparent; }
body.dark-open .download-item.dl-quark .dl-icon { background: transparent; }
body.dark-open .download-item.dl-tianyi .dl-icon { background: transparent; }

body.dark-open .download-item .dl-name {
    color: #e0e6ed;
}

body.dark-open .download-item:hover .dl-name {
    color: #64b5f6;
}

body.dark-open .download-item .dl-sub {
    color: #6b7a8f;
}

body.dark-open .download-item .dl-pwd {
    background: #1e2636;
    color: #8a96a8;
}

body.dark-open .download-item .dl-pwd:hover {
    background: #33405a;
    color: #64b5f6;
}

body.dark-open .unzip-bar {
    background: linear-gradient(135deg, #2e2510, #2a2008, #2a2008, #2e2510);
    background-size: 200% 200%;
    border-color: #5d4037;
}

body.dark-open .unzip-bar:hover {
    border-color: #8d6e63;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}

body.dark-open .unzip-label {
    color: #a1887f;
}

body.dark-open .unzip-copy {
    background: #1e2636;
    border-color: #5d4037;
    color: #ffb74d;
}

body.dark-open .unzip-copy:hover {
    background: #2a2008;
    border-color: #8d6e63;
}

/* ==========================================================================
   侧边栏 Widget 白色卡片背景
   ========================================================================== */

.sidebar .widget,
aside .widget,
.widget-area .widget,
.sidebar > div,
aside > div,
.widget-area > div,
.right-sidebar .widget,
.right-sidebar > div {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

body.dark-open .sidebar .widget,
body.dark-open aside .widget,
body.dark-open .widget-area .widget,
body.dark-open .sidebar > div,
body.dark-open aside > div,
body.dark-open .widget-area > div,
body.dark-open .right-sidebar .widget,
body.dark-open .right-sidebar > div {
    background: #293042;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}

/* ==========================================================================
   标签按钮美化
   ========================================================================== */

.entry-tags {
    margin-top: 20px;
    padding: 16px 20px;
    background: #fafbfc;
    border-radius: 12px;
}

.entry-tags-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.entry-tags-title .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4a9eff;
}

.entry-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.game-tag-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: all .25s ease;
}

.game-tag-btn:hover {
    background: #4a9eff;
    border-color: #4a9eff;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 158, 255, .3);
}

body.dark-open .entry-tags {
    background: #1e2636;
}

body.dark-open .entry-tags-title {
    color: #e0e6ed;
}

body.dark-open .game-tag-btn {
    background: #2a3348;
    border-color: #33405a;
    color: #8a96a8;
}

body.dark-open .game-tag-btn:hover {
    background: #4a9eff;
    border-color: #4a9eff;
    color: #fff;
}

/* 正版购买按钮 */
.official-buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    background: #f0f7ff;
    color: #1976d2;
    border: 1px solid #bbdefb;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s ease;
    cursor: pointer;
}

.official-buy-btn:hover {
    background: #1976d2;
    color: #fff;
    border-color: #1976d2;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, .3);
}

.official-buy-btn .steam-icon {
    flex-shrink: 0;
}

.official-buy-btn span {
    transform: translateY(-1px);
}

body.dark-open .official-buy-btn {
    background: #1b2838;
    color: #66c0f1;
    border-color: #2a475e;
}

body.dark-open .official-buy-btn:hover {
    background: #2a475e;
    color: #fff;
    border-color: #4a9eff;
    box-shadow: 0 6px 20px rgba(74, 158, 255, .25);
}

/* 侵权举报按钮 */
.shop-price-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.report-btn {
    font-size: 14px;
    font-weight: 600;
    color: #ff6b35;
    text-decoration: none;
    transition: all .25s;
}

.report-btn:hover {
    color: #e55a2b;
    text-decoration: underline;
}

body.dark-open .report-btn {
    color: #ff8c5a;
}

body.dark-open .report-btn:hover {
    color: #ffab82;
}

/* 隐藏下载卡片中的蓝色进度条 */
.ripro-v2-widget-shop-down .progress,
.ripro-v2-widget-shop-down .progress-bar,
.shop-down-widget .progress,
.shop-down-widget .progress-bar,
.widget_shop_down .progress,
.price + .progress,
.price + div[class*="progress"] {
    display: none !important;
}

/* 资源地址收录说明卡片 */
.download-note-card {
    margin-bottom: 12px;
    padding: 12px 14px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #4a9eff;
}

.download-note-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
}

.download-note-card p {
    font-size: 12px;
    color: #888;
    line-height: 1.6;
    margin: 0;
}

body.dark-open .download-note-card {
    background: #1e2636;
    border-left-color: #4a9eff;
}

body.dark-open .download-note-title {
    color: #e0e6ed;
}

body.dark-open .download-note-card p {
    color: #8a96a8;
}

/* 侧边栏广告图片保持比例 */
.sidebar .widget img, .sidebar .ads img, aside img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
    border-radius: 8px;
}

