/* 诗歌页面通用样式 */
.poem-page-wrapper {
    background: #f5f5f0;
    padding: 2rem 0;
}
.poem-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.poem-two-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.poem-main {
    flex: 2;
    min-width: 0;
}
.poem-sidebar {
    flex: 1;
    min-width: 260px;
}
.poem-article {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.poem-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}
.poem-title {
    font-size: 2rem;
    font-family: var(--font-serif, 'Noto Serif SC', serif);
    color: #2c3e2f;
    margin-bottom: 0.5rem;
}
.poem-poet {
    font-size: 1rem;
    color: #4a5568;
}
.poem-poet a {
    color: #8b5a2b;
    text-decoration: none;
}
.poem-content {
    line-height: 1.8;
    font-size: 1.05rem;
}
.poem-content p {
    margin-bottom: 1.2em;
}
.poem-meta-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.poem-tags a {
    display: inline-block;
    background: #f3f4f6;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    margin: 0 0.3rem;
    text-decoration: none;
    color: #4b5563;
}
.poem-tags a:hover {
    background: #8b5a2b;
    color: #fff;
}
.poem-form-badge {
    font-size: 0.85rem;
    color: #8b5a2b;
    background: rgba(139,90,43,0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
}
.poem-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
}
.poem-section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #8b5a2b;
    margin-bottom: 0.8rem;
    border-left: 4px solid #8b5a2b;
    padding-left: 0.8rem;
}
.poem-section-content {
    line-height: 1.7;
    color: #2d3748;
}
.sidebar-widget {
    background: #fff;
    border-radius: 1rem;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.widget-title {
    font-size: 1.2rem;
    font-family: var(--font-serif, 'Noto Serif SC', serif);
    border-left: 4px solid #8b5a2b;
    padding-left: 0.75rem;
    margin-bottom: 1rem;
}
.sidebar-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar-widget li {
    margin-bottom: 0.6rem;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 0.6rem;
}
.sidebar-widget a {
    text-decoration: none;
    color: #1e2a2e;
}
.sidebar-widget a:hover {
    color: #8b5a2b;
}
.book-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}
.book-grid-item {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
}
.book-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 诗人归档页样式 */
.poet-archive-fixed {
    background: #f5f5f0;
    padding: 2rem 0;
}
.poet-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}
.poet-card {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.poet-header {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}
.poet-avatar {
    flex: 0 0 120px;
}
.poet-avatar img {
    width: 100%;
    border-radius: 50%;
}
.poet-info {
    flex: 1;
}
.poet-name {
    font-size: 2rem;
    font-family: var(--font-serif, 'Noto Serif SC', serif);
    margin: 0 0 0.5rem;
    color: #2c3e2f;
}
.poet-bio {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}
.poet-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: #8b5a2b;
}
.like-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.like-btn.liked {
    color: #e0a800;
}
.interact-btn {
    background: #8b5a2b;
    color: #fff;
    border: none;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.85rem;
}
.poet-share-qrcode {
    flex: 0 0 120px;
    text-align: center;
}
.qrcode-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.qrcode-tip {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 0.3rem;
}
.poems-list {
    margin: 2rem 0;
}
.poems-list h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}
.poems-list ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.8rem;
}
.poems-list li a {
    display: block;
    padding: 0.6rem 0;
    text-decoration: none;
    color: #1e2a2e;
}
.poems-list li a:hover {
    color: #8b5a2b;
    padding-left: 0.5rem;
}
.poet-comments {
    margin-top: 2rem;
}
.comment-list {
    list-style: none;
    padding: 0;
}
.comment-item {
    background: #faf9f5;
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}
.comment-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.3rem;
}
.comment-author {
    font-weight: 600;
}
.comment-time {
    font-size: 0.7rem;
    color: #6c757d;
}
.comment-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
}
.comment-actions button {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 0.75rem;
}
.comment-pagination {
    text-align: center;
    margin-top: 1rem;
}
.comment-pagination .page-numbers {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    margin: 0 0.2rem;
    background: #f0f0f0;
    border-radius: 4px;
    text-decoration: none;
    color: #2c3e2f;
}
.comment-pagination .current {
    background: #8b5a2b;
    color: #fff;
}
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 400px;
    width: 90%;
    position: relative;
}
.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}
.reply-form {
    margin-top: 0.5rem;
}
.reply-form textarea {
    width: 100%;
    padding: 0.4rem;
    border: 1px solid #ddd;
    border-radius: 8px;
}
.submit-reply, .close-reply {
    margin-top: 0.3rem;
    background: #8b5a2b;
    color: #fff;
    border: none;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
}
.close-reply {
    background: #6c757d;
}
@media (max-width: 768px) {
    .poem-two-columns {
        flex-direction: column;
    }
    .poem-header {
        padding: 1rem;
    }
    .poem-title {
        font-size: 1.6rem;
    }
    .poet-header {
        flex-direction: column;
        text-align: center;
    }
    .poet-avatar {
        margin: 0 auto;
    }
    .poems-list ul {
        grid-template-columns: 1fr;
    }
}

/* 名句样式 */
.mingju-item, .mingju-card {
    transition: transform 0.2s, box-shadow 0.2s;
}
.mingju-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.like-mingju-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #d9534f;
    font-size: 0.9rem;
}
.like-mingju-btn:hover {
    opacity: 0.8;
}
.mingju-section {
    margin: 1.5rem 0;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}
.mingju-section h3 {
    font-size: 1.2rem;
    color: #8b5a2b;
    margin-bottom: 0.5rem;
}

/* 名句高亮 */
mark.mingju-highlight {
    background-color: #ffeb3b;
    color: #000;
    padding: 0 2px;
    border-radius: 4px;
    font-weight: bold;
}
.original-poem {
    white-space: pre-wrap;
    word-break: break-word;
}

