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

body {
    font-family: 'Noto Serif SC', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f3e9;
}

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


/* 面包屑导航 */
.breadcrumb {
    padding: 12px 0;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #784620;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 主体内容 */
.main-content {
    display: flex;
    margin: 15px 0 30px;
}

.content-left {
    flex: 1;
    margin-right: 20px;
}

.content-right {
    width: 280px;
}

/* 诗文详情 */
.poem-detail {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.poem-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.poem-title {
    font-size: 2rem;
    color: #5a3921;
    margin-bottom: 12px;
    font-family: 'Ma Shan Zheng', cursive;
}

.poem-author {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #784620;
    font-size: 1.1rem;
}

.author-info {
    text-align: left;
}

.author-name {
    color: #784620;
    font-size: 1.1rem;
    font-weight: bold;
}

.author-dynasty {
    color: #999;
    font-weight: bold;
    font-size: 1.1rem;
}

.poem-meta {
    display: flex;
    justify-content: center;
    margin-top: 12px;
}

.poem-meta-item {
    margin: 0 12px;
    color: #666;
    font-size: 0.85rem;
}

.poem-meta-item i {
    margin-right: 5px;
    color: #784620;
}

.poem-actions {
    display: flex;
    justify-content: right;
    margin-top: 8px;
    margin-bottom: 10px;
}

.poem-action {
    margin: 0 8px;
    padding: 6px 15px;
    /*background-color: #f8f8f8;*/
    color: #666;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    text-decoration: none;
    /*border: 1px solid #eee;*/
    white-space: nowrap;
}
.poem-action.active{
    background-color: #f0f0f0;
    color: #5a3921;
}
.poem-action i {
    margin-right: 5px;
    color: #888;
}

.poem-action:hover {
    background-color: #f0f0f0;
    color: #5a3921;
    text-decoration: none;
    border-color: #ddd;
}

.poem-content {
    margin-bottom: 25px;
}

.poem-original {
    line-height: 1.8;
    color: #555;
    font-size: 1rem;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #fafafa;
    border-radius: 6px;
    border-left: 3px solid #e8dfca;
}

/* 标签页 */
.tabs {
    margin-top: 25px;
}

.tab-headers {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.tab-header {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #666;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.tab-header.active {
    color: #5a3921;
    border-bottom: 2px solid #784620;
    font-weight: bold;
}

.tab-content {
    display: none;
    line-height: 1.7;
    color: #555;
    padding: 12px 0;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    font-size: 1.2rem;
    color: #5a3921;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

/* 侧边栏 */
.author-card {
    background-color: white;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.author-card h3 {
    font-size: 1.1rem;
    color: #5a3921;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.author-info-side {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.author-avatar-side {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: #e8dfca;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #784620;
    font-size: 1.3rem;
}

.author-detail-side h4 {
    font-size: 1rem;
    color: #784620;
    margin-bottom: 5px;
}

.author-detail-side p {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.4;
}

.author-stats-grid {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.author-stat-item {
    flex: 1;
    text-align: center;
}

.author-stat-value {
    font-size: 1.1rem;
    color: #784620;
    font-weight: bold;
}

.author-stat-label {
    font-size: 0.75rem;
    color: #666;
}

.related-poems {
    background-color: white;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.related-poems h3 {
    font-size: 1.1rem;
    color: #5a3921;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.related-poem {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.related-poem-title {
    color: #784620;
    text-decoration: none;
    font-size: 0.9rem;
    flex: 1;
}

.related-poem-title:hover {
    text-decoration: underline;
}

.maskT a {
    text-decoration: none;
}

.gushi-search-highlight {
    color: #b42318;
}


/* 页脚 */
footer {
    background-color: #784620;
    color: white;
    padding: 30px 0 15px;
}



.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Noto Serif SC', serif;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }

    .content-left {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .content-right {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .site-nav .container {
        flex-direction: row;
        align-items: flex-start;
    }

    .site-nav-links {
        margin-bottom: 8px;
        flex-wrap: wrap;
    }

    .site-nav-links li {
        margin: 3px 8px;
    }

    .gushi-nav .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .gushi-nav-links {
        margin-left: 0;
        margin-top: 12px;
        flex-wrap: wrap;
    }

    .gushi-nav-links li {
        margin: 3px 8px;
    }

    .nav-right {
        width: 100%;
        margin-top: 12px;
        margin-left: 0;
        justify-content: space-between;
    }

    .nav-search {
        width: 100%;
        margin-top: 8px;
    }

    .nav-search input {
        width: 100%;
    }

    .poem-title {
        font-size: 1.6rem;
    }

    .tab-headers {
        flex-wrap: wrap;
    }

    .tab-header {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .poem-actions {
        flex-wrap: wrap;
    }

    .poem-action {
        margin: 4px;
        padding: 5px 12px;
    }

    .user-info .username {
        display: none;
    }
}

@media (max-width: 480px) {
    .logo .sitename {
        font-size: 1.5rem;
    }

    .poem-title {
        font-size: 1.4rem;
    }

    .poem-original {
        font-size: 0.9rem;
        padding: 10px;
    }

    .tab-header {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .user-actions a {
        font-size: 0.8rem;
    }
}
