body {
    font-family: 'Microsoft JhengHei', 'PingFang TC', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}
.container {
    max-width: 880px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    margin: 20px auto;
}

.container::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><text y="20" font-size="20">🐾</text></svg>') no-repeat;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

.container::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 80px;
    height: 80px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><text y="20" font-size="20">💕</text></svg>') no-repeat;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.section {
    display: none;
    padding: 50px;
    text-align: center;
}

.section.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

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

/* 歡迎頁面樣式 */
.welcome-content h1 {
    color: #ff6b6b;
    font-size: 3em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: bounce 2s infinite;
    line-height: 1.5em;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.welcome-text {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    padding: 25px;
    border-radius: 20px;
    margin: 30px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.welcome-text p {
    font-size: 1.5em;
    margin: 10px 0;
    color: #4a4a4a;
    line-height: 1.6;
}

.welcome-text .highlight {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 1.5em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.pet-selection h2 {
    color: #4ecdc4;
    font-size: 2.5em;
    margin: 30px 0 20px;
    line-height: 1.5em;
}

.pet-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.pet-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 20px;
    padding: 20px 40px;
    color: white;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 150px;
}

.pet-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.dog-btn {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.cat-btn {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.pet-icon {
    font-size: 2em;
    animation: wiggle 2s infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

.pet-text {
    font-size: 1.1em;
}

/* 遊戲頁面樣式 */
.game-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.game-header h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.progress {
    font-size: 1.1em;
    opacity: 0.9;
}

.question-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.question-text {
    font-size: 1.3em;
    color: #4a4a4a;
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 500;
}

.options {
    display: grid;
    gap: 15px;
}

.option-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    border-radius: 15px;
    padding: 15px 20px;
    color: white;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.option-btn:hover {
    background-color: #e8f4fd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.option-btn.correct {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    animation: correctPulse 0.5s ease-in-out;
}

.option-btn.incorrect {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    animation: incorrectShake 0.5s ease-in-out;
}

@keyframes correctPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes incorrectShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.feedback {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    animation: slideIn 0.5s ease-in-out;
}

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

.feedback-text {
    font-size: 1.1em;
    color: #4a4a4a;
    margin-bottom: 15px;
    font-weight: 500;
}

.next-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.next-btn:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

/* 結果頁面樣式 */
.result-content {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.result-content h2 {
    color: #ff6b6b;
    font-size: 2.2em;
    margin-bottom: 30px;
    animation: celebrate 1s ease-in-out;
}

@keyframes celebrate {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.score-display {
    font-size: 2em;
    font-weight: bold;
    color: #4ecdc4;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.result-message {
    font-size: 1.2em;
    color: #4a4a4a;
    margin: 20px 0;
    line-height: 1.6;
}

.restart-btn {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    border: none;
    border-radius: 25px;
    padding: 15px 40px;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}

.restart-btn:hover {
    background-color: #28a745;
    transform: translateY(-1px);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 20px;
    }

    .section {
        padding: 20px;
    }

    .welcome-content h1 {
        font-size: 2em;
    }

    .pet-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .pet-btn {
        min-width: 200px;
    }

    .question-text {
        font-size: 1.1em;
    }

    .option-btn {
        font-size: 1em;
        padding: 12px 15px;
    }
}