/* 容器整体样式 */
.afm-frontend-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* 管理员上传区（仅管理员可见） */
.afm-admin-upload-area {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.afm-admin-title {
    color: #1d2129;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

.afm-upload-box {
    gap: 15px;
    display: flex;
    flex-direction: column;
}

.afm-upload-option {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.afm-upload-label {
    font-size: 14px;
    color: #4e5969;
    font-weight: 500;
}

.afm-upload-input {
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    max-width: 500px;
}

.afm-upload-btn {
    width: fit-content;
    padding: 10px 20px;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.afm-upload-btn:hover {
    background: #006ba1;
}

.afm-upload-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.afm-upload-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.afm-upload-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* 下载区样式（所有用户可见） */
.afm-download-area {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.afm-download-title {
    color: #1d2129;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

.afm-file-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.afm-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.afm-file-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.afm-file-name {
    font-size: 15px;
    color: #1d2129;
    font-weight: 500;
}

.afm-file-meta {
    font-size: 12px;
    color: #6c757d;
}

.afm-file-actions {
    display: flex;
    gap: 10px;
}

.afm-download-btn {
    padding: 6px 12px;
    background: #28a745;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.afm-download-btn:hover {
    background: #218838;
    color: #fff;
}

/* 管理员删除按钮 */
.afm-delete-btn {
    padding: 6px 12px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.afm-delete-btn:hover {
    background: #c82333;
}

/* 空状态样式 */
.afm-empty {
    color: #6c757d;
    font-size: 14px;
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 4px;
}