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

body {
    font-family: -apple-system, 'Segoe UI', 'Georgia', 'Times New Roman', '微软雅黑', serif;
    background: #eef0e8;
    color: #2c2b26;
    line-height: 1.55;
}

.menu-toggle {
    display: none;
    position: fixed;
    top: 5px;
    left: 5px;
    z-index: 1001;
    background: #b87a3a;
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
}

.app {
    display: flex;
    margin: 0 auto;
    background: #fffef7;
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.03);
}

/* ========= 左侧导航 ========= */
.sidebar {
    width: 350px;
    background: #faf8f0;
    border-right: 1px solid #e2dbc8;
    padding: 1.5rem 0 2rem 0;
    overflow-y: auto;
    height: 100vh;
    position: sticky;
    top: 0;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 0 1.2rem 1.2rem 1.2rem;
    border-bottom: 1px solid #e2dbc8;
    margin-bottom: 1rem;
}
.sidebar-header h2 a {
    color: inherit;
    text-decoration: none;
}
.sidebar-header .logo {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    color: #8a7e64;
    text-transform: uppercase;
}

.sidebar-header h2 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #b87a3a;
    margin: 8px 0 0;
}

.sidebar-header h2 i {
    color: #b87a3a;
    margin-right: 6px;
}

.nav-tree {
    padding: 0 0.8rem 0 1rem;
}

.tree-item {
    margin: 0.1rem 0;
}

.tree-item > a, .tree-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.45rem 0.7rem;
    color: #4a5a3a;
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.tree-item.active > a, 
.tree-item.active > .tree-label {
    background: #e0d6bf;
    color: #fff;
    font-weight: 500;
}

.tree-label i:first-child {
    width: 22px;
    color: #b87a3a;
    font-size: 0.9rem;
}

.tree-label .toggle-icon {
    margin-left: auto;
    font-size: 0.7rem;
    color: #b0a88a;
    transition: transform 0.2s;
}

.tree-label.no-children .toggle-icon {
    display: none;
}

.tree-item > a:hover, .tree-label:hover {
    background: #e8e2d2;
}

.tree-children {
    margin-left: 1.8rem;
}

