/* 按钮容器基础样式 */
.download-button-container {
    position: relative;
    display: inline-block;
    margin-top: 15px;
    text-align: left; /* 修改为左对齐 */
}

/* 固定位置的按钮 */
.download-button-container.fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    margin-top: 0;
}

/* 文章列表的按钮容器 - 绝对定位 */
.post-list .download-button-container {
    position: absolute;
    right: 40px;  /* 右侧距离 - 可调节 */
    top: 0px;  /* 改为固定像素值，方便精确控制上移位置 */
    transform: none;  /* 移除transform，避免定位冲突 */
    z-index: 10;
    margin: 0;
}

/* 为父容器添加相对定位 */
.list-one .post-meta {
    position: relative;
    padding-right: 60px;
}

/* 文章详情页的按钮容器 - 从右对齐改为左对齐 */
.blog-single .download-button-container {
    text-align: left !important; /* 修改为左对齐 */
    margin-top: -60px; /* 保持原有上移距离 */
    margin-left: 10px; /* 修改为左外边距 */
    display: inline-block;
    width: auto;
    float: left; /* 修改为左浮动 */
}

/* 主要下载按钮样式 */
.download-button {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 修改为左对齐 */
    gap: 5px;
    background: white;
    color: #333;
    border: 0.3px solid #000; /* 边框宽度调整为0.3px */
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    width: auto;
    min-width: 80px;
    white-space: nowrap;
}

/* 文章列表的按钮样式 */
.post-list .download-button {
    font-size: 12px;
    padding: 6px 12px;
    border: 0.3px solid #000; /* 边框宽度调整为0.3px */
}

/* 文章详情页的按钮样式 */
.blog-single .download-button {
    font-size: 14px;
    padding: 8px 16px;
    float: left !important; /* 修改为左浮动 */
    border: 0.3px solid #000;
}

/* 下载图标基础样式 - 修改为高亮蓝色 */
.download-button i {
    font-size: 16px;
    color: #2563eb; /* 高亮蓝色 - 替换原来的暗色 */
    transition: color 0.3s ease;
}

/* 鼠标悬停时的图标颜色变化 - 使用更亮的蓝色 */
.download-button:hover i {
    color: #1d4ed8; /* 深蓝 - 替换原来的暗色 #764ba2 */
}

/* ========== 添加多种高亮颜色主题 ========== */

/* 1. 绿色主题 */
.download-button.green i {
    color: #10b981; /* 高亮绿色 */
}

.download-button.green:hover i {
    color: #059669; /* 深绿色 */
}

/* 2. 红色主题 */
.download-button.red i {
    color: #ef4444; /* 高亮红色 */
}

.download-button.red:hover i {
    color: #dc2626; /* 深红色 */
}

/* 3. 紫色主题 */
.download-button.purple i {
    color: #8b5cf6; /* 高亮紫色 */
}

.download-button.purple:hover i {
    color: #7c3aed; /* 深紫色 */
}

/* 4. 橙色主题 */
.download-button.orange i {
    color: #f97316; /* 高亮橙色 */
}

.download-button.orange:hover i {
    color: #ea580c; /* 深橙色 */
}

/* 5. 黄色主题 */
.download-button.yellow i {
    color: #eab308; /* 高亮黄色 */
}

.download-button.yellow:hover i {
    color: #ca8a04; /* 深黄色 */
}

/* 6. 粉色主题 */
.download-button.pink i {
    color: #ec4899; /* 高亮粉色 */
}

.download-button.pink:hover i {
    color: #db2777; /* 深粉色 */
}

/* 7. 青色主题 */
.download-button.cyan i {
    color: #06b6d4; /* 高亮青色 */
}

.download-button.cyan:hover i {
    color: #0891b2; /* 深青色 */
}

/* 8. 绿色主题变体 */
.download-button.emerald i {
    color: #10b981; /* 高亮祖母绿 */
}

.download-button.emerald:hover i {
    color: #047857; /* 深祖母绿 */
}

/* 9. 琥珀主题 */
.download-button.amber i {
    color: #f59e0b; /* 高亮琥珀色 */
}

.download-button.amber:hover i {
    color: #d97706; /* 深琥珀色 */
}

/* 10. 靛蓝主题 */
.download-button.indigo i {
    color: #6366f1; /* 高亮靛蓝色 */
}

.download-button.indigo:hover i {
    color: #4f46e5; /* 深靛蓝色 */
}

/* ========== 移除重复的暗色样式定义 ========== */
/* 删除第131行的重复样式：.download-button:hover i { color: #764ba2; } */


/* 下拉菜单基础样式 - 下拉形式并与按钮宽度一致 */
.download-dropdown {
    position: absolute;
    top: 100%; /* 下拉效果 */
    left: 0;
    width: 100%;
    background: white;
    border-radius: 0 0 25px 25px; /* 底部圆角 */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 5px;
    border: 0.3px solid #000; /* 边框宽度调整为0.3px */
    border-top: none; /* 下拉菜单顶部不添加边框，避免与按钮边框重叠 */
}

