
/* 之前的其他CSS样式保持不变 */
:root {
    --paper-color: #f7f4e9;
    --ink-color: #333333;
    --red-seal: #c03a2b;
    --dark-blue: #2c4762;
    --light-brown: #d9c7a8;
    --gold: #c9a769;
}

* {
    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;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 主内容布局 */
.main-content {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

main {
    flex: 1;
}

aside {
    width: 300px;
    flex-shrink: 0;
}

/* 纸张背景效果 */
.paper-background {
    background-color: var(--paper-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid var(--light-brown);
    position: relative;
}

.paper-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent);
    border-radius: 8px 8px 0 0;
}

/* 顶部导航 */
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%;
}

/* 页脚 */
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;
}

/* 姓氏头部样式 */
.surname-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--light-brown);
}

.surname-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 5rem;
    color: var(--red-seal);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.surname-subtitle {
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-bottom: 30px;
}

/* 姓氏统计样式 - 美化版本 */
.surname-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(192, 58, 43, 0.05) 0%, rgba(44, 71, 98, 0.05) 100%);
    border-radius: 16px;
    border: 1px solid rgba(217, 199, 168, 0.5);
    position: relative;
    overflow: hidden;
}

.surname-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red-seal), var(--gold), var(--dark-blue));
}

.surname-stats::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(217, 199, 168, 0.6), transparent);
}

.stat-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(217, 199, 168, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    min-width: 140px;
    min-height: 120px;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--gold);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
    border-radius: 12px 12px 0 0;
    opacity: 0.7;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--red-seal);
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

.stat-number::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.stat-label {
    font-size: 1rem;
    color: var(--dark-blue);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(201, 167, 105, 0.1);
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(201, 167, 105, 0.2);
}

/* 列表页 */
/* 头部样式 */
.header {
    text-align: center;
    padding: 30px 0;
    border-bottom: 1px solid var(--light-brown);
    margin-bottom: 30px;
}

.site-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 3rem;
    color: var(--red-seal);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.site-subtitle {
    font-size: 1.2rem;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

/* 统计信息样式 - 美化版 */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    position: relative;
    padding: 20px 30px;
    background: linear-gradient(135deg, #fff 0%, #f5f2e8 100%);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid rgba(201, 167, 105, 0.3);
    min-width: 180px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.stat-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--red-seal), var(--dark-blue));
    border-radius: 12px 12px 0 0;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 10px;
    opacity: 0.8;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--red-seal);
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.stat-label {
    font-size: 1rem;
    color: var(--dark-blue);
    font-weight: 500;
    letter-spacing: 1px;
}

/* 搜索框样式 */
.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-radius: 50px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid var(--light-brown);
    border-right: none;
    border-radius: 50px 0 0 50px;
    font-family: 'Noto Serif SC', serif;
    font-size: 1rem;
    background: rgba(255,255,255,0.9);
}

.search-button {
    background: linear-gradient(135deg, var(--dark-blue), #3a5a7a);
    color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.search-button:hover {
    background: linear-gradient(135deg, var(--red-seal), #d04a3b);
}

/* 热门姓氏样式 */
.popular-surnames {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.popular-surname {
    display: inline-block;
    background: linear-gradient(135deg, var(--dark-blue), #3a5a7a);
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.popular-surname::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.popular-surname:hover {
    background: linear-gradient(135deg, var(--red-seal), #d04a3b);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    color: white;
    text-decoration: none;
}

.popular-surname:hover::before {
    left: 100%;
}

/* 姓氏网格样式 */
.surnames-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.surname-card {
    display: block;
    background: linear-gradient(135deg, #fff 0%, #f9f7f0 100%);
    border: 1px solid var(--light-brown);
    border-radius: 8px;
    padding: 20px 10px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
}

.surname-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red-seal), var(--dark-blue));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.surname-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
}

.surname-card:hover::before {
    transform: scaleX(1);
}

.surname-char {
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--dark-blue);
    margin-bottom: 8px;
    font-family: 'Ma Shan Zheng', cursive;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.surname-name {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--ink-color);
    font-weight: 500;
}

.surname-count {
    font-size: 0.85rem;
    color: var(--red-seal);
    font-weight: 500;
    background: rgba(192, 58, 43, 0.1);
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-block;
}

.quote-list {
    display: grid;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.quote-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8f5f0;
    border-radius: 6px;
    border: 1px solid #e8dfd8;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.quote-item:hover {
    background: #f1e9e0;
    border-color: #d4b89a;
    transform: translateX(5px);
    text-decoration: none;
    color: inherit;
}

.quote-content {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2c1810;
    font-family: 'Noto Serif SC', serif;
    font-weight: 500;
    flex: 1;
}

.quote-source {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #8c7b6d;
    margin-left: 1.5rem;
    white-space: nowrap;
}

.quote-author {
    font-weight: 600;
    color: #8B4513;
}

.quote-dynasty {
    color: #a08c7a;
    margin-left: 0.5rem;
}

.quote-item:not(:last-child) {
    border-bottom: 1px dashed #e8dfd8;
}

.poet-sidebar {
    display: grid;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.sidebar-poet-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    background: #f8f5f0;
    border-radius: 4px;
    border: 1px solid #e8dfd8;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    font-size: 0.9rem;
}

.sidebar-poet-item:hover {
    background: #f1e9e0;
    border-color: #d4b89a;
    transform: translateX(3px);
    text-decoration: none;
    color: inherit;
}

.poet-name {
    font-weight: 500;
    color: #2c1810;
    flex: 1;
}

.poet-dynasty {
    font-size: 0.8rem;
    color: #8c7b6d;
    margin-left: 0.5rem;
    white-space: nowrap;
}

.sidebar-poet-item:not(:last-child) {
    border-bottom: 1px dashed #e8dfd8;
}
        
/* 响应式调整 */
@media (max-width: 768px) {
    .surname-stats {
        flex-direction: column;
        gap: 20px;
        padding: 20px 15px;
    }
    
    .stat-item {
        min-width: auto;
        padding: 15px 20px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
        padding: 4px 10px;
    }
    .quote-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .quote-source {
        margin-left: 0;
        align-self: flex-end;
    }
    
    .quote-content {
        font-size: 1rem;
    }
    .sidebar-poet-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
        padding: 0.8rem;
    }
    
    .poet-dynasty {
        margin-left: 0;
        align-self: flex-end;
    }      
}

/* 可选：添加动画效果 */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-item {
    animation: countUp 0.6s ease-out forwards;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }

/* 章节标题 */
.section-title {
    font-size: 1.8rem;
    color: var(--dark-blue);
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--red-seal);
}

/* 诗人列表样式 */
.poet-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* 诗人卡片布局优化 - PC端 */
.poet-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--light-brown);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 380px;
}

