/* 下载页特有样式 */
@import url('../res/design/index.css');

.container {
    max-width: 680px;
    display: block;
}

/* 背景装饰（伪元素方式） */
body::before {
    content: '';
    position: fixed;
    top: -15%;
    right: -5%;
    width: 50vw;
    height: 50vw;
    max-width: 400px;
    max-height: 400px;
    background: radial-gradient(circle, 
        var(--theme-orb-1) 0%, 
        var(--theme-orb-1-inner) 50%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    left: -10%;
    width: 55vw;
    height: 55vw;
    max-width: 450px;
    max-height: 450px;
    background: radial-gradient(circle, 
        var(--theme-orb-2) 0%, 
        var(--theme-orb-2-inner) 50%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

/* 文件列表 */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.file-list ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 文件项卡片 */
.file-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    box-shadow: 0 8px 32px var(--theme-glass-shadow),
                inset 0 1px 2px rgba(255, 255, 255, 0.5);
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1),
                box-shadow 0.3s cubic-bezier(0.2, 0, 0, 1);
    overflow: hidden;
    animation: card-enter 0.5s cubic-bezier(0.2, 0, 0, 1) backwards;
}

.file-item:nth-child(1) { animation-delay: 0.05s; }
.file-item:nth-child(2) { animation-delay: 0.1s; }
.file-item:nth-child(3) { animation-delay: 0.15s; }
.file-item:nth-child(4) { animation-delay: 0.2s; }
.file-item:nth-child(5) { animation-delay: 0.25s; }
.file-item:nth-child(6) { animation-delay: 0.3s; }

.file-item::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, 
        rgba(150, 160, 180, 0.1) 0%, 
        transparent 60%
    );
    pointer-events: none;
}

.file-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(100, 100, 120, 0.18),
                inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.file-icon {
    width: 40px;
    height: 40px;
    background: rgba(90, 107, 122, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-icon svg {
    width: 20px;
    height: 20px;
    stroke: #5A6B7A;
    opacity: 0.7;
}

.file-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--md-on-surface);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 下载按钮 */
.download-link {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(90, 107, 122, 0.85);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(90, 107, 122, 0.3);
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    flex-shrink: 0;
}

.download-link:hover {
    box-shadow: 0 4px 16px rgba(90, 107, 122, 0.4);
    transform: scale(1.02);
    background: rgba(90, 107, 122, 0.95);
}

.download-link:active {
    transform: scale(0.98);
}

.download-link svg {
    width: 18px;
    height: 18px;
}

/* 额外按钮 */
.btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(150%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--md-primary);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    margin-top: 20px;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(90, 107, 122, 0.15);
}

/* 响应式 */
@media (max-width: 600px) {
    .file-item {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    .file-info {
        margin-bottom: 12px;
    }

    .download-link {
        width: 100%;
        justify-content: center;
    }
}

/* 减少动画 */
@media (prefers-reduced-motion: reduce) {
    .file-item {
        animation: none;
    }
    .file-item:hover {
        transform: none;
    }
}