/**
 * 古诗词网 - 精致古朴风格样式表
 * 采用牛皮纸古卷色调设计 + 精致装饰细节
 * 支持响应式布局(桌面1440px/平板/手机)
 * DaheCMS开发团队
 */

/* ========== 全局重置与基础样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SimHei', '黑体', 'STSong', 'SimSun', '宋体', 'Microsoft YaHei', sans-serif;
    background: #e8dcc4;
    color: #4a3c28;
    line-height: 1.8;
    font-size: 16px;
    min-height: 100vh;
    position: relative;
}

/* 移除纸张纹理,保持简洁 */
body::before {
    display: none;
}

a {
    text-decoration: none;
    color: #8b4513;
    transition: all 0.3s ease;
}

a:hover {
    color: #a0522d;
}

/* ========== 主容器 ========== */
.main-container {
    max-width: 1440px;
    margin: 0 auto;
    background: #faf5ed;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
}

/* 移除主容器装饰边框 */
.main-container::before {
    display: none;
}

/* ========== 顶部导航 ========== */
.gushiwang_top {
    background: #faf5ed;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #d4c5a9;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
}

/* 移除顶部装饰线 */
.gushiwang_top::after {
    display: none;
}

.gushiwang_top_logo {
    flex-shrink: 0;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        filter: drop-shadow(2px 2px 4px rgba(139, 69, 19, 0.3));
    }
    50% {
        filter: drop-shadow(2px 2px 8px rgba(139, 69, 19, 0.5));
    }
}

.logo-text {
    font-size: 32px;
    font-weight: bold;
    fill: #6b3410;
    font-family: 'SimHei', '黑体', serif;
    letter-spacing: 2px;
}

.gushiwang_top_ss {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 500px;
    min-width: 250px;
}

.cxkuang {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #c9b896;
    border-radius: 4px;
    background: #faf5ed;
    font-size: 14px;
    color: #4a3c28;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Microsoft YaHei', sans-serif;
}

.cxkuang:focus {
    border-color: #8b4513;
    box-shadow: 0 0 3px rgba(139, 69, 19, 0.3);
}

.cxkuang::placeholder {
    color: #998877;
}

.anniu {
    display: inline-block;
    padding: 10px 25px;
    background: #8b4513;
    color: #fffef5;
    border-radius: 4px;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.anniu:hover {
    background: #6b3410;
}

/* ========== 菜单导航 ========== */
.gushiwang_menu {
    background: #8b2f1b;
    border-bottom: 1px solid #6d2515;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

.gushiwang_menu::before {
    display: none;
}

.gushiwang_menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    min-width: max-content;
}

.gushiwang_menu li {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.gushiwang_menu li::after {
    display: none;
}

.gushiwang_menu li a {
    display: block;
    padding: 14px 24px;
    color: #ffffff;
    font-weight: normal;
    font-size: 15px;
    white-space: nowrap;
    transition: all 0.3s ease;
    position: relative;
}

.gushiwang_menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* ========== 首页主体第一部分 ========== */
.guwen_index_1 {
    display: grid;
    grid-template-columns: 200px 1fr 240px;
    gap: 20px;
    padding: 30px 20px;
    background: #faf5ed;
}

/* 左侧朝代列表 */
.guwen_index_1 .left ul {
    list-style: none;
    background: #f5ebe0;
    border: 1px solid #d4c5a9;
    border-radius: 4px;
    overflow: hidden;
}

.guwen_index_1 .left li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #e8dcc4;
    transition: all 0.3s ease;
}

.guwen_index_1 .left li:hover {
    background: #faf5ed;
}

.guwen_index_1 .left li:last-child {
    border-bottom: none;
}

.le_t a {
    font-size: 16px;
    font-weight: bold;
    color: #6b3410;
}

.le_n {
    font-size: 13px;
    color: #998877;
    background: #e8dcc4;
    padding: 4px 10px;
    border-radius: 4px;
}

/* 中间Banner区域 */
.guwen_index_1 .center {
    background: linear-gradient(135deg, #d4c5a9 0%, #c9b896 50%, #d4c5a9 100%);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.banner-content {
    text-align: center;
    padding: 40px 20px;
}

.banner-title {
    font-size: 48px;
    color: #6b3410;
    margin-bottom: 20px;
    font-weight: bold;
    letter-spacing: 5px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.banner-subtitle {
    font-size: 22px;
    color: #4a3c28;
    margin-bottom: 10px;
    letter-spacing: 2px;
    opacity: 0.95;
}

.banner-desc {
    font-size: 16px;
    color: #665544;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* 右侧热门排行 */
.guwen_index_1 .right {
    background: #f5ebe0;
    border: 1px solid #d4c5a9;
    border-radius: 4px;
    overflow: hidden;
}

.ritop_f {
    background: #8b4513;
    padding: 14px 20px;
    text-align: center;
}

.ritop_f a {
    color: #fffef5;
    font-weight: bold;
    font-size: 16px;
}

.guwen_index_1 .right ul {
    list-style: none;
    padding: 15px;
}

.guwen_index_1 .right li {
    padding: 10px 0;
    border-bottom: 1px solid #e8dcc4;
    transition: all 0.3s ease;
}

.guwen_index_1 .right li:hover {
    background: #faf5ed;
    padding-left: 5px;
}

.guwen_index_1 .right li:last-child {
    border-bottom: none;
}

.guwen_index_1 .right li a {
    color: #4a3c28;
    font-size: 14px;
}

/* ========== 热门诗人 ========== */
.guwen_index_2 {
    padding: 30px 20px;
    background: #faf5ed;
}

.guwen_index_2 .title {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #d4c5a9;
}

.guwen_index_2 .title a {
    font-size: 28px;
    font-weight: bold;
    color: #6b3410;
    letter-spacing: 2px;
}

.guwen_index_2 ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.guwen_index_2 li {
    background: #f5ebe0;
    border: 1px solid #d4c5a9;
    border-radius: 4px;
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.guwen_index_2 li:hover {
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.2);
    border-color: #8b4513;
}

.guwen_index_2 li a {
    display: block;
    font-size: 18px;
    color: #4a3c28;
    font-weight: bold;
    line-height: 1.6;
}

/* ========== 诗词鉴赏 ========== */
.guwen_index_3 {
    padding: 30px 20px;
    background: #f5ebe0;
}

.bt_tit {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #d4c5a9;
}

.bt_tit a {
    font-size: 28px;
    font-weight: bold;
    color: #6b3410;
    letter-spacing: 2px;
}

.guwen_index_3 ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
}

.guwen_index_3 li {
    text-align: center;
    transition: all 0.3s ease;
}

.guwen_index_3 .img {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #d4c5a9;
    transition: all 0.3s ease;
}

.guwen_index_3 li:hover .img {
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.2);
    border-color: #8b4513;
}

.guwen_index_3 .img svg {
    width: 100%;
    height: 100%;
}

.guwen_index_3 .title a {
    font-size: 16px;
    font-weight: bold;
    color: #4a3c28;
    transition: all 0.3s ease;
}

.guwen_index_3 li:hover .title a {
    color: #8b4513;
}

/* ========== 宣传图片区域 ========== */
.guwen_index_img {
    margin: 30px 20px;
    border-radius: 4px;
    overflow: hidden;
}

/* ========== 课本古诗 ========== */
.guwen_index_4 {
    padding: 30px 20px;
    background: #faf5ed;
}

.guwen_index_4 .title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #d4c5a9;
    flex-wrap: wrap;
    gap: 15px;
}

.guwen_index_4 .title > a:first-child {
    font-size: 28px;
    font-weight: bold;
    color: #6b3410;
    letter-spacing: 2px;
}

.guwen_index_4 .title > a:last-child {
    font-size: 14px;
    color: #8b4513;
    padding: 8px 20px;
    background: #faf5ed;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid #8b4513;
}

.guwen_index_4 .title > a:last-child:hover {
    background: #8b4513;
    color: #fffef5;
}

.xx_list {
    margin-bottom: 25px;
    background: #f5ebe0;
    border: 1px solid #d4c5a9;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.xx_list:hover {
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.1);
}

