/* ========================================
   古诗文网 - 样式表
   ======================================== */

/* CSS变量 */
:root {
    --color-primary: #8b4513;
    --color-accent: #C04851;
    --color-bg: #F9F9F8;
    --color-text: #2C2C2C;
    --color-text-light: #666;
    --color-border: rgba(0, 0, 0, 0.06);
    --font-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
    --shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* 重置样式 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ========================================
   导航栏
   ======================================== */
header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

header nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.12em;
    position: relative;
}

header .logo::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-accent);
    border-radius: 1px;
}

header .nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

header .nav-links a {
    font-size: 0.9375rem;
    color: #666;
    letter-spacing: 0.04em;
    transition: color 0.25s ease;
    position: relative;
    padding: 0.25rem 0;
}

header .nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1.5px;
    background-color: var(--color-accent);
    transition: width 0.3s ease, left 0.3s ease;
}

header .nav-links a:hover {
    color: var(--color-accent);
}

header .nav-links a:hover::after,
header .nav-links a.active::after {
    width: 100%;
    left: 0;
}

header .nav-links a.active {
    color: var(--color-accent);
}

/* ========================================
   主内容
   ======================================== */
main {
    flex: 1;
}

/* ========================================
   首屏搜索区
   ======================================== */
.hero-search {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    /* 背景图片 */
    background-image: url('/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-search::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(249, 249, 248, 0.85) 0%, rgba(249, 249, 248, 0.92) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 640px;
    text-align: center;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.25em;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: #888;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.divider-line {
    width: 50px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(192, 72, 81, 0.3), transparent);
}

.divider-icon {
    color: rgba(192, 72, 81, 0.4);
    font-size: 0.6875rem;
}

/* ========================================
   搜索框
   ======================================== */
.search-container {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}

.search-container input {
    width: 100%;
    height: 64px;
    padding: 0 5rem 0 1.75rem;
    font-size: 1.125rem;
    font-family: inherit;
    color: var(--color-text);
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    outline: none;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.search-container input::placeholder {
    color: #bbb;
}

.search-container input:focus {
    border-color: rgba(192, 72, 81, 0.3);
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.12);
}

.search-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--color-accent);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.25s ease;
}

.search-btn:hover {
    background: #a83d45;
}

.search-btn svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
}

/* ========================================
   热门搜索标签
   ======================================== */
.hot-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hot-label {
    font-size: 0.875rem;
    color: #999;
    letter-spacing: 0.04em;
}

.hot-tag {
    font-size: 0.875rem;
    color: #666;
    padding: 0.3em 0.8em;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.hot-tag:hover {
    color: var(--color-accent);
    border-color: rgba(192, 72, 81, 0.25);
    background: rgba(192, 72, 81, 0.04);
}

/* ========================================
   名句装饰
   ======================================== */
.hero-quote {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    transition: opacity 0.5s ease;
}

.hero-quote p {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: #666;
    letter-spacing: 0.08em;
    line-height: 2;
}

.hero-quote cite {
    font-size: 0.875rem;
    color: #aaa;
    font-style: normal;
}

/* ========================================
   区块标题
   ======================================== */
.section-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: "";
    width: 4px;
    height: 1.25rem;
    background-color: var(--color-accent);
    border-radius: 2px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-more {
    font-size: 0.875rem;
    color: #999;
    letter-spacing: 0.04em;
    transition: color 0.25s ease;
}

.section-more:hover {
    color: var(--color-accent);
}

/* ========================================
   诗词区块
   ======================================== */
.poem-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.poem-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ========================================
   诗词卡片
   ======================================== */
.poem-card {
    background: #fff;
    border-radius: 8px;
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease;
}

.poem-card:hover {
    box-shadow: var(--shadow-hover);
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-title-group {
    flex: 1;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.card-title a {
    transition: color 0.25s ease;
}

.card-title a:hover {
    color: var(--color-accent);
}

.card-meta {
    font-size: 0.875rem;
    color: #999;
    letter-spacing: 0.04em;
}

.card-meta a {
    color: #666;
    transition: color 0.25s ease;
}

.card-meta a:hover {
    color: var(--color-accent);
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.card-tag {
    font-size: 0.75rem;
    color: #888;
    background: rgba(0, 0, 0, 0.03);
    padding: 0.2em 0.6em;
    border-radius: 3px;
    transition: color 0.25s ease, background 0.25s ease;
}

.card-tag:hover {
    color: var(--color-accent);
    background: rgba(192, 72, 81, 0.06);
}

.card-content {
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    line-height: 2.2;
    color: #444;
    letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
}

/* ========================================
   卡片功能标签页
   ======================================== */
.card-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1rem;
}

.card-tab {
    font-size: 0.8125rem;
    color: #888;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border: none;
    background: none;
    letter-spacing: 0.04em;
    position: relative;
    transition: color 0.25s ease;
}

.card-tab::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: transparent;
    transition: background-color 0.25s ease;
}

.card-tab:hover {
    color: #666;
}

.card-tab.active {
    color: var(--color-accent);
}

.card-tab.active::after {
    background-color: var(--color-accent);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content p {
    font-size: 0.9375rem;
    line-height: 2;
    color: #555;
    margin-bottom: 0.75rem;
}

.tab-content p:last-child {
    margin-bottom: 0;
}

/* ========================================
   注释样式
   ======================================== */
.annotation-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--color-border);
}

.annotation-item:last-child {
    border-bottom: none;
}

.annotation-word {
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    color: #004B50;
    flex-shrink: 0;
    min-width: 3rem;
}

.annotation-meaning {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.7;
}

/* ========================================
   卡片底部操作栏
   ======================================== */
.card-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    margin-top: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #999;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0.25rem 0;
    transition: color 0.25s ease;
}

