* {
    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;
}



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

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

.content-right {
    width: 300px;
}

/* 分类筛选 - 优化后 */
.filters {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.filter-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-label {
    width: 80px;
    font-weight: bold;
    color: #5a3921;
    font-size: 1rem;
    font-family: 'Noto Serif SC', serif;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
}

.filter-option {
    margin-right: 8px;
    margin-bottom: 8px;
    padding: 6px 12px;
    background-color: #f5f5f5;
    border-radius: 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: #333;
    font-family: 'Noto Serif SC', serif;
}

.filter-option:hover {
    background-color: #e8dfca;
    color: #5a3921;
}

.filter-option.active {
    background-color: #784620;
    color: white;
}

.filter-more {
    margin-left: 10px;
    color: #784620;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
    text-decoration: none;
    font-family: 'Noto Serif SC', serif;
}

.filter-more:hover {
    text-decoration: underline;
}

.filter-more--placeholder {
    visibility: hidden;
    pointer-events: none;
}

/* 诗文列表 */
.poem-list {
    /* 移除背景色，让卡片通过margin区分 */
    padding: 0;
}
.poem-list-title{
    font-size: 1.5rem;
}
.poem-card {
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    border-radius: 8px;
    background-color: #fff;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.poem-card:hover {
    border-color: #d8d8d8;
    transform: translateY(-2px);
}

.poem-card:last-child {
    margin-bottom: 0;
}

.poem-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.poem-title {
    font-size: 1.4rem;
    color: #5a3921;
    margin-bottom: 5px;
    text-decoration: none;
    font-family: 'Noto Serif SC', serif;
    font-weight: bold;
}

.poem-title:hover {
    color: #784620;
}

.poem-actions {
    display: flex;
    padding: 6px 12px;
}

.poem-action {
    margin-left: 10px;
    padding: 6px 12px;
    color: #666;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-family: 'Noto Serif SC', serif;
}
.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;
}

.maskT a {
    text-decoration: none;
}

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

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

.author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e8dfca;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: #784620;
}

.author-name {
    color: #784620;
    text-decoration: none;
    font-family: 'Noto Serif SC', serif;
}

.author-name:hover {
    text-decoration: underline;
}

.author-dynasty {
    color: #999;
    font-size: 0.9rem;
    margin-right: 8px;
    text-decoration: none;
    font-family: 'Noto Serif SC', serif;
}

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

.poem-content {
    line-height: 1.8;
    color: #111111;
    margin-bottom: 15px;
    padding: 15px;
    background-color: #fafafa;
    border-radius: 6px;
    border-left: 3px solid #e8dfca;
    font-family: 'Noto Serif SC', serif;
}

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

.poem-footer-left {
    display: flex;
    color: #888;
    align-items: center;
}

.poem-footer-right {
    display: flex;
    align-items: center;
}

.footer-action {
    margin-right: 15px;
    color: #999;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: color 0.3s;
    padding: 5px;
    border-radius: 4px;
}

.footer-action:hover {
    color: #5a3921;
    background-color: #f5f5f5;
    text-decoration: none;
}

/* 标签云 */
.tag-cloud {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tag-cloud h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #5a3921;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-family: 'Noto Serif SC', serif;
}

.tags {
    display: flex;
    flex-wrap: wrap;
}

.tag {
    margin: 5px;
    padding: 5px 10px;
    background-color: #f5f5f5;
    border-radius: 3px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: #333;
    font-family: 'Noto Serif SC', serif;
}

.tag:hover {
    background-color: #e8dfca;
    color: #5a3921;
    text-decoration: none;
}

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

.pagination a {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background-color: white;
    color: #784620;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-family: 'Noto Serif SC', serif;
}

.pagination a:hover {
    background-color: #e8dfca;
    text-decoration: none;
}

.pagination a.active {
    background-color: #784620;
    color: white;
}

/* 页脚 */
footer {
    background-color: #5a3921;
    color: white;
    padding: 40px 0 20px;
}



.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    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: 30px;
    }

    .content-right {
        width: 100%;
    }

    .poem-list-title{
        font-size: 1.5rem;
    }
}

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

    .site-nav-links {
        margin-bottom: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .site-nav-links li {
        margin: 5px 10px;
    }

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

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

    .gushi-nav-links li {
        margin: 5px 10px;
    }

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

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

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

    .poem-list-title{
        font-size: 1.3rem;
    }

    .poem-header {
        flex-direction: column;
    }

    .poem-actions {
        margin-top: 10px;
        align-self: flex-end;
    }

    .filter-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-label {
        margin-bottom: 10px;
    }

    .poem-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .poem-footer-left, .poem-footer-right {
        margin-top: 10px;
    }
}