.xx_sw {
    background: #8b4513;
    padding: 12px 20px;
    color: #fffef5;
    font-weight: bold;
    font-size: 16px;
}

.xx_sw_li ul {
    list-style: none;
    padding: 15px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.xx_sw_li li {
    flex: 0 0 auto;
}

.xx_sw_li li a {
    display: inline-block;
    padding: 6px 16px;
    background: #faf5ed;
    border-radius: 4px;
    color: #4a3c28;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #d4c5a9;
}

.xx_sw_li li a:hover {
    background: #8b4513;
    color: #fffef5;
    border-color: #8b4513;
}

/* ========== 合称集选 & 古籍书典 ========== */
.guwen_index_5 {
    padding: 30px 20px;
    background: #f5ebe0;
}

.guwen_index_5 .title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #d4c5a9;
    flex-wrap: wrap;
    gap: 15px;
}

.guwen_index_5 .title > a:first-child {
    font-size: 28px;
    font-weight: bold;
    color: #6b3410;
    letter-spacing: 2px;
}

.guwen_index_5 .title > a:last-child {
    font-size: 14px;
    color: #8b4513;
    padding: 8px 20px;
    background: #faf5ed;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid #8b4513;
}

.guwen_index_5 .title > a:last-child:hover {
    background: #8b4513;
    color: #fffef5;
}

.zz_jj {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    background: #faf5ed;
    border: 1px solid #d4c5a9;
    border-radius: 4px;
    padding: 25px;
    transition: all 0.3s ease;
}

.zz_jj:hover {
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.1);
}

.zz_jj .left {
    flex-shrink: 0;
}

.zz_jj .left svg {
    border-radius: 4px;
}

.zz_jj .right {
    flex: 1;
}

.r_title {
    font-size: 22px;
    font-weight: bold;
    color: #6b3410;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.r_js {
    font-size: 14px;
    line-height: 1.8;
    color: #4a3c28;
    margin-bottom: 15px;
    text-align: justify;
    text-indent: 2em;
}

.r_dbz {
    font-size: 14px;
    color: #665544;
}

.r_dbz span {
    font-weight: bold;
    color: #6b3410;
    display: inline-block;
    margin-bottom: 10px;
}

.r_dbz a {
    display: inline-block;
    margin: 5px 8px 5px 0;
    padding: 6px 14px;
    background: #f5ebe0;
    border-radius: 4px;
    color: #4a3c28;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 1px solid #d4c5a9;
}

.r_dbz a:hover {
    background: #8b4513;
    color: #fffef5;
    border-color: #8b4513;
}

/* ========== 名句精选 ========== */
.mingju_list {
    background: #faf5ed;
    border: 1px solid #d4c5a9;
    border-radius: 4px;
    padding: 20px;
}

.mingju_list ul {
    list-style: none;
}

.mingju_list li {
    padding: 15px 0;
    border-bottom: 1px solid #e8dcc4;
    font-size: 15px;
    line-height: 1.8;
    transition: all 0.3s ease;
}

.mingju_list li:hover {
    background: #f5ebe0;
    padding-left: 10px;
}

.mingju_list li:last-child {
    border-bottom: none;
}

.mingju_list li a {
    color: #4a3c28;
    font-size: 15px;
    font-weight: 500;
}

/* ========== 友链 ========== */
.yqlj {
    padding: 25px 20px;
    background: #f5ebe0;
    border-top: 1px solid #d4c5a9;
    text-align: center;
    font-size: 14px;
    color: #665544;
}

.yqlj strong {
    color: #6b3410;
    margin-right: 15px;
    font-size: 15px;
}

.yqlj a {
    margin: 5px 10px;
    color: #8b4513;
    transition: all 0.3s ease;
}

.yqlj a:hover {
    color: #6b3410;
}

/* ========== 页脚 ========== */
.gushiwang_dibu {
    background: #e8dcc4;
    padding: 30px 20px;
    border-top: 1px solid #d4c5a9;
}

.gushiwang_dibu::before {
    display: none;
}

.gushiwang_dibu_info {
    text-align: center;
    color: #665544;
    font-size: 13px;
    line-height: 2;
}

.gushiwang_dibu_info a {
    color: #8b4513;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.gushiwang_dibu_info a:hover {
    color: #6b3410;
}

/* ========== 响应式设计 ========== */

