    /* 根变量定义 */
    :root {
        --head-height: 130px; /* 全局头部高度 */
        --bottom-color:#147aa3;
    }

    /* 基础样式重置 */
    * {
        margin: 0;   /* 清除默认边距 */
        padding: 0;   /* 清除默认内边距 */
        box-sizing: border-box; /* 盒模型设置为border-box */
    }

    h1 {
        display: block;
        font-size: 2em;
        margin-block-start: 0.67em;
        margin-block-end: -0.3em;
        margin-inline-start: 0px;
        margin-inline-end: 0px;
        font-weight: bold;
        unicode-bidi: isolate;
    }

    h2 {
        font-size: 1.2rem;
    }

    a {
         color: inherit; /* 继承父元素颜色（推荐）*/
         text-decoration: none;
    }


    /* 全局固定头部样式 */
    .global-header {
        position:relative;  /* fixed 固定不动 */
        top: 0;
        width: 100%;
        height: var(--head-height); /* 使用变量定义高度 */
        background: linear-gradient(135deg, #2c3e50, #3498db);
        color: white;
        display: flex;              /* 启用flex布局 */
        flex-direction: column;     /* 垂直排列子元素 */
        align-items: center;        /* 水平居中 */
        justify-content: center;    /* 垂直居中 */
        text-align: center;         /* 文本居中 */
        padding: 10px 25px;         /* 调整内边距 */
        z-index: 1000;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 底部阴影 */
    }

    .site-title {
        display: block;
        font-family: 'LiSu', cursive;
        font-size:2.8rem;
    }

    p {
        display: block;
        margin-block-start: 1em;
        margin-block-end: 1em;
        margin-inline-start: 0px;
        margin-inline-end: 0px;
        unicode-bidi: isolate;
    }

    /* 主内容容器布局 */
    .main-container {
        margin-top: 0; /* var(--head-height); /* 避开头部高度 */
        display:flex; 
    }


    /* 修改左侧导航栏样式 */
    .left-nav {
        position: sticky;  /* fixed 改为固定定位 */
        top: 0; /* var(--head-height); */
        left: 0;

        height:100vh;
        bottom: 0; /* 从顶部到底部撑满 */
        width: 240px;
        background: #e3e3e3; /* #34495e; */
        color: #000;
        padding: 20px 0;
        overflow-y: hidden; /* 禁止滚动条 */
        z-index: 500; /* 确保在内容上方 */
    }

    /* 导航菜单列表 */
    .nav-menu {
        list-style: none; /* 移除列表标记 */
    }





    /* 导航项交互样式 */
    .nav-item {
        /* padding: 12px 25px; */
        font-size: 1.2rem;
        cursor: pointer;  /* 鼠标手型 */
        transition: background 0.3s; /* 背景色过渡动画 */
        text-align: center;
    }

    .nav-item:hover {
        background: #aaa; /* 悬停背景色 */
        color:#fff;
    }

    /* 修正导航链接样式 */
    .nav-menu li a {
        display: block;
        padding: 12px;
        text-decoration: none;
    }

    /* 右侧内容区容器 */
    .right-container {
        flex: 1;  /* 占据剩余空间 */
        background: #f5f6fa; /* 浅灰色背景 */
        display: flex;
        flex-direction: column; /* 垂直排列 */
    }


    .active {
        background: #336388; /* 悬停背景色 */
        color:#fff;
    }


            



    /* 子头部粘性定位 */
    .sub-header {
        position: sticky; /* 粘性定位 */
        top: 0;  /* var(--head-height) */
        background: white;
        padding: 15px 30px;
        z-index: 500; /* 低于全局头部 */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* 轻量阴影 */
        display: flex;
        align-items: center;
        justify-content: space-between; /* 两侧对齐 */

        opacity: 1;  /* 透明度 */
    }

    /* 诗歌多列布局容器 */
    .poem-container {
        column-width: 450px;  /* 每列基准宽度 */
        column-gap: 2rem;    /* 列间距 */
        padding: 1.5rem 2rem 0; /* 上/左右/下内边距 */
    }

    /* 诗歌卡片样式 */
    .poem-card {
        background: white;
        padding: 1.5rem;
        border-radius: 10px; /* 圆角效果 */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 基础阴影 */
        margin-bottom: 2rem;  /* 卡片间距 */
        break-inside: avoid;  /* 防止分列断裂 */
        transition: transform 0.3s; /* 悬停动画过渡 */
    }
    /* 卡片悬停动画效果 */
    .poem-card:hover {
        transform: translateY(-5px); /* 上移效果 */
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* 增强阴影 */
    }

    /* 诗歌标题样式 */
    .poem-title {
        font-family: 'HanYi', cursive;
        font-size: 1.8rem;
        color: #2c3e50;  /* 深蓝色 */
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--bottom-color); /* #e74c3c红色下划线 */
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
        position: relative;
        margin-bottom: 1rem;
    }

    /* 标题下划线动画 */
    .poem-title:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--bottom-color);  /* #e74c3c;红色下划线 */
        transition: width 0.3s ease-out;   
        will-change: transform; /* 性能优化 */
    }

    .poem-card:hover .poem-title:after {
        width: 100%;
        transform: translateX(0);
    }

    /* 作者信息样式 */
    .poem-author {
        color: #7f8c8d;  /* 灰色文字 */
        margin-bottom: 1.4rem;
        
    }

    /* 诗歌内容排版 */
    .poem-content {
        font-size: 1.2rem;
        line-height: 1;  /* 行高设置 */
        white-space: pre-wrap; /* 保留换行格式 */
    }

    /* 增加空数据提示样式 */
    .empty-tip {
        padding: 20px;
        text-align: center;
        color: #666;
    }


    .p-card {
        background: #fff;
        max-width:768px;
        width: 100%;         /* 添加宽度限制 */
        margin: 0 auto;      /* 水平居中 */
        padding: 20px;       /* 内容留白 */
    }

    /* read诗歌标题样式 */
    .p-title {
        font-family: 'HanYi', cursive;
        font-size: 3rem;
        color: #2c3e50;  /* 深蓝色 */
        padding-top: 3rem;
        padding-bottom: 0.5rem;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
        text-align: center;
        position: relative;
        margin-bottom: 1rem;
    }



    /* 作者信息样式 */
    .p-author {
        color: #7f8c8d;  /* 灰色文字 */
        margin-bottom: 1.8rem;
        text-align: center;
        font-size:1.7rem;
    }

    /* 诗歌内容排版 */
    .p-content {
        font-size: 1.7rem;
        line-height: 1;  /* 行高设置 */
        white-space: pre-wrap; /* 保留换行格式 */
        text-align: center;
        font-family: 'HanYi', cursive;
    }

    .p-yw {
        font-family: 'HanYi', cursive;
        font-size: 1.6rem;
        line-height:3rem;
        padding: 20px 30px 0;
    }

    /* 右侧内容区容器 */
    .right-read {
        flex: 1;  /* 占据剩余空间 */
        background: #fff; /* 浅灰色背景 */
        display: flex;
        flex-direction: column; /* 垂直排列 */
    }


    /* 响应式设计 - 移动端适配 */
    @media (max-width: 768px) {
        .left-nav {
            width: 180px;  /* 缩小导航宽度 */
        }
        
        .poem-container {
            column-width: 100%; /* 单列显示 */
            padding: 1rem;  /* 减少内边距 */
        }
        
        .global-header {
            font-size: 1rem;  /* 缩小字体 */
            padding: 0 15px;  /* 减少水平内边距 */
        }
    }

    .menu {
        font-size: 2rem;
        text-align: center;
        padding-bottom:2rem;
    }