.input-area-container {
    padding: 20px 24px 30px;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.input-wrapper {
    display: flex;
    align-items: flex-end;
    background-color: #f7f7f7;
    border-radius: 16px;
    padding: 8px 12px;
    border: 1px solid transparent;
    transition: border-color 0.2s, background-color 0.2s;
}

.input-wrapper:focus-within {
    border-color: #ddd;
    background-color: white;
}

.input-wrapper.drag-over {
    border-color: var(--primary-color);
    background-color: #fff0f0;
}

#chat-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px;
    font-size: 15px;
    resize: none;
    outline: none;
    max-height: 200px;
    min-height: 40px;
    overflow-y: hidden; /* 隐藏初始滚动条 */
}

/* 响应式调整 */
@media (max-width: 768px) {
    .input-area-container {
        padding: 12px 16px 20px;
    }

    .input-wrapper {
        border-radius: 12px;
        padding: 6px 10px;
    }

    #chat-input {
        font-size: 14px;
        padding: 8px;
        max-height: 120px; /* 移动端减小最大高度，防止占据太多空间 */
    }

    .preview-item {
        width: 60px;
        height: 60px;
    }

    .input-footer {
        display: none; /* 移动端隐藏底部提示以节省空间 */
    }
}

.btn-send {
    color: var(--primary-color);
}

.input-footer {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 8px;
}

/* 图片预览区 */
.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    padding: 8px;
    background: #f9f9f9;
    border-radius: 8px;
}

.preview-item {
    position: relative;
    width: 80px;
    height: 80px;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
    cursor: zoom-in;
    transition: opacity 0.2s;
}

.preview-item img:hover {
    opacity: 0.8;
}

.remove-preview {
    position: absolute;
    top: -6px;
    right: -6px;
    background: rgba(0,0,0,0.5);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.remove-preview:hover {
    background: var(--primary-color);
}