/* 平板设备 (768px - 1024px) */
@media screen and (max-width: 1024px) {
    .guwen_index_1 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .guwen_index_1 .left,
    .guwen_index_1 .right {
        max-width: 100%;
    }

    .guwen_index_1 .left ul {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .zz_jj {
        flex-direction: column;
        align-items: center;
    }

    .zz_jj .left svg {
        width: 100%;
        max-width: 200px;
        height: auto;
    }

    .banner-title {
        font-size: 36px;
        letter-spacing: 5px;
    }

    .banner-subtitle {
        font-size: 20px;
    }

    .guwen_index_2 ul,
    .guwen_index_3 ul {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

/* 手机设备 (最大 767px) */
@media screen and (max-width: 767px) {
    body {
        font-size: 14px;
    }

    .gushiwang_top {
        flex-direction: column;
        padding: 15px;
    }

    .gushiwang_top_logo svg {
        width: 160px;
        height: auto;
    }

    .logo-text {
        font-size: 28px;
    }

    .gushiwang_top_ss {
        width: 100%;
        max-width: 100%;
    }

    .gushiwang_menu ul {
        justify-content: flex-start;
    }

    .gushiwang_menu li a {
        padding: 12px 18px;
        font-size: 14px;
    }

    .guwen_index_1 {
        padding: 20px 15px;
    }

    .banner-title {
        font-size: 28px;
        letter-spacing: 3px;
    }

    .banner-subtitle {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .banner-desc {
        font-size: 14px;
    }

    .guwen_index_2 .title a,
    .bt_tit a,
    .guwen_index_4 .title > a:first-child,
    .guwen_index_5 .title > a:first-child {
        font-size: 24px;
        padding: 0 20px;
        letter-spacing: 3px;
    }

    .guwen_index_2 ul {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }

    .guwen_index_2 li {
        padding: 20px 10px;
    }

    .guwen_index_2 li a {
        font-size: 16px;
    }

    .guwen_index_3 ul {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
    }

    .guwen_index_3 .img {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }

    .guwen_index_3 .title a {
        font-size: 15px;
    }

    .xx_sw_li ul {
        flex-direction: column;
        gap: 10px;
    }

    .xx_sw_li li a {
        display: block;
        text-align: center;
    }

    .zz_jj {
        padding: 20px 15px;
    }

    .r_title {
        font-size: 20px;
    }

    .r_js {
        font-size: 14px;
    }

    .mingju_list li {
        font-size: 14px;
        padding-left: 30px;
    }

    .mingju_list li a {
        font-size: 15px;
    }

    .yqlj {
        font-size: 12px;
    }

    .yqlj a {
        display: inline-block;
        margin: 5px;
    }

    .gushiwang_dibu_info {
        font-size: 12px;
    }
}

/* 超小屏幕 (最大 480px) */
@media screen and (max-width: 480px) {
    .guwen_index_2 ul,
    .guwen_index_3 ul {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 10px;
    }

    .guwen_index_3 .img {
        width: 80px;
        height: 80px;
        border-width: 3px;
    }

    .guwen_index_3 .title a {
        font-size: 13px;
    }

    .zz_jj .left svg {
        max-width: 140px;
    }

    .r_dbz a {
        padding: 5px 12px;
        font-size: 13px;
    }
}

/* ========== 打印样式 ========== */
@media print {
    .gushiwang_top_ss,
    .gushiwang_menu,
    .yqlj,
    .gushiwang_dibu,
    #backToTop {
        display: none;
    }

    body {
        background: white;
    }

    body::before {
        display: none;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .main-container {
        box-shadow: none;
    }
}

/* 打印样式 */
@media print {
    .gushiwang_top_ss,
    .gushiwang_menu,
    .yqlj,
    .gushiwang_dibu,
    #backToTop {
        display: none;
    }

    body {
        background: white;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .main-container {
        box-shadow: none;
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #e8dcc4;
}

::-webkit-scrollbar-thumb {
    background: #c9b896;
    border-radius: 4px;
}



/* 文字选中样式 */
::selection {
    background: rgba(139, 69, 19, 0.3);
    color: #4a3c28;
}

::-moz-selection {
    background: rgba(139, 69, 19, 0.3);
    color: #4a3c28;
}

/* 菜单激活状态 */
.gushiwang_menu li.active a {
    background: rgba(255, 255, 255, 0.15);
}

/* 骨架屏效果 */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(
        90deg,
        #f5ebe0 0%,
        #e8dcc4 50%,
        #f5ebe0 100%
    );
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* 焦点可见性 */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid #8b4513;
    outline-offset: 2px;
}

/* 禁用状态样式 */
button:disabled,
input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 响应式优化增强 */
@media (hover: none) {
    .guwen_index_2 li:hover,
    .guwen_index_3 li:hover .img,
    .zz_jj:hover {
        transform: none;
    }
}

/* 减弱动画效果(尊重用户偏好) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 高对比度模式优化 */
@media (prefers-contrast: more) {
    body {
        background: #fff;
        color: #000;
    }

    .main-container {
        border: 2px solid #000;
    }

    a {
        color: #00f;
        text-decoration: underline;
    }
}

/* 暗色模式支持(可选) */
@media (prefers-color-scheme: dark) {
    /* 暂不启用,保持古典风格 */
}


/* ========== 面包屑导航 ========== */
.breadcrumb {
    padding: 15px 20px;
    background: #faf5ed;
    border-bottom: 1px solid #d4c5a9;
    font-size: 14px;
    color: #665544;
}

.breadcrumb a {
    color: #8b4513;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #6b3410;
}

.breadcrumb span {
    color: #4a3c28;
}

/* ========== 古诗详情页 ========== */
.poem-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #faf5ed;
}

/* 诗词头部 */
.poem-header {
    text-align: center;
    padding: 30px 0;
    border-bottom: 2px solid #d4c5a9;
    margin-bottom: 40px;
}

.poem-title {
    font-size: 42px;
    font-weight: bold;
    color: #6b3410;
    margin-bottom: 20px;
    letter-spacing: 3px;
    font-family: 'STKaiti', 'KaiTi', serif;
}

.poem-meta {
    font-size: 16px;
    color: #665544;
}

.poem-dynasty {
    color: #8b4513;
}

.poem-separator {
    margin: 0 10px;
    color: #c9b896;
}

.poem-author {
    color: #8b4513;
    font-weight: bold;
    transition: color 0.3s ease;
}

.poem-author:hover {
    color: #6b3410;
}

/* 诗词正文 */
.poem-content {
    background: #f5ebe0;
    border: 1px solid #d4c5a9;
    border-radius: 4px;
    padding: 40px;
    margin-bottom: 30px;
}

.poem-text {
    line-height: 2.5;
    font-size: 20px;
    color: #4a3c28;
    font-family: 'STKaiti', 'KaiTi', 'STSong', 'SimSun', serif;
}

.poem-text p {
    margin-bottom: 15px;
    letter-spacing: 2px;
}

/* 各个区块 */
.poem-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: #6b3410;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: none; /* 已移到美化版本 */
    letter-spacing: 2px;
}

.section-content {
    background: #f5ebe0;
    border: 1px solid #d4c5a9;
    border-radius: 4px;
    padding: 25px;
    line-height: 1.8;
}

/* 注释 */
.annotation-item {
    margin-bottom: 15px;
    font-size: 15px;
}

.annotation-word {
    font-weight: bold;
    color: #8b4513;
}

.annotation-text {
    color: #4a3c28;
}

/* 译文和赏析 */
.translation-text,
.appreciation-text {
    margin-bottom: 15px;
    font-size: 16px;
    color: #4a3c28;
    text-align: justify;
    text-indent: 2em;
}

/* 作者信息 */
.author-info .section-content {
    padding: 30px;
}

.author-profile {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.author-avatar {
    flex-shrink: 0;
}

.author-bio {
    flex: 1;
}

.author-name {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.author-name a {
    color: #6b3410;
}

.author-dynasty {
    font-size: 14px;
    color: #998877;
    margin-bottom: 15px;
}

.author-desc {
    font-size: 15px;
    color: #4a3c28;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.author-more {
    display: inline-block;
    padding: 8px 20px;
    background: #8b4513;
    color: #fffef5;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.author-more:hover {
    background: #6b3410;
}

/* 相关推荐 */
.related-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.related-item {
    background: #faf5ed;
    border: 1px solid #d4c5a9;
    border-radius: 4px;
    padding: 20px;
    transition: all 0.3s ease;
}

.related-item:hover {
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.2);
    border-color: #8b4513;
}

.related-link {
    display: block;
}

.related-title {
    font-size: 16px;
    font-weight: bold;
    color: #6b3410;
    margin-bottom: 8px;
}

.related-author {
    font-size: 13px;
    color: #998877;
    margin-bottom: 10px;
}

.related-preview {
    font-size: 14px;
    color: #665544;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== 古诗列表页 ========== */
.poem-list-container {
    padding: 30px 20px;
    background: #faf5ed;
}

/* 列表头部 */
.list-header {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #d4c5a9;
}

.list-title {
    font-size: 36px;
    font-weight: bold;
    color: #6b3410;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.list-desc {
    font-size: 16px;
    color: #665544;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* 筛选区域 */
.list-filter {
    background: #f5ebe0;
    border: 1px solid #d4c5a9;
    border-radius: 4px;
    padding: 25px;
    margin-bottom: 30px;
}

.filter-group {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-size: 15px;
    font-weight: bold;
    color: #6b3410;
    min-width: 60px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.filter-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #faf5ed;
    border: 1px solid #d4c5a9;
    border-radius: 4px;
    color: #4a3c28;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-tag:hover {
    background: #8b4513;
    color: #fffef5;
    border-color: #8b4513;
}

.filter-tag.active {
    background: #8b4513;
    color: #fffef5;
    border-color: #8b4513;
}

/* 诗词卡片列表 */
.poem-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.poem-card {
    background: #f5ebe0;
    border: 1px solid #d4c5a9;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.poem-card:hover {
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
    border-color: #8b4513;
    transform: translateY(-3px);
}

.poem-card-link {
    display: block;
    padding: 25px;
}

.poem-card-title {
    font-size: 20px;
    font-weight: bold;
    color: #6b3410;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.poem-card-meta {
    font-size: 14px;
    color: #998877;
    margin-bottom: 15px;
}

.poem-card-author {
    color: #8b4513;
    font-weight: bold;
}

.poem-card-separator {
    margin: 0 8px;
}

.poem-card-dynasty {
    color: #998877;
}

.poem-card-content {
    margin-bottom: 15px;
    font-size: 15px;
    color: #4a3c28;
    line-height: 1.8;
}

.poem-card-content p {
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.poem-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.poem-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #e8dcc4;
    border-radius: 4px;
    color: #665544;
    font-size: 12px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 30px 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #f5ebe0;
    border: 1px solid #d4c5a9;
    border-radius: 4px;
    color: #4a3c28;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-link:hover:not(.disabled) {
    background: #8b4513;
    color: #fffef5;
    border-color: #8b4513;
}

.page-link.active {
    background: #8b4513;
    color: #fffef5;
    border-color: #8b4513;
}

.page-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-ellipsis {
    padding: 0 8px;
    color: #998877;
}

.page-jump {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 20px;
    font-size: 14px;
    color: #4a3c28;
}

.page-input {
    width: 60px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #c9b896;
    border-radius: 4px;
    background: #faf5ed;
    color: #4a3c28;
    font-size: 14px;
    text-align: center;
}

.page-go {
    height: 36px;
    padding: 0 16px;
    background: #8b4513;
    color: #fffef5;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-go:hover {
    background: #6b3410;
}

/* ===================================
   DaheCMS 分页样式 - 适配古朴棕金色调
   =================================== */
.pagination-wrapper {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.dahe-pagination {
    display: block;
}

.dahe-pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dahe-page-link {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background-color: #fbf3e6;
    color: #5a4630;
    border: 1px solid #d1bb98;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dahe-page-link:hover {
    color: #7a3311;
    border-color: #a6663a;
    background-color: #f0dec7;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.15);
}

.dahe-page-link.active {
    background: linear-gradient(135deg, #8b4513 0%, #a35b28 100%);
    color: #fff8ef;
    border-color: #8b4513;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(107, 52, 16, 0.22);
}

.dahe-page-link.disabled {
    color: #b6a690;
    cursor: not-allowed;
    opacity: 0.75;
    background-color: #f6efe5;
    border-color: #e3d7c4;
    box-shadow: none;
}

.dahe-page-link.disabled:hover {
    color: #b6a690;
    border-color: #e3d7c4;
    background-color: #f6efe5;
    box-shadow: none;
}

.dahe-page-ellipsis {
    color: #8e7557;
    padding: 0 5px;
}

.dahe-pagination-info {
    font-size: 13px;
    color: #8e7557;
    margin-top: 10px;
    text-align: center;
}

@media (max-width: 768px) {
    .dahe-page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .dahe-pagination-nav {
        gap: 5px;
    }

    .dahe-page-link {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
    }
}

/* ========== 响应式优化 ========== */

/* 平板设备 */
@media screen and (max-width: 1024px) {
    .poem-detail {
        padding: 30px 15px;
    }

    .poem-title {
        font-size: 36px;
    }

    .poem-content {
        padding: 30px;
    }

    .poem-text {
        font-size: 18px;
    }

    .author-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .related-list {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .poem-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* 手机设备 */
@media screen and (max-width: 767px) {
    .breadcrumb {
        font-size: 12px;
        padding: 12px 15px;
    }

    .poem-detail {
        padding: 20px 15px;
    }

    .poem-header {
        padding: 20px 0;
    }

    .poem-title {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .poem-meta {
        font-size: 14px;
    }

    .poem-content {
        padding: 20px;
    }

    .poem-text {
        font-size: 16px;
        line-height: 2.2;
    }

    .section-title {
        font-size: 20px;
    }

    .section-content {
        padding: 20px;
    }

    .list-header {
        padding: 20px 0;
    }

    .list-title {
        font-size: 28px;
        letter-spacing: 2px;
    }

    .list-desc {
        font-size: 14px;
    }

    .list-filter {
        padding: 20px;
    }

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-label {
        margin-bottom: 5px;
    }

    .poem-list {
        grid-template-columns: 1fr;
    }

    .poem-card-link {
        padding: 20px;
    }

    .related-list {
        grid-template-columns: 1fr;
    }

    .pagination {
        gap: 8px;
    }

    .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }

    .page-jump {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
        justify-content: center;
    }
}

/* 超小屏幕 */
@media screen and (max-width: 480px) {
    .poem-title {
        font-size: 24px;
    }

    .poem-text {
        font-size: 15px;
    }

    .poem-content {
        padding: 15px;
    }

    .section-content {
        padding: 15px;
    }

    .list-title {
        font-size: 24px;
    }
}


/* ========== 左右布局结构 ========== */

/* 侧边栏切换按钮 */
.sidebar-toggle {
    float: right;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #8b4513;
    color: #fffef5;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: #6b3410;
}

.sidebar-toggle svg {
    flex-shrink: 0;
}

/* 内容主体区域 - 左右布局 */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    padding: 30px 20px;
    background: #faf5ed;
    transition: all 0.3s ease;
}

/* 侧边栏在左侧时 */
.content-wrapper.sidebar-left {
    grid-template-columns: 320px 1fr;
}

.content-wrapper.sidebar-left .main-content {
    order: 2;
}

.content-wrapper.sidebar-left .sidebar {
    order: 1;
}

/* 主要内容区 */
.main-content {
    min-width: 0;
}

/* 详情页内部样式调整 */
.content-wrapper .poem-detail {
    padding: 0;
    max-width: 100%;
}

.content-wrapper .poem-list-container {
    padding: 0;
}

/* ========== 侧边栏样式 ========== */
.sidebar {
    width: 320px;
}

/* 侧边栏组件 */
.sidebar-widget {
    background: #f5ebe0;
    border: 1px solid #d4c5a9;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-widget:last-child {
    margin-bottom: 0;
}

/* 组件标题 */
.widget-title {
    font-size: 18px;
    font-weight: bold;
    color: #6b3410;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d4c5a9;
}

/* 列表样式 */
.widget-list {
    list-style: none;
}

.widget-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e8dcc4;
    transition: all 0.3s ease;
}

.widget-list li:last-child {
    border-bottom: none;
}

.widget-list li:hover {
    background: #faf5ed;
    padding-left: 8px;
}

.widget-list a {
    display: block;
    color: #4a3c28;
    font-size: 14px;
    transition: color 0.3s ease;
}

.widget-list a:hover {
    color: #8b4513;
}

.widget-list a.active {
    color: #8b4513;
    font-weight: bold;
}

/* 热门阅读带序号 */
.widget-hot .hot-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hot-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    background: #e8dcc4;
    color: #665544;
    font-size: 12px;
    font-weight: bold;
    border-radius: 4px;
    flex-shrink: 0;
}

.hot-num.hot-top {
    background: #8b4513;
    color: #fffef5;
}

/* 诗人列表样式 */
.widget-authors .author-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-name {
    color: #4a3c28;
    font-weight: 500;
}

.author-count {
    color: #998877;
    font-size: 13px;
}

.author-item:hover .author-name {
    color: #8b4513;
}

/* 标签云 */
.widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.widget-tags .tag-item {
    display: inline-block;
    padding: 6px 14px;
    background: #faf5ed;
    border: 1px solid #d4c5a9;
    border-radius: 4px;
    color: #4a3c28;
    font-size: 13px;
    transition: all 0.3s ease;
}

.widget-tags .tag-item:hover {
    background: #8b4513;
    color: #fffef5;
    border-color: #8b4513;
}

/* 统计信息组件 */
.widget-stats .stats-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stats-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #faf5ed;
    border-radius: 4px;
}

.stats-label {
    color: #665544;
    font-size: 14px;
}

.stats-value {
    color: #8b4513;
    font-size: 18px;
    font-weight: bold;
}

/* ========== 列表页响应式调整 ========== */
.content-wrapper .poem-list {
    grid-template-columns: 1fr;
}

/* ========== 响应式布局 ========== */

/* 平板设备 */
@media screen and (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr 280px;
        gap: 15px;
        padding: 20px 15px;
    }

    .content-wrapper.sidebar-left {
        grid-template-columns: 280px 1fr;
    }

    .sidebar {
        width: 280px;
    }

    .sidebar-widget {
        padding: 15px;
    }

    .sidebar-widget .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 手机设备 */
@media screen and (max-width: 767px) {
    .sidebar-toggle {
        margin-top: 8px;
        float: none;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }

    .content-wrapper.sidebar-left {
        grid-template-columns: 1fr;
    }

    .content-wrapper.sidebar-left .main-content {
        order: 1;
    }

    .content-wrapper.sidebar-left .sidebar {
        order: 2;
    }

    .sidebar {
        width: 100%;
    }

    .sidebar-widget {
        padding: 15px;
        margin-bottom: 15px;
    }

    .sidebar-widget .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .widget-title {
        font-size: 16px;
    }

    .content-wrapper .poem-list {
        grid-template-columns: 1fr;
    }
}

/* 超小屏幕 */
@media screen and (max-width: 480px) {
    .sidebar-toggle span {
        display: none;
    }

    .sidebar-toggle {
        padding: 8px;
        min-width: 36px;
    }
}


/* ========== 细节美化优化 ========== */

/* 面包屑导航美化 */
.breadcrumb {
    background: linear-gradient(to bottom, #faf5ed, #f5ebe0);
    box-shadow: 0 1px 3px rgba(139, 69, 19, 0.05);
}

.breadcrumb a::after,
.breadcrumb span::before {
    content: none;
}

/* 面包屑箭头美化 */
.breadcrumb::before {
    display: none;
}

/* 侧边栏切换按钮增强 */
.sidebar-toggle {
    box-shadow: 0 2px 4px rgba(139, 69, 19, 0.2);
}

.sidebar-toggle:hover {
    box-shadow: 0 3px 8px rgba(139, 69, 19, 0.3);
    transform: translateY(-1px);
}

.sidebar-toggle:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(139, 69, 19, 0.2);
}

/* 内容容器美化 */
.content-wrapper {
    position: relative;
}

/* 主内容区卡片化 */
.main-content {
    background: #ffffff;
    border: 1px solid #e8dcc4;
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.05);
}

/* 详情页标题美化 */
.poem-header {
    position: relative;
}

.poem-header::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, transparent, #8b4513, transparent);
}

.poem-title {
    position: relative;
    display: inline-block;
}

/* 诗词标题两侧装饰 */
.poem-title::before,
.poem-title::after {
    content: '◆';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #c9b896;
    font-size: 16px;
    opacity: 0.6;
}

.poem-title::before {
    left: -30px;
}

.poem-title::after {
    right: -30px;
}

/* 诗词正文卡片美化 */
.poem-content {
    box-shadow: inset 0 1px 3px rgba(139, 69, 19, 0.05);
    position: relative;
}

.poem-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #d4c5a9, transparent);
}

/* 诗词文字增强 */
.poem-text p {
    position: relative;
    padding-left: 1.5em;
    transition: all 0.3s ease;
}

.poem-text p:hover {
    color: #6b3410;
    padding-left: 2em;
}

.poem-text p::before {
    content: '·';
    position: absolute;
    left: 0;
    color: #8b4513;
    font-weight: bold;
}

/* 区块标题美化 - 修复版 */
.section-title {
    position: relative;
    padding-left: 28px;
    border-bottom: none;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* 左侧单条装饰 */
.section-title::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 28px;
    background: linear-gradient(to bottom, #8b4513, #a0522d);
    border-radius: 2px;
}

/* 底部渐变线装饰（替代border-bottom） */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, #8b4513, #d4c5a9, transparent);
}

/* 区块内容卡片美化 */
.section-content {
    box-shadow: inset 0 1px 3px rgba(139, 69, 19, 0.03);
    position: relative;
}

/* 注释项美化 */
.annotation-item {
    padding-left: 15px;
    position: relative;
}

.annotation-item::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #8b4513;
    font-size: 12px;
}

.annotation-item:hover {
    background: rgba(139, 69, 19, 0.02);
    padding-left: 20px;
}

/* 作者信息卡片美化 */
.author-profile {
    position: relative;
    padding: 20px;
    background: linear-gradient(135deg, #faf5ed 0%, #f5ebe0 100%);
    border-radius: 4px;
}

.author-avatar {
    position: relative;
}

.author-avatar::after {
    content: '';
    position: absolute;
    inset: -5px;
    border: 2px solid #e8dcc4;
    border-radius: 50%;
    opacity: 0.5;
}

/* 作者头像增加光晕效果 */
.author-avatar svg {
    filter: drop-shadow(0 2px 8px rgba(139, 69, 19, 0.15));
}

/* 作者更多按钮美化 */
.author-more {
    box-shadow: 0 2px 4px rgba(139, 69, 19, 0.15);
}

.author-more:hover {
    box-shadow: 0 3px 8px rgba(139, 69, 19, 0.25);
    transform: translateX(3px);
}

/* 相关推荐增强 */
.related-item {
    position: relative;
    overflow: hidden;
}

.related-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, #8b4513, #a0522d);
    transition: height 0.3s ease;
}

.related-item:hover::before {
    height: 100%;
}

/* 侧边栏组件美化 */
.sidebar-widget {
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.06);
    position: relative;
    overflow: hidden;
}

