/*=============================================
 轩玮风格下载区块样式 - 简洁版
 匹配 mblog.xuwbk.com 风格
=============================================*/

/* 外层容器 */
.xuanwei-pay-section {
    margin-bottom: 20px;
    width: 100%;
}

.xuanwei-pay-container {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* ==================== 左侧缩略图区域 ==================== */
.xuanwei-thumb {
    width: 30%;
    min-width: 260px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.xuanwei-thumb-wrap {
    position: relative;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.xuanwei-thumb-bg {
    width: 100%;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f5f5f5;
    display: block;
}

/* 资源类型徽章 - 覆盖在缩略图左下方 */
.xuanwei-badge {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 5px 16px;
    font-size: 13px;
    color: #fff;
    border-top-right-radius: 6px;
    font-weight: 600;
    letter-spacing: 1px;
}

.xuanwei-badge-free {
    background: #f1404b;
}

.xuanwei-badge-pay {
    background: #f1404b;
}

/* 缩略图下方日期 */
.xuanwei-thumb-date {
    margin-top: 12px;
    font-size: 13px;
    color: #888;
    text-align: center;
}

.xuanwei-date-label {
    color: #999;
    margin-right: 4px;
}

/* ==================== 右侧信息区域 ==================== */
.xuanwei-pay-info {
    flex: 1;
    padding: 20px 24px 20px 10px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* 标题行 */
.xuanwei-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: nowrap;
    gap: 8px;
}

.xuanwei-pay-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
    flex: 1;
    min-width: 0;
    width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* VIP状态徽章 */
.xuanwei-vip-badge {
    display: inline-block;
    flex-shrink: 0;
    font-size: 12px;
    color: #fff;
    padding: 4px 12px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    text-decoration: none;
    font-style: normal;
    white-space: nowrap;
    background: linear-gradient(90deg, #fb3d08, #FFC107, #FF9800, #fb3d08);
    background-size: 1400% 300%;
    animation: xuanwei-shimmer 8s ease infinite;
}

.xuanwei-vip-badge:hover {
    color: #fff;
    text-decoration: none;
}

@keyframes xuanwei-shimmer {
    0% { background-position: 0% 0%; }
    50% { background-position: 50% 100%; }
    100% { background-position: 100% 0%; }
}

/* ==================== 元数据标签行 ==================== */
.xuanwei-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.xuanwei-meta-tag {
    display: inline-block;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 3px;
    background: #f0f1f3;
    color: #888;
    text-decoration: none;
    line-height: 1.6;
}

.xuanwei-meta-tag:hover {
    color: #666;
    text-decoration: none;
    background: #e5e6e8;
}

.xuanwei-meta-tag .fas,
.xuanwei-meta-tag .fab,
.xuanwei-meta-tag .far,
.xuanwei-meta-tag .fa {
    margin-right: 3px;
}

/* ==================== 价格区域 - des/buy 模板 ==================== */
.des {
    margin-bottom: 14px;
}

.des .buy {
    font-size: 30px;
    color: #40a9ff;
    line-height: 50px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 6px;
    overflow-x: auto;
}

.des .buy font {
    font-weight: 700;
    font-size: 28px;
}

.des .buy c {
    font-size: 18px;
    color: #999;
    margin-left: 4px;
}

.des .buy u {
    color: #999;
    font-size: 12px;
    text-decoration: none;
    padding-left: 10px;
}

.des .buy b .price {
    font-size: 16px;
    color: #ffc107;
    font-weight: 600;
    background: #fff3cd;
    padding: 4px 14px;
    border-radius: 4px;
}

.des .type_icont_2 {
    display: inline-block;
    height: 22px;
    line-height: 21px;
    color: #ff8a00;
    border: 1px solid #ff8a00;
    padding: 0 16px;
    border-radius: 13px;
    font-size: 12px;
    transition: all 0.3s ease;
    background: transparent;
}

.des a.login-btn.type_icont_2 {
    text-decoration: none;
    cursor: pointer;
}

.des a.login-btn.type_icont_2:hover {
    background: #ff8a00;
    color: #fff;
}

.des .type_icont_2 .fas,
.des .type_icont_2 .fab,
.des .type_icont_2 .fa {
    margin-right: 4px;
}

.des .boosvip-abs {
    display: inline-block;
    font-size: 14px;
    color: #67c23a;
}

.des .boosvip-abs .fa-check-circle {
    color: #67c23a;
}

.des .boosvip-abs .fa-info-circle {
    color: #ff8a00;
}

.des .boosvip-abs a {
    color: #f92410;
    text-decoration: none;
}

.des .boosvip-abs a:hover {
    text-decoration: underline;
}

/* ==================== 按钮区域 ==================== */
.xuanwei-btn-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.xuanwei-down-row {
    margin-bottom: 12px;
}

/* 通用按钮 */
.xuanwei-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
    line-height: 1.4;
    min-width: 120px;
    color: #fff;
}

.xuanwei-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    text-decoration: none;
}

/* 购买/登录按钮 */
.xuanwei-btn-buy {
    background: linear-gradient(135deg, #f1404b, #e02020);
}

.xuanwei-btn-buy:hover {
    background: linear-gradient(135deg, #e02020, #c01010);
    color: #fff;
}

/* 演示按钮 */
.xuanwei-btn-demo {
    background: linear-gradient(135deg, #FF9800, #F57C00);
}

.xuanwei-btn-demo:hover {
    background: linear-gradient(135deg, #F57C00, #E65100);
    color: #fff;
}

/* QQ咨询按钮 */
.xuanwei-btn-qq {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
}

.xuanwei-btn-qq:hover {
    background: linear-gradient(135deg, #388e3c, #1b5e20);
    color: #fff;
}

/* 下载按钮 */
.xuanwei-btn-download {
    background: linear-gradient(135deg, #2196F3, #1976D2);
}

.xuanwei-btn-download:hover {
    background: linear-gradient(135deg, #1976D2, #0D47A1);
    color: #fff;
}

/* 禁用按钮 */
.xuanwei-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* 下载项容器 */
.xuanwei-down-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 复制提取码按钮 */
.xuanwei-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(45deg, #9e9e9e 25%, #e0e0e0 0, #e0e0e0 50%, #9e9e9e 0, #9e9e9e 75%, #e0e0e0 0);
    background-size: 4px 4px;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}

.xuanwei-copy-btn:hover {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
}

/* ==================== 底部公告 ==================== */

/* 提取码提示 */
.xuanwei-password-tips {
    background: rgba(251, 61, 8, 0.08);
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px dashed rgba(241, 64, 75, 0.3);
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.xuanwei-password-tips .fa-exclamation-circle {
    color: #f1404b;
    flex-shrink: 0;
    margin-top: 2px;
}

.xuanwei-password-tips font {
    color: #f1404b;
    font-weight: 600;
}

/* 特别声明 */
.xuanwei-shengming {
    display: block;
}

.xuanwei-shengming p {
    font-size: 13px;
    color: #999;
    line-height: 1.7;
    padding: 10px 12px;
    border-radius: 6px;
    background: #f5f7fa;
    border: 1px dashed #d0d5dd;
    margin: 0;
}

.xuanwei-shengming .fa-info-circle {
    color: #999;
    margin-right: 4px;
}

/* ==================== 暗黑模式 ==================== */
.dark-theme .xuanwei-pay-container {
    background: #1d1f20;
}

.dark-theme .xuanwei-pay-title {
    color: #e0e0e0;
}

.dark-theme .xuanwei-meta-tag {
    background: #2a2a2c;
    color: #aaa;
}

.dark-theme .xuanwei-meta-tag:hover {
    background: #333;
    color: #ccc;
}

.dark-theme .des .buy {
    color: #60bfff;
}

.dark-theme .des .buy c,
.dark-theme .des .buy u {
    color: #777;
}

.dark-theme .des .buy b .price {
    background: #3d3520;
    color: #e0b044;
}

.dark-theme .des .boosvip-abs {
    color: #67c23a;
}

.dark-theme .xuanwei-password-tips {
    background: rgba(251, 61, 8, 0.05);
    border-color: rgba(241, 64, 75, 0.15);
    color: #aaa;
}

.dark-theme .xuanwei-shengming p {
    background: #232425;
    border-color: #3a3a3c;
    color: #777;
}

.dark-theme .xuanwei-thumb-date {
    color: #777;
}

.dark-theme .xuanwei-thumb-bg {
    background-color: #2a2a2c;
}

/* ==================== 响应式 - 平板 ==================== */
@media (max-width: 768px) {
    .xuanwei-pay-container {
        flex-direction: column;
    }

    .xuanwei-thumb {
        width: 100%;
        min-width: auto;
        padding: 15px;
        flex-direction: row;
        gap: 15px;
    }

    .xuanwei-thumb-wrap {
        width: 40%;
        min-width: 120px;
        flex-shrink: 0;
    }

    .xuanwei-thumb-bg {
        min-height: 200px;
    }

    .xuanwei-thumb-date {
        margin-top: 0;
        text-align: left;
        font-size: 12px;
        flex: 1;
    }

    .xuanwei-pay-info {
        padding: 10px 15px 20px;
    }

    .xuanwei-pay-title {
        font-size: 16px;
        white-space: normal;
        overflow: visible;
        width: auto;
    }

    .xuanwei-title-row {
        flex-wrap: wrap;
    }

    .xuanwei-btn-row {
        flex-direction: column;
        gap: 8px;
    }

    .xuanwei-btn {
        width: 100%;
        min-width: auto;
    }

    .xuanwei-meta-tags {
        gap: 4px;
    }

    .des .buy {
        font-size: 24px;
        line-height: 40px;
    }

    .des .buy font {
        font-size: 22px;
    }
}

/* ==================== 响应式 - 手机 ==================== */
@media (max-width: 480px) {
    .xuanwei-thumb-wrap {
        width: 35%;
        min-width: 100px;
    }

    .xuanwei-thumb-bg {
        min-height: 150px;
    }

    .xuanwei-pay-title {
        font-size: 15px;
    }

    .xuanwei-vip-badge {
        font-size: 11px;
        padding: 3px 10px;
    }

    .xuanwei-meta-tag {
        font-size: 11px;
        padding: 3px 8px;
    }

    .xuanwei-btn {
        font-size: 13px;
        padding: 8px 16px;
    }

    .des .buy {
        font-size: 20px;
        line-height: 36px;
        flex-wrap: wrap;
        white-space: normal;
        overflow-x: visible;
    }

    .des .buy font {
        font-size: 18px;
    }

    .des .type_icont_2 {
        font-size: 12px;
        padding: 3px 10px;
    }

    .des .boosvip-abs {
        font-size: 12px;
    }
}
