* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "SimHei", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    color: #fff;
    font-size: 48px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: 8px;
    margin-bottom: 10px;
}

.subtitle {
    color: #ffd700;
    font-size: 18px;
    font-style: italic;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.main-content {
    display: flex;
    justify-content: center;
}

.riddle-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.riddle-question {
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(120deg, #e8f4f8 0%, #f0f7ff 100%);
    border-radius: 12px;
    border-left: 5px solid #667eea;
}

.label {
    font-size: 20px;
    color: #667eea;
    font-weight: bold;
}

.question-text {
    font-size: 22px;
    color: #333;
    line-height: 1.8;
    display: block;
    margin-top: 10px;
}

.riddle-answer {
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(120deg, #fff9e6 0%, #fff5d6 100%);
    border-radius: 12px;
    border-left: 5px solid #f5a623;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.answer-text {
    font-size: 22px;
    color: #d35400;
    font-weight: bold;
    line-height: 1.8;
    display: block;
    margin-top: 10px;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.button-group.hidden {
    display: none;
}

.btn {
    padding: 15px 40px;
    font-size: 18px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    min-width: 140px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.6);
}

.btn:active {
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .header h1 {
        font-size: 36px;
        letter-spacing: 4px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .riddle-card {
        padding: 25px;
    }
    
    .label {
        font-size: 18px;
    }
    
    .question-text,
    .answer-text {
        font-size: 18px;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 16px;
        min-width: 120px;
    }
    
    .button-group {
        gap: 10px;
    }
}
