/* 谜语详情页样式 */

.breadcrumb {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    list-style-type: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: #718096;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    list-style: none;
}

.breadcrumb-list a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb-list li::after {
    content: '/';
    margin-left: 10px;
    color: #cbd5e0;
}

.breadcrumb-list li:last-child::after {
    display: none;
}

/* 谜语主卡片 */
.riddle-detail {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 36px 40px;
    margin: 25px 0;
}

.riddle-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag-class,
.tag-type {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 6px;
    padding: 3px 12px;
    font-size: 13px;
}

.tag-class {
    background: #ebf4ff;
    color: #667eea;
}

.tag-type {
    background: #f7fafc;
    color: #718096;
}

.riddle-question {
    font-size: 28px;
    color: #2d3748;
    line-height: 1.5;
    margin: 0 0 26px;
    font-weight: 700;
}

/* 谜底区域 */
.answer-area {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
}

.answer-mask {
    background: linear-gradient(135deg, #f6f8fc 0%, #eef1f8 100%);
    border: 2px dashed #c3dafe;
    border-radius: 14px;
    padding: 40px 20px;
    text-align: center;
}

.answer-mask i.fa-lightbulb {
    font-size: 42px;
    color: #f6ad55;
    margin-bottom: 14px;
}

.answer-mask p {
    color: #718096;
    font-size: 15px;
    margin: 0 0 20px;
}

.reveal-btn {
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 36px;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

.reveal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.45);
}

.answer-content {
    background: linear-gradient(135deg, #f0fff4 0%, #ebf8ff 100%);
    border: 1px solid #c6f6d5;
    border-radius: 14px;
    padding: 28px 32px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.answer-content.show {
    opacity: 1;
    transform: translateY(0);
}

.answer-label {
    color: #38a169;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 8px;
}

.answer-label i {
    margin-right: 6px;
}

.answer-text {
    font-size: 30px;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
    letter-spacing: 1px;
}

.answer-explain {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

/* 操作按钮 */
.riddle-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 50px;
    padding: 8px 20px;
    color: #4a5568;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
}

.action-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

/* 相关谜语 */
.related-section h2 {
    font-size: 20px;
    color: #2d3748;
    margin: 35px 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #edf2f7;
}

.related-section h2 i {
    color: #667eea;
    margin-right: 8px;
}

.riddle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.riddle-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 22px;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.riddle-card:hover {
    transform: translateY(-3px);
    border-color: #667eea;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.riddle-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.riddle-class {
    background: #ebf4ff;
    color: #667eea;
    border-radius: 6px;
    padding: 2px 10px;
    font-size: 12px;
}

.riddle-type {
    background: #f7fafc;
    color: #718096;
    border-radius: 6px;
    padding: 2px 10px;
    font-size: 12px;
}

.riddle-card .riddle-question {
    color: #2d3748;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    margin: 0 0 14px;
    flex: 1;
}

.riddle-link {
    color: #667eea;
    font-size: 13px;
}

.riddle-link i {
    margin-right: 5px;
}

/* 移动端 */
@media (max-width: 768px) {
    .riddle-detail {
        padding: 22px 18px;
    }

    .riddle-question {
        font-size: 22px;
    }

    .answer-text {
        font-size: 24px;
    }

    .riddle-grid {
        grid-template-columns: 1fr;
    }
}