.sidebar-widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, #8b4513, #a0522d, #8b4513);
}

/* 组件标题增强 */
.widget-title {
    position: relative;
    padding-left: 12px;
}

.widget-title::before {
    content: '◈';
    position: absolute;
    left: 0;
    color: #8b4513;
    font-size: 14px;
}

/* 列表项悬停效果增强 */
.widget-list li {
    position: relative;
    padding-left: 5px;
}

.widget-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #8b4513;
    transition: width 0.3s ease;
}

.widget-list li:hover::before {
    width: 3px;
}

/* 古诗分类三列网格 */
.sidebar-widget .category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget .category-grid li {
    margin: 0;
    padding: 0;
    background: none;
    border-bottom: none;
}

.sidebar-widget .category-grid li::before {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
}

.sidebar-widget .category-grid li:hover {
    background: none;
    padding-left: 0;
}

.sidebar-widget .category-grid li a {
    display: block;
    padding: 6px 8px;
    border-radius: 6px;
    background: linear-gradient(180deg, #fffaf2 0%, #f4e6d2 100%);
    border: 1px solid rgba(139, 69, 19, 0.2);
    color: #6b3410;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.22s ease;
    box-shadow: 0 1px 3px rgba(88, 64, 39, 0.06);
}

.sidebar-widget .category-grid li a:hover {
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    border-color: #8b4513;
    color: #fff8ef;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(139, 69, 19, 0.22);
}

/* 热门古诗排行 */
.sidebar-widget .rank-list {
    padding: 0;
    margin: 0;
    counter-reset: rank-counter;
}

.sidebar-widget .rank-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 8px;
    border-bottom: 1px dashed rgba(139, 69, 19, 0.14);
    transition: all 0.2s ease;
}

