/* 作者详情页样式 */
.author-detail-page .author-profile {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.author-detail-page .profile-header {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.author-detail-page .author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #f3eee4;
    display: block;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid rgba(192, 72, 81, 0.2);
}

.author-detail-page .profile-info {
    flex: 1;
}

.author-detail-page .author-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.author-detail-page .author-name {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: #2C2C2C;
}

.author-detail-page .author-dynasty {
    font-size: 0.75rem;
    color: #fff;
    background: #004B50;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

.author-detail-page .author-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #888;
}

.author-detail-page .meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.author-detail-page .meta-item svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.author-detail-page .author-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.author-detail-page .stat-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: #004B50;
    transition: color 0.25s ease;
}

.author-detail-page .stat-link:hover {
    color: #C04851;
}

.author-detail-page .stat-link svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.author-detail-page .stat-link .count {
    font-weight: 600;
    color: #C04851;
}

/* 简介区域 */
.author-detail-page .author-bio-section {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.author-detail-page .section-title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-detail-page .section-title::before {
    content: "";
    width: 3px;
    height: 1rem;
    background: #C04851;
    border-radius: 2px;
}

.author-detail-page .bio-content {
    font-size: 0.9375rem;
    color: #555;
    line-height: 1.9;
}

.author-detail-page .bio-content p {
    margin-bottom: 1rem;
}

.author-detail-page .bio-content p:last-child {
    margin-bottom: 0;
}

/* 作者内容板块（文学成就/轶事典故/家庭成员等，有什么显示什么） */
.author-detail-page .author-extra-section {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.author-detail-page .extra-text-content {
    font-size: 0.9375rem;
    color: #555;
    line-height: 1.9;
}

.author-detail-page .extra-text-content p {
    margin-bottom: 1rem;
}

.author-detail-page .extra-text-content p:last-child {
    margin-bottom: 0;
}

/* 参考资料（书目引用，附在各板块正文下方） */
.author-detail-page .reference-inline {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

.author-detail-page .reference-inline-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #999;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.author-detail-page .reference-inline-list {
    margin: 0;
    padding-left: 1.1rem;
}

.author-detail-page .reference-inline-list li {
    font-size: 0.75rem;
    color: #999;
    line-height: 1.9;
}

.author-detail-page .extra-item-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.author-detail-page .extra-item {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    transition: background 0.25s ease;
}

.author-detail-page .extra-item:hover {
    background: rgba(192, 72, 81, 0.04);
}

.author-detail-page .extra-item-label {
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    font-weight: 600;
    color: #2C2C2C;
    flex-shrink: 0;
}

.author-detail-page .extra-item-desc {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.7;
}

/* 诗文列表 */
.author-detail-page .poems-section {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.author-detail-page .poems-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.author-detail-page .view-all {
    font-size: 0.8125rem;
    color: #004B50;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.25s ease;
}

.author-detail-page .view-all:hover {
    color: #C04851;
}

.author-detail-page .view-all svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.author-detail-page .poem-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.author-detail-page .poem-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.author-detail-page .poem-item:hover {
    background: rgba(192, 72, 81, 0.04);
}

.author-detail-page .poem-info {
    flex: 1;
}

.author-detail-page .poem-title {
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 0.25rem;
}

.author-detail-page .poem-excerpt {
    font-size: 0.8125rem;
    color: #888;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-detail-page .poem-meta {
    font-size: 0.75rem;
    color: #aaa;
    flex-shrink: 0;
    margin-left: 1rem;
}

/* 名句列表 */
.author-detail-page .sentences-section {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.author-detail-page .sentence-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.author-detail-page .sentence-item {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    border-left: 3px solid rgba(192, 72, 81, 0.3);
    transition: all 0.25s ease;
}

.author-detail-page .sentence-item:hover {
    background: rgba(192, 72, 81, 0.04);
    border-left-color: #C04851;
}

.author-detail-page .sentence-text {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: #2C2C2C;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.author-detail-page .sentence-source {
    font-size: 0.75rem;
    color: #888;
}

.author-detail-page .sentence-source a {
    color: #004B50;
    transition: color 0.25s ease;
}

.author-detail-page .sentence-source a:hover {
    color: #C04851;
}

/* 响应式 */
@media (max-width: 640px) {
    .author-detail-page .author-profile {
        padding: 1.25rem;
    }

    .author-detail-page .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-detail-page .author-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .author-detail-page .author-title {
        justify-content: center;
    }

    .author-detail-page .author-meta {
        justify-content: center;
    }

    .author-detail-page .author-stats {
        justify-content: center;
    }

    .author-detail-page .author-bio-section,
    .author-detail-page .author-extra-section,
    .author-detail-page .poems-section,
    .author-detail-page .sentences-section {
        padding: 1.25rem;
    }

    .author-detail-page .poem-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .author-detail-page .poem-meta {
        margin-left: 0;
    }
}
/* Match the restrained reading cards used by poem and quote pages. */
.author-detail-page { max-width: 1000px; margin: 0 auto; padding: 1rem 1.5rem; }
.author-detail-page :is(.author-profile,.author-bio-section,.author-extra-section,.poems-section,.sentences-section) { border-radius: 8px; margin-bottom: 1rem; padding: 1.25rem 1.5rem; }
.author-detail-page .profile-info, .author-detail-page .poem-info { min-width: 0; }
.author-detail-page .author-name { margin: 0; line-height: 1.5; overflow-wrap: anywhere; font-size: 1.625rem; }
.author-detail-page .author-meta { color: #707070; gap: .5rem 1rem; }
.author-detail-page .meta-item { min-width: 0; overflow-wrap: anywhere; }
.author-detail-page .meta-item svg { flex-shrink: 0; }
.author-detail-page .author-stats { flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: .75rem; padding-top: .5rem; }
.author-detail-page .stat-link { min-height: 44px; }
.author-detail-page .section-title { font-size: 1rem; margin-bottom: .75rem; }
.author-detail-page .poems-header { gap: .75rem; flex-wrap: wrap; margin-bottom: .5rem; }
.author-detail-page .poems-header .section-title { margin: 0; }
.author-detail-page .view-all { min-height: 44px; }
.author-detail-page .poem-title { font-size: 1rem; overflow-wrap: anywhere; }
.author-detail-page .poem-excerpt { font-size: .875rem; color: #666; line-height: 1.8; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.author-detail-page .poem-meta, .author-detail-page .sentence-source,
.author-detail-page .reference-inline-label, .author-detail-page .reference-inline-list li { font-size: .8125rem; color: #707070; }
.author-detail-page .sentence-source { font-style: normal; }
.author-detail-page .sentence-text { overflow-wrap: anywhere; }
.author-detail-page :is(#poems,#quotes) { scroll-margin-top: 80px; }
.author-detail-page a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
@media (max-width: 640px) {
    .author-detail-page { padding: .75rem 1rem; }
    .author-detail-page :is(.author-profile,.author-bio-section,.author-extra-section,.poems-section,.sentences-section) { padding: 1rem; }
    .author-detail-page .profile-header { gap: .75rem; }
    .author-detail-page .author-avatar { width: 72px; height: 72px; }
    .author-detail-page .author-name { font-size: 1.5rem; }
    .author-detail-page .author-title { margin-bottom: .25rem; }
    .author-detail-page .author-meta { margin-top: .25rem; font-size: .8125rem; }
    .author-detail-page .author-stats { margin-top: .5rem; padding-top: .25rem; }
    .author-detail-page .extra-item { flex-direction: column; align-items: stretch; gap: .25rem; padding: .75rem; }
    .author-detail-page .extra-item-label { overflow-wrap: anywhere; }
    .author-detail-page .poem-item, .author-detail-page .sentence-item { padding: .75rem; }
}

