/* 基础样式 */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
}

.card-header {
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

/* 输入框和下拉菜单样式 */
#productInput {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
}

.autocomplete-dropdown {
    position: absolute;
    z-index: 1000;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-top: 0.25rem;
}

.autocomplete-item {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f1f1f1;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: #f8f9fa;
}

.autocomplete-item.active {
    background-color: #0d6efd;
    color: white;
}

/* 结果区域样式 */
#resultsContainer {
    animation: fadeIn 0.3s ease-out;
}

.result-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    border-left: 4px solid #0d6efd;
}

.result-item h6 {
    color: #0d6efd;
    margin-bottom: 0.75rem;
}

.result-dates {
    display: flex;
    justify-content: space-between;
}

.result-date {
    flex: 1;
    padding: 0.5rem;
    background-color: white;
    border-radius: 0.25rem;
    margin: 0 0.25rem;
    text-align: center;
}

.result-date strong {
    color: #198754;
    font-weight: 600;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式调整 */
@media (max-width: 576px) {
    .result-dates {
        flex-direction: column;
    }
    .result-date {
        margin: 0.25rem 0;
    }
}