.sidebar-widget .rank-item:last-child {
    border-bottom: none;
}

.sidebar-widget .rank-item:hover {
    background: rgba(139, 69, 19, 0.04);
    border-radius: 6px;
}

.sidebar-widget .rank-num {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    counter-increment: rank-counter;
}

.sidebar-widget .rank-num::before {
    content: counter(rank-counter);
}

.sidebar-widget .rank-info {
    flex: 1;
    min-width: 0;
}

.sidebar-widget .rank-info h4 {
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
}

.sidebar-widget .rank-info h4 a {
    color: #5f4a32;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sidebar-widget .rank-info h4 a:hover {
    color: #8b4513;
}

.sidebar-widget .rank-info h4 a .rank-poem-title {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: "STKaiti", "KaiTi", serif;
}

.sidebar-widget .rank-info h4 a .rank-poem-meta {
    flex-shrink: 0;
    font-size: 11px;
    color: #8b7355;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sidebar-widget .rank-info p {
    display: none;
}

/* 热门序号美化 */
.hot-num {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
}

.hot-num.hot-top {
    background: linear-gradient(135deg, #8b4513, #a0522d);
    box-shadow: 0 2px 4px rgba(139, 69, 19, 0.3);
}

/* 标签云美化 */
.widget-tags .tag-item {
    box-shadow: 0 1px 3px rgba(139, 69, 19, 0.08);
}

.widget-tags .tag-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(139, 69, 19, 0.2);
}

