/* ===== 诗文/诗人/名句/古籍/多音字 频道样式 ===== */

/* Hero */
.lit-hero {
    position: relative;
    overflow: hidden;
    padding: 34px 38px 30px;
    border-radius: 20px;
    background:
        radial-gradient(680px 300px at 88% -20%, rgba(200, 69, 45, .28), transparent 62%),
        radial-gradient(520px 260px at 8% 120%, rgba(63, 127, 111, .22), transparent 65%),
        linear-gradient(135deg, #2a2622 0%, #211f1d 58%, #191817 100%);
    color: #f6f1e7;
    box-shadow: 0 18px 44px rgba(31, 35, 40, .16);
}
.lit-hero::after {
    content: "詩";
    position: absolute;
    right: 26px;
    bottom: -22px;
    font-family: var(--font-serif);
    font-size: 146px;
    line-height: 1;
    color: rgba(255, 255, 255, .055);
    pointer-events: none;
}
.lit-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #e7b9ac;
}
.lit-kicker::before {
    content: "";
    width: 22px;
    height: 1px;
    background: #c8452d;
}
.lit-hero h1 {
    margin: 12px 0 8px;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 600;
    letter-spacing: .02em;
    color: #fffaf0;
}
.lit-hero-sub {
    max-width: 640px;
    margin: 0;
    color: rgba(246, 241, 231, .72);
    font-size: 14.5px;
    line-height: 1.8;
}
.lit-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 13px;
    color: rgba(246, 241, 231, .62);
}
.lit-hero-stats strong {
    margin-right: 3px;
    font-size: 20px;
    font-family: var(--font-serif);
    font-weight: 600;
    color: #f3d9a4;
}
.lit-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}
.lit-hero-actions .button {
    border-color: rgba(255, 255, 255, .22);
    color: #f6f1e7;
    background: rgba(255, 255, 255, .06);
}
.lit-hero-actions .button:hover {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

/* 搜索条 */
.lit-search {
    display: flex;
    max-width: 560px;
    margin-top: 20px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
}
.lit-search input {
    flex: 1;
    min-width: 0;
    padding: 8px 16px;
    border: 0;
    background: transparent;
    color: #fffaf0;
    outline: none;
    font-size: 14px;
}
.lit-search input::placeholder { color: rgba(255, 255, 255, .45); }
.lit-search button {
    padding: 8px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}
.lit-search button:hover { background: var(--accent-hover); }

/* 筛选 chips */
.lit-chipbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 18px;
}
.lit-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 13px;
    transition: .18s ease;
}
.lit-chip small { color: var(--muted); font-size: 11.5px; }
.lit-chip:hover { border-color: var(--line-strong); color: var(--accent); transform: translateY(-1px); }
.lit-chip.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #f6f1e7;
}
.lit-chip.is-active small { color: rgba(246, 241, 231, .6); }

/* 诗文卡片 */
.poem-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.poem-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 20px 18px 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: .2s ease;
}
.poem-card::before {
    content: "";
    position: absolute;
    left: 0; top: 14px; bottom: 14px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--accent), #d9a15a);
    opacity: .55;
}
.poem-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
}
.poem-card:hover::before { opacity: 1; }
.poem-card h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--ink);
}
.poem-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--muted);
}
.poem-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.poem-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--ink-soft);
    font-family: var(--font-serif);
    font-size: 14.5px;
    line-height: 1.85;
}

/* 诗人卡片 */
.poet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
    gap: 14px;
}
.poet-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: .2s ease;
}
.poet-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
}
.poet-avatar {
    flex: 0 0 86px;
    width: 86px;
    height: 108px;
    border-radius: 9px;
    object-fit: cover;
    background: linear-gradient(145deg, #ede4d4, #ddd0ba);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
}
.poet-avatar.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 34px;
    color: #8a6a4f;
}
.poet-avatar.is-empty::after { content: attr(data-initial); }
.poet-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.poet-name {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 600;
    color: var(--ink);
}
.poet-dynasty {
    padding: 1px 7px;
    border-radius: 4px;
    background: var(--jade-soft);
    color: var(--jade);
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 500;
}
.poet-count { color: var(--muted); font-size: 12px; }
.poet-intro {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    color: var(--ink-soft);
    font-size: 12.8px;
    line-height: 1.65;
}

