/**
 * VIP Download Pro - 前端样式
 * 完全复刻参考站点 - 2025版
 */

/* ==========================================================================
   外框 - .hidden-box.show
   ========================================================================== */

.vip-download-box {
    padding: 10px;
    margin: 20px 0;
    border: 1px dashed var(--focus-color, #f56c6c);
    border-radius: var(--main-radius, 8px);
    position: relative;
    padding-top: 35px;
}

/* ==========================================================================
   标题 - .hidden-text
   ========================================================================== */

.vip-download-title {
    color: var(--focus-color, #f56c6c);
    padding: 3px 10px;
    font-size: 13px;
    line-height: 1.4;
    top: 0;
    left: 0;
    position: absolute;
    z-index: 1;
    border-radius: 0 0 8px 0;
    border-bottom: 1px dashed var(--focus-color, #f56c6c);
    border-right: 1px dashed var(--focus-color, #f56c6c);
    display: flex;
    align-items: center;
    gap: 6px;
}

.vip-download-title .fa {
    margin-right: 6px;
}

/* ==========================================================================
   容器 - .flex.ac.hh
   ========================================================================== */

.vip-download-grid {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    line-height: 1.4;
}

/* ==========================================================================
   下载项 - .but-download.flex.ac
   ========================================================================== */

.vip-download-item {
    padding: 10px 10px 5px 10px;
    min-width: 50%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

/* ==========================================================================
   按钮 - .mr10.but.b-theme.baidu
   完全复刻参考站点的按钮样式
   ========================================================================== */

.vip-download-btn {
    /* 来自 .badg, .but, .post-page-numbers */
    border-radius: 4px;
    display: inline-block;
    transition: .15s;
    border: 1px solid transparent;
    vertical-align: middle;
    padding: .3em .6em;
    text-align: center;
    font-weight: 400;
    box-shadow: none;
    
    /* 来自 .b-theme */
    background: #1578f8;
    color: #fff !important;
    
    /* 来自 .mr10 */
    margin-right: 10px;
    
    /* 特定样式 */
    min-width: 130px;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.44;
    font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.vip-download-btn:hover {
    opacity: 0.9;
    text-decoration: none;
    color: #fff !important;
}

.vip-download-btn .fa,
.vip-download-btn svg.icon {
    margin-right: 1em;
}

/* SVG图标样式 */
.vip-download-icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
    margin-right: 0.5em;
    display: inline-block;
}

.vip-download-btn .vip-download-icon {
    margin-right: 0.5em;
}

/* ==========================================================================
   密码框 - .badg
   完全复刻参考站点的badg样式
   ========================================================================== */

.vip-password-box {
    /* 来自 .badg, .but, .post-page-numbers */
    border-radius: 4px;
    display: inline-block;
    transition: .15s;
    border: 1px solid transparent;
    vertical-align: middle;
    padding: .3em .6em;
    text-align: center;
    font-weight: 400;
    
    /* 来自 .badg 的默认值 */
    background: rgba(136, 136, 136, 0.1);
    color: #888888;
    
    /* 特定样式 */
    cursor: pointer;
    position: relative;
    font-size: 14px;
    line-height: 1.44;
    font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.vip-password-box:hover {
    opacity: 0.8;
}

/* 复制成功提示 */
.vip-password-box.copy-success::after {
    content: '复制成功！';
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    padding: 4px 10px;
    font-size: 12px;
    color: #fff;
    background: #52c41a;
    border-radius: 4px;
    white-space: nowrap;
    animation: copyFadeInOut 2s forwards;
    z-index: 10;
}

@keyframes copyFadeInOut {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(-10px);
    }
    15%, 85% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-50%) translateX(-10px);
    }
}

/* ==========================================================================
   响应式 - 移动端
   ========================================================================== */

@media (max-width: 480px) {
    .vip-download-item {
        width: auto;
        min-width: auto;
    }
    
    .vip-password-box.copy-success::after {
        right: auto;
        left: 50%;
        top: auto;
        bottom: -30px;
        transform: translateX(-50%);
    }
    
    @keyframes copyFadeInOut {
        0% {
            opacity: 0;
            transform: translateX(-50%) translateY(5px);
        }
        15%, 85% {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
        100% {
            opacity: 0;
            transform: translateX(-50%) translateY(5px);
        }
    }
}

/* ==========================================================================
   暗黑模式
   ========================================================================== */

.dark-theme .vip-download-box {
    background: var(--main-bg-color, #323335);
}

.dark-theme .vip-download-title {
    background: var(--main-bg-color, #323335);
}

.dark-theme .vip-password-box {
    background: rgba(136, 136, 136, 0.2);
    color: #b4b6bb;
}

.dark-theme .vip-password-box .password-value {
    color: #e5eef7;
}