/* 统计信息卡片美化 */
.stats-item {
    box-shadow: 0 1px 3px rgba(139, 69, 19, 0.05);
    position: relative;
    overflow: hidden;
}

.stats-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #8b4513, #a0522d);
}

.stats-value {
    text-shadow: 0 1px 2px rgba(139, 69, 19, 0.1);
}

/* 列表页筛选器美化 */
.list-filter {
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.06);
    position: relative;
}

.list-filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, #8b4513, transparent);
}

/* 筛选标签增强 */
.filter-tag {
    box-shadow: 0 1px 2px rgba(139, 69, 19, 0.08);
    position: relative;
}

.filter-tag::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.filter-tag:hover::before,
.filter-tag.active::before {
    border-color: #8b4513;
}

/* 诗词卡片美化 */
.poem-card {
    box-shadow: 0 2px 6px rgba(139, 69, 19, 0.08);
    position: relative;
    overflow: hidden;
}

.poem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, #8b4513, #a0522d);
    transition: height 0.3s ease;
}

.poem-card:hover::before {
    height: 100%;
}

.poem-card:hover {
    box-shadow: 0 4px 16px rgba(139, 69, 19, 0.15);
}

/* 诗词卡片标题装饰 */
.poem-card-title {
    position: relative;
    padding-left: 20px;
}

.poem-card-title::before {
    content: '〔';
    position: absolute;
    left: 0;
    color: #8b4513;
    opacity: 0.5;
}

.poem-card-title::after {
    content: '〕';
    color: #8b4513;
    opacity: 0.5;
    margin-left: 4px;
}

/* 诗词标签美化 */
.poem-tag {
    box-shadow: 0 1px 2px rgba(139, 69, 19, 0.06);
    transition: all 0.3s ease;
}

.poem-card:hover .poem-tag {
    background: #d4c5a9;
}

/* 分页组件美化 */
.page-link {
    box-shadow: 0 1px 3px rgba(139, 69, 19, 0.08);
    position: relative;
}