/* 名句卡片 */
.quote-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.quote-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 132px;
    padding: 22px 22px 20px 40px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 253, 248, .96), var(--surface));
    box-shadow: var(--shadow-sm);
    transition: .2s ease;
}
.quote-card::before {
    content: "“";
    position: absolute;
    left: 14px;
    top: 6px;
    font-family: Georgia, var(--font-serif);
    font-size: 40px;
    line-height: 1;
    color: var(--accent);
    opacity: .28;
}
.quote-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
}
.quote-text {
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.7;
    color: var(--ink);
}
.quote-meta {
    margin-top: auto;
    color: var(--muted);
    font-size: 12.5px;
}
.quote-meta b { color: var(--ink-soft); font-weight: 500; }

/* 古籍书架 */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
    gap: 14px;
}
.book-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px 14px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: .2s ease;
}
.book-cover {
    flex: 0 0 74px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 5px;
    background: linear-gradient(145deg, #e9e0cf, #d8c8ae);
    box-shadow: 0 4px 10px rgba(48, 38, 24, .16);
}
.book-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.book-cover.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a6a52;
    font-family: var(--font-serif);
    font-size: 13px;
    letter-spacing: .12em;
    writing-mode: vertical-rl;
}
.book-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding-top: 2px;
}
.book-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
    border-radius: 12px 0 0 12px;
    background: linear-gradient(180deg, #3f7f6f, #6a9c88);
}
.book-card:nth-child(3n+2)::before { background: linear-gradient(180deg, #b4513c, #d28c62); }
.book-card:nth-child(3n)::before { background: linear-gradient(180deg, #7a6a52, #b09a72); }
.book-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
}
.book-name {
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--ink);
}
.book-meta { color: var(--muted); font-size: 12.5px; }
.book-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--ink-soft);
    font-size: 12.8px;
    line-height: 1.6;
}

/* 侧栏迷你诗人 */
.poet-mini-list { display: flex; flex-direction: column; gap: 2px; }
.poet-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    border-radius: 8px;
    transition: background .15s ease;
}
.poet-mini:hover { background: var(--surface-2); }
.poet-mini-avatar {
    flex: 0 0 38px;
    width: 38px;
    height: 48px;
    border-radius: 5px;
    object-fit: cover;
    background: linear-gradient(145deg, #ede4d4, #ddd0ba);
}
.poet-mini-avatar.is-empty {
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-serif); font-size: 17px; color: #8a6a4f;
}
.poet-mini-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.poet-mini-name { font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poet-mini-meta { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 诗文详情：作者卡 */
.poet-profile {
    display: flex;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}
.poet-profile-avatar {
    flex: 0 0 104px;
    width: 104px;
    height: 132px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}
.poet-profile-avatar.is-empty {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg, #ede4d4, #ddd0ba);
    font-family: var(--font-serif); font-size: 42px; color: #8a6a4f;
}
.poet-profile-body { min-width: 0; }
.poet-profile-body h2 { margin: 0 0 4px; font-size: 22px; }
.poet-profile-body p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }

.entry-side .poet-profile {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: center;
}
.entry-side .poet-profile-avatar {
    flex: none;
    width: 150px;
    height: 195px;
    max-height: none;
    object-fit: cover;
}
.entry-side .poet-profile-body h2 { font-size: 19px; }
.entry-side .poet-profile-body .button { margin-top: 10px; }

/* 诗文详情正文 */
.lit-article-head {
    padding: 26px 28px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
        radial-gradient(560px 220px at 92% -10%, rgba(200, 69, 45, .07), transparent 60%),
        var(--surface);
    box-shadow: var(--shadow-sm);
}
.lit-article-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: .12em;
    color: var(--muted);
}
.lit-article-kicker::before {
    content: "";
    width: 18px; height: 1px; background: var(--accent);
}
.lit-article-head h1 {
    margin: 10px 0 10px;
    font-size: clamp(24px, 3.4vw, 32px);
    font-weight: 600;
    letter-spacing: .03em;
}
.lit-article-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    font-size: 13px; color: var(--muted);
}
.lit-article-meta a { color: var(--jade); }
.lit-article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.poem-body {
    font-family: var(--font-serif);
    font-size: clamp(17px, 2.2vw, 20px);
    line-height: 2.15;
    letter-spacing: .04em;
    text-align: center;
    padding: 10px 8px 16px;
    color: var(--ink);
}
.poem-body br { content: ""; display: block; margin-bottom: .35em; }

/* 目录列表 */
.chapter-toc { display: flex; flex-direction: column; }
.chapter-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 6px;
    border-bottom: 1px dashed var(--line);
    transition: background .15s ease;
}
.chapter-row:last-child { border-bottom: 0; }
.chapter-row:hover { background: var(--surface-2); }
.chapter-no {
    flex: 0 0 30px;
    font-family: var(--font-serif);
    font-size: 12px;
    color: var(--muted);
    padding-top: 2px;
}
.chapter-body { min-width: 0; }
.chapter-title {
    display: block;
    font-family: var(--font-serif);
    font-size: 16.5px;
    color: var(--ink);
}
.chapter-preview {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12.5px;
}