.tree-children .tree-item a {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tree-children .tree-item a i {
    font-size: 0.65rem;
    width: 18px;
    color: #b0a088;
}

/* ========= 右侧主内容区（通用） ========= */
.main-content {
    flex: 1;
    overflow-y: auto;
    background: #fffef7;
}

/* ========= 首页/资料库页面样式 ========= */
.main-content {
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
}

.content-header {
    text-align: center;
    margin-bottom: 1.8rem;
}

.content-header h1 {
    font-size: 1.6rem;
    font-weight: 500;
    color: #b87a3a;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid #e2dbc8;
    padding-bottom: 0.5rem;
}

.hero-card {
    background: linear-gradient(135deg, #fefaf0 0%, #f9f5e8 100%);
    border: 1px solid #e8dfcb;
    border-radius: 24px;
    padding: 1.8rem 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-cover {
    flex-shrink: 0;
    text-align: center;
    background: #e8dfcb;
    padding: 1rem 1.2rem;
    border-radius: 20px;
    min-width: 140px;
}

.hero-cover .master-img {
    width: 110px;
    height: auto;
    max-height: 170px;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid #b87a3a;
    background: #fff;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
}

.hero-cover .book-icon {
    font-size: 2rem;
    color: #b87a3a;
    margin: 8px 0 4px;
}

.hero-cover .book-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 4px;
}

.hero-cover .book-sub {
    font-size: 0.7rem;
    color: #7a6a48;
}

.hero-text {
    flex: 1;
}

.hero-text p {
    margin-bottom: 0.9rem;
    font-size: 0.92rem;
    line-height: 1.7;
    text-align: justify;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.8rem;
}

.hero-tags span {
    background: #e8dfcb;
    padding: 0.2rem 1rem;
    border-radius: 30px;
    font-size: 0.72rem;
    color: #5a4a2e;
}

.content-card {
    background: #ffffff;
    border: 1px solid #e8dfcb;
    border-radius: 20px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.content-card:hover {
    border-color: #d4c9ae;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #b16224;
    border-left: 4px solid #b87a3a;
    padding-left: 14px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 核心法语滚动区域 */
.quote-scroll-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: transparent;
    max-height: 360px;
}

.quote-list {
    display: flex;
    flex-direction: column;
    will-change: transform;
    animation: scrollUp 20s linear infinite;
}

.quote-scroll-wrapper:hover .quote-list {
    animation-play-state: paused;
}

.quote-list-item {
    background: #faf7ef;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    transition: all 0.2s;
    border-left: 3px solid #b87a3a;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #4a5a3a;
    margin-bottom: 0.7rem;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.quote-list-item:hover {
    background: #f5efdf;
    transform: translateX(4px);
}

.quote-list-item a {
    text-decoration: none;
    color: #4a5a3a;
    display: block;
}

.quote-list-item a:hover {
    color: #b85c1a;
}

@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.master-bio {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.master-info {
    flex: 1;
}

.master-info p {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    line-height: 1.65;
}

.timeline {
    margin: 0.8rem 0;
    padding-left: 1rem;
    border-left: 2px solid #e2dbc8;
}

.timeline-item {
    margin: 0.6rem 0;
    font-size: 0.85rem;
}

.timeline-item strong {
    color: #b16224;
}

.two-col-text {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 0.5rem;
}

.info-block {
    background: #faf8f0;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.6;
}

.info-block i {
    color: #b87a3a;
    width: 24px;
}

/* ========= 文章列表页样式 ========= */
.main-content {
    padding: 2rem 2rem;
}

.archive-header {
    margin-bottom: 2rem;
    border-bottom: 2px solid #e8dfcb;
    padding-bottom: 1rem;
}

.archive-title h1 {
    font-size: 1.7rem;
    font-weight: 500;
    color: #b87a3a;
    text-align: center;
}

.archive-title h1 i {
    color: #b87a3a;
    font-size: 1.5rem;
}

.archive-title p {
    color: #7a6a48;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    text-align: center;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.article-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.3rem 1.5rem;
    border: 1px solid #e8dfcb;
    transition: all 0.25s ease;
    cursor: pointer;
}
a.article-link {
    text-decoration: none;
    display: block;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    border-color: #cfc4a4;
    background: #fffdf8;
}

.article-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #b87a3a;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.article-summary {
    font-size: 0.88rem;
    color: #5e5a4c;
    line-height: 1.55;
    margin-bottom: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-block;
    margin-top: 0.6rem;
    font-size: 0.75rem;
    color: #b87a3a;
    font-weight: 500;
    transition: transform 0.2s;
}

.article-card:hover .read-more {
    transform: translateX(5px);
    color: #8b561e;
}
/* 表格样式 - 简洁版 */
.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8dfcb;
    margin-bottom: 15px;
}

.article-content table th {
    background: #b87a3a;
    color: #fff;
    padding: 10px 12px;
    font-weight: 600;
    text-align: left;
}

.article-content table td {
    padding: 8px 12px;
    border-bottom: 1px solid #e8dfcb;
    color: #4a5a3a;
    vertical-align: top;
}

.article-content table tr:last-child td {
    border-bottom: none;
}

.article-content table tbody tr:hover {
    background: #faf8f0;
}

/* 数字列居中 */
.article-content table td:first-child,
.article-content table th:first-child {
    text-align: center;
    width: 50px;
}

.page-btn {
    background: #f5f0e4;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-weight: 500;
    cursor: default;
    color: #4a5a3a;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-btn.active-page {
    background: #b87a3a;
    color: white;
}

.page-dots {
    display: flex;
    align-items: center;
    padding: 0 6px;
    color: #b0a88a;
}

/* ========= 文章内容页样式 ========= */
.main-content {
    padding: 2rem 2.5rem;
}

.breadcrumb {
    font-size: 0.8rem;
    color: #9b8e6e;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e8dfcb;
}

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

.breadcrumb a:hover {
    color: #b87a3a;
}

.breadcrumb i {
    margin: 0 6px;
    font-size: 0.65rem;
}

.article-header {
    margin-bottom: 2rem;
}

.article-header h1 {
    font-size: 1.9rem;
    font-weight: 500;
    color: #b87a3a;
    line-height: 1.3;
    margin-bottom: 0.8rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 0.8rem;
    color: #9b8e6e;
    border-bottom: 1px solid #e8dfcb;
    padding-bottom: 0.8rem;
}

.article-tag {
    background: #f0ebdf;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    color: #7a673f;
}

.article-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #3a3a30;
}

.article-content p {
    margin-bottom: 1.2rem;
}

.article-content p {
    margin-bottom: 1.2rem;
}

.article-content p {
    margin-bottom: 1.2rem;
}


/*强调说明,在行中间，淡绿色，双引号内容*/
.qiangdiao1{
	color:#006400;
	font-family:FangSong;
	font-size:22px;
}
/*强调说明,在行首*/
.qiangdiao2{
	color:#996600;
	font-weight:bold;
}

/*强调说明,在行中间，鹅黄色*/
.qiangdiao3{
	color:#990000;
	font-family:kaiti;
	font-size: 21px;

}

/*红颜色*/
.c_r1{color:#B22222;} /*firebrick*/
.c_r2{color:#DC143C;} /*crimson*/
.c_r3{color:#FF6347;} /*tomato*/
.c_r4{color:#FF4500;} /*orangered*/
.c_r5{color:#DB7093;} /*palevioletred*/

/*蓝颜色*/
.c_b1{color:#1E90FF;} /*dodgerblue*/
.c_b2{color:#6495ED;} /*cornflowerblue*/
.c_b3{color:#4682B4;} /*steelblue*/
.c_b4{color:#5F9EA0;} /*cadetblue*/
.c_b5{color:#6A5ACD;} /*slateblue*/

/*绿颜色*/
.c_g1{color:#32CD32;} /*limegreen*/
.c_g2{color:#9ACD32;} /*yellowgreen*/
.c_g3{color:#3CB371;} /*mediumseagreen*/
.c_g4{color:#20B2AA;} /*lightseagreen*/
.c_g5{color:#2E8B57;} /*seagreen*/
.c_g6{color:#808000;} /*olive*/

/*黄颜色*/
.c_y1{color:#CCCC00;} /*Dark yellow1*/
.c_y2{color:#999900;} /*Dark yellow2*/
.c_y3{color:#666600;} /*Dark yellow3*/
.c_y4{color:#FFFFE0;} /*lightyellow*/
.c_y5{color:#FFFACD;} /*lemonchiffon*/

.shici {
    margin-bottom: 1rem;
    line-height: 1.8;
}
.article-content .shici {
    text-indent: 0;
}
.article-content h2 {
    font-size: 1.35rem;
    font-weight: 500;
    color: #b87a3a;
    margin: 1.5rem 0 0.8rem 0;
    padding-left: 0.8rem;
    border-left: 4px solid #b87a3a;
}

.article-content h3 {
    font-size: 1.15rem;
    font-weight: 500;
    color: #b16224;
    margin: 1.2rem 0 0.6rem 0;
}

.article-content blockquote {
    background: #faf8f0;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    margin: 1.2rem 0;
    font-style: italic;
    color: #5a5a48;
    border-left: 3px solid #b87a3a;
}

.article-content .quote-text {
    font-size: 1.05rem;
    font-family: 'Georgia', serif;
}
.shici {
    text-indent: 0;
    color: Teal;
    line-height: 28px;
    font-size: 22px;
    background-image: none;
    padding-top: 10px;
    font-family: Kaiti;
}
.related-section {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e8dfcb;
}

.related-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #b87a3a;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-title i {
    color: #b87a3a;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.related-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    background: #fefcf7;
    border: 1px solid #e8dfcb;
    border-radius: 16px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.related-item:hover {
    background: #faf6ec;
    border-color: #d4c9ae;
    transform: translateX(4px);
}

.related-icon {
    width: 42px;
    height: 42px;
    background: #f0ebdf;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b87a3a;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.related-info {
    flex: 1;
}

.related-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #b87a3a;
    margin-bottom: 0.25rem;
}

.related-info p {
    font-size: 0.75rem;
    color: #9b8e6e;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-arrow {
    color: #cbbf9a;
    font-size: 0.8rem;
}
/* ========= 页脚公共样式 ========= */
footer {
    text-align: center;
    font-size: 0.7rem;
    padding: 1.8rem 1rem 1rem;
    margin-top: 2rem;
    border-top: 1px solid #e2dbc8;
    color: #aaa184;
    background: #fefcf7;
    border-radius: 12px;
}
footer a{
    color: #aaa184;
    text-decoration: none;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #aaa184;
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #b87a3a;
    text-decoration: underline;
}

.translateSelectLanguage {position: absolute; display: block; width: 85px; height: 30px; line-height: 30px; padding: 0 10px; border: 1px solid #ddd; background-color: #fff; font-size: 12px; color: #333; outline: none; cursor: pointer; right: 5px; margin-top: 15px;}

/* ========= 响应式布局 ========= */
@media (max-width: 800px) {
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1002;
        transform: translateX(-100%);
        width: 280px;
        height: 100vh;
        box-shadow: 2px 0 15px rgba(0,0,0,0.1);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .content-header h1 {
        font-size: 1.2rem;
        margin-top: 30px;
    }
    
    .hero-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.2rem;
    }
    
    .two-col-text {
        grid-template-columns: 1fr;
    }
    
    .quote-scroll-wrapper {
        max-height: 280px;
    }
    
    .quote-list-item {
        padding: 0.7rem 0.9rem;
        font-size: 0.85rem;
    }
    
    .article-card {
        padding: 1.2rem;
    }
    
    .archive-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-header h1 {
        font-size: 1.5rem;
    }
    
    .related-item {
        padding: 0.6rem 0.8rem;
    }
    .shici {
        padding-left: 4em;
    }
    .article-content table th,
    .article-content table td {
        padding: 8px 10px;
        font-size: 13px;
    }
.breadcrumb {
    margin-top: 40px;
	font-size:12px;
}

.footer-links {
    gap: 1rem;
}
}