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

/* 全站频道导航条 */
.site-nav {
    background-color: #5a3921;
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

.site-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-nav-links {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

.site-nav-links li {
    margin-right: 15px;
}

.site-nav-links a {
    color: #e8dfca;
    text-decoration: none;
    transition: color 0.3s;
    font-family: 'Noto Serif SC', serif;
    white-space: nowrap;
}

.site-nav-links a:hover {
    color: #f8d568;
}

.site-nav-links .current a {
    color: #f8d568;
    font-weight: bold;
}

.user-actions a {
    color: #e8dfca;
    text-decoration: none;
    margin-left: 10px;
    font-family: 'Noto Serif SC', serif;
    white-space: nowrap;
}

.user-actions a:hover {
    color: #f8d568;
}

/* 古诗文站点导航 */
.gushi-nav {
    background-color: #784620;
    padding: 12px 0;
}

.gushi-nav .container {
    display: flex;
    align-items: center;
}

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

.logo h1 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.8rem;
    color: white;
    margin-left: 8px;
}

.logo-icon {
    font-size: 2rem;
    color: #f8d568;
}

.gushi-nav-links {
    display: flex;
    list-style: none;
    margin-left: 30px;
    flex-wrap: wrap;
}

.gushi-nav-links li {
    margin-right: 20px;
}

.gushi-nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
    font-family: 'Noto Serif SC', serif;
    white-space: nowrap;
}

.gushi-nav-links a:hover {
    color: #f8d568;
}

.gushi-nav-links .current a {
    color: #f8d568;
    font-weight: bold;
}

.nav-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.nav-search {
    display: flex;
}

.nav-search input {
    padding: 6px 12px;
    border: none;
    border-radius: 20px 0 0 20px;
    width: 220px;
    font-size: 0.9rem;
    outline: none;
    font-family: 'Noto Serif SC', serif;
}

.nav-search button {
    background: #f8d568;
    color: #5a3921;
    border: none;
    padding: 6px 12px;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    font-family: 'Noto Serif SC', serif;
}

.nav-search button:hover {
    background: #e6c350;
}

/* 面包屑导航 */
.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;
    gap: 20px;
}

.content-left {
    flex: 1;
}

.content-right {
    width: 280px;
}

/* 筛选区域 */
.filter-section {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-title {
    font-size: 1.2rem;
    color: #5a3921;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.theme-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.theme-btn {
    padding: 8px 16px;
    background-color: #f8f8f8;
    color: #666;
    border: 1px solid #eee;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.theme-btn:hover {
    background-color: #f0f0f0;
    color: #5a3921;
}

.theme-btn.active {
    background-color: #784620;
    color: white;
    border-color: #784620;
}


/* 子类导航 */
.subnav {
    display: none;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.subnav.active {
    display: block;
}

.subnav-title {
    font-size: 1rem;
    color: #5a3921;
    margin-bottom: 10px;
}

.subnav-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.subnav-btn {
    padding: 6px 12px;
    background-color: #f8f8f8;
    color: #666;
    border: 1px solid #eee;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.subnav-btn:hover {
    background-color: #f0f0f0;
    color: #5a3921;
}

.subnav-btn.active {
    background-color: #a1887f;
    color: white;
    border-color: #a1887f;
}

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

.quotes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.5rem;
    color: #5a3921;
    font-family: 'Ma Shan Zheng', cursive;
}

.quotes-count {
    color: #666;
    font-size: 0.9rem;
}

.quotes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.quote-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 25px;
    position: relative;
}

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

.quote-card::before {
    content: """;
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 3rem;
    color: #f8d568;
    font-family: Georgia, serif;
    line-height: 1;
}

.quote-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #5d4037;
    margin-bottom: 15px;
    font-weight: 500;
    padding-left: 30px;
}

.quote-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.quote-author {
    color: #8d6e63;
    font-size: 0.95rem;
    font-style: italic;
}

.quote-source {
    color: #a1887f;
    font-size: 0.9rem;
}

.quote-actions {
    display: flex;
    gap: 10px;
}

.quote-action {
    background-color: #f8f8f8;
    color: #784620;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 5px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

.quote-action:hover {
    background-color: #784620;
    color: white;
}

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

.sidebar-card h3 {
    font-size: 1.2rem;
    color: #5a3921;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* 热门名句标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f8f8f8;
    color: #666;
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.9rem;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.tag:hover {
    background-color: #784620;
    color: white;
    text-decoration: none;
}

.tag-1 { font-size: 1rem; }
.tag-2 { font-size: 1.1rem; }
.tag-3 { font-size: 1.2rem; }
.tag-4 { font-size: 1.3rem; }
.tag-5 { font-size: 1.4rem; }

/* 推荐名句列表 */
.quotes-list-mini {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quote-mini {
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.quote-mini:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.quote-mini .quote-text {
    font-size: 1rem;
    margin-bottom: 8px;
    padding-left: 0;
}

.quote-mini .quote-author {
    font-size: 0.85rem;
    color: #8d6e63;
}



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

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

@media (max-width: 768px) {
    .site-nav .container {
        flex-direction: column;
        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%;
    }

    .quote-card {
        padding: 20px;
    }

    .quote-text {
        font-size: 1.1rem;
        padding-left: 25px;
    }

    .quote-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .quote-actions {
        align-self: flex-end;
    }

    .quotes-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .quotes-count {
        margin-top: 10px;
    }
}

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

    .section-title {
        font-size: 1.3rem;
    }

    .theme-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .quote-text {
        font-size: 1rem;
        padding-left: 20px;
    }
}