/* ========== 基础重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8d9 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

/* ========== 页面切换 ========== */
.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== 欢迎页 ========== */
.hero {
    text-align: center;
    padding: 40px 20px;
}

.hero h1 {
    font-size: 2.5rem;
    color: #e65100;
    margin-bottom: 12px;
    text-shadow: 2px 2px 0px #ffccbc;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 24px;
}

.food-icons {
    font-size: 2.5rem;
    margin-bottom: 32px;
    letter-spacing: 8px;
}

.btn-start,
.btn-restart {
    background: linear-gradient(135deg, #ff7043 0%, #f4511e 100%);
    color: white;
    border: none;
    padding: 16px 48px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 81, 30, 0.3);
}

.btn-start:hover,
.btn-restart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 81, 30, 0.4);
}

/* ========== 进度条 ========== */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff7043, #ffab91);
    border-radius: 4px;
    transition: width 0.4s ease;
    width: 0%;
}

.question-counter {
    text-align: right;
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* ========== 题目卡片 ========== */
.question-card {
    background: white;
    border-radius: 20px;
    padding: 32px 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.question-card h2 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 28px;
    line-height: 1.5;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    background: #fafafa;
    border: 2px solid #eee;
    border-radius: 16px;
    padding: 18px 20px;
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #444;
}

.option-btn:hover {
    background: #fff3e0;
    border-color: #ffcc80;
    transform: translateX(6px);
}

.option-btn:active {
    transform: translateX(6px) scale(0.98);
}

/* ========== 结果页 ========== */
.result-card {
    background: white;
    border-radius: 24px;
    padding: 40px 28px;
    text-align: center;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1);
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.result-card h2 {
    font-size: 1.2rem;
    color: #999;
    margin-bottom: 8px;
    font-weight: normal;
}

.result-type {
    font-size: 2rem;
    font-weight: bold;
    color: #e65100;
    margin-bottom: 16px;
}

.result-desc {
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.result-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
}

.tag {
    background: #fff3e0;
    color: #e65100;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.recommendation {
    background: #fafafa;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 28px;
}

.recommendation h3 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 8px;
}

.recommendation p {
    color: #666;
    font-size: 0.95rem;
}

/* ========== 响应式 ========== */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    .question-card {
        padding: 24px 16px;
    }
    .option-btn {
        padding: 14px 16px;
    }
}
