/* 短代码下载按钮样式 - 全新设计 */
.zpdw-download-box {
    margin: 20px 0;
    padding: 24px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    max-width: 800px; /* 限制最大宽度 */
    margin-left: auto;
    margin-right: auto;
}

.zpdw-download-box:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.zpdw-download-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.zpdw-download-btn-wrapper {
    flex: 1;
    min-width: 220px;
}

.zpdw-download-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 24px;
    background: #3b82f6;
    color: white !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    width: 100%;
    justify-content: center;
    height: 52px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.zpdw-download-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.zpdw-download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.zpdw-download-btn i {
    margin-right: 10px;
    font-size: 18px;
}

/* 提取码样式 - 现代化设计 */
.zpdw-code-wrapper {
    flex: 0 0 auto;
    min-width: 300px;
}

.zpdw-code {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f9fafb;
    border-radius: 8px;
    padding: 0 20px;
    border: 1px solid #e5e7eb;
    height: 52px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.zpdw-code:hover {
    border-color: #d1d5db;
    background: #f3f4f6;
}

.zpdw-code-label {
    color: #4b5563;
    font-weight: 600;
    font-size: 14px;
    min-width: 70px;
    display: flex;
    align-items: center;
}

.zpdw-code-value {
    color: #1f2937;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-weight: 700;
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    font-size: 15px;
    letter-spacing: 1px;
    text-align: center;
    min-width: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 无需提取码样式 */
.zpdw-code-value.zpdw-no-code {
    color: #6b7280;
    font-weight: 500;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    min-width: 110px;
}

.zpdw-copy-code {
    padding: 0 16px;
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.zpdw-copy-code:hover {
    background: #e5e7eb;
    color: #1f2937;
    border-color: #d1d5db;
}

.zpdw-copy-code:active {
    transform: translateY(1px);
}

.zpdw-copy-code i {
    margin-right: 6px;
    font-size: 12px;
}

/* 更多说明样式 - 简洁设计 */
.zpdw-more {
    margin-top: 16px;
    padding: 14px 16px;
    background: #fffbeb;
    color: #d97706;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #fef3c7;
    font-weight: 500;
}

.zpdw-more::before {
    content: 'ℹ️ ';
    margin-right: 6px;
    font-size: 14px;
}

/* 错误提示样式 */
.zpdw-error {
    margin-top: 16px;
    padding: 14px 16px;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #fee2e2;
    font-weight: 500;
}

.zpdw-error::before {
    content: '❌ ';
    margin-right: 6px;
    font-size: 14px;
}

/* 网盘按钮颜色 - 统一风格设计 */
/* 删除未使用的网盘按钮颜色定义，只保留基础样式 */

/* TAB标签样式 - 新增 */
.zpdw-tabs-container {
    margin: 20px 0;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
   /* max-width: 800px;  限制最大宽度 */
    margin-left: auto;
    margin-right: auto;
}

.zpdw-tabs-nav {
    display: flex;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
}

.zpdw-tab-nav {
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-right: 1px solid #e5e7eb;
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.zpdw-tab-nav:last-child {
    border-right: none;
}

.zpdw-tab-nav:hover {
    background: #f3f4f6;
    color: #4b5563;
}

.zpdw-tab-nav.active {
    background: #ffffff;
    color: #3b82f6;
    font-weight: 600;
    /* 删除选中时的底部边框颜色 */
}

.zpdw-tabs-content {
    padding: 24px;
    background: #ffffff;
}

.zpdw-tabs-content .zpdw-download-box {
    margin: 0;
    display: none;
    max-width: none; /* 在TAB中不使用最大宽度限制 */
    margin-left: 0;
    margin-right: 0;
}

.zpdw-tabs-content .zpdw-download-box:first-child {
    display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .zpdw-download-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .zpdw-download-btn-wrapper,
    .zpdw-code-wrapper {
        width: 100%;
        min-width: auto;
    }
    
    .zpdw-code {
        justify-content: center;
    }
    
    .zpdw-download-box {
        padding: 20px;
    }
    
    .zpdw-code-wrapper {
        min-width: auto;
    }
    
    .zpdw-tabs-container {
        margin: 16px 0;
    }
    
    .zpdw-tabs-content {
        padding: 20px;
    }
    
    .zpdw-tab-nav {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    /* 在中等屏幕下优化提取码区域 */
    .zpdw-code {
        padding: 0 16px;
    }
    
    .zpdw-code-value {
        padding: 6px 12px;
        min-width: 90px;
    }
    
    .zpdw-copy-code {
        padding: 0 12px;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .zpdw-download-box {
        padding: 16px;
        margin: 16px 0;
    }
    
    .zpdw-download-btn {
        padding: 12px 16px;
        font-size: 15px;
        height: 48px;
    }
    
    .zpdw-code {
        padding: 0 16px;
        height: 48px;
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }
    
    .zpdw-code-label {
        font-size: 13px;
        min-width: 60px;
    }
    
    .zpdw-code-value {
        padding: 6px 12px;
        font-size: 14px;
        min-width: 90px;
    }
    
    .zpdw-copy-code {
        padding: 0 12px;
        height: 32px;
        min-width: 70px;
        font-size: 12px;
    }
    
    .zpdw-more {
        font-size: 13px;
        padding: 12px 14px;
    }
    
    .zpdw-tabs-content {
        padding: 16px;
    }
    
    .zpdw-tab-nav {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    /* 小屏幕下保持提取码区域在一排显示 */
    .zpdw-code-wrapper {
        min-width: auto;
    }
    
    .zpdw-code {
        padding: 0 12px;
        height: 44px;
    }
    
    .zpdw-code-label {
        font-size: 12px;
        min-width: 55px;
    }
    
    .zpdw-code-value {
        font-size: 13px;
        padding: 4px 10px;
        min-width: 80px;
    }
    
    .zpdw-copy-code {
        font-size: 11px;
        padding: 0 10px;
        height: 30px;
        min-width: 65px;
    }
}

/* 针对非常小的屏幕（如iPhone SE等）的优化 */
@media (max-width: 360px) {
    .zpdw-download-box {
        padding: 12px;
    }
    
    .zpdw-download-btn {
        padding: 10px 12px;
        font-size: 14px;
        height: 44px;
    }
    
    .zpdw-code {
        padding: 0 10px;
        height: 40px;
        gap: 8px;
    }
    
    .zpdw-code-label {
        font-size: 11px;
        min-width: 50px;
    }
    
    .zpdw-code-value {
        font-size: 12px;
        padding: 3px 8px;
        min-width: 70px;
    }
    
    .zpdw-copy-code {
        font-size: 10px;
        padding: 0 8px;
        height: 28px;
        min-width: 55px;
    }
    
    .zpdw-more {
        font-size: 12px;
        padding: 10px 12px;
    }
}