/* 名句详情 */
.quote-hero {
    position: relative;
    padding: 36px 34px;
    border-radius: 18px;
    background:
        radial-gradient(520px 240px at 90% 0%, rgba(200, 69, 45, .10), transparent 60%),
        var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.quote-hero::before {
    content: "“";
    position: absolute; left: 22px; top: 8px;
    font-family: Georgia, serif; font-size: 64px; line-height: 1;
    color: var(--accent); opacity: .18;
}
.quote-hero-text {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(24px, 3.6vw, 34px);
    line-height: 1.65;
    letter-spacing: .04em;
}
.quote-hero-meta {
    margin-top: 16px;
    color: var(--muted);
    font-size: 13.5px;
}
.quote-hero-meta b { color: var(--ink); font-weight: 500; }

/* 通用小标题 */
.lit-section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 26px 0 12px;
}
.lit-section-title h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 600;
}
.lit-section-title a { font-size: 12.5px; color: var(--muted); }
.lit-section-title a:hover { color: var(--accent); }

/* 首页名家有像 */
.home-poet-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.home-poet {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: .18s ease;
}
.home-poet:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.home-poet-avatar {
    flex: 0 0 50px;
    width: 50px;
    height: 64px;
    border-radius: 6px;
    object-fit: cover;
    background: linear-gradient(145deg, #ede4d4, #ddd0ba);
}
.home-poet-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.home-poet-name { font-family: var(--font-serif); font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-poet-meta { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 多音字频道 */
.letter-bar .lit-chip { padding: 5px 10px; }
.dyz-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.dyz-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: .2s ease;
}
.dyz-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
}
.dyz-char {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(145deg, #f4ead6, #ead8bb);
    font-family: var(--font-serif);
    font-size: 34px;
    color: #6f4a2e;
    box-shadow: inset 0 0 0 1px rgba(111, 74, 46, .12);
}
.dyz-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dyz-readings { display: flex; flex-wrap: wrap; gap: 5px; }
.dyz-pinyin {
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--jade-soft);
    color: var(--jade);
    font-size: 12.5px;
    letter-spacing: .02em;
}
.dyz-pinyin.is-large {
    padding: 4px 14px;
    font-size: 16px;
    background: rgba(255, 255, 255, .1);
    color: #f3d9a4;
}
.dyz-words {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--ink-soft);
    font-size: 12.8px;
    line-height: 1.6;
}

.dyz-hero {
    display: flex;
    gap: 26px;
    padding: 30px 32px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background:
        radial-gradient(520px 240px at 88% -10%, rgba(63, 127, 111, .12), transparent 60%),
        var(--surface);
    box-shadow: var(--shadow-sm);
}
.dyz-hero-char {
    flex: 0 0 142px;
    width: 142px;
    height: 142px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(150deg, #2a2622, #3a332b);
    color: #f3d9a4;
    font-family: var(--font-serif);
    font-size: 78px;
    box-shadow: 0 12px 26px rgba(31, 35, 40, .18);
}
.dyz-hero-body { min-width: 0; }
.dyz-hero h1 {
    margin: 8px 0 10px;
    font-size: clamp(26px, 3.4vw, 34px);
    font-weight: 600;
}
.dyz-hero-pinyins { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }

.dyz-reading-list { display: flex; flex-direction: column; gap: 14px; }
.dyz-reading {
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.dyz-reading-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--line);
}
.dyz-reading-head strong {
    font-family: var(--font-serif);
    font-size: 21px;
    color: var(--accent);
    font-weight: 600;
}
.dyz-reading-index {
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 11.5px;
}
.dyz-sense + .dyz-sense { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.dyz-sense-text {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 14.5px;
    line-height: 1.8;
}
.dyz-examples { display: flex; flex-wrap: wrap; gap: 6px; }
.dyz-example {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 6px;
    background: var(--surface-2);
    font-size: 12.5px;
}
.dyz-example b { color: var(--ink); font-weight: 600; }
.dyz-example small { color: var(--muted); }

/* 古籍正文与导航 */
.book-intro {
    margin-top: 16px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--jade);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.9;
    box-shadow: var(--shadow-sm);
}
.guji-body { text-align: justify; font-size: 17px; line-height: 2; }
.guji-body p { margin: 0 0 1em; }
.chapter-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.chapter-nav-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    transition: .18s ease;
}
.chapter-nav-item:hover { border-color: var(--line-strong); background: var(--surface-2); }
.chapter-nav-item small { color: var(--muted); font-size: 11.5px; }
.chapter-nav-item span {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--ink);
    font-size: 13.5px;
}
.chapter-nav-item.is-next { text-align: right; }
.chapter-nav-item.is-center { text-align: center; }