/* 文章详情页的下拉菜单位置调整 - 右对齐且宽度与按钮一致 */
.blog-single .download-dropdown {
    left: 0; /* 修改为左对齐 */
    right: auto;
    width: fit-content !important;
    min-width: 100%;
    max-width: none;
    border: 0.3px solid #000;
    border-top: none;
}

/* 显示下拉菜单的类 */
.download-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 下拉选项样式 */
.download-option {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

/* 下拉选项最后一项的圆角样式 */
.download-option:last-child {
    border-bottom: none;
    border-radius: 0 0 25px 25px; /* 底部圆角 */
}

/* 鼠标悬停提示效果 */
.download-button::before {
    content: '该资源来源于网络如有侵权,请联系删除';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1002;
    pointer-events: none;
}

.download-button:hover::before {
    opacity: 1;
    visibility: visible;
}

/* 加载动画和其他样式 */
.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.download-option:hover {
    background-color: #f8f9fa;
    color: #667eea;
}

.download-option i {
    margin-right: 8px;
    color: #667eea;
}

.download-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.download-button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(51, 51, 51, 0.3);
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 统一的响应式设计 - 移动端优化 */
@media (max-width: 768px) {
    /* 固定位置的按钮 */
    .download-button-container.fixed {
        bottom: 15px; /* 底部位置 - 可调节 */
        right: 15px; /* 右侧位置 - 可调节 */
    }
    
    /* 主按钮样式调整 - 只影响非列表/详情页按钮 */
    .download-button:not(.post-list .download-button):not(.blog-single .download-button) {
        padding: 10px 16px;
        font-size: 12px;
        border-radius: 20px;
        min-width: auto;
        border: 0.3px solid #000; /* 边框宽度调整为0.3px */
    }
    
    /* 单独调整文章列表按钮 - 移动端 */
    .post-list .download-button {
        font-size: 5px !important;
        padding: 1px 4px !important;
        border-radius: 10px !important;
        min-width: 60px !important;
        border: 0.3px solid #000 !important; /* 边框宽度调整为0.3px */
    }
    
    /* 文章详情页按钮保持不变 */
    .blog-single .download-button {
        font-size: 11px;
        padding: 6px 12px;
        border-radius: 18px;
        border: 0.3px solid #000; /* 边框宽度调整为0.3px */
    }
    
    /* 文章列表按钮容器位置调整 - 移动端适配 */
 .list-one.post-list .download-button-container {
    right: 5px !important;
    top: -25px !important;
    position: absolute !important;
    z-index: 9999 !important;
  }
    
    /* 文章详情页按钮容器位置调整 - 移动端适配 */
    .blog-single .download-button-container {
        margin-top: -50px !important; /* 上移距离 - 移动端可调节 */
        margin-right: 5px  !important; /* 右移距离 - 移动端可调节 */
    }
    
    /* 移动端下拉菜单优化 - 宽度与按钮一致 */
    .download-dropdown {
        left: auto;
        right: 0;
        width: fit-content !important;
        min-width: 180px;
        max-width: calc(100vw - 30px);
        margin-top: 2px;
        border: 0.3px solid #000; /* 边框宽度调整为0.3px */
        border-top: none;
    }
    
    /* 移动端文章列表下拉菜单特定样式 */
    .post-list .download-dropdown {
        left: auto;
        right: 0;
        width: fit-content !important;
        min-width: 100%;
        max-width: none;
        transform-origin: top right;
        border: 0.3px solid #000; /* 边框宽度调整为0.3px */
        border-top: none;
    }
    
    /* 下拉选项调整 */
    .download-option {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* 更小屏幕的特殊处理 */
@media (max-width: 480px) {
    /* 非列表/详情页按钮保持默认 */
    .download-button:not(.post-list .download-button):not(.blog-single .download-button) {
        padding: 12px 14px;
        font-size: 11px;
        gap: 3px;
        border: 0.3px solid #000; /* 边框宽度调整为0.3px */
    }
    
    /* 单独调整小屏幕下的文章列表按钮 */
    .post-list .download-button {
        font-size: 5px !important;
        padding: 1px4px !important;
        border-radius: 10px !important;
        min-width: 60px !important;
        border: 0.3px solid #000 !important; /* 边框宽度调整为0.3px */
    }

  .list-one.post-list .download-button-container {
    right: 5px !important;
    top: -25px !important;
    position: absolute !important;
    z-index: 9999 !important;
  }
  
    
    /* 小屏幕下的文章详情页按钮容器位置调整 */
    .blog-single .download-button-container {
        margin-top: -50px; /* 上移距离 - 小屏幕可调节 */
        margin-right: 5px; /* 右移距离 - 小屏幕可调节 */
    }
    
    .download-button i {
        font-size: 14px;
    }
}

/* 图标颜色类 - 用于JavaScript随机分配 */
.download-icon-color-1 i {
    color: #e74c3c !important;
}

.download-icon-color-1:hover i {
    color: #c0392b !important;
}

.download-icon-color-2 i {
    color: #3498db !important;
}

.download-icon-color-2:hover i {
    color: #2980b9 !important;
}

.download-icon-color-3 i {
    color: #2ecc71 !important;
}

.download-icon-color-3:hover i {
    color: #27ae60 !important;
}

.download-icon-color-4 i {
    color: #9b59b6 !important;
}

.download-icon-color-4:hover i {
    color: #8e44ad !important;
}

.download-icon-color-5 i {
    color: #e67e22 !important;
}

.download-icon-color-5:hover i {
    color: #d35400 !important;
}

.download-icon-color-6 i {
    color: #1abc9c !important;
}

.download-icon-color-6:hover i {
    color: #16a085 !important;
}

.download-icon-color-7 i {
    color: #f39c12 !important;
}

.download-icon-color-7:hover i {
    color: #e67e22 !important;
}

.download-icon-color-8 i {
    color: #34495e !important;
}

.download-icon-color-8:hover i {
    color: #2c3e50 !important;
}

/* 下载密码样式 */
.download-password,
.download-password-in-dropdown {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.download-password-in-dropdown {
    margin-top: 3px;
    font-size: 11px;
}

.password-text {
    font-weight: 500;
    color: #e74c3c;
}

.copy-password-button {
    padding: 2px 8px;
    font-size: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-password-button:hover {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}/* 按钮容器基础样式 */
.download-button-container {
    position: relative;
    display: inline-block;
    margin-top: 15px;
    text-align: right;
}

/* 固定位置的按钮 */
.download-button-container.fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    margin-top: 0;
}

/* 文章列表的按钮容器 - 绝对定位 */
.post-list .download-button-container {
    position: absolute;
    right: 40px;  /* 右侧距离 - 可调节 */
    top: 0px;  /* 改为固定像素值，方便精确控制上移位置 */
    transform: none;  /* 移除transform，避免定位冲突 */
    z-index: 10;
    margin: 0;
}

/* 为父容器添加相对定位 */
.list-one .post-meta {
    position: relative;
    padding-right: 60px;
}

/* 文章详情页的按钮容器 - 从右对齐改为左对齐 */
.blog-single .download-button-container {
    text-align: left !important; /* 修改为左对齐 */
    margin-top: -60px; /* 保持原有上移距离 */
    margin-left: 10px; /* 修改为左外边距 */
    display: inline-block;
    width: auto;
    float: left; /* 修改为左浮动 */
}

/* 主要下载按钮样式 */
.download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: white;
    color: #333;
    border: 0.3px solid #000; /* 边框宽度调整为0.3px */
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    width: auto;
    min-width: 80px;
    white-space: nowrap;
}

/* 文章列表的按钮样式 */
.post-list .download-button {
    font-size: 12px;
    padding: 6px 12px;
    border: 0.3px solid #000; /* 边框宽度调整为0.3px */
}

/* 文章详情页的按钮样式 */
.blog-single .download-button {
    font-size: 14px;
    padding: 8px 16px;
    float: left !important; /* 修改为左浮动 */
    border: 0.3px solid #000;
}

/* 下载图标基础样式 - 修改为高亮蓝色 */
.download-button i {
    font-size: 16px;
    color: #2563eb; /* 高亮蓝色 - 替换原来的暗色 */
    transition: color 0.3s ease;
}

/* 鼠标悬停时的图标颜色变化 - 使用更亮的蓝色 */
.download-button:hover i {
    color: #1d4ed8; /* 深蓝 - 替换原来的暗色 #764ba2 */
}

/* ========== 添加多种高亮颜色主题 ========== */

/* 1. 绿色主题 */
.download-button.green i {
    color: #10b981; /* 高亮绿色 */
}

.download-button.green:hover i {
    color: #059669; /* 深绿色 */
}

/* 2. 红色主题 */
.download-button.red i {
    color: #ef4444; /* 高亮红色 */
}

.download-button.red:hover i {
    color: #dc2626; /* 深红色 */
}

/* 3. 紫色主题 */
.download-button.purple i {
    color: #8b5cf6; /* 高亮紫色 */
}

.download-button.purple:hover i {
    color: #7c3aed; /* 深紫色 */
}

/* 4. 橙色主题 */
.download-button.orange i {
    color: #f97316; /* 高亮橙色 */
}

.download-button.orange:hover i {
    color: #ea580c; /* 深橙色 */
}

/* 5. 黄色主题 */
.download-button.yellow i {
    color: #eab308; /* 高亮黄色 */
}

.download-button.yellow:hover i {
    color: #ca8a04; /* 深黄色 */
}

/* 6. 粉色主题 */
.download-button.pink i {
    color: #ec4899; /* 高亮粉色 */
}

.download-button.pink:hover i {
    color: #db2777; /* 深粉色 */
}

/* 7. 青色主题 */
.download-button.cyan i {
    color: #06b6d4; /* 高亮青色 */
}

.download-button.cyan:hover i {
    color: #0891b2; /* 深青色 */
}

/* 8. 绿色主题变体 */
.download-button.emerald i {
    color: #10b981; /* 高亮祖母绿 */
}

.download-button.emerald:hover i {
    color: #047857; /* 深祖母绿 */
}

/* 9. 琥珀主题 */
.download-button.amber i {
    color: #f59e0b; /* 高亮琥珀色 */
}

.download-button.amber:hover i {
    color: #d97706; /* 深琥珀色 */
}

/* 10. 靛蓝主题 */
.download-button.indigo i {
    color: #6366f1; /* 高亮靛蓝色 */
}

.download-button.indigo:hover i {
    color: #4f46e5; /* 深靛蓝色 */
}

/* ========== 移除重复的暗色样式定义 ========== */
/* 删除第131行的重复样式：.download-button:hover i { color: #764ba2; } */


/* 下拉菜单基础样式 - 下拉形式并与按钮宽度一致 */
.download-dropdown {
    position: absolute;
    top: 100%; /* 下拉效果 */
    left: 0;
    width: 100%;
    background: white;
    border-radius: 0 0 25px 25px; /* 底部圆角 */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 5px;
    border: 0.3px solid #000; /* 边框宽度调整为0.3px */
    border-top: none; /* 下拉菜单顶部不添加边框，避免与按钮边框重叠 */
}

/* 文章详情页的下拉菜单位置调整 - 右对齐且宽度与按钮一致 */
.blog-single .download-dropdown {
    left: 0; /* 修改为左对齐 */
    right: auto;
    width: fit-content !important;
    min-width: 100%;
    max-width: none;
    border: 0.3px solid #000;
    border-top: none;
}

/* 显示下拉菜单的类 */
.download-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 下拉选项样式 */
.download-option {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 下拉选项最后一项的圆角样式 */
.download-option:last-child {
    border-bottom: none;
    border-radius: 0 0 25px 25px; /* 底部圆角 */
}

/* 鼠标悬停提示效果 */
.download-button::before {
    content: '该资源来源于网络如有侵权,请联系删除';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1002;
    pointer-events: none;
}

.download-button:hover::before {
    opacity: 1;
    visibility: visible;
}

/* 加载动画和其他样式 */
.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.download-option:hover {
    background-color: #f8f9fa;
    color: #667eea;
}

.download-option i {
    margin-right: 8px;
    color: #667eea;
}

.download-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.download-button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(51, 51, 51, 0.3);
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 统一的响应式设计 - 移动端优化 */
@media (max-width: 768px) {
    /* 固定位置的按钮 */
    .download-button-container.fixed {
        bottom: 15px; /* 底部位置 - 可调节 */
        right: 15px; /* 右侧位置 - 可调节 */
    }
    
    /* 主按钮样式调整 - 只影响非列表/详情页按钮 */
    .download-button:not(.post-list .download-button):not(.blog-single .download-button) {
        padding: 10px 16px;
        font-size: 12px;
        border-radius: 20px;
        min-width: auto;
        border: 0.3px solid #000; /* 边框宽度调整为0.3px */
    }
    
    /* 单独调整文章列表按钮 - 移动端 */
    .post-list .download-button {
        font-size: 5px !important;
        padding: 1px 4px !important;
        border-radius: 10px !important;
        min-width: 60px !important;
        border: 0.3px solid #000 !important; /* 边框宽度调整为0.3px */
    }
    
    /* 文章详情页按钮保持不变 */
    .blog-single .download-button {
        font-size: 11px;
        padding: 6px 12px;
        border-radius: 18px;
        border: 0.3px solid #000; /* 边框宽度调整为0.3px */
    }
    
    /* 文章列表按钮容器位置调整 - 移动端适配 */
 .list-one.post-list .download-button-container {
    right: 5px !important;
    top: -25px !important;
    position: absolute !important;
    z-index: 9999 !important;
  }
    
    /* 文章详情页按钮容器位置调整 - 移动端适配 */
    .blog-single .download-button-container {
        margin-top: -50px !important; /* 上移距离 - 移动端可调节 */
        margin-right: 5px  !important; /* 右移距离 - 移动端可调节 */
    }
    
    /* 移动端下拉菜单优化 - 宽度与按钮一致 */
    .download-dropdown {
        left: auto;
        right: 0;
        width: fit-content !important;
        min-width: 180px;
        max-width: calc(100vw - 30px);
        margin-top: 2px;
        border: 0.3px solid #000; /* 边框宽度调整为0.3px */
        border-top: none;
    }
    
    /* 移动端文章列表下拉菜单特定样式 */
    .post-list .download-dropdown {
        left: auto;
        right: 0;
        width: fit-content !important;
        min-width: 100%;
        max-width: none;
        transform-origin: top right;
        border: 0.3px solid #000; /* 边框宽度调整为0.3px */
        border-top: none;
    }
    
    /* 下拉选项调整 */
    .download-option {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* 更小屏幕的特殊处理 */
@media (max-width: 480px) {
    /* 非列表/详情页按钮保持默认 */
    .download-button:not(.post-list .download-button):not(.blog-single .download-button) {
        padding: 12px 14px;
        font-size: 11px;
        gap: 3px;
        border: 0.3px solid #000; /* 边框宽度调整为0.3px */
    }
    
    /* 单独调整小屏幕下的文章列表按钮 */
    .post-list .download-button {
        font-size: 5px !important;
        padding: 1px4px !important;
        border-radius: 10px !important;
        min-width: 60px !important;
        border: 0.3px solid #000 !important; /* 边框宽度调整为0.3px */
    }

  .list-one.post-list .download-button-container {
    right: 5px !important;
    top: -25px !important;
    position: absolute !important;
    z-index: 9999 !important;
  }
  
    
    /* 小屏幕下的文章详情页按钮容器位置调整 */
    .blog-single .download-button-container {
        margin-top: -50px; /* 上移距离 - 小屏幕可调节 */
        margin-right: 5px; /* 右移距离 - 小屏幕可调节 */
    }
    
    .download-button i {
        font-size: 14px;
    }
}

/* 图标颜色类 - 用于JavaScript随机分配 */
.download-icon-color-1 i {
    color: #e74c3c !important;
}

.download-icon-color-1:hover i {
    color: #c0392b !important;
}

.download-icon-color-2 i {
    color: #3498db !important;
}

.download-icon-color-2:hover i {
    color: #2980b9 !important;
}

.download-icon-color-3 i {
    color: #2ecc71 !important;
}

.download-icon-color-3:hover i {
    color: #27ae60 !important;
}

.download-icon-color-4 i {
    color: #9b59b6 !important;
}

.download-icon-color-4:hover i {
    color: #8e44ad !important;
}

.download-icon-color-5 i {
    color: #e67e22 !important;
}

.download-icon-color-5:hover i {
    color: #d35400 !important;
}

.download-icon-color-6 i {
    color: #1abc9c !important;
}

.download-icon-color-6:hover i {
    color: #16a085 !important;
}

.download-icon-color-7 i {
    color: #f39c12 !important;
}

.download-icon-color-7:hover i {
    color: #e67e22 !important;
}

.download-icon-color-8 i {
    color: #34495e !important;
}

.download-icon-color-8:hover i {
    color: #2c3e50 !important;
}

/* 下载密码样式 */
.download-password,
.download-password-in-dropdown {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.download-password-in-dropdown {
    margin-top: 3px;
    font-size: 11px;
}

.password-text {
    font-weight: 500;
    color: #e74c3c;
}

.copy-password-button {
    padding: 2px 8px;
    font-size: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-password-button:hover {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}/* 按钮容器基础样式 */
.download-button-container {
    position: relative;
    display: inline-block;
    margin-top: 15px;
    text-align: right;
}

/* 固定位置的按钮 */
.download-button-container.fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    margin-top: 0;
}

/* 文章列表的按钮容器 - 绝对定位 */
.post-list .download-button-container {
    position: absolute;
    right: 40px;  /* 右侧距离 - 可调节 */
    top: 0px;  /* 改为固定像素值，方便精确控制上移位置 */
    transform: none;  /* 移除transform，避免定位冲突 */
    z-index: 10;
    margin: 0;
}

/* 为父容器添加相对定位 */
.list-one .post-meta {
    position: relative;
    padding-right: 60px;
}

/* 文章详情页的按钮容器 - 从右对齐改为左对齐 */
.blog-single .download-button-container {
    text-align: left !important; /* 修改为左对齐 */
    margin-top: -60px; /* 保持原有上移距离 */
    margin-left: 10px; /* 修改为左外边距 */
    display: inline-block;
    width: auto;
    float: left; /* 修改为左浮动 */
}

/* 主要下载按钮样式 */
.download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: white;
    color: #333;
    border: 0.3px solid #000; /* 边框宽度调整为0.3px */
    border-radius: 25px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    width: auto;
    min-width: 80px;
    white-space: nowrap;
}

/* 文章列表的按钮样式 */
.post-list .download-button {
    font-size: 12px;
    padding: 6px 12px;
    border: 0.3px solid #000; /* 边框宽度调整为0.3px */
}

/* 文章详情页的按钮样式 */
.blog-single .download-button {
    font-size: 14px;
    padding: 8px 16px;
    float: left !important; /* 修改为左浮动 */
    border: 0.3px solid #000;
}

/* 下载图标基础样式 - 修改为高亮蓝色 */
.download-button i {
    font-size: 16px;
    color: #2563eb; /* 高亮蓝色 - 替换原来的暗色 */
    transition: color 0.3s ease;
}

/* 鼠标悬停时的图标颜色变化 - 使用更亮的蓝色 */
.download-button:hover i {
    color: #1d4ed8; /* 深蓝 - 替换原来的暗色 #764ba2 */
}

/* ========== 添加多种高亮颜色主题 ========== */

/* 1. 绿色主题 */
.download-button.green i {
    color: #10b981; /* 高亮绿色 */
}

.download-button.green:hover i {
    color: #059669; /* 深绿色 */
}

/* 2. 红色主题 */
.download-button.red i {
    color: #ef4444; /* 高亮红色 */
}

.download-button.red:hover i {
    color: #dc2626; /* 深红色 */
}

/* 3. 紫色主题 */
.download-button.purple i {
    color: #8b5cf6; /* 高亮紫色 */
}

.download-button.purple:hover i {
    color: #7c3aed; /* 深紫色 */
}

/* 4. 橙色主题 */
.download-button.orange i {
    color: #f97316; /* 高亮橙色 */
}

.download-button.orange:hover i {
    color: #ea580c; /* 深橙色 */
}

/* 5. 黄色主题 */
.download-button.yellow i {
    color: #eab308; /* 高亮黄色 */
}

.download-button.yellow:hover i {
    color: #ca8a04; /* 深黄色 */
}

/* 6. 粉色主题 */
.download-button.pink i {
    color: #ec4899; /* 高亮粉色 */
}

.download-button.pink:hover i {
    color: #db2777; /* 深粉色 */
}

/* 7. 青色主题 */
.download-button.cyan i {
    color: #06b6d4; /* 高亮青色 */
}

.download-button.cyan:hover i {
    color: #0891b2; /* 深青色 */
}

/* 8. 绿色主题变体 */
.download-button.emerald i {
    color: #10b981; /* 高亮祖母绿 */
}

.download-button.emerald:hover i {
    color: #047857; /* 深祖母绿 */
}

/* 9. 琥珀主题 */
.download-button.amber i {
    color: #f59e0b; /* 高亮琥珀色 */
}

.download-button.amber:hover i {
    color: #d97706; /* 深琥珀色 */
}

/* 10. 靛蓝主题 */
.download-button.indigo i {
    color: #6366f1; /* 高亮靛蓝色 */
}

.download-button.indigo:hover i {
    color: #4f46e5; /* 深靛蓝色 */
}

/* ========== 移除重复的暗色样式定义 ========== */
/* 删除第131行的重复样式：.download-button:hover i { color: #764ba2; } */


/* 下拉菜单基础样式 - 下拉形式并与按钮宽度一致 */
.download-dropdown {
    position: absolute;
    top: 100%; /* 下拉效果 */
    left: 0;
    width: 100%;
    background: white;
    border-radius: 0 0 25px 25px; /* 底部圆角 */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 5px;
    border: 0.3px solid #000; /* 边框宽度调整为0.3px */
    border-top: none; /* 下拉菜单顶部不添加边框，避免与按钮边框重叠 */
}

/* 文章详情页的下拉菜单位置调整 - 右对齐且宽度与按钮一致 */
.blog-single .download-dropdown {
    left: 0; /* 修改为左对齐 */
    right: auto;
    width: fit-content !important;
    min-width: 100%;
    max-width: none;
    border: 0.3px solid #000;
    border-top: none;
}

/* 显示下拉菜单的类 */
.download-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 下拉选项样式 */
.download-option {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 下拉选项最后一项的圆角样式 */
.download-option:last-child {
    border-bottom: none;
    border-radius: 0 0 25px 25px; /* 底部圆角 */
}

/* 鼠标悬停提示效果 */
.download-button::before {
    content: '该资源来源于网络如有侵权,请联系删除';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1002;
    pointer-events: none;
}

.download-button:hover::before {
    opacity: 1;
    visibility: visible;
}

/* 加载动画和其他样式 */
.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.download-option:hover {
    background-color: #f8f9fa;
    color: #667eea;
}

.download-option i {
    margin-right: 8px;
    color: #667eea;
}

.download-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.download-button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(51, 51, 51, 0.3);
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 统一的响应式设计 - 移动端优化 */
@media (max-width: 768px) {
    /* 固定位置的按钮 */
    .download-button-container.fixed {
        bottom: 15px; /* 底部位置 - 可调节 */
        right: 15px; /* 右侧位置 - 可调节 */
    }
    
    /* 主按钮样式调整 - 只影响非列表/详情页按钮 */
    .download-button:not(.post-list .download-button):not(.blog-single .download-button) {
        padding: 10px 16px;
        font-size: 12px;
        border-radius: 20px;
        min-width: auto;
        border: 0.3px solid #000; /* 边框宽度调整为0.3px */
    }
    
    /* 单独调整文章列表按钮 - 移动端 */
    .post-list .download-button {
        font-size: 5px !important;
        padding: 1px 4px !important;
        border-radius: 10px !important;
        min-width: 60px !important;
        border: 0.3px solid #000 !important; /* 边框宽度调整为0.3px */
    }
    
    /* 文章详情页按钮保持不变 */
    .blog-single .download-button {
        font-size: 11px;
        padding: 6px 12px;
        border-radius: 18px;
        border: 0.3px solid #000; /* 边框宽度调整为0.3px */
    }
    
    /* 文章列表按钮容器位置调整 - 移动端适配 */
 .list-one.post-list .download-button-container {
    right: 5px !important;
    top: -25px !important;
    position: absolute !important;
    z-index: 9999 !important;
  }
    
    /* 文章详情页按钮容器位置调整 - 移动端适配 */
    .blog-single .download-button-container {
        margin-top: -50px !important; /* 上移距离 - 移动端可调节 */
        margin-right: 5px  !important; /* 右移距离 - 移动端可调节 */
    }
    
    /* 移动端下拉菜单优化 - 宽度与按钮一致 */
    .download-dropdown {
        left: auto;
        right: 0;
        width: fit-content !important;
        min-width: 180px;
        max-width: calc(100vw - 30px);
        margin-top: 2px;
        border: 0.3px solid #000; /* 边框宽度调整为0.3px */
        border-top: none;
    }
    
    /* 移动端文章列表下拉菜单特定样式 */
    .post-list .download-dropdown {
        left: auto;
        right: 0;
        width: fit-content !important;
        min-width: 100%;
        max-width: none;
        transform-origin: top right;
        border: 0.3px solid #000; /* 边框宽度调整为0.3px */
        border-top: none;
    }
    
    /* 下拉选项调整 */
    .download-option {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* 更小屏幕的特殊处理 */
@media (max-width: 480px) {
    /* 非列表/详情页按钮保持默认 */
    .download-button:not(.post-list .download-button):not(.blog-single .download-button) {
        padding: 12px 14px;
        font-size: 11px;
        gap: 3px;
        border: 0.3px solid #000; /* 边框宽度调整为0.3px */
    }
    
    /* 单独调整小屏幕下的文章列表按钮 */
    .post-list .download-button {
        font-size: 5px !important;
        padding: 1px4px !important;
        border-radius: 10px !important;
        min-width: 60px !important;
        border: 0.3px solid #000 !important; /* 边框宽度调整为0.3px */
    }

  .list-one.post-list .download-button-container {
    right: 5px !important;
    top: -25px !important;
    position: absolute !important;
    z-index: 9999 !important;
  }
  
    
    /* 小屏幕下的文章详情页按钮容器位置调整 */
    .blog-single .download-button-container {
        margin-top: -50px; /* 上移距离 - 小屏幕可调节 */
        margin-right: 5px; /* 右移距离 - 小屏幕可调节 */
    }
    
    .download-button i {
        font-size: 14px;
    }
}

/* 图标颜色类 - 用于JavaScript随机分配 */
.download-icon-color-1 i {
    color: #e74c3c !important;
}

.download-icon-color-1:hover i {
    color: #c0392b !important;
}

.download-icon-color-2 i {
    color: #3498db !important;
}

.download-icon-color-2:hover i {
    color: #2980b9 !important;
}

.download-icon-color-3 i {
    color: #2ecc71 !important;
}

/* 文章列表的下拉菜单优化 - 电脑端也使用自适应宽度 */
.post-list .download-dropdown {
    width: fit-content !important;
    min-width: 100%;
    max-width: none;
}

/* 确保在所有屏幕尺寸下都保持一致的自适应宽度行为 */
@media (min-width: 769px) {
    /* 电脑端文章列表下拉菜单 - 宽度自适应 */
    .post-list .download-dropdown {
        width: fit-content !important;
        min-width: 100%;
        max-width: none;
    }
}

}

.download-option:hover {
    background-color: #f8f9fa;
    color: #667eea;
}

.download-option i {
    margin-right: 8px;
    color: #667eea;
}

.download-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.download-button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(51, 51, 51, 0.3);
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 统一的响应式设计 - 移动端优化 */
@media (max-width: 768px) {
    /* 固定位置的按钮 */
    .download-button-container.fixed {
        bottom: 15px; /* 底部位置 - 可调节 */
        right: 15px; /* 右侧位置 - 可调节 */
    }
    
    /* 主按钮样式调整 - 只影响非列表/详情页按钮 */
    .download-button:not(.post-list .download-button):not(.blog-single .download-button) {
        padding: 10px 16px;
        font-size: 12px;
        border-radius: 20px;
        min-width: auto;
        border: 0.3px solid #000; /* 边框宽度调整为0.3px */
    }
    
    /* 单独调整文章列表按钮 - 移动端 */
    .post-list .download-button {
        font-size: 5px !important;
        padding: 1px 4px !important;
        border-radius: 10px !important;
        min-width: 60px !important;
        border: 0.3px solid #000 !important; /* 边框宽度调整为0.3px */
    }
    
    /* 文章详情页按钮保持不变 */
    .blog-single .download-button {
        font-size: 11px;
        padding: 6px 12px;
        border-radius: 18px;
        border: 0.3px solid #000; /* 边框宽度调整为0.3px */
    }
    
    /* 文章列表按钮容器位置调整 - 移动端适配 */
 .list-one.post-list .download-button-container {
    right: 5px !important;
    top: -25px !important;
    position: absolute !important;
    z-index: 9999 !important;
  }
    
    /* 文章详情页按钮容器位置调整 - 移动端适配 */
    .blog-single .download-button-container {
        margin-top: -50px !important; /* 上移距离 - 移动端可调节 */
        margin-right: 5px  !important; /* 右移距离 - 移动端可调节 */
    }
    
    /* 移动端下拉菜单优化 - 宽度与按钮一致 */
    .download-dropdown {
        left: auto;
        right: 0;
        width: fit-content !important;
        min-width: 180px;
        max-width: calc(100vw - 30px);
        margin-top: 2px;
        border: 0.3px solid #000; /* 边框宽度调整为0.3px */
        border-top: none;
    }
    
    /* 移动端文章列表下拉菜单特定样式 */
    .post-list .download-dropdown {
        left: auto;
        right: 0;
        width: fit-content !important;
        min-width: 100%;
        max-width: none;
        transform-origin: top right;
        border: 0.3px solid #000; /* 边框宽度调整为0.3px */
        border-top: none;
    }
    
    /* 下拉选项调整 */
    .download-option {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* 更小屏幕的特殊处理 */
@media (max-width: 480px) {
    /* 非列表/详情页按钮保持默认 */
    .download-button:not(.post-list .download-button):not(.blog-single .download-button) {
        padding: 12px 14px;
        font-size: 11px;
        gap: 3px;
        border: 0.3px solid #000; /* 边框宽度调整为0.3px */
    }
    
    /* 单独调整小屏幕下的文章列表按钮 */
    .post-list .download-button {
        font-size: 5px !important;
        padding: 1px4px !important;
        border-radius: 10px !important;
        min-width: 60px !important;
        border: 0.3px solid #000 !important; /* 边框宽度调整为0.3px */
    }

  .list-one.post-list .download-button-container {
    right: 5px !important;
    top: -25px !important;
    position: absolute !important;
    z-index: 9999 !important;
  }
  
    
    /* 小屏幕下的文章详情页按钮容器位置调整 */
    .blog-single .download-button-container {
        margin-top: -50px; /* 上移距离 - 小屏幕可调节 */
        margin-right: 5px; /* 右移距离 - 小屏幕可调节 */
    }
    
    .download-button i {
        font-size: 14px;
    }
}

/* 图标颜色类 - 用于JavaScript随机分配 */
.download-icon-color-1 i {
    color: #e74c3c !important;
}

.download-icon-color-1:hover i {
    color: #c0392b !important;
}

.download-icon-color-2 i {
    color: #3498db !important;
}

.download-icon-color-2:hover i {
    color: #2980b9 !important;
}

.download-icon-color-3 i {
    color: #2ecc71 !important;
}

.download-icon-color-3:hover i {
    color: #27ae60 !important;
}

.download-icon-color-4 i {
    color: #9b59b6 !important;
}

.download-icon-color-4:hover i {
    color: #8e44ad !important;
}

.download-icon-color-5 i {
    color: #e67e22 !important;
}

.download-icon-color-5:hover i {
    color: #d35400 !important;
}

.download-icon-color-6 i {
    color: #1abc9c !important;
}

.download-icon-color-6:hover i {
    color: #16a085 !important;
}

.download-icon-color-7 i {
    color: #f39c12 !important;
}

.download-icon-color-7:hover i {
    color: #e67e22 !important;
}

.download-icon-color-8 i {
    color: #34495e !important;
}

.download-icon-color-8:hover i {
    color: #2c3e50 !important;
}

/* 下载密码样式 */
.download-password,
.download-password-in-dropdown {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.download-password-in-dropdown {
    margin-top: 3px;
    font-size: 11px;
}

.password-text {
    font-weight: 500;
    color: #e74c3c;
}

.copy-password-button {
    padding: 2px 8px;
    font-size: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-password-button:hover {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}