/* 通用设置 */
body {
    background: rgba(255, 255, 255, 0.1);
    font-family: "Segoe UI", sans-serif;
    padding: 40px 20px;
    margin: 0;
}

a {
    text-align: center;
    color: rgb(13, 188, 241);
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

h1,
h2 {
    text-align: center;
    color: #444;
    font-size: 24px;
}

/* 弹窗样式 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.popup-content {
    background: white;
    padding: 30px;
    max-width: 90%;
    width: 400px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.popup-message {
    margin: 20px 0;
    text-align: left;
    white-space: pre-wrap;
}

.popup-content button {
    padding: 10px 20px;
    background: #007BFF;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.popup-content button:hover {
    background: #0056b3;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.35);
}

/* 文件列表容器：卡片布局 */
.file-list {
    max-width: 1100px;
    margin: 30px auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    /* 每个是小块 */
    gap: 15px;
    animation: fadeInUp 0.8s ease-out;
}


/* 每个文件：单独卡片 */
.file-item {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 15px 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    word-break: break-word;
    min-height: 120px;
    animation: itemFade 0.6s ease forwards;
    opacity: 0;
}

.file-icon {
    font-size: 32px;
    margin-bottom: 8px;
}


.file-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}


/* 延迟动画出现 */
.file-item:nth-child(1) {
    animation-delay: 0.1s;
}

.file-item:nth-child(2) {
    animation-delay: 0.2s;
}

.file-item:nth-child(3) {
    animation-delay: 0.3s;
}

.file-item:nth-child(4) {
    animation-delay: 0.4s;
}

/* 如需更多可以继续加 */

.file-name {
    font-size: 14px;
    font-weight: 600;
    color: #007BFF;
    margin-bottom: 8px;
}

.file-name:hover {
    transform: scale(1.05);
    color: #0056b3;
}

.file-size {
    color: #888;
    font-size: 0.8em;
}
.update-message {
    background-color: #fffbcc;
    padding: 10px;
    margin: 15px 0;
    border-left: 5px solid #ffc107;
    font-weight: bold;
    border-radius: 6px;
}
/* 淡入动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes itemFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式优化 */
@media (max-width: 480px) {
    .file-list {
        grid-template-columns: 1fr;
    }

    .popup-content {
        width: 90%;
        padding: 20px;
    }
}