/* 侧栏增强 */
.quick-links.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 8px;
}
.quick-links a.is-current {
    color: var(--accent);
    font-weight: 600;
}
.char-links { gap: 2px 6px; }
.char-links a {
    text-align: center;
    padding: 7px 4px;
    border-radius: 6px;
    background: var(--surface-2);
    font-family: var(--font-serif);
    font-size: 19px;
    color: var(--ink);
}
.char-links a:hover { background: #f1e7d3; color: var(--accent); }

@media (max-width: 900px) {
    .dyz-grid { grid-template-columns: 1fr; }
    .dyz-hero { padding: 24px 20px; gap: 18px; }
    .dyz-hero-char { flex-basis: 96px; width: 96px; height: 96px; font-size: 52px; }
    .chapter-nav { grid-template-columns: 1fr; }
    .chapter-nav-item.is-next { text-align: left; }
}
@media (max-width: 640px) {
    .home-poet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dyz-card { padding: 12px 13px; gap: 12px; }
    .dyz-char { flex-basis: 52px; width: 52px; height: 52px; font-size: 28px; }
    .dyz-hero { flex-direction: column; }
    .dyz-hero-char { flex-basis: 84px; width: 84px; height: 84px; font-size: 46px; }
}

/* 中等屏：导航收进汉堡菜单，避免 10 个栏目挤压搜索框 */
@media (min-width: 901px) and (max-width: 1120px) {
    .header-inner { flex-wrap: wrap; row-gap: 10px; }
    .main-nav {
        order: 4;
        flex-basis: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0 4px;
        border-top: 1px solid var(--line);
    }
    .site-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: var(--paper);
    }
    body.nav-open .site-header { z-index: 90; }
    body.nav-open { overflow: hidden; }
    body.nav-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(20, 15, 10, .42);
        z-index: 80;
        animation: nav-fade .22s ease;
    }
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        width: min(320px, 86vw);
        order: initial;
        flex-basis: auto;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 0 18px;
        border-top: 0;
        background: var(--surface);
        border-left: 1px solid var(--line);
        box-shadow: -20px 0 48px rgba(20, 15, 10, .18);
        overflow-y: auto;
        transform: translateX(105%);
        visibility: hidden;
        transition: transform .26s cubic-bezier(.32, .72, .28, 1), visibility .26s;
    }
    .nav-open .main-nav { transform: translateX(0); visibility: visible; }
    .nav-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 15px 16px 12px;
        border-bottom: 1px solid var(--line);
        margin-bottom: 4px;
        position: sticky;
        top: 0;
        background: var(--surface);
    }
    .nav-drawer-title { font-family: var(--font-serif); font-size: 16px; font-weight: 600; letter-spacing: .05em; }
    .nav-close {
        width: 30px;
        height: 30px;
        display: grid;
        place-items: center;
        border: 1px solid var(--line);
        border-radius: 50%;
        background: transparent;
        color: var(--muted);
        font-size: 16px;
        line-height: 1;
        cursor: pointer;
        transition: color .15s, border-color .15s;
    }
    .nav-close:hover { color: var(--accent); border-color: var(--accent); }
    .nav-group { display: block; padding: 0 10px; }
    .nav-group-title {
        display: block;
        font-size: 11px;
        color: var(--muted);
        letter-spacing: .14em;
        margin: 13px 12px 4px;
    }
    .main-nav .nav-link {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 11px 12px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        font-size: 14.5px;
        white-space: nowrap;
        text-align: left;
    }
    .main-nav .nav-link::after { content: "\203A"; margin-left: auto; color: var(--muted); opacity: .55; font-size: 17px; line-height: 1; }
    .main-nav .nav-link:hover { background: var(--surface-2); }
    .main-nav .nav-link.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
    .main-nav .nav-link.is-active::after { color: var(--accent); opacity: .8; }
    .main-nav .nav-ico {
        display: grid;
        place-items: center;
        width: 21px;
        height: 21px;
        border-radius: 0;
        background: none;
        color: var(--muted);
    }
    .main-nav .nav-link.is-active .nav-ico { background: none; color: var(--accent); }
    .main-nav .nav-ico svg { width: 19px; height: 19px; }
    .nav-link { padding: 11px 8px; }
    .header-search { order: 5; flex-basis: 100%; min-width: 0; }
    .menu-toggle { display: inline-grid; }
    .brand { flex: 1 1 auto; }
}

