/* 灯谜会区域样式 */
.riddles-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.riddles-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* 灯谜卡片样式 */
.riddle-card {
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.riddle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(231, 76, 60, 0.1);
}

.riddle-number {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
}

.riddle-type {
    font-size: 0.9rem;
    color: var(--primary-color);
    background: rgba(231, 76, 60, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
}

.riddle-body {
    text-align: left;
}

.riddle-question {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 1.2rem;
    line-height: 1.6;
    font-weight: 500;
}

.riddle-hint {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
}

.riddle-controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    padding: 0 1.5rem;
}

.riddle-controls .btn {
    min-width: 180px;
    flex: 0 1 auto;
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
    white-space: nowrap;
}

.riddle-controls .btn-icon {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    min-width: auto;
}

.riddle-answer {
    background: rgba(231, 76, 60, 0.05);
    border-radius: 0.8rem;
    padding: 1rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.riddle-answer.show {
    opacity: 1;
    transform: translateY(0);
}

.answer-content h4 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.answer-explanation {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.5;
}

.riddle-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(231, 76, 60, 0.1);
}

/* 导航箭头图标 */
.arrow-left,
.arrow-right {
    width: 20px;
    height: 20px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.arrow-left {
    background-image: url('../assets/icons/arrow-left.svg');
}

.arrow-right {
    background-image: url('../assets/icons/arrow-right.svg');
}

/* 响应式调整 */
@media (max-width: 768px) {
    .riddles-content {
        padding: 3.5rem 1rem;
    }

    .riddle-card {
        padding: 1.2rem;
    }

    .riddle-question {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .riddle-controls {
        justify-content: center;
        gap: 1rem;
        padding: 0 0.8rem;
    }

    .riddle-controls .btn {
        min-width: 100px;
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .riddle-header {
        flex-direction: row;
        gap: 0.8rem;
        align-items: center;
        margin-bottom: 0.8rem;
        padding-bottom: 0.6rem;
    }

    .riddle-question {
        font-size: 1.1rem;
    }

    .riddle-hint {
        font-size: 1rem;
    }

    .answer-content h4 {
        font-size: 1.1rem;
    }

    .answer-explanation {
        font-size: 0.9rem;
    }

    .riddle-controls {
        gap: 0.8rem;
        padding: 0 0.5rem;
    }

    .riddle-controls .btn {
        min-width: 90px;
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}