.poet-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* 顶部区域：头像和基本信息 */
.poet-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.poet-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold);
    background: var(--light-brown);
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-brown);
    color: var(--dark-blue);
    font-size: 2rem;
    font-weight: bold;
}

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

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

.poet-dynasty {
    color: var(--red-seal);
    font-size: 1rem;
    font-style: italic;
    background: rgba(192, 58, 43, 0.1);
    padding: 4px 12px;
    border-radius: 15px;
    display: inline-block;
}

/* 描述区域 */
.poet-desc {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    min-height: 80px;
}

/* 底部统计区域 */
.poet-card-footer {
    margin-top: auto;
}

.poet-stats {
    display: flex;
    justify-content: space-around;
    background: rgba(44, 71, 98, 0.05);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(44, 71, 98, 0.1);
}

.poet-stats span {
    text-align: center;
    font-size: 0.9rem;
    color: var(--dark-blue);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.poet-stats span::before {
    content: attr(data-label);
    font-size: 0.8rem;
    color: var(--red-seal);
    font-weight: bold;
}

.view-detail {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--dark-blue), #1a2d42);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    width: 100%;
}

.view-detail:hover {
    background: linear-gradient(135deg, var(--red-seal), #a83226);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 58, 43, 0.3);
}

/* 排名样式调整 */
.poet-rank {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--red-seal);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(192, 58, 43, 0.3);
}

/* 移动端保持原有布局 */
@media (max-width: 768px) {
    .poet-card {
        padding: 20px;
        min-height: auto;
    }
    
    .poet-card-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .poet-stats span::before {
        content: '';
    }
    
    .poet-stats span {
        font-size: 0.85rem;
    }
}

/* 热门姓氏样式 - 增强版 */
#popular-surnames {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.surname-item {
    display: flex; /* 使用flex布局 */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 5px;
    background: white;
    border: 1px solid var(--light-brown);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.surname-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.surname-item:hover::before {
    left: 100%;
}

.surname-item:hover, .surname-item.current {
    background: var(--red-seal);
    color: white;
    border-color: var(--red-seal);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 58, 43, 0.3);
}

.surname-item.current {
    background: var(--red-seal);
    color: white;
    border-color: var(--red-seal);
}

/* 名句样式 */
.famous-sentence {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--gold);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
/* 名句链接样式 */
.famous-sentence a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 2px 4px;
    border-radius: 3px;
}

.famous-sentence a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--red-seal);
    transition: width 0.3s ease;
}

.famous-sentence a:hover {
    color: var(--red-seal);
    background: rgba(192, 58, 43, 0.05);
}

.famous-sentence a:hover::after {
    width: 100%;
}

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

.sentence-source {
    text-align: right;
    color: #666;
    font-size: 0.9rem;
}

/* 朝代分布样式 */
.dynasty-distribution {
    margin-bottom: 20px;
}

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

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

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

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

/* 性能监控样式 */
.performance-info {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1000;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0 20px;
    gap: 10px;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    border: 1px solid var(--light-brown);
    border-radius: 6px;
    color: var(--dark-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.page-link:hover {
    background: var(--light-brown);
    border-color: var(--gold);
}

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

.page-item.disabled .page-link {
    color: #ccc;
    cursor: not-allowed;
    background: #f5f5f5;
}

.page-info {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    aside {
        width: 100%;
    }
    
    .poet-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .surname-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .surname-title {
        font-size: 3.5rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    .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;
    }    
    
}