@media (max-width: 900px) {
    .lit-hero { padding: 26px 22px 24px; border-radius: 16px; }
    .lit-hero::after { font-size: 96px; }
    .poem-grid, .quote-grid { grid-template-columns: 1fr; }
    .poet-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
    .poet-profile { gap: 12px; }
    .poet-profile-avatar { flex-basis: 78px; width: 78px; height: 100px; }
}
@media (max-width: 640px) {
    .poet-grid { grid-template-columns: 1fr; }
    .poet-card { padding: 13px; }
    .poet-avatar { flex-basis: 70px; width: 70px; height: 88px; }
    .lit-hero-stats { gap: 8px 18px; }
}

/* 古籍封面增强 */
.book-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}
.book-hero-main { min-width: 0; flex: 1 1 auto; }
.book-hero-cover {
    flex: 0 0 120px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 7px;
    background: linear-gradient(145deg, #e9e0cf, #d8c8ae);
    box-shadow: 0 10px 24px rgba(48, 38, 24, .22);
}
.book-hero-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.book-side-cover {
    float: left;
    width: 60px;
    aspect-ratio: 3 / 4;
    margin: 0 12px 8px 0;
    overflow: hidden;
    border-radius: 4px;
    background: linear-gradient(145deg, #e9e0cf, #d8c8ae);
    box-shadow: 0 4px 10px rgba(48, 38, 24, .16);
}
.book-side-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) {
    .book-card { gap: 12px; padding: 13px 14px 13px 18px; }
    .book-cover { flex-basis: 62px; }
    .book-name { font-size: 17px; }
    .book-hero { align-items: flex-start; gap: 16px; }
    .book-hero-cover { flex-basis: 88px; }
    .book-hero h1 { font-size: 26px; }
    .book-side-cover { width: 52px; }
}

/* 主题标签 chips */
.tag-chip-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.4;
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.tag-chip:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }

/* 造句素材库 */
.juzi-list { display: grid; gap: 11px; }
.juzi-card {
    padding: 15px 18px 12px;
    border: 1px solid var(--line);
    border-left: 3px solid color-mix(in srgb, var(--accent) 55%, var(--line));
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 2px 8px rgba(45, 38, 25, .04);
}
.juzi-text {
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: 16px;
    line-height: 1.95;
    letter-spacing: .01em;
}
.juzi-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: .03em;
}
.juzi-meta .button { padding: 3px 9px; font-size: 11px; }
.juzi-hero .lit-search { margin-top: 18px; }
@media (max-width: 640px) {
    .juzi-card { padding: 13px 14px 10px; }
    .juzi-text { font-size: 15px; line-height: 1.9; }
    .juzi-meta { margin-top: 8px; }
}

/* 拼音音节索引 */
.pinyin-section { margin-top: 24px; }
.pinyin-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin-top: 14px;
}
.pinyin-group {
    padding: 12px 14px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}
.pinyin-group h3 {
    margin: 0 0 9px;
    color: var(--ink-soft);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
}
.pinyin-chip-list { display: flex; flex-wrap: wrap; gap: 5px; }
.pinyin-chip {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    padding: 3px 7px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--surface) 90%, var(--accent-soft));
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.5;
    text-decoration: none;
}
.pinyin-chip small { color: var(--muted); font-size: 9px; }
.pinyin-chip:hover { background: var(--accent-soft); color: var(--ink); }
@media (max-width: 640px) {
    .pinyin-groups { grid-template-columns: 1fr 1fr; gap: 9px; }
    .pinyin-group { padding: 10px 11px; }
}

/* 汉字结构索引 */
.jiegou-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}
.jiegou-card {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 18px 18px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(45, 38, 25, .04);
    transition: border-color .18s ease, transform .18s ease;
}
.jiegou-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.jiegou-name { flex: 1 1 auto; font-family: var(--font-serif); font-size: 17px; }
.jiegou-card strong { color: var(--accent); font-family: var(--font-serif); font-size: 22px; line-height: 1; }
.jiegou-unit { color: var(--muted); font-size: 10px; }
@media (max-width: 640px) {
    .jiegou-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .jiegou-card { padding: 13px 13px 12px; }
    .jiegou-name { font-size: 15px; }
    .jiegou-card strong { font-size: 18px; }
}