.page-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.page-link:hover:not(.disabled)::before {
    border-color: #8b4513;
}

.page-link.active {
    box-shadow: 0 2px 6px rgba(139, 69, 19, 0.2);
}

/* 分页输入框美化 */
.page-input {
    box-shadow: inset 0 1px 3px rgba(139, 69, 19, 0.05);
}

.page-input:focus {
    box-shadow: inset 0 1px 3px rgba(139, 69, 19, 0.08),
                0 0 0 2px rgba(139, 69, 19, 0.1);
}

/* 分页按钮美化 */
.page-go {
    box-shadow: 0 2px 4px rgba(139, 69, 19, 0.2);
}

.page-go:hover {
    box-shadow: 0 3px 8px rgba(139, 69, 19, 0.3);
    transform: translateY(-1px);
}

.page-go:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(139, 69, 19, 0.2);
}

/* 滚动条美化增强 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(to bottom, #f5ebe0, #e8dcc4);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #c9b896, #b8a585);
    border-radius: 5px;
    border: 2px solid #f5ebe0;
}



/* 加载动画 */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: 200px 0;
    }
}

/* 页面装饰渐变 */
.content-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #8b4513, transparent);
}

/* 移动端优化 */
@media screen and (max-width: 767px) {
    .poem-title::before,
    .poem-title::after {
        display: none;
    }

    .main-content {
        padding: 20px;
    }

    .poem-card-title {
        padding-left: 15px;
    }
}

/* 打印样式优化 */
@media print {
    .sidebar-toggle,
    .widget-title::before,
    .section-title::before,
    .section-title::after {
        display: none;
    }

    .main-content,
    .sidebar-widget {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* 焦点可见性增强 */
*:focus-visible {
    outline: 2px solid #8b4513;
    outline-offset: 3px;
    border-radius: 2px;
}

/* 选择文本美化 */
::selection {
    background: rgba(139, 69, 19, 0.25);
    color: #4a3c28;
    text-shadow: none;
}

::-moz-selection {
    background: rgba(139, 69, 19, 0.25);
    color: #4a3c28;
}

/* 微交互：按钮涟漪效果 */
.anniu,
.author-more,
.page-go {
    position: relative;
    overflow: hidden;
}

.anniu::after,
.author-more::after,
.page-go::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.anniu:active::after,
.author-more:active::after,
.page-go:active::after {
    width: 200px;
    height: 200px;
}


/* ========== 朝代分类通栏 ========== */
.dynasty-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f5ebe0;
    border-bottom: 1px solid #d4c5a9;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dynasty-bar-label {
    font-size: 15px;
    font-weight: bold;
    color: #6b3410;
    white-space: nowrap;
    flex-shrink: 0;
}

.dynasty-bar-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.dynasty-bar-item {
    display: inline-block;
    padding: 8px 18px;
    background: #faf5ed;
    border: 1px solid #d4c5a9;
    border-radius: 4px;
    color: #4a3c28;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(139, 69, 19, 0.05);
}

.dynasty-bar-item:hover {
    background: #8b4513;
    color: #fffef5;
    border-color: #8b4513;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(139, 69, 19, 0.15);
}

.dynasty-bar-item.active {
    background: #8b4513;
    color: #fffef5;
    border-color: #8b4513;
    font-weight: bold;
}

/* ========== 侧边栏作者简介 ========== */
/* 作者信息卡片 - 新格式 */
.author-card {
    background: #faf5ed;
    border: 1px solid #d4c5a9;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.08);
}

/* 标题栏 */
.author-card-header {
    width: 100%;
    height: 36px;
    background: #4a3c28;
    color: #fffef5;
    display: flex;
    align-items: center;
    padding: 0 12px;
}

.author-card-title {
    width: 100%;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 头像与基本信息区域 */
.author-card-profile {
    display: flex;
    padding: 12px;
    border-bottom: 1px solid #d4c5a9;
    height: 164px;
    gap: 12px;
}

.author-card-avatar {
    width: 100px;
    height: 142px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(139, 69, 19, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.author-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 竖排文字区域 */
.author-card-name-vertical {
    width: calc(100% - 112px);
    writing-mode: vertical-rl;
    letter-spacing: 2px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
}

.author-name-text {
    font-size: 18px;
    font-weight: bold;
    color: #6b3410;
    font-family: 'STKaiti', 'KaiTi', serif;
}

.author-card-meta {
    writing-mode: vertical-rl;
    display: flex;
    align-items: flex-end;
}

.author-card-period {
    font-size: 12px;
    color: #998877;
    letter-spacing: 1px;
}

/* 详细信息内容区 */
.author-card-content {
    padding: 15px;
}

/* 信息网格布局 */
.author-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px dashed #d4c5a9;
}

.author-info-section {
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px dashed #d4c5a9;
}

.author-info-item {
    font-size: 13px;
    line-height: 1.6;
    color: #4a3c28;
}

.info-label {
    font-weight: bold;
    color: #6b3410;
    margin-right: 4px;
}

.info-value {
    color: #4a3c28;
}

/* 标签样式 */
.info-tag {
    color: #8b4513;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.info-tag:hover {
    color: #6b3410;
}

/* 注释文字 */
.text-note {
    color: #998877;
    font-style: italic;
    font-size: 12px;
}

/* 高亮文字（作品名） */
.text-highlight {
    color: #8b4513;
    font-weight: 500;
}

/* 详细介绍段落 */
.author-info-desc {
    font-size: 13px;
    line-height: 1.8;
    color: #4a3c28;
    text-align: justify;
    text-indent: 2em;
}

/* 响应式调整 */
@media screen and (max-width: 767px) {
    .author-card-profile {
        height: auto;
        min-height: 140px;
    }

    .author-card-avatar {
        width: 80px;
        height: 114px;
    }

    .author-card-name-vertical {
        width: calc(100% - 92px);
    }

    .author-name-text {
        font-size: 16px;
    }

    .author-card-period {
        font-size: 11px;
    }

    .author-card-content {
        padding: 12px;
    }

    .author-info-item {
        font-size: 12px;
    }

    .author-info-desc {
        font-size: 12px;
    }
}

/* ========== 删除旧的侧边栏作者简介样式（已废弃） ========== */
/* 以下样式已被新的 author-card 替代，保留以防其他地方使用 */
.author-widget .author-sidebar-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.author-sidebar-avatar {
    margin-bottom: 15px;
}

.author-sidebar-avatar svg {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 2px 8px rgba(139, 69, 19, 0.15));
}

.author-sidebar-info {
    width: 100%;
}

.author-sidebar-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.author-sidebar-name a {
    color: #6b3410;
    transition: color 0.3s ease;
}

.author-sidebar-name a:hover {
    color: #8b4513;
}

.author-sidebar-dynasty {
    font-size: 13px;
    color: #998877;
    margin-bottom: 12px;
}

.author-sidebar-desc {
    font-size: 13px;
    line-height: 1.8;
    color: #4a3c28;
    margin-bottom: 15px;
    text-align: justify;
}

.author-sidebar-more {
    display: inline-block;
    padding: 6px 16px;
    background: #8b4513;
    color: #fffef5;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(139, 69, 19, 0.2);
}

.author-sidebar-more:hover {
    background: #6b3410;
    transform: translateX(3px);
    box-shadow: 0 3px 8px rgba(139, 69, 19, 0.3);
}

/* ========== 响应式调整 ========== */

/* 平板设备 */
@media screen and (max-width: 1024px) {
    .dynasty-bar {
        padding: 12px 15px;
        gap: 12px;
    }

    .dynasty-bar-list {
        gap: 8px;
    }

    .dynasty-bar-item {
        padding: 6px 14px;
        font-size: 13px;
    }
}

/* 手机设备 */
@media screen and (max-width: 767px) {
    .dynasty-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
        gap: 10px;
    }

    .dynasty-bar-list {
        width: 100%;
    }

    .dynasty-bar-item {
        flex: 1 1 auto;
        text-align: center;
    }

    .author-sidebar-avatar svg {
        width: 70px;
        height: 70px;
    }

    .author-sidebar-name {
        font-size: 16px;
    }

    .author-sidebar-desc {
        font-size: 12px;
    }
}

/* 超小屏幕 */
@media screen and (max-width: 480px) {
    .dynasty-bar-item {
        padding: 8px 12px;
        font-size: 12px;
    }
}


/* ========== 作者列表页 ========== */

/* 作者列表容器 */
.author-list-container {
    /* 复用 poem-list-container 样式 */
}

/* 作者卡片网格 - 优化间距 */
.author-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 18px;
    margin-bottom: 40px;
}

