/* 文件上传区域样式 */
.file-upload-area {
    border: 2px dashed var(--secondary-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background-color: rgba(52, 152, 219, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.file-upload-area.dragover {
    background-color: rgba(52, 152, 219, 0.1);
    border-color: var(--primary-color);
}

.file-input-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.file-input-btn {
    position: relative;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.file-input-btn:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.file-input-btn input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-input-btn::before {
    content: '\f0ee';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 2rem;
    color: var(--secondary-color);
}

.file-input-btn.has-file::before {
    content: '\f15b';
    color: var(--primary-color);
}

.file-name {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
    word-break: break-all;
    max-width: 100%;
}

.file-size {
    font-size: 0.8rem;
    color: #666;
}

.upload-instructions {
    color: #666;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.file-type-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

/* 文件类型提示 */
.file-type-hint {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #666;
    margin: 0.2rem;
}

/* 拖拽提示 */
.drag-hint {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.file-upload-area.dragover .drag-hint {
    display: block;
}