:root {
    --paper-color: #f7f4e9;
    --ink-color: #333333;
    --red-seal: #c03a2b;
    --dark-blue: #2c4762;
    --light-brown: #d9c7a8;
    --gold: #c9a769;
    --highlight-color: #e74c3c;
    --active-color: #8b0000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif SC', serif;
    background-color: #e8e1d1;
    color: var(--ink-color);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23e8e1d1"/><path d="M0 50 Q 25 30, 50 50 T 100 50 L100 100 L0 100 Z" fill="%23d9c7a822"/></svg>');
    background-size: 300px 300px;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 顶部导航 */
header {
    background: linear-gradient(to bottom, var(--dark-blue) 0%, #1a2e46 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 100;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo>strong {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 2.8rem;
    color: white;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.logo-seal {
    width: 60px;
    height: 60px;
    background: var(--red-seal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    border: 2px solid var(--gold);
    box-shadow: 极客 0 0 10px rgba(192, 58, 43, 0.5);
}

.logo-seal span {
    font-family: 'Ma Shan Zheng', cursive;
    color: white;
    font-size: 1.8rem;
    transform: rotate(-10deg);
}

.search-bar {
    display: flex;
    width: 350px;
}

.search-bar input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    outline: none;
}

.search-bar button {
    background: var(--red-se极客);
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.search-bar button:hover {
    background: #a52c1e;
}

.user-actions {
    display: flex;
    gap: 15px;
}

.user-actions a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.user-actions a:hover {
    color: var(--gold);
}

.nav-menu {
    background: rgba(0, 0, 0, 0.15);
    padding: 10px 0;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 30px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 8px 5px;
    position: relative;
    transition: all 0.3s;
}

.nav-menu a:hover {
    color: var(--gold);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* 可选：为箭头链接添加一些样式 */
.intro-toggle {
  text-decoration: none;
  color: #1e88e5; /* 箭头颜色 */
  font-size: 0.9em;
  cursor: pointer;
  margin-left: 5px;
}
.intro-toggle:hover {
  color: #0d47a1;
}

/* 主体内容 */
.main-content {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 25px;
    padding: 30px 0;
}

.paper-background {
    background-color: var(--paper-color);
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
    position: relative;
    overflow: hidden;
}

.paper-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(to right, var(--red-seal), var(--dark-blue));
}
.error{
    font-size: 2em;
    display: inline-block;
    padding: 0 20px;
}
.section-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.8rem;
    color: var(--dark-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-brown);
    position: relative;
}
.section-title:nth-of-type(2) {
  margin-top: 20px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--red-seal);
}

/* 诗词展示区 */
.featured-poem {
    background: linear-gradient(to bottom, #f0ece0, #f7f4e9);
    border: 1px solid var(--light-brown);
    border-radius: 5px;
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}
.poem-index {
    min-width: 40px;
    height: 40px;
    background: var(--light-brown);
    color: var(--dark-blue);
    border-radius: 50%;
    display: flex
;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 20px;
    margin-top: 5px;
    font-size: 1.1rem;
}

.featured-poem>.poem-title{font-size:1.8rem;}
.featured-poem>.poem-content{text-align: center;}

.poem-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--dark-blue);
    margin-bottom: 8px;
}
.poem-title a {
    color: var(--dark-blue);
    text-decoration: none;
    transition: all 0.3s;
}
.poem-author {
    text-align: center;
    color: #666;
    _margin-bottom: 25px;
    font-size: 1.1rem;
}

.poem-content {
    font-size: 1.3rem;
    line-height: 2.2;
    padding: 0 20px;
    font-family: 'Ma Shan Zheng', cursive;
}

.poem-content p {
    margin: 15px 0;
}

.poem-seal {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 70px;
    height: 70px;
    background: var(--red-seal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.15;
    transform: rotate(15deg);
}

.poem-seal span {
    color: white;
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.3rem;
}

/* 诗词分类 */
.poem-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}
.category-item {
    background: #f0f0f0;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s;
    cursor: pointer;
}

.category-item:hover {
    background: var(--dark-blue);
    color: white;
}
.category-card {
    background: white;
    border: 1px solid var(--light-brown);
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--red-seal);
}

