/* ============================================
   poetry.php 名字查诗页
============================================ */

.poetry-name-item {
    flex: 1;
    min-width: 220px;
}

.poetry-examples {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #eee;
}

.poetry-examples-label {
    font-size: 13px;
    color: #999;
}

.poetry-chip {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    background: #faf5f4;
    color: #C41A1A;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid #f0d9d6;
}
.poetry-chip:hover {
    background: #C41A1A;
    color: #fff;
    border-color: #C41A1A;
}

.poetry-overview {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    padding: 22px 24px;
    margin: 18px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

.poetry-overview-main {
    flex: 1;
    min-width: 260px;
}

.poetry-h1 {
    font-size: 24px;
    font-weight: 800;
    color: #333;
    margin: 0 0 10px;
    letter-spacing: 1px;
}

.poetry-lead {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin: 0;
}

.poetry-corpus {
    width: 220px;
    background: #fafafa;
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid #f0f0f0;
}

.poetry-corpus-title {
    font-size: 14px;
    font-weight: 700;
    color: #C41A1A;
    margin-bottom: 8px;
}

.poetry-corpus-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.9;
}

.poetry-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.poetry-stat-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    padding: 12px 14px;
    min-width: 180px;
    flex: 1;
}

.poetry-stat-wide {
    flex: 2;
}

.poetry-stat-title {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.poetry-stat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.poetry-tag {
    display: inline-block;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    background: #fef0ed;
    color: #C41A1A;
}
.poetry-tag.soft {
    background: #f5f5f5;
    color: #666;
}

.poetry-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}

.poetry-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.poetry-no {
    font-size: 12px;
    color: #bbb;
    font-weight: 700;
}

.poetry-match-badge,
.poetry-kind-badge {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 10px;
    background: #fef0ed;
    color: #C41A1A;
    font-weight: 600;
}

.poetry-kind-badge {
    background: #f0f7ff;
    color: #2c6fad;
}

.poetry-line {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 17px;
    line-height: 1.9;
    color: #333;
    font-weight: 500;
}

.poetry-line .hl,
.poetry-line em.hl {
    color: #C41A1A;
    font-style: normal;
    font-weight: 800;
    background: #fff3f0;
    padding: 0 2px;
    border-radius: 2px;
}

.poetry-cite {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
    font-size: 13px;
    color: #888;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.poetry-cite i {
    color: #C41A1A;
    font-size: 12px;
}

.poetry-cite cite {
    font-style: normal;
    color: #555;
    font-weight: 600;
}

.poetry-source {
    font-size: 11px;
    color: #bbb;
    margin-left: auto;
}

.poetry-related {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 10px;
}

.poetry-related-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #f0d9d6;
    color: #C41A1A;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.poetry-related-link:hover {
    background: #C41A1A;
    color: #fff;
}

.poetry-intro {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    margin: 18px 0;
    border: 1px solid #f0f0f0;
}

.poetry-howto {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.poetry-howto-item {
    flex: 1;
    min-width: 180px;
    background: #fafafa;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    color: #555;
    border: 1px solid #f0f0f0;
}

@media (max-width: 768px) {
    .poetry-corpus {
        width: 100%;
    }
    .poetry-h1 {
        font-size: 20px;
    }
    .poetry-line {
        font-size: 16px;
    }
    .poetry-source {
        margin-left: 0;
        width: 100%;
    }
}
