/* InnnestDownload 插件样式 */

/* 下载模块容器 */
.innnest-download-module {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px;
    margin: 40px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.innnest-download-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2c3e50 0%, #34495e 50%, #7f8c8d 100%);
}

.innnest-download-module:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* 图标区域 */
.innnest-download-icon {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 50%;
    color: white;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(44, 62, 80, 0.3);
    transition: all 0.3s ease;
}

.innnest-download-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(44, 62, 80, 0.4);
}

.innnest-download-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* 内容区域 */
.innnest-download-content {
    flex: 1;
    min-width: 0;
}

/* 无图标时的内容区域调整 */
.innnest-download-module:not(:has(.innnest-download-icon)) .innnest-download-content {
    margin-left: 0;
}

.innnest-download-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
}

.innnest-download-description {
    margin: 0 0 18px 0;
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 15px;
}

/* 文件信息和下载次数统一展示 */
.innnest-file-info {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.innnest-file-size,
.innnest-file-type,
.innnest-download-count {
    padding: 6px 12px;
    background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
    border-radius: 20px;
    font-size: 13px;
    color: #2c3e50;
    font-weight: 500;
    border: 1px solid #bdc3c7;
    white-space: nowrap;
}

/* 下载次数特殊样式 */
.innnest-download-count {
    background: linear-gradient(135deg, #e8f4fd 0%, #d1ecf1 100%);
    border-color: #bee5eb;
    color: #0c5460;
}

/* 下载按钮区域 */
.innnest-download-button-wrapper {
    flex-shrink: 0;
}

/* 双下载链接选项 */
.innnest-download-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
    min-width: 160px;
}

.innnest-download-option {
    width: 100%;
}

/* 下载按钮 */
.innnest-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 140px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.3);
}

.innnest-download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.innnest-download-btn:hover::before {
    left: 100%;
}

.innnest-download-btn:hover {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(44, 62, 80, 0.4);
    color: #ffffff;
}

.innnest-download-btn:active {
    transform: translateY(0);
}

/* 按钮文字 */
.innnest-btn-text {
    font-size: 15px;
    position: relative;
    z-index: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .innnest-download-module {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 25px 20px;
        margin: 30px 0;
    }
    
    .innnest-download-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .innnest-download-options {
        width: 100%;
        min-width: auto;
    }
    
    .innnest-download-btn {
        width: 100%;
        min-width: auto;
    }
    
    .innnest-file-info {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .innnest-download-module {
        padding: 20px 15px;
        margin: 20px 0;
    }
    
    .innnest-download-title {
        font-size: 18px;
    }
    
    .innnest-download-description {
        font-size: 14px;
    }
    
    .innnest-file-info {
        gap: 8px;
    }
    
    .innnest-file-size,
    .innnest-file-type,
    .innnest-download-count {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* 下载状态样式 */
.innnest-download-btn.downloading {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    cursor: not-allowed;
    animation: pulse 1.5s infinite;
}

.innnest-download-btn.success {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    box-shadow: 0 4px 16px rgba(39, 174, 96, 0.3);
}

.innnest-download-btn.error {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 4px 16px rgba(231, 76, 60, 0.3);
}

.innnest-download-btn.manual {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    box-shadow: 0 4px 16px rgba(243, 156, 18, 0.3);
    color: #ffffff;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