.category-icon {
    font-size: 2.2rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.category-name {
    font-weight: bold;
    color: var(--dark-blue);
}

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tag {
    background: var(--light-brown);
    color: var(--dark-blue);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.tag a{
    color: var(--dark-blue);
}

.tag:hover {
    background: var(--dark-blue);
}

.tag:hover a {
    color: white;
}
/* 诗词列表 */
.poem-list {
    margin-top: 30px;
}

.poem-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px dashed var(--light-brown);
}

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

.dynasty-tag {
    min-width: 60px;
    background: var(--dark-blue);
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    text-align: center;
    font-size: 0.85rem;
    height: 26px;
    margin-right: 15px;
    margin-top: 3px;
}

.poem-info {
    flex: 1;
}

.poem-item-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.poem-item-title a {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--dark-blue);
    text-decoration:none;
}
.poem-item-author {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.poem-excerpt {
    color: #555;
    font-size: 1.05rem;
    font-style: italic;
    margin-bottom: 10px;
    line-height: 1.7;
}
/* 相关名句 */
.related-sentences {
    background: white;
    padding: 30px;
    border-radius: 5px;
    border-top: 3px solid var(--gold);
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sentence-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.sentence-card {
    background: #f9f7f0;
    _border-left: 3px solid var(--red-seal);
    padding: 20px;
    border-radius: 0 5px 5px 0;
    transition: all 0.3s;
}

.sentence-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sentence-origin {
    color: #666;
    font-size: 0.95rem;
}

.sentence-origin a {
    color: var(--red-seal);
    text-decoration: none;
}

.sentence-origin a:hover {
    text-decoration: underline;
}

/* 名句高亮样式 */
.quote-highlight {
    color: #e74c3c !important; /* 红色高亮 */
    font-weight: bold;
    background-color: #fff9e6;
    padding: 2px 4px;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(231, 76, 60, 0.3);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

/* 可选：添加动画效果 */
.quote-highlight {
    animation: highlight-pulse 2s ease-in-out;
}

@keyframes highlight-pulse {
    0% { background-color: #fff9e6; }
    50% { background-color: #ffeaa7; }
    100% { background-color: #fff9e6; }
}
/* 侧边栏 */
.sidebar-box {
    margin-bottom: 25px;
}

.author-ranking {
    list-style: none;
}

.author-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.author-rank {
    width: 24px;
    height: 24px;
    background: var(--light-brown);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    margin-right: 12px;
}
.author-card {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 3px solid var(--red-seal);
    margin-bottom: 25px;
}

.author-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.author-avatar {
    width: 70px;
    height: 80px;
    background: linear-gradient(135deg, #f5e8c9, #e8d8b8);
    border: 3px solid var(--dark-blue);
    margin-right: 15px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--dark-blue);
    margin-bottom: 5px;
}

.author-title {
    color: var(--red-seal);
    font-size: 0.9rem;
}

.author-bio {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
}
.view-more {
    display: block;
    text-align: right;
    margin-top: 10px;
    color: var(--dark-blue);
    text-decoration: none;
    font-size: 0.9rem;
}

.view-more:hover {
    text-decoration: underline;
}
.theme-sentences {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    border-top: 3px solid var(--dark-blue);
}

.theme-title {
    font-size: 1.1rem;
    color: var(--dark-blue);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    font-weight: bold;
}

.theme-sentence {
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}

.theme-sentence:last-child {
    border-bottom: none;
}        
.rank-1, .rank-2, .rank-3 {
    color: white;
    font-weight: bold;
}

.rank-1 {
    background: var(--gold);
}

.rank-2 {
    background: #a0a0a0;
}

.rank-3 {
    background: #cd7f32;
}

.author-name {
    flex: 1;
    font-weight: bold;
}

.author-name a {
    color: var(--ink-color);
    text-decoration: none;
}

.poem-count {
    background: #eee;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.85rem;
}
/* 名句详情页特定样式 */
.famous-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 0;
    position: relative;
}

.famous-sentence-main {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 2.8rem;
    line-height: 1.4;
    color: var(--dark-blue);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.famous-sentence-main::before,
.famous-sentence-main::after {
    content: """;
    position: absolute;
    top: -10px;
    font-size: 4rem;
    color: var(--light-brown);
    opacity: 0.3;
}

.famous-sentence-main::before {
    left: -20px;
}

.famous-sentence-main::after {
    right: -20px;
}

.highlight {
    color: var(--highlight-color);
    font-weight: bold;
    position: relative;
    animation: highlightPulse 3s infinite;
}

@keyframes highlightPulse {
    0% { text-shadow: 0 0 5px rgba(231, 76, 60, 0.5); }
    50% { text-shadow: 0 0 15px rgba(231, 76, 60, 0.8); }
    100% { text-shadow: 0 0 5px rgba(231, 76, 60, 0.5); }
}

.sentence-source a {
    color: var(--dark-blue);
    text-decoration: none;
}

.sentence-source a:hover {
    text-decoration: underline;
}
        
.famous-sentence {
    background: white;
    padding: 20px;
    border-left: 3px solid var(--red-seal);
    margin: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.sentence-content {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.7;
    color: var(--dark-blue);
    margin-bottom: 10px;
}

.sentence-content a{
    color: var(--dark-blue);
    text-decoration: none;
}

.sentence-source {
    text-align: right;
    color: #777;
    font-size: 0.9rem;    
    font-style: italic;
}
.sentence-source a {
    color: var(--dark-blue);
    text-decoration: none;
}
.dynasty-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/*.dynasty-item {*/
/*    background: #f0f0f0;*/
/*    padding: 6px;*/
/*    text-align: center;*/
/*    border-radius: 4px;*/
/*    font-size: 0.9rem;*/
/*    transition: all 0.3s ease; */
/*    cursor: pointer; */
/*}*/

.dynasty-item a {
    color: var(--ink-color);
    transition: color 0.3s ease; 
}


/*.dynasty-item:hover {*/
/*    background: var(--dark-blue); */
/*}*/

.dynasty-item:hover a {
    color: white; 
}

/* 诗人详情页特定样式 */
.poet-header {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-brown);
}

.poet-portrait {
    width: 200px;
    height: 240px;
    background: linear-gradient(135deg, #f5e8c9, #e8d8b8);
    border: 8px double var(--dark-blue);
    padding: 5px;
    position: relative;
    margin-right: 30px;
}

.poet-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid var(--light-brown);
}

.poet-seal {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 60px;
    height: 60px;
    background: var(--red-seal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold);
    transform: rotate(15deg);
    z-index: 10;
}

.poet-seal span {
    color: white;
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.5rem;
}

.poet-info {
    flex: 1;
}

.poet-name {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-right: 10px;
}
.poet-name, .poet-name + span {
    display: inline-block;
    vertical-align: middle;
}

.poet-name + span a:hover {
    color: var(--red-seal);
    background: rgba(192, 58, 43, 0.05);
}

.poet-name + span a{
    color: var(--dark-blue);
    position: relative;
    text-decoration: underline;
    text-decoration-style: wavy;
    text-underline-offset: 5px;
}

.poet-name a{
    color: var(--dark-blue);
}
.poet-title {
    font-size: 1.4rem;
    color: var(--red-seal);
    margin-bottom: 15px;
    font-weight: bold;
}

.poet-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

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

.meta-label {
    min-width: 70px;
    color: var(--dark-blue);
    font-weight: bold;
}

.meta-value {
    color: #555;
}

.poet-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.poet-tag {
    background: var(--dark-blue);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}
.poet-tag a{
    color: white;
}
/* 猜你喜欢板块 - 优化后 */
.recommendations {
    background: white;
    padding: 25px;
    border-radius: 5px;
    border-top: 3px solid var(--gold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.recommendations-title {
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-brown);
    font-weight: bold;
}

.recommendations-list {
    list-style: none;
}

.recommendations-item {
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.recommendations-link {
    font-size: 1.1rem;
    color: var(--dark-blue);
    text-decoration: none;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 15px;
}

.recommendations-link:hover {
    color: var(--red-seal);
    text-decoration: underline;
}

.recommendations-meta {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #777;
    white-space: nowrap;
}

.dynasty {
    color: var(--red-seal);
    text-decoration: none;
    margin-right: 5px;
}

.author-tag {
    color: var(--dark-blue);
    text-decoration: none;
}

.dynasty-tag:hover, .author-tag:hover {
    text-decoration: underline;
}

.separator {
    margin: 0 5px;
    color: #aaa;
}

/*翻页*/
.epages{margin:20px 0; text-align:center}
.epages a{border:1px solid #ccc; background:#fff; padding:3px 6px; text-decoration:none; color:#333; border-radius:4px; margin:0 4px 0 0;}
.epages a:hover,.epages a.current-page{background:#dfdfdf; border-color:#dfdfdf; font-weight:bold;}
.epages a.no-link:hover{background:#fff; border-color:#ccc; font-weight:normal;}

/* 列表页分页 */
/* 控制分页显示数量 - 只显示5个页码 */
.pagelist a:nth-child(n+8):not(:last-child):not(.prev):not(.next) {
    display: none;
}

/* 确保首页、上一页、下一页、尾页始终显示 */
.pagelist a:first-child,  /* 首页 */
.pagelist a:nth-child(2), /* 上一页 */
.pagelist a:nth-last-child(2), /* 下一页 */
.pagelist a:last-child {  /* 尾页 */
    display: inline-flex !important;
}

/* 当前页及前后各2页显示 */
.pagelist strong,
.pagelist strong ~ a:nth-child(-n+3),
.pagelist strong ~ a:nth-child(n+1):nth-child(-n+3) {
    display: inline-flex;
}
        
/* 诗人简介 */
.poet-bio * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/*.poet-bio {*/
/*    border: 1px solid #e0e0e0;*/
/*    border-radius: 8px;*/
/*    margin-bottom: 15px;*/
/*    background: #fff;*/
/*    box-shadow: 0 2px 4px rgba(0,0,0,0.05);*/
/*    transition: box-shadow 0.3s ease;*/
    overflow: hidden; /* 防止内容溢出 */
/*}*/

.poet-bio:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.bio-title {
    cursor: pointer;
    padding: 16px 20px;
    margin: 0;
    position: relative;
    padding-right: 120px; /* 为提示文字留足空间 */
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    user-select: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.poet-bio:not(:last-child) .bio-title {
    border-bottom: 1px solid #e9ecef;
}

.bio-title:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    color: #1565c0;
}

/* 箭头图标 */
.bio-title::before {
    content: '▶';
    position: absolute;
    right: 90px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

/* 点击提示文字 */
.bio-title::after {
    content: '点击展开';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #999;
    font-weight: normal;
    font-family: system-ui, -apple-system, sans-serif;
}

.bio-title.active::before {
    transform: translateY(-50%) rotate(90deg);
    color: #1565c0;
}

.bio-title.active::after {
    content: '点击收起';
    color: #1565c0;
}

.bio-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.5s ease-out, padding 0.3s ease;
    background: #fff;
    line-height: 1.6;
}

.bio-content.active {
    max-height: 5000px; /* 设置足够大的值容纳内容 */
    padding: 20px;
}

.bio-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.bio-content strong {
    color: #2c3e50;
}
/* 确保动画性能 */
.bio-content {
    will-change: max-height;
}
/* 代表作品 */
.masterpiece-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.masterpiece-item {
    background: linear-gradient(to bottom, #f0ece0, #f7f4e9);
    border: 1px solid var(--light-brown);
    border-radius: 5px;
    padding: 20px;
    transition: all 0.3s;
}

.masterpiece-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.poem-title i {
    margin-right: 8px;
    color: var(--red-seal);
}

.poem-dynasty {
    text-align: right;
    color: #777;
    font-size: 1.1rem;
}

.poem-dynasty a {
    color: #666;
    text-decoration:none;
}
/* 诗人年表 */
.timeline {
    position: relative;
    padding: 30px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--light-brown);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    width: calc(50% - 30px);
}

.timeline-item:nth-child(odd) {
    float: left;
    clear: both;
    padding-right: 30px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    float: right;
    clear: both;
    padding-left: 30px;
}

.timeline-year {
    background: var(--red-seal);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 10px;
}

.timeline-content {
    background: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: 15px;
    width: 12px;
    height: 12px;
    background: var(--dark-blue);
    border-radius: 50%;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -36px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -36px;
}

/* 诗词详情页特定样式 */
.poem-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--light-brown);
}

.poem-subtitle {
    font-size: 1.2rem;
    color: var(--red-seal);
    margin-bottom: 15px;
}

.poem-meta {
    display: flex;
    color: #777;
    font-size: 0.9rem;
    _gap: 15px;
    justify-content: center;
    align-items: center;
}
.poem-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.poem-author {
    _display: flex;
    align-items: center;
}

.poem-author a {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: bold;
    margin-left: 5px;
}

.poem-author a:hover {
    text-decoration: underline;
}

/* 版本切换导航 */
.version-nav {
    display: flex;
    justify-content: center;
    margin: 25px 0 30px;
    border-bottom: 1px solid var(--light-brown);
    padding-bottom: 15px;
}

.version-tab {
    padding: 10px 25px;
    margin: 0 5px;
    background: #e8dfc9;
    border-radius: 30px;
    font-size: 1.1rem;
    color: var(--dark-blue);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
    font-weight: bold;
}

.version-tab:hover {
    background: #d9c7a8;
    color: var(--active-color);
}

.version-tab.active {
    background: var(--red-seal);
    color: white;
    border-color: var(--dark-blue);
    box-shadow: 0 3px 8px rgba(192, 58, 43, 0.3);
}

.version-tab i {
    margin-right: 8px;
}

.pinyin-def {
    font-size: 24px;
    font-family: 'Noto Serif SC', serif;
    line-height: 1.6;
    text-align: center;
    padding: 20px;
    background: linear-gradient(to bottom, #f9f7f2, #fff);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pinyin-def .ptitle {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.6em;
    font-weight: bold;
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    padding-bottom: 10px;
    border-bottom: 2px solid #e8e8e8;
}

.pinyin-def p {
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: center;
    padding: 10px 0;
    position: relative;
}

.pinyin-def rt {
    font-family: 'Arial', sans-serif;
    color: #e74c3c;
    display: block;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    width: 35px;
    margin: -12px 6px 0 -40px;
    vertical-align: top;
    text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.pinyin-def ruby rb {
    color: #2c3e50;
    display: block;
    float: left;
    font-size: 22px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    width: 35px;
    margin: 8px 3px 8px 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* 添加优雅的背景效果 */
.pinyin-def ruby rb:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(134, 198, 179, 0.1);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 悬停效果 */
.pinyin-def ruby:hover rt {
    color: #c0392b;
    transform: translateY(-2px);
}

.pinyin-def ruby:hover rb {
    color: #1a252f;
    transform: scale(1.05);
}

.pinyin-def ruby:hover rb:before {
    opacity: 1;
}

/* 年代筛选 */
.era-filter {
    background: white;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 3px solid var(--dark-blue);
}

.filter-title {
    font-size: 1.2rem;
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-weight: bold;
}

.era-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.era-tag {
    background: #f0f0f0;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}
.era-tag a{
    color: var(--dark-blue);
}
.era-tag.active a{
    color:white;
}
.era-tag:hover {
    background: var(--light-brown);
    color: var(--dark-blue);
}

.era-tag.active {
    background: var(--red-seal);
    color: white;
}

/* 诗人列表 */
.poets-list {
    margin-bottom: 30px;
}

.poet-card {
    display: flex;
    background: white;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.poet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left-color: var(--red-seal);
}

.poet-avatar {
    width: 100px;
    height: 120px;
    background: linear-gradient(135deg, #f5e8c9, #e8d8b8);
    border: 2px solid var(--dark-blue);
    margin-right: 20px;
    flex-shrink: 0;
}

.poet-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poet-info {
    flex: 1;
}

.poet-dynasty {
    color: var(--red-seal);
    font-size: 1rem;
    margin-bottom: 10px;
}

.poet-bio {
    color: #555;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.poet-bio-container > .poet-bio:last-child {
    margin-bottom: 20px;
}
/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination-list {
    display: flex;
    list-style: none;
    gap: 8px;
}

.pagination-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.pagination-item:hover {
    background: var(--light-brown);
    color: var(--dark-blue);
}

.pagination-item.active {
    background: var(--red-seal);
    color: white;
}

/* 热门诗人侧边栏 */
.popular-poets {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 3px solid var(--red-seal);
    margin-bottom: 25px;
}

.popular-poet {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}

.popular-poet:last-child {
    border-bottom: none;
}

.popular-poet-avatar {
    width: 50px;
    height: 60px;
    background: linear-gradient(135deg, #f5e8c9, #e8d8b8);
    border: 2px solid var(--dark-blue);
    margin-right: 15px;
    flex-shrink: 0;
}

.popular-poet-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popular-poet-info {
    flex: 1;
}

.popular-poet-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--dark-blue);
    margin-bottom: 3px;
}

.popular-poet-dynasty {
    color: var(--red-seal);
    font-size: 0.9rem;
}

/* 朝代分布侧边栏 */
.dynasty-distribution {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    border-top: 3px solid var(--gold);
}

.dynasty-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

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

.dynasty-name {
    color: var(--dark-blue);
}

.dynasty-count {
    color: var(--red-seal);
    font-weight: bold;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .poet-card {
        flex-direction: column;
    }
    
    .poet-avatar {
        margin-right: 0;
        margin-bottom: 15px;
        align-self: center;
    }
}

@media (max-width: 768px) {
    .era-tags {
        justify-content: center;
    }
}

/* 繁体字版本样式 */
.conview-ft {
    display: none;
}

.conview-def {
    display: block;
}
        
/* 诗词内容区 */
.poem-content-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.poem-original {
    flex: 1;
    background: linear-gradient(to bottom, #f0ece0, #f7f4e9);
    border: 1px solid var(--light-brown);
    border-radius: 5px;
    padding: 30px 0;
    text-align: center;
    position: relative;
}

.poem-text {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.4rem;
    line-height: 2.2;
    color: #333;
}

/* 诗词注释、序、赏析 */
.poem-translation,.poem-appreciation,.poem-annotation,.poem-preface,.poem-sentence {
    background: white;
    padding: 30px;
    border-radius: 5px;
    border-top: 3px solid var(--gold);
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.poem-sentence ul {list-style-type: none;}
.translation-title,.appreciation-title,.annotation-title,.preface-title,.sentence-title {
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.translation-content,.appreciation-content,.annotation-content,.preface-content {
    line-height: 1.8;
    color: #444;
    white-space: pre-line;
}

/* 相关诗词 */
.related-poems {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.related-poem {
    background: linear-gradient(to bottom, #f0ece0, #f7f4e9);
    border: 1px solid var(--light-brown);
    border-radius: 5px;
    padding: 20px;
    transition: all 0.3s;
}

.related-poem:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-poem-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--dark-blue);
    margin-bottom: 10px;
}
.related-poem-title a {
    color: var(--dark-blue);
}
.related-poem-author {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.related-poem-excerpt {
    color: #777;
    font-size: 0.95rem;
    font-style: italic;
}

/* 诗人介绍 */
.poet-intro {
    display: flex;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(to right, #f9f6ed, #f0e8d8);
    border-radius: 5px;
    _border-left: 4px solid var(--red-seal);
}

.poet-avatar {
    width: 120px;
    height: 150px;
    background: linear-gradient(135deg, #f5e8c9, #e8d8b8);
    border: 6px double var(--dark-blue);
    padding: 5px;
    margin-right: 25px;
}

.poet-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid var(--light-brown);
}

.poet-summary {
    flex: 1;
}

.poet-description {
    color: #444;
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.05rem;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}

.page-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: #e8dfc9;
    color: var(--dark-blue);
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
}

.page-item:hover, .page-item.active {
    background: var(--red-seal);
    color: white;
}

.page-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 诗人统计 */
.poet-stats {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-top: 3px solid var(--dark-blue);
    margin-bottom: 25px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}

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

.stat-label {
    color: var(--dark-blue);
    font-weight: bold;
}

.stat-value {
    color: var(--red-seal);
    font-weight: bold;
}

.popular-poems {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 3px solid var(--red-seal);
    margin-bottom: 25px;
}

.popular-poem {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}

.popular-poem:last-child {
    border-bottom: none;
}

.popular-poem .poem-index {
    min-width: 30px;
    height: 30px;
    font-size: 0.9rem;
    margin-right: 12px;
}

.popular-poem .poem-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.popular-poem .poem-excerpt {
    font-size: 0.95rem;
}

.dynasty-chart {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    border-top: 3px solid var(--gold);
}

.chart-title {
    font-size: 1.1rem;
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-weight: bold;
}

.chart-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.chart-fill {
    height: 100%;
    background: var(--red-seal);
    border-radius: 5px;
}

.chart-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #555;
    margin-top: 5px;
}

.related-poets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.related-poet {
    background: #f0f0f0;
    padding: 12px;
    text-align: center;
    border-radius: 5px;
    transition: all 0.3s;
}
.related-poet a{
    color: var(--dark-blue);
}
.related-poet a:hover{
    color: var(--red-seal);
}
/*.related-poet:hover {*/
/*    background: var(--dark-blue);*/
/*    color: white;*/
/*}*/

/* 名句列表 */
.sentence-list {
    margin-bottom: 30px;
}

.sentence-item {
    padding: 25px;
    border-bottom: 1px dashed var(--light-brown);
    transition: all 0.3s;
    position: relative;
    display: flex;
    align-items: flex-start;
}
.sentence-item:hover {
    background: #f9f5eb;
}

.sentence-item::before {
    content: """;
    position: absolute;
    top: 15px;
    left: 5px;
    font-size: 3rem;
    color: var(--light-brown);
    opacity: 0.3;
}
.sentence-number {
    min-width: 40px;
    height: 40px;
    background: var(--dark-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 20px;
    margin-top: 5px;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sentence-content {
    flex: 1;
    position: relative;
}
.sentence-text {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.7rem;
    line-height: 1.6;
    color: var(--dark-blue);
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}
.sentence-text a {
    color: var(--dark-blue);
}
.sentence-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-left: 40px;
}

.sentence-tag {
    background: var(--light-brown);
    color: var(--dark-blue);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.sentence-tag:hover {
    background: var(--dark-blue);
    color: white;
}
/* 可选的CSS样式 */
.no-sentences-hint {
    text-align: center;
    color: #999;
    padding: 20px;
    font-style: italic;
}
.popular-sentences {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 3px solid var(--red-seal);
    margin-bottom: 25px;
}

.popular-sentence {
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
}

.popular-sentence:last-child {
    border-bottom: none;
}

.popular-sentence .sentence-text {
    font-size: 1.4rem;
    margin-bottom: 10px;
    padding-left: 0;
}

.popular-sentence .sentence-source {
    padding-left: 0;
    font-size: 1rem;
}

.theme-cloud {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    border-top: 3px solid var(--gold);
}

.theme-title {
    font-size: 1.1rem;
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-weight: bold;
}

.themes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.theme {
    background: #f0f0f0;
    padding: 10px 15px;
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s;
}

.theme:hover {
    background: var(--dark-blue);
    color: white;
    transform: translateY(-3px);
}


/* 页脚 */
footer {
    background: var(--dark-blue);
    color: #aaa;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.copyright a{
    color: white;
}

/* 展开收缩按钮美化 */
.expand-btn-container {
    margin-top: 15px;
    text-align: center;
}

.expand-btn {
    background: linear-gradient(to bottom, #f7f4e9, #e8dfc9);
    border: 1px solid var(--light-brown);
    color: var(--dark-blue);
    padding: 8px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.expand-btn:hover {
    background: linear-gradient(to bottom, #e8dfc9, #d9c7a8);
    color: var(--red-seal);
    border-color: var(--red-seal);
    box-shadow: 0 3px 8px rgba(192, 58, 43, 0.2);
    transform: translateY(-2px);
}

.expand-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.expand-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.expand-btn:hover::after {
    left: 100%;
}

/* 内容区域样式优化 */
.poem-translation,
.poem-annotation,
.poem-preface,
.poem-appreciation {
    position: relative;
    padding: 20px;
    margin-bottom: 25px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 标题样式优化 */
.translation-title,
.annotation-title,
.preface-title,
.appreciation-title {
    font-size: 1.4rem;
    color: var(--dark-blue);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-brown);
    position: relative;
}

.translation-title::after,
.annotation-title::after,
.preface-title::after,
.appreciation-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--red-seal);
}

.annotation-title::after {
    background: var(--gold);
}

.preface-title::after {
    background: var(--dark-blue);
}

.appreciation-title::after {
    background: var(--light-brown);
}

/* 内容样式优化 */
.translation-content,
.annotation-content,
.preface-content,
.appreciation-content {
    line-height: 1.8;
    color: #444;
    position: relative;
    max-height: 120px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

/* 内容展开后的样式 */
.translation-content.expanded,
.annotation-content.expanded,
.preface-content.expanded,
.appreciation-content.expanded {
    max-height: none;
}

/* 添加渐变遮罩效果 */
.translation-content::after,
.annotation-content::after,
.preface-content::after,
.appreciation-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9));
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.translation-content.expanded::after,
.annotation-content.expanded::after,
.preface-content.expanded::after,
.appreciation-content.expanded::after {
    opacity: 0;
}

/* 完整内容样式 */
.full-content {
    line-height: 1.8;
    color: #444;
    padding-top: 10px;
}


/* 响应式调整 */
@media (max-width: 768px) {
    .translation-content,
    .annotation-content,
    .preface-content,
    .appreciation-content {
        max-height: 150px;
    }
    
    .expand-btn {
        padding: 8px 20px;
        font-size: 0.95rem;
    }
}

/* 自定义页面 */
.page-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 2.5rem;
    color: var(--dark-blue);
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-brown);
    position: relative;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--red-seal);
}

/* 页面内容样式 */
.page-content {
    max-width: 900px;
    margin: 0 auto;
}
.page-content h2 { 
    margin-top: 20px; 
}
/* 响应式调整 */
@media (max-width: 992px) {
    .masterpiece-list {
        grid-template-columns: 1fr;
    }
    
    .poet-header, .poet-intro {
        flex-direction: column;
    }
    
    .poet-portrait, .poet-avatar {
        margin: 0 auto 20px;
    }
    
    .related-poets {
        grid-template-columns: 1fr;
    }
    
    .poem-content-container {
        flex-direction: column;
    }
    
    .related-poems {
        grid-template-columns: 1fr;
    }
    
    .version-nav {
        flex-wrap: wrap;
    }
    
    .version-tab {
        margin-bottom: 8px;
    }
    
    .sentence-text {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .poem-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        width: calc(100% - 60px);
        margin-left: 60px;
        padding-left: 30px;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        float: none;
        padding: 0;
        text-align: left;
    }
    
    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -36px;
    }
    
    .poem-meta {
        _flex-direction: column;
        _gap: 5px;
    }
    
    .sentence-text {
        font-size: 1.3rem;
        padding-left: 30px;
    }
    
    .sentence-source, .sentence-tags {
        padding-left: 30px;
    }
    .bio-title {
        padding-right: 100px;
        font-size: 16px;
    }
    
    .bio-title::after {
        content: '点击展开';
        font-size: 11px;
        right: 15px;
    }
    
    .bio-title.active::after {
        content: '点击收起';
    }
    
    .bio-title::before {
        right: 70px;
    }    
    .recommendations-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .recommendations-link {
        margin-right: 0;
        margin-bottom: 5px;
    }    
    .pinyin-def rb {
        font-size: 1em;
    }
    
    .pinyin-def rt {
        font-size: 0.6em;
    }
    
    .pinyin-def p {
        margin: 6px 0;
    }    
    .version-tab {
        padding: 10px 15px;
    }
}