/* 页面基本样式 */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

/* 进度条容器 */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: #f0f0f0;
    z-index: 10000;
    overflow: hidden;
}

/* 进度条 */
.progress {
    height: 100%;
    width: 0;
    background: linear-gradient(to right, red, yellow, green);
    transition: width 0.3s ease;
    max-width: 100%;
}

/* 头部浮窗样式 */
.header-popup {
    position: fixed;
    top: 8px;
    left: 0;
    width: 100%;
    background-color: #333;
    color: white;
    display: flex;
    flex-wrap: wrap; /* 允许换行 */
    align-items: center;
    padding: 15px;
    font-size: 16px;
    z-index: 9999;
    gap: 10px; /* 组件之间的间距 */
}

/* 文件选择按钮和下载凭证按钮样式 */
.file-input {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
    text-decoration: none;
    min-width: 120px; /* 固定最小宽度 */
    max-width: 150px; /* 固定最大宽度 */
    text-align: center; /* 文字居中 */
    white-space: nowrap; /* 禁止文字换行 */
}

.file-input:hover {
    background-color: #45a049;
}

/* 下拉框样式 */
.account-select {
    padding: 8px;
    font-size: 14px;
    border-radius: 5px;
    min-width: 120px; /* 固定最小宽度 */
    max-width: 150px; /* 固定最大宽度 */
}

/* 搜索框容器 */
.search-container {
    display: flex;
    align-items: center;
    margin-right: 10px;
    flex: 1; /* 允许搜索框占据剩余空间 */
    min-width: 200px; /* 固定最小宽度 */
}

/* 搜索输入框 */
#search-input {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 5px;
    flex: 1; /* 自适应宽度 */
}

/* 搜索按钮 */
#search-button {
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
    min-width: 80px; /* 固定最小宽度 */
}

#search-button:hover {
    background-color: #45a049;
}

/* 页面内容部分 */
.content {
    margin-top: 100px;
    padding: 20px;
}

/* 显示存储桶文件 */
.files-list {
    margin-top: 20px;
}

/* 文件名的样式 */
.files-list ul {
    padding-left: 0;
    list-style-type: none;
}

.files-list li {
    font-size: 18px;
    line-height: 2;
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
    margin: 5px 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 文件名高亮效果 */
.files-list li:hover {
    background-color: #f0f0f0;
    cursor: pointer;
}

/* 文件生命周期设置弹窗 */
.file-lifecycle-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* 弹窗内容样式 */
.file-lifecycle-modal-content {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.file-lifecycle-modal-content input {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.file-lifecycle-modal-content button {
    padding: 8px 16px;
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.file-lifecycle-modal-content button:hover {
    background-color: #218838;
}

/* 底部浮窗样式 */
.footer-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 14px;
    z-index: 9999;
}

/* 动态渐变背景 */
@keyframes waterFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 毛玻璃效果和动态渐变 */
.water-flow-effect {
    background: linear-gradient(
        90deg,
        rgba(255, 0, 0, 0.8), /* 红色 */
        rgba(0, 255, 0, 0.8), /* 绿色 */
        rgba(0, 0, 255, 0.8), /* 蓝色 */
        rgba(255, 255, 0, 0.8), /* 黄色 */
        rgba(255, 0, 255, 0.8)  /* 紫色 */
    );
    background-size: 200% 100%; /* 背景大小为 200%，用于动画 */
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    animation: waterFlow 2s linear infinite; /* 加快流动效果，5秒完成一次渐变循环 */
}

/* 移动端适配 */
@media screen and (max-width: 600px) {
    :root {
        font-size: 14px;
    }

    /* 头部浮窗 */
    .header-popup {
        padding: 0.5rem;
        font-size: 0.875rem;
        gap: 0.5rem;
        margin-top: 8px;
    }

    .header-popup .file-input,
    .header-popup .account-select,
    .header-popup #search-button {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
        margin: 0;
        min-width: 100px; /* 固定最小宽度 */
        max-width: 120px; /* 固定最大宽度 */
    }

    .header-popup #search-input {
        font-size: 0.75rem;
        padding: 0.5rem;
        margin: 0;
        min-width: 100px; /* 固定最小宽度 */
    }

    /* 搜索框容器 */
    .search-container {
        flex: 1 1 100%;
        display: flex;
        gap: 0.5rem;
    }

    /* 文件列表 */
    .files-list li {
        font-size: 0.875rem;
        line-height: 1.5;
        padding: 0.25rem 0;
    }

    /* 弹窗 */
    .file-lifecycle-modal-content {
        width: 90%;
        padding: 1rem;
    }

    .file-lifecycle-modal-content h2 {
        font-size: 1.125rem;
    }

    .file-lifecycle-modal-content input,
    .file-lifecycle-modal-content button {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }

    /* 底部浮窗 */
    .footer-popup {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
} 