/* AI选菜工具 - 样式文件 */
/* 简洁干净的浅色系设计风格 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* 导航返回按钮样式 */
.header-nav {
    margin-bottom: 20px;
}

.back-nav {
    display: inline-block;
    padding: 8px 16px;
    background-color: #e9ecef;
    color: #6c757d;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-nav:hover {
    background-color: #dee2e6;
    color: #495057;
    transform: translateY(-1px);
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 300;
}

header p {
    color: #6c757d;
    font-size: 1.1rem;
}

.main-content {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 选择区域样式 */
.selection-area {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.form-group label {
    display: block;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
}

/* 定位区域样式 */
.location-area {
    display: flex;
    gap: 10px;
    align-items: center;
}

#locationInput {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: #f8f9fa;
    color: #6c757d;
}

.location-btn {
    padding: 12px 20px;
    background-color: #e9ecef;
    color: #495057;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.location-btn:hover {
    background-color: #dee2e6;
    transform: translateY(-1px);
}

/* 选项按钮样式 */
.people-options,
.price-options,
.type-options,
.taste-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.option-btn {
    padding: 12px 16px;
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-btn:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
}

.option-btn.selected {
    background-color: #dee2e6;
    color: #495057;
    border-color: #ced4da;
}

.btn {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background-color: #e9ecef;
    color: #495057;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 20px;
    font-weight: 500;
}

.btn:hover {
    background-color: #dee2e6;
    transform: translateY(-1px);
}

.btn:disabled {
    background-color: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
    transform: none;
}

.ai-thinking {
    margin-top: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    border: 1px solid #e9ecef;
}

.ai-thinking .line {
    margin-bottom: 8px;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    color: #6c757d;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result {
    margin-top: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.result h3 {
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.food-item {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.food-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.food-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.price-info {
    margin-bottom: 8px;
}

.food-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #28a745;
    background-color: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.food-details {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #6c757d;
}

.food-reason {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.4;
    margin-top: 8px;
}

.food-price {
    font-weight: 600;
    color: #28a745;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .location-area {
        flex-direction: column;
        align-items: stretch;
    }
    
    .location-btn {
        margin-top: 10px;
    }
    
    .people-options,
    .price-options,
    .type-options,
    .taste-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}