﻿/* AList 下载功能样式 */
.alist-download-section {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}
.alist-download-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.alist-download-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}
.alist-download-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}
.batch-select-all {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}
.batch-select-all input {
    margin-right: 8px;
}
.batch-select-all input[type="checkbox"] {

  margin-right: 6px;
  cursor: pointer;
  accent-color: #444;  /* 这里的 #1890ff 就是蓝色 */
}
.alist-file-download-item  input[type="checkbox"] {

  margin-right: 6px;
  cursor: pointer;
  accent-color: #444;  /* 这里的 #1890ff 就是蓝色 */
}

/* 播放器风格进度条样式 */
.alist-progress-bar {
    position: relative;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, #1a1a1a, #2a2a2a);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.2);
    margin: 15px 0;
}
.progress-inner {
    height: 100%;
    background: linear-gradient(to right, #4CAF50, #45a049, #3d8b40);
    background-size: 20px 20px;
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-repeat: repeat;
    background-position: 0 0;
    animation: progressStripes 2s linear infinite;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.6), inset 0 1px 0 rgba(255,255,255,0.3);
    position: relative;
}
.progress-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255,255,255,0.5);
}
.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8), 0 0 10px rgba(0,0,0,0.5);
    z-index: 2;
    white-space: nowrap;
}
.progress-text .percentage {
    font-size: 14px;
    color: #4CAF50;
}
@keyframes progressStripes {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 0;
    }
}

.batch-download-btn {
    padding: 8px 20px;
    background: #666;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}
.batch-download-btn:hover:not(:disabled) {
    background: #888;
}
.batch-download-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.alist-files-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.alist-files-container li {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.alist-files-container li:last-child {
    border-bottom: none;
}
.file-checkbox {
    margin-right: 10px;
    flex-shrink: 0;
}
.alist-files-container a {
    color: #666;
    text-decoration: none;
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.alist-files-container a:hover {
    color: #333;
    text-decoration: none;
}
.alist-files-container a:hover .file-name {
    text-decoration: underline;
}
/* 文件名部分（左侧） */
.alist-files-container a .file-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
/* 文件大小部分（右侧） */
.alist-files-container a .file-size {
    flex-shrink: 0;
    white-space: nowrap;
    color: #999;
    font-size: 13px;
}

/* 进度条样式 */
.alist-progress-bar {
    position: relative;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, #1a1a1a, #2a2a2a);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.2);
    margin: 15px 0;
}
.progress-inner {
    height: 100%;
    background: linear-gradient(to right, #4CAF50, #45a049, #3d8b40);
    background-size: 20px 20px;
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-repeat: repeat;
    background-position: 0 0;
    animation: progressStripes 2s linear infinite;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.6), inset 0 1px 0 rgba(255,255,255,0.3);
    position: relative;
}
.progress-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255,255,255,0.5);
}
.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8), 0 0 10px rgba(0,0,0,0.5);
    z-index: 2;
    white-space: nowrap;
}
.progress-text .percentage {
    font-size: 14px;
    color: #4CAF50;
}
@keyframes progressStripes {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 0;
    }
}

/* 响应式设计：移动端适配 */
@media (max-width: 768px) {
    .alist-download-controls {
        gap: 10px;
    }

    .batch-download-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .alist-files-container li {
        padding: 8px;
    }

    .file-checkbox {
        width: 18px;
        height: 18px;
    }

    .alist-files-container a {
        font-size: 13px;
        gap: 8px;
    }

    .alist-files-container a .file-name {
        max-width: calc(100% - 60px);
    }

    .alist-files-container a .file-size {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .alist-files-container a {
        font-size: 12px;
    }

    .alist-files-container a .file-name {
        max-width: calc(100% - 50px);
    }

    .alist-files-container a .file-size {
        font-size: 11px;
    }
}