
.cipai-detail-page.cipai-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.cipai-detail-page .cipai-header {
    position: relative;
    overflow: hidden;
    background: linear-gradient(115deg, #fffdf9 0%, #faf7f1 100%);
    border: 1px solid #eee7dd;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(65, 45, 28, 0.04);
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
}

.cipai-detail-page .cipai-header::before {
    content: "";
    position: absolute;
    top: 1.5rem;
    bottom: 1.5rem;
    left: 0;
    width: 3px;
    background: var(--color-accent);
}

.cipai-detail-page .cipai-header-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 2rem;
}

.cipai-detail-page .cipai-title-block {
    min-width: 0;
}

.cipai-detail-page .cipai-title-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    margin-top: 0.375rem;
}

.cipai-detail-page .cipai-heading {
    font-family: var(--font-serif);
    font-size: clamp(1.625rem, 3vw, 1.875rem);
    font-weight: 700;
    color: #302925;
    letter-spacing: 0.1em;
    line-height: 1.4;
}

.cipai-detail-page .cipai-badge {
    display: inline-block;
    font-size: 0.6875rem;
    line-height: 1;
    color: #a3444b;
    letter-spacing: 0.22em;
    padding: 0.35rem 0.5rem 0.35rem 0.7rem;
    background: rgba(192, 72, 81, 0.08);
    border-radius: 3px;
}

.cipai-detail-page .cipai-count {
    font-size: 0.8125rem;
    color: #827971;
    letter-spacing: 0.04em;
}

.cipai-detail-page .cipai-count span {
    color: #a3444b;
    font-weight: 600;
}

.cipai-detail-page .cipai-backlink {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.375rem 0.625rem;
    border: 1px solid #e9e2d9;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.8125rem;
    color: #004B50;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cipai-detail-page .cipai-backlink::before {
    content: "←";
    font-size: 0.9375rem;
}

.cipai-detail-page .cipai-backlink:hover {
    color: #a3444b;
    border-color: rgba(192, 72, 81, 0.3);
    background: #fff;
}

.cipai-detail-page .cipai-backlink:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.cipai-detail-page .cipai-summary {
    margin-top: 1.125rem;
    padding-top: 0.875rem;
    border-top: 1px solid rgba(139, 69, 19, 0.11);
}

.cipai-detail-page .cipai-aliases {
    font-size: 0.875rem;
    color: #756f69;
    line-height: 1.8;
}

.cipai-detail-page .cipai-aliases em {
    font-style: normal;
    color: #a3444b;
    padding-right: 0.375rem;
}

.cipai-detail-page .cipai-desc {
    margin-top: 0.375rem;
    font-size: 0.875rem;
    color: #625e59;
    line-height: 1.85;
}

.cipai-detail-page .cipai-desc:first-child {
    margin-top: 0;
}


@media (max-width: 600px) {
.cipai-detail-page .cipai-header {
        padding: 1.25rem;
    }

.cipai-detail-page .cipai-header::before {
        top: 1.25rem;
        bottom: 1.25rem;
    }

.cipai-detail-page .cipai-header-main {
        flex-wrap: wrap;
    }

.cipai-detail-page .cipai-title-block {
        width: 100%;
    }

.cipai-detail-page .cipai-backlink {
        margin-top: 0.125rem;
    }

.cipai-detail-page .cipai-summary {
        margin-top: 0.875rem;
    }

}
.cipai-detail-page .poem-list-section .poem-card {
    background: #fff;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.25s ease;
}

.cipai-detail-page .poem-list-section .poem-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cipai-detail-page .poem-list-section .poem-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.cipai-detail-page .poem-list-section .poem-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 0.125rem;
}

.cipai-detail-page .poem-list-section .poem-title a:hover {
    color: #C04851;
}

.cipai-detail-page .poem-list-section .poem-meta {
    font-size: 0.75rem;
    color: #888;
}

.cipai-detail-page .poem-list-section .poem-meta a:hover {
    color: #C04851;
}

.cipai-detail-page .poem-list-section .poem-tags {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.cipai-detail-page .poem-list-section .poem-tag {
    font-size: 0.6875rem;
    color: #888;
    padding: 0.15rem 0.4rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 3px;
    transition: all 0.25s ease;
}

.cipai-detail-page .poem-list-section .poem-tag:hover {
    color: #C04851;
    background: rgba(192, 72, 81, 0.06);
}

.cipai-detail-page .poem-list-section .poem-content {
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    line-height: 1.85;
    color: #444;
    letter-spacing: 0.02em;
}

.cipai-detail-page .poem-list-section .poem-tools {
    display: flex;
    gap: 0.375rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.cipai-detail-page .poem-list-section .tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
    color: #888;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.cipai-detail-page .poem-list-section .tool-btn svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.cipai-detail-page .poem-list-section .tool-btn:hover {
    color: #C04851;
    border-color: rgba(192, 72, 81, 0.2);
    background: rgba(192, 72, 81, 0.04);
}

.cipai-detail-page .poem-list-section .tool-btn.active {
    color: #fff;
    background: #C04851;
    border-color: #C04851;
}

.cipai-detail-page .card-pinyin {
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    line-height: 2.3;
    color: #444;
    letter-spacing: 0.1em;
}

.cipai-detail-page .card-pinyin ruby {
    margin: 0 0.25em;
}

.cipai-detail-page .card-pinyin rt {
    font-size: 0.75em;
    color: #999;
    line-height: 3;
    letter-spacing: -0.02em;
}

.cipai-detail-page .card-view-poem {
    font-family: var(--font-serif);
    line-height: 1.85;
    color: #444;
    margin-bottom: 0.75rem;
}

.cipai-detail-page .card-line {
    font-family: var(--font-serif);
    line-height: 1.85;
    color: #444;
}

.cipai-detail-page .card-line-trans {
    font-size: 0.8125rem;
    color: #999;
    line-height: 1.7;
    margin: 0.125rem 0 0.625rem;
}

.cipai-detail-page .card-translation p {
    font-size: 0.8125rem;
    color: #888;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.cipai-detail-page .card-anno-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.375rem 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.04);
}

.cipai-detail-page .card-anno-item:last-child {
    border-bottom: none;
}

.cipai-detail-page .card-anno-word {
    font-family: var(--font-serif);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #004B50;
    flex-shrink: 0;
}

.cipai-detail-page .card-anno-desc {
    font-size: 0.8125rem;
    color: #888;
    line-height: 1.8;
}

.cipai-detail-page .card-view-empty {
    font-size: 0.8125rem;
    color: #aaa;
    padding: 0.25rem 0;
}

.cipai-detail-page .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.cipai-detail-page .page-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-size: 0.9375rem;
    font-family: var(--font-serif);
    color: #2C2C2C;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.cipai-detail-page .page-nav svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.cipai-detail-page .page-nav:hover:not([disabled]) {
    color: #C04851;
    border-color: #C04851;
    background: rgba(192, 72, 81, 0.04);
}

.cipai-detail-page .page-nav[disabled] {
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

.cipai-detail-page .cipai-header { border-radius: 8px; padding: 24px; box-shadow: none; }
.cipai-detail-page .cipai-heading { font-size: 28px; }
.cipai-detail-page .cipai-backlink { min-height: 40px; }
.cipai-detail-page .poem-list-section { padding: 0; }
.cipai-detail-page .poem-list-section .poem-card { padding: 24px; margin-bottom: 16px; border: 1px solid rgba(0,0,0,.06); }
.cipai-detail-page .poem-list-section .poem-header > div:first-child { min-width: 0; }
.cipai-detail-page .poem-list-section .poem-title { font-size: 20px; overflow-wrap: anywhere; }
.cipai-detail-page .poem-list-section .poem-meta { font-size: 13px; color: #737373; margin-top: 8px; }
.cipai-detail-page .poem-list-section .poem-content { font-size: 17px; line-height: 1.95; overflow-wrap: anywhere; }
.cipai-detail-page .poem-list-section .poem-tools { flex-wrap: wrap; gap: 8px; }
.cipai-detail-page .poem-list-section .tool-btn { min-height: 36px; font-size: 13px; padding: 6px 10px; color: #737373; }
.cipai-detail-page .poem-list-section .tool-btn.active { color: #fff; }
.cipai-detail-page .card-pinyin rt { font-size: .75em; line-height: 3; }
.cipai-detail-page a:focus-visible, .cipai-detail-page button:focus-visible { outline: 2px solid #C04851; outline-offset: 3px; }
@media (max-width: 768px) {
 .cipai-detail-page.cipai-container { padding: 16px; }
 .cipai-detail-page .cipai-header, .cipai-detail-page .poem-list-section .poem-card { padding: 20px; }
 .cipai-detail-page .cipai-heading { font-size: 24px; }
 .cipai-detail-page .poem-header { flex-wrap: wrap; gap: 8px; }
 .cipai-detail-page .poem-tags { justify-content: flex-start; }
 .cipai-detail-page .poem-list-section .poem-title { font-size: 18px; }
 .cipai-detail-page .poem-list-section .poem-content { font-size: 16px; }
 .cipai-detail-page .poem-list-section .tool-btn, .cipai-detail-page .cipai-backlink { min-height: 44px; }
}
