/* 成语详情页样式 */

.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;
    flex-wrap: wrap;
}

.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;
}

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

.cy-head {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 2px solid #edf2f7;
}

.cy-title {
    font-size: 40px;
    color: #2d3748;
    letter-spacing: 8px;
    margin: 0 0 12px;
    font-weight: 700;
}

.cy-pinyin {
    font-size: 18px;
    color: #667eea;
    margin: 8px 0;
}

.cy-fanti {
    font-size: 14px;
    color: #a0aec0;
    margin: 6px 0;
}

.cy-fanti i {
    margin-right: 6px;
}

.cy-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.cy-badge {
    border-radius: 50px;
    padding: 3px 14px;
    font-size: 13px;
}

.badge-good {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #276749;
}

.badge-bad {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
}

.badge-struct {
    background: #ebf4ff;
    border: 1px solid #bee3f8;
    color: #2b6cb0;
}

.badge-wubi {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    color: #718096;
}

.badge-cate {
    background: #faf5ff;
    border: 1px solid #d6bcfa;
    color: #6b46c1;
    text-decoration: none;
}

/* 逐字交联 */
.char-links {
    padding: 22px 0;
    border-bottom: 1px solid #edf2f7;
}

.char-links h3,
.cy-section h3 {
    font-size: 17px;
    color: #2d3748;
    margin: 0 0 14px;
}

.char-links h3 i,
.cy-section h3 i {
    color: #667eea;
    margin-right: 8px;
}

.char-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.char-cell {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    text-align: center;
}

.char-zi {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 6px;
}

.char-actions {
    display: flex;
    gap: 8px;
}

.char-actions a {
    font-size: 12px;
    color: #667eea;
    text-decoration: none;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 2px 10px;
}

.char-actions a:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 正文段落 */
.cy-section {
    padding: 20px 0;
    border-bottom: 1px solid #edf2f7;
}

.cy-text {
    font-size: 16px;
    color: #2d3748;
    line-height: 1.9;
    margin: 0;
}

.cy-sub {
    margin-top: 10px;
    color: #4a5568;
    font-size: 15px;
}

.cy-sub i {
    color: #667eea;
}

/* 近义反义 */
.yi-fan {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.yf-box {
    border-radius: 12px;
    padding: 18px 20px;
    border: 1px solid #e2e8f0;
    border-bottom: none;
}

.yf-jin {
    background: #f0fff4;
}

.yf-fan {
    background: #f7fafc;
}

.yi-fan .cy-section {
    padding: 0;
    border-bottom: none;
}

.link-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.link-tag {
    border-radius: 8px;
    padding: 5px 14px;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.15s;
}

.tag-jin {
    background: white;
    border: 1px solid #9ae6b4;
    color: #276749;
}

.tag-jin:hover {
    background: #48bb78;
    color: white;
}

.tag-fan {
    background: white;
    border: 1px solid #cbd5e0;
    color: #718096;
}

.tag-fan:hover {
    background: #a0aec0;
    color: white;
}

.tag-long {
    background: #faf5ff;
    border: 1px solid #d6bcfa;
    color: #6b46c1;
}

.tag-long:hover {
    background: #6b46c1;
    color: white;
}

.link-empty {
    color: #a0aec0;
    font-size: 14px;
}

.jielong-tags {
    align-items: center;
}

.jielong-arrow {
    color: #cbd5e0;
    font-size: 13px;
}

/* 底部操作 */
.cy-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 24px;
}

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

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

.action-btn.primary {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.action-btn.primary:hover {
    background: #5a67d8;
    color: white;
}

@media (max-width: 768px) {
    .cy-detail {
        padding: 22px 16px;
    }

    .cy-title {
        font-size: 30px;
        letter-spacing: 4px;
    }

    .yi-fan {
        grid-template-columns: 1fr;
    }
}