.action-btn:hover {
    color: var(--color-accent);
}

.action-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

/* ========================================
   名句精选区
   ======================================== */
.quotes-section {
    background: linear-gradient(to bottom, #fff, var(--color-bg));
    padding: 3rem 0;
}

.quotes-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.quote-card {
    background: #fff;
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    border-left: 3px solid rgba(192, 72, 81, 0.3);
    transition: border-color 0.25s ease;
}

.quote-card:hover {
    border-left-color: var(--color-accent);
}

.quote-text {
    font-family: var(--font-serif);
    font-size: 1rem;
    color: var(--color-text);
    letter-spacing: 0.06em;
    line-height: 1.9;
    margin-bottom: 0.5rem;
}

.quote-source {
    font-size: 0.8125rem;
    color: #aaa;
    letter-spacing: 0.04em;
}

.quote-source a {
    color: #999;
    transition: color 0.25s ease;
}

.quote-source a:hover {
    color: var(--color-accent);
}

/* ========================================
   分类导航区
   ======================================== */
.category-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.category-group {
    margin-bottom: 2rem;
}

.category-group:last-child {
    margin-bottom: 0;
}

.category-label {
    font-family: var(--font-serif);
    font-size: 0.9375rem;
    font-weight: 600;
    color: #666;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-links a {
    font-size: 0.875rem;
    color: #555;
    padding: 0.35em 0.9em;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    letter-spacing: 0.04em;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.category-links a:hover {
    color: var(--color-accent);
    border-color: rgba(192, 72, 81, 0.25);
    background-color: rgba(192, 72, 81, 0.03);
}

/* ========================================
   分页组件
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    color: #666;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    transition: all 0.25s ease;
}

.pagination a:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.pagination .current {
    color: #fff;
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.pagination .disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* 筛选栏（通用基础样式，poems 页有内联覆盖） */
.filter-bar {
    background: #fff;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

/* ========================================
   诗词详情页
   ======================================== */
.poem-detail {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.poem-detail-header {
    text-align: center;
    margin-bottom: 40px;
}

.poem-detail-title {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: normal;
}

.poem-detail-meta {
    color: var(--color-text-light);
    font-size: 1rem;
}

.poem-detail .poem-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.poem-text {
    font-size: 1.3rem;
    line-height: 2.2;
    text-align: center;
    white-space: pre-line;
    color: var(--color-text);
}

.poem-section {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.poem-section-title {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.poem-section-content {
    line-height: 1.9;
    color: var(--color-text);
}

/* ========================================
   工具栏
   ======================================== */
.poem-detail .poem-tools {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    color: #666;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tool-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.tool-btn:hover {
    color: var(--color-accent);
    border-color: rgba(192, 72, 81, 0.3);
    background: rgba(192, 72, 81, 0.06);
}

.tool-btn.active {
    color: var(--color-accent);
    border-color: var(--color-accent);
    background: rgba(192, 72, 81, 0.08);
}

/* ========================================
   页脚
   ======================================== */
footer {
    border-top: 1px solid var(--color-border);
    padding: 2rem 1.5rem;
    text-align: center;
    background: #fff;
}

footer .footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 0 0 0.75rem 0;
    padding: 0;
}

footer .footer-links a {
    font-size: 0.8125rem;
    color: #999;
    transition: color 0.25s ease;
}

footer .footer-links a:hover {
    color: var(--color-accent);
}

footer p {
    font-size: 0.8125rem;
    color: #aaa;
    letter-spacing: 0.04em;
    margin: 0;
}

footer .footer-icp {
    margin-top: 0.5rem;
}

footer .footer-icp a {
    font-size: 0.75rem;
    color: #bbb;
    transition: color 0.25s ease;
}

footer .footer-icp a:hover {
    color: #888;
}

/* ========================================
   响应式
   ======================================== */
@media (max-width: 768px) {
    header nav {
        height: 48px;
        padding: 0 1rem;
    }

    header .logo {
        font-size: 1.1rem;
    }

    header .nav-links {
        gap: 1rem;
    }

    header .nav-links a {
        font-size: 0.875rem;
    }

    .hero-search {
        min-height: calc(100vh - 48px);
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 2.25rem;
        letter-spacing: 0.2em;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .search-container input {
        height: 56px;
        font-size: 1rem;
    }

    .search-btn {
        width: 40px;
        height: 40px;
    }

    .poem-section {
        padding: 2rem 1rem;
    }

    .poem-card {
        padding: 1.25rem 1rem;
    }

    .card-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .card-tags {
        justify-content: flex-start;
    }

    .card-content {
        font-size: 1rem;
    }

    .quotes-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .category-section {
        padding: 2rem 1rem;
    }

    .authors-grid .author-card {
        padding: 1rem;
        gap: 1rem;
    }

    .authors-grid .author-avatar {
        width: 56px;
        height: 56px;
        font-size: 1.375rem;
    }

    .authors-grid .author-header h2 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.875rem;
    }

    .search-container input {
        height: 52px;
        font-size: 0.9375rem;
        padding-right: 4.5rem;
    }

    .search-btn {
        width: 36px;
        height: 36px;
    }

    .search-btn svg {
        width: 18px;
        height: 18px;
    }

    .hot-search {
        gap: 0.375rem;
    }

    .hot-tag {
        font-size: 0.8125rem;
    }

    .hero-quote {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }

    .hero-quote p {
        font-size: 0.9375rem;
    }

    .card-tabs {
        gap: 0;
    }

    .card-tab {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    .card-actions {
        gap: 1rem;
    }
}

/* ========================================
   无障碍
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ========================================
   作者列表页 - 朝代筛选
   ======================================== */
.dynasty-filter {
    background: #fff;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.dynasty-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dynasty-tag {
    padding: 0.4rem 0.9rem;
    font-size: 0.875rem;
    color: #004B50;
    background: transparent;
    border: 1px solid rgba(0, 75, 80, 0.15);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
}

.dynasty-tag:hover {
    color: #C04851;
    border-color: rgba(192, 72, 81, 0.3);
    background: rgba(192, 72, 81, 0.04);
}

.dynasty-tag.active {
    color: #fff;
    background: #C04851;
    border-color: #C04851;
}

/* ========================================
   作者卡片 - 横向布局
   ======================================== */
.authors-grid {
    display: grid;
    gap: 1rem;
}

.authors-grid .author-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow);
    display: flex;
    gap: 1.25rem;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    text-decoration: none;
}

.authors-grid .author-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(192, 72, 81, 0.15);
}

.authors-grid .author-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(192, 72, 81, 0.1), rgba(0, 75, 80, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: #C04851;
    flex-shrink: 0;
    border: 2px solid rgba(192, 72, 81, 0.15);
}

.authors-grid .author-info {
    flex: 1;
    min-width: 0;
}

.authors-grid .author-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.authors-grid .author-header h2 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

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

.authors-grid .author-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.authors-grid .stat-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: #888;
}

.authors-grid .stat-item svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.authors-grid .stat-item span {
    color: #C04851;
    font-weight: 500;
}

.authors-grid .author-bio {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   分页按钮样式
   ======================================== */
.page-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-family: var(--font-serif);
    color: #004B50;
    background: #fff;
    border: 1px solid rgba(0, 75, 80, 0.15);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

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

.page-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

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

.page-info {
    font-size: 0.875rem;
    color: #666;
    font-family: var(--font-serif);
}

.page-info span {
    color: #C04851;
    font-weight: 600;
}

/* ========================================
   分页容器
   ======================================== */
.pagination-wrapper {
    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);
}

.pagination-wrapper .pagination {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

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

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

.author-profile .author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(192, 72, 81, 0.15), rgba(0, 75, 80, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: #C04851;
    flex-shrink: 0;
    border: 3px solid rgba(192, 72, 81, 0.2);
}

.profile-info {
    flex: 1;
}

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

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

.author-alias {
    font-size: 0.875rem;
    color: #C04851;
    background: rgba(192, 72, 81, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

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

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

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

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

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

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

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

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

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

.author-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.author-actions .action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.8125rem;
    color: #666;
    background: rgba(0, 0, 0, 0.03);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.author-actions .action-btn:hover {
    color: #C04851;
    background: rgba(192, 72, 81, 0.06);
}

.author-actions .action-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.author-actions .action-btn.primary {
    color: #fff;
    background: #C04851;
}

.author-actions .action-btn.primary:hover {
    background: #a33d40;
}

/* 简介区域 */
.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-bio-section .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-bio-section .section-title::before {
    content: "";
    width: 3px;
    height: 1rem;
    background: #C04851;
    border-radius: 2px;
}

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

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

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

/* 可折叠详情区域 */
.detail-section {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.detail-header {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.25s ease;
}

.detail-header:hover {
    background: rgba(0, 0, 0, 0.02);
}

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

.detail-title svg {
    width: 16px;
    height: 16px;
    stroke: #C04851;
    fill: none;
    stroke-width: 2;
}

.toggle-icon {
    width: 20px;
    height: 20px;
    stroke: #888;
    fill: none;
    stroke-width: 2;
    transition: transform 0.25s ease;
}

.detail-section.expanded .toggle-icon {
    transform: rotate(180deg);
}

.detail-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.detail-section.expanded .detail-content {
    max-height: 1000px;
}

.detail-inner {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.9375rem;
    color: #555;
    line-height: 1.9;
}

.detail-inner p {
    margin-bottom: 0.75rem;
}

.detail-inner p:last-child {
    margin-bottom: 0;
}

/* 诗文列表 */
.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);
}

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

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

.poems-section .view-all:hover {
    color: #C04851;
}

.poems-section .view-all svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.poems-section .poem-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.poems-section .poem-item:hover {
    background: rgba(192, 72, 81, 0.04);
}

.poems-section .poem-info {
    flex: 1;
}

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

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

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

/* 名句列表 */
.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);
}

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

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

/* 作者页内 section-title 使用较小尺寸，与其他页面主标题区分 */
.poems-section .section-title,
.sentences-section .section-title {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.poems-section .section-title::before,
.sentences-section .section-title::before {
    width: 3px;
    height: 1rem;
}

.sentences-section .view-all:hover {
    color: #C04851;
}

.sentences-section .view-all svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.sentences-section .sentence-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

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

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

.sentences-section .sentence-source {
    font-size: 0.75rem;
    color: #888;
}

.sentences-section .sentence-source a {
    color: #004B50;
    transition: color 0.25s ease;
}

.sentences-section .sentence-source a:hover {
    color: #C04851;
}

/* 作者详情页响应式 */
@media (max-width: 640px) {
    .author-profile {
        padding: 1.25rem;
    }

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

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

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

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

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

    .author-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

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

    .detail-header {
        padding: 0.85rem 1.25rem;
    }

    .detail-inner {
        padding: 0 1.25rem 1.25rem;
    }

    .poems-section .poem-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .poems-section .poem-meta {
        margin-left: 0;
    }
}