/* 作者卡片项 - 优化整体样式 */
.author-card-item {
    background: linear-gradient(135deg, #faf5ed 0%, #f5ebe0 100%);
    border: 1px solid #d4c5a9;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    position: relative;
}

/* 左侧装饰条 - 已禁用 */
.author-card-item::before {
    display: none;
}

/* 悬停效果优化 */
.author-card-item:hover {
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.18),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: #b8a585;
    transform: translateY(-4px);
}

.author-card-item-link {
    display: block;
    padding: 18px;
    color: inherit;
}

/* 卡片头部 - 优化头像与信息布局 */
.author-card-item-header {
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
    align-items: flex-start;
}

/* 头像美化 - 添加渐变边框和光晕 */
.author-card-item-avatar {
    width: 75px;
    height: 75px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 3px 10px rgba(139, 69, 19, 0.2);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 头像渐变边框 */
.author-card-item-avatar::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, #8b4513, #a0522d, #c9b896, #8b4513);
    border-radius: 6px;
    z-index: -1;
    opacity: 0.6;
    transition: opacity 0.35s ease;
}

.author-card-item:hover .author-card-item-avatar {
    box-shadow: 0 4px 16px rgba(139, 69, 19, 0.35);
    transform: scale(1.05);
}

.author-card-item:hover .author-card-item-avatar::before {
    opacity: 1;
}

.author-card-item-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: relative;
    z-index: 1;
}

/* 作者信息区 - 优化间距 */
.author-card-item-info {
    flex: 1;
    min-width: 0;
}

/* 作者名字 - 增强视觉效果 */
.author-card-item-name {
    font-size: 19px;
    font-weight: bold;
    color: #6b3410;
    margin-bottom: 6px;
    font-family: 'STKaiti', 'KaiTi', serif;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(139, 69, 19, 0.05);
}

.author-card-item:hover .author-card-item-name {
    color: #8b4513;
    text-shadow: 0 1px 3px rgba(139, 69, 19, 0.15);
}

/* 元数据 - 优化排版 */
.author-card-item-meta {
    font-size: 12px;
    color: #998877;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.author-meta-dynasty {
    color: #8b4513;
    font-weight: 600;
    background: rgba(139, 69, 19, 0.08);
    padding: 2px 8px;
    border-radius: 3px;
}

.author-meta-sep {
    color: #c9b896;
    margin: 0 2px;
}

.author-meta-count {
    color: #665544;
}

/* 标签 - 精致化设计 */
.author-card-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.author-tag {
    display: inline;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    font-size: inherit;
    font-weight: inherit;
    color: #5a3e28;
    text-decoration: underline;
    text-decoration-style: wavy;
    text-decoration-color: rgba(139, 69, 19, 0.45);
    text-underline-offset: 3px;
    transition: color 0.2s ease;
    margin-right: 6px;
}

.author-card-item:hover .author-tag {
    background: none;
    color: #5a3e28;
    transform: none;
    box-shadow: none;
}

.author-tag:hover {
    color: #8b4513;
    text-decoration-color: #8b4513;
}

/* 简介 - 优化行高和间距 */
.author-card-item-desc {
    font-size: 13px;
    line-height: 1.75;
    color: #4a3c28;
    margin-bottom: 10px;
    text-align: justify;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 代表作品 - 优化样式 */
.author-card-item-works {
    font-size: 12px;
    line-height: 1.6;
    color: #665544;
    padding-top: 10px;
    border-top: 1px dashed rgba(139, 69, 19, 0.2);
    background: rgba(139, 69, 19, 0.02);
    margin: 0 -18px -18px;
    padding: 10px 18px;
}

.works-label {
    font-weight: bold;
    color: #6b3410;
    margin-right: 4px;
}

.works-list {
    color: #4a3c28;
    font-weight: 500;
}

/* ========== 作者列表响应式 ========== */

/* 平板设备 */
@media screen and (max-width: 1024px) {
    .author-list {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 15px;
    }

    .author-card-item-link {
        padding: 16px;
    }

    .author-card-item-avatar {
        width: 70px;
        height: 70px;
    }

    .author-card-item-name {
        font-size: 18px;
    }

    .author-card-item-works {
        margin: 0 -16px -16px;
        padding: 10px 16px;
    }
}

/* 手机设备 */
@media screen and (max-width: 767px) {
    .author-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .author-card-item-link {
        padding: 14px;
    }

    .author-card-item-header {
        gap: 12px;
        margin-bottom: 10px;
    }

    .author-card-item-avatar {
        width: 65px;
        height: 65px;
    }

    .author-card-item-name {
        font-size: 17px;
        letter-spacing: 1px;
    }

    .author-card-item-meta {
        font-size: 11px;
    }

    .author-card-item-desc {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .author-card-item-works {
        font-size: 11px;
        margin: 0 -14px -14px;
        padding: 8px 14px;
    }
}

/* 超小屏幕 */
@media screen and (max-width: 480px) {
    .author-card-item-avatar {
        width: 55px;
        height: 55px;
    }

    .author-card-item-name {
        font-size: 16px;
    }
}
