@charset "utf-8";
/* CSS Document */
/* 主内容区域 */
.main-container {
    display: flex;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    gap: 30px;
    flex: 1;
}

/* 侧边栏样式 */
.sidebar {
    flex: 0 0 280px;
    background: rgba(248, 244, 233, 0.85);
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 25px;
    height: fit-content;
    position: sticky;
    top: 100px;
    border: 1px solid #d4c9b0;
    transition: all 0.8s ease;
}

.sidebar h3 {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #7d6b58;
    color: #5e4b38;
    font-size: 1.6rem;
    text-align: center;
    font-weight: 600;
    position: relative;
}

.sidebar h3::after {
    content: "※";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    color: #7d6b58;
    font-size: 1.2rem;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 15px;
    position: relative;
}

.sidebar-menu li a {
    display: block;
    padding: 15px 20px;
    background-color: rgba(212, 201, 176, 0.3);
    border-radius: 5px;
    text-decoration: none;
    color: #5e4b38;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    border-left: 3px solid #7d6b58;
}

.sidebar-menu li a i {
    margin-right: 15px;
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
    color: #7d6b58;
}

.sidebar-menu li a:hover {
    background-color: rgba(125, 107, 88, 0.2);
    transform: translateX(8px);
    color: #4a4030;
}

.sidebar-menu li a.active {
    background: rgba(125, 107, 88, 0.3);
    color: #3a3020;
    border-left: 3px solid #5e4b38;
}

/* 内容区域样式 */
.content {
    flex: 1;
    border: 10px solid #f4f4f4;
    padding: 20px 10px 10px;
    background-image: url(/img/ydbj1.jpg);
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 40px;
    border: 1px solid #d4c9b0;
    transition: all 0.8s ease;
}

.content h1 {
    color: #5e4b38;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #d4c9b0;
    font-size: 2.5rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
    font-family: 'Ma Shan Zheng', cursive;
}

.content h1::after {
    content: "〰";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: #7d6b58;
    font-size: 1.5rem;
}

.content p {
    margin-bottom: 25px;
    color: #5e4b38;
    font-size: 1.15rem;
    line-height: 2;
    text-indent: 2em;
}

.quote {
    background: rgba(212, 201, 176, 0.2);
    border-left: 4px solid #7d6b58;
    padding: 25px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.25rem;
    color: #5e4b38;
    position: relative;
}

.quote::before {
    content: "“";
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 3rem;
    color: rgba(125, 107, 88, 0.3);
    font-family: serif;
}

.quote::after {
    content: "”";
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 3rem;
    color: rgba(125, 107, 88, 0.3);
    font-family: serif;
}

/* 首页内容样式 */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.featured-card {
    background: rgba(248, 244, 233, 0.9);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid #d4c9b0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .card-img img {
    transform: scale(1.05);
}

.card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(125, 107, 88, 0.9);
    color: #f8f4e9;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #5e4b38;
    line-height: 1.4;
}

.card-content p {
    color: #7d6b58;
    font-size: 1rem;
    margin-bottom: 20px;
    flex: 1;
    text-indent: 0;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(212, 201, 176, 0.5);
    color: #8a7c68;
    font-size: 0.9rem;
}

.card-meta i {
    margin-right: 5px;
}

.section-title {
    margin: 60px 0 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #d4c9b0;
    color: #5e4b38;
    font-size: 1.8rem;
    text-align: center;
    position: relative;
    font-weight: 600;
}

.section-title::after {
    content: "※";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: #7d6b58;
    font-size: 1.5rem;
}

.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.article-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(248, 244, 233, 0.9);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #d4c9b0;
}

.article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.article-img {
    flex: 0 0 120px;
    height: 120px;
    border-radius: 5px;
    overflow: hidden;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    flex: 1;
}

.article-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #5e4b38;
}

.article-content p {
    color: #7d6b58;
    font-size: 0.95rem;
    margin-bottom: 15px;
    text-indent: 0;
}

.article-meta {
    display: flex;
    color: #8a7c68;
    font-size: 0.85rem;
}

.article-meta span {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.article-meta i {
    margin-right: 5px;
}

.tag {
    display: inline-block;
    background: rgba(125, 107, 88, 0.2);
    color: #5e4b38;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 8px;
    margin-top: 10px;
}

.rating-stars {
    color: #f8ce0b;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    margin-top: 25px;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(212, 201, 176, 0.2);
    border-radius: 50%;
    color: #d4c9b0;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: #7d6b58;
    color: #f8f4e9;
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 50px;
    border-top: 1px solid rgba(212, 201, 176, 0.3);
    color: #d4c9b0;
    font-size: 0.95rem;
    padding-bottom: 10px;
}

/* 传统元素 */
.seal {
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid #7d6b58;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #7d6b58;
    opacity: 0.1;
    font-weight: 700;
    transform: rotate(-15deg);
    z-index: -1;
    font-family: 'Ma Shan Zheng', cursive;
}

.seal.top-left {
    top: 50px;
    left: 50px;
}

.seal.bottom-right {
    bottom: 50px;
    right: 50px;
}

/* 主题样式 */
.theme-dark {
    background: #2a241c;
    color: #e0d6c3;
}

.theme-dark::before {
    background: rgba(42, 36, 28, 0.8);
    border-color: #5a5040;
}

.theme-dark .sidebar,
.theme-dark .content,
.theme-dark .featured-card,
.theme-dark .article-item {
    background: rgba(50, 42, 34, 0.9);
    border-color: #5a5040;
    color: #e0d6c3;
}

.theme-dark .content h1,
.theme-dark .sidebar h3,
.theme-dark .featured-card h3,
.theme-dark .section-title {
    color: #d4c9b0;
}

.theme-dark .content p,
.theme-dark .quote,
.theme-dark .featured-card p,
.theme-dark .article-content p {
    color: #c8bcab;
}

.theme-dark .quote {
    background: rgba(90, 80, 64, 0.3);
    border-left-color: #a09070;
}

.theme-green {
    background: #e8f5e9;
}

.theme-green::before {
    background: rgba(232, 245, 233, 0.8);
    border-color: #a5d6a7;
}

.theme-green .sidebar,
.theme-green .content,
.theme-green .featured-card,
.theme-green .article-item {
    background: rgba(232, 245, 233, 0.9);
    border-color: #a5d6a7;
}

.theme-green .content h1,
.theme-green .sidebar h3,
.theme-green .section-title {
    color: #2e7d32;
}

.theme-green .featured-card h3 {
    color: #1b5e20;
}

.theme-green .quote {
    background: rgba(165, 214, 167, 0.2);
    border-left-color: #4caf50;
}

.theme-blue {
    background: #e3f2fd;
}

.theme-blue::before {
    background: rgba(227, 242, 253, 0.8);
    border-color: #90caf9;
}

.theme-blue .sidebar,
.theme-blue .content,
.theme-blue .featured-card,
.theme-blue .article-item {
    background: rgba(227, 242, 253, 0.9);
    border-color: #90caf9;
}

.theme-blue .content h1,
.theme-blue .sidebar h3,
.theme-blue .section-title {
    color: #1565c0;
}

.theme-blue .featured-card h3 {
    color: #0d47a1;
}

.theme-blue .quote {
    background: rgba(144, 202, 249, 0.2);
    border-left-color: #2196f3;
}

.theme-contrast {
    background: #ffffff;
    color: #000000;
}

.theme-contrast::before {
    background: rgba(255, 255, 255, 0.9);
    border-color: #333333;
}

.theme-contrast .sidebar,
.theme-contrast .content,
.theme-contrast .featured-card,
.theme-contrast .article-item {
    background: rgba(255, 255, 255, 0.95);
    border-color: #333333;
    color: #000000;
}

.theme-contrast .content h1,
.theme-contrast .sidebar h3,
.theme-contrast .featured-card h3,
.theme-contrast .section-title {
    color: #000000;
}

.theme-contrast .quote {
    background: rgba(200, 200, 200, 0.3);
    border-left-color: #000000;
}

/* 新增小部件样式 */
.widget {
    margin-bottom: 40px;
    /* 去除边框和背景 */
    background: none;
    border: none;
    padding: 0;
    transition: all 0.4s ease;
}

.widget-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #7d6b58;
    color: #5e4b38;
    text-align: center;
    position: relative;
}

.widget-title::after {
    content: "※";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    color: #7d6b58;
    font-size: 1.2rem;
}

.yzm-article-img ul {
    list-style: none;
    padding: 0;
}

.yzm-article-img li {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px dashed #d4c9b0;
}

.yzm-article-img li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.yzm-article-img li a {
    display: block;
    text-decoration: none;
    color: #5e4b38;
    transition: all 0.3s ease;
}

.yzm-article-img li a:hover {
    color: #4a4030;
}

.yzm-article-img li img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
}

.yzm-article-img li:hover img {
    transform: scale(1.02);
}

.yzm-article-img li p {
    margin: 10px 0 0;
    color: #7d6b58;
    font-size: 0.95rem;
    line-height: 1.7;
    text-indent: 0;
}

.title_color {
    font-weight: 600;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}

.yzm-ranking {
    list-style: none;
    padding: 0;
}

.yzm-ranking li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    padding: 10px;
    background: rgba(212, 201, 176, 0.2);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.yzm-ranking li:hover {
    background: rgba(125, 107, 88, 0.2);
    transform: translateX(5px);
}

.yzm-ranking li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #5e4b38;
    width: 100%;
}

.yzm-ranking .thumbnail {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

.yzm-ranking .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yzm-ranking em {
    font-style: normal;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 15px;
    color: #7d6b58;
    width: 25px;
    text-align: center;
}

.yzm-ranking .text {
    flex: 1;
}

.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tagcloud a {
    display: block;
    padding: 8px 15px;
    background: rgba(125, 107, 88, 0.2);
    border-radius: 30px;
    color: #5e4b38;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tagcloud a:hover {
    background: rgba(125, 107, 88, 0.3);
    transform: translateY(-3px);
}

.yzm-link .yzm-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #7d6b58;
}

.yzm-link h2 {
    font-size: 1.6rem;
    color: #5e4b38;
    margin: 0;
}

.yzm-link ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    list-style: none;
    padding: 0;
}

.yzm-link li {
    margin-bottom: 10px;
}

.yzm-link li a {
    display: block;
    padding: 8px 15px;
    background: rgba(212, 201, 176, 0.3);
    border-radius: 5px;
    color: #5e4b38;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.95rem;
}

.yzm-link li a:hover {
    background: rgba(125, 107, 88, 0.3);
    transform: translateY(-3px);
}

.yzm-title-right {
    font-size: 0.9rem;
}

.yzm-title-right a {
    color: #7d6b58;
    text-decoration: none;
}

.yzm-title-right a:hover {
    text-decoration: underline;
}

/* ========== 友情链接部分 ========== */
.friend-links-section {
    background: rgba(78, 64, 50, 0.95);
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 2px solid #a09070;
    border-bottom: 2px solid #a09070;
}

.friend-links-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #d4c9b0;
}

.section-header h2 {
    font-size: 2rem;
    color: #f8f4e9;
    margin: 0;
    font-weight: 600;
    font-family: 'Ma Shan Zheng', cursive;
    letter-spacing: 2px;
}

.section-header .view-all {
    color: #d4c9b0;
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.section-header .view-all:hover {
    color: #f8f4e9;
    transform: translateX(5px);
}

.section-header .view-all i {
    margin-left: 8px;
    font-size: 0.9rem;
}

.friend-links {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 20px 10px 30px;
    scrollbar-width: thin;
    scrollbar-color: #7d6b58 #2a241c;
    flex-wrap: nowrap;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.friend-links::-webkit-scrollbar {
    height: 8px;
}

.friend-links::-webkit-scrollbar-track {
    background: #2a241c;
    border-radius: 10px;
}

.friend-links::-webkit-scrollbar-thumb {
    background: #7d6b58;
    border-radius: 10px;
    transition: background 0.3s;
}

.friend-links::-webkit-scrollbar-thumb:hover {
    background: #a09070;
}

.friend-link-card {
    flex: 0 0 280px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(212, 201, 176, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    scroll-snap-align: start;
}

.friend-link-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: #d4c9b0;
}

.friend-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f8f4e9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #5e4b38;
    transition: transform 0.3s;
}

.friend-link-card:hover .friend-logo {
    transform: scale(1.1);
}

.friend-name {
    font-size: 1.2rem;
    color: #f8f4e9;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 500;
}

.friend-desc {
    color: #d4c9b0;
    font-size: 0.9rem;
    text-align: center;
    flex-grow: 1;
    margin-bottom: 20px;
    line-height: 1.5;
}

.visit-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: rgba(212, 201, 176, 0.3);
    color: #f8f4e9;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.visit-btn:hover {
    background: #7d6b58;
    transform: scale(1.05);
}

/* 主题适配 */
.theme-dark .friend-links-section {
    background: rgba(42, 36, 28, 0.95);
    border-color: #5a5040;
}
.theme-dark .friend-link-card {
    background: rgba(50, 42, 34, 0.2);
    border-color: #5a5040;
}
.theme-dark .friend-logo {
    background: #3e352b;
    color: #d4c9b0;
}
.theme-dark .friend-name {
    color: #f8f4e9;
}
.theme-dark .friend-desc {
    color: #c8bcab;
}

/* 图书推荐区域 */
.book-recommendation-section {
    background: rgba(94, 75, 56, 0.95);
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 2px solid #a09070;
    border-bottom: 2px solid #a09070;
    position: relative;
    overflow: hidden;
}

.book-recommendation-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #d4c9b0;
}

.section-header h2 {
    font-size: 2rem;
    color: #f8f4e9;
    margin: 0;
    font-weight: 600;
    font-family: 'Ma Shan Zheng', cursive;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

.section-header h2 i {
    margin-right: 15px;
    color: #d4c9b0;
}

.section-header .view-all {
    color: #d4c9b0;
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.section-header .view-all:hover {
    color: #f8f4e9;
    transform: translateX(5px);
}

.section-header .view-all i {
    margin-left: 8px;
    font-size: 0.9rem;
}

.book-recommendations {
    display: flex;
    overflow-x: auto;
    gap: 25px;
    padding: 20px 10px 30px;
    scrollbar-width: thin;
    scrollbar-color: #7d6b58 #2a241c;
    flex-wrap: nowrap;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.book-recommendations::-webkit-scrollbar {
    height: 8px;
}

.book-recommendations::-webkit-scrollbar-track {
    background: #2a241c;
    border-radius: 10px;
}

.book-recommendations::-webkit-scrollbar-thumb {
    background: #7d6b58;
    border-radius: 10px;
    transition: background 0.3s;
}

.book-recommendations::-webkit-scrollbar-thumb:hover {
    background: #a09070;
}

.book-card {
    flex: 0 0 280px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    border: 1px solid rgba(212, 201, 176, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
}

.book-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: #d4c9b0;
}

.book-cover {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.book-card:hover .book-cover {
    transform: scale(1.05);
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-title {
    font-size: 1.4rem;
    color: #f8f4e9;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 500;
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-author {
    color: #d4c9b0;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 15px;
    font-style: italic;
}

.book-desc {
    color: #d4c9b0;
    font-size: 0.9rem;
    text-align: center;
    flex-grow: 1;
    margin-bottom: 20px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: rgba(212, 201, 176, 0.3);
    color: #f8f4e9;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.read-btn:hover {
    background: #7d6b58;
    transform: scale(1.05);
}

.book-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(125, 107, 88, 0.9);
    color: #f8f4e9;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 2;
}

.ancient-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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"><path d="M20,20 Q40,5 60,20 T100,20 Q85,40 100,60 T100,100 Q80,85 60,100 T20,100 Q5,80 20,60 T20,20" fill="none" stroke="rgba(212,201,176,0.05)" stroke-width="1"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

/* 主题适配 */
.theme-dark .book-recommendation-section {
    background: rgba(42, 36, 28, 0.95);
    border-color: #5a5040;
}
.theme-dark .book-card {
    background: rgba(50, 42, 34, 0.2);
    border-color: #5a5040;
}
.theme-dark .book-title {
    color: #f8f4e9;
}
.theme-dark .book-desc {
    color: #c8bcab;
}

/* 电子书控制栏样式 */
.ebook-controls {
    position: sticky;
    top: 80px;
    background: rgba(212, 201, 176, 0.9);
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 100;
    border: 1px solid #c8b89c;
}

.font-controls, .theme-controls, .view-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(125, 107, 88, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5e4b38;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(125, 107, 88, 0.3);
}

.control-btn:hover {
    background: rgba(125, 107, 88, 0.3);
    transform: translateY(-3px);
}

.progress-container {
    flex: 1;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(125, 107, 88, 0.2);
}

.progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: #7d6b58;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.9rem;
    color: #5e4b38;
    min-width: 80px;
    text-align: center;
}

/* 电子书阅读模式样式 */
.ebook-reader {
    background: #f8f4e9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0d5c0;
    position: relative;
    min-height: 600px;
    transition: all 0.4s ease;
}

.ebook-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0d5c0;
}

.ebook-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    font-family: 'Ma Shan Zheng', cursive;
    transition: font-size 0.3s;
}

.ebook-subtitle {
    color: #8a7c68;
    font-size: 1.0rem;
    font-weight: 400;
    margin-bottom: 25px;
    font-style: italic;
    transition: font-size 0.3s;
}

.ebook-content {
    font-size: 1.3rem;
    color: #5e4b38;
    line-height: 1.9;
    max-width: 800px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.ebook-content p {
    margin-bottom: 30px;
    text-indent: 2em;
    transition: font-size 0.3s, line-height 0.3s;
}

.ebook-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px auto;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ebook-content blockquote {
    background: rgba(212, 201, 176, 0.3);
    border-left: 4px solid #7d6b58;
    padding: 25px;
    margin: 40px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: #5e4b38;
    position: relative;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s;
}

.ebook-content blockquote::before {
    content: "“";
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 3rem;
    color: rgba(125, 107, 88, 0.3);
    font-family: serif;
}

.ebook-content blockquote::after {
    content: "”";
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 3rem;
    color: rgba(125, 107, 88, 0.3);
    font-family: serif;
}

.ebook-content h2 {
    color: #5e4b38;
    margin: 50px 0 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0d5c0;
    font-size: 1.8rem;
    position: relative;
    transition: font-size 0.3s;
}

.ebook-content h2::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #7d6b58;
}

.ebook-content h3 {
    color: #5e4b38;
    margin: 40px 0 20px;
    font-size: 1.5rem;
    transition: font-size 0.3s;
}

/* 字体大小控制 */
.font-small .ebook-content {
    font-size: 1.2rem;
    line-height: 1.7;
}

.font-small .ebook-content p {
    font-size: 1.2rem;
    line-height: 1.7;
}

.font-small .ebook-content h2 {
    font-size: 1.6rem;
}

.font-small .ebook-content h3 {
    font-size: 1.3rem;
}

.font-small .ebook-content blockquote {
    font-size: 1.1rem;
}

.font-large .ebook-content {
    font-size: 1.5rem;
    line-height: 2.0;
}

.font-large .ebook-content p {
    font-size: 1.5rem;
    line-height: 2.0;
}

.font-large .ebook-content h2 {
    font-size: 2.0rem;
}

.font-large .ebook-content h3 {
    font-size: 1.7rem;
}

.font-large .ebook-content blockquote {
    font-size: 1.4rem;
}

/* 阅读主题控制 */
.ebook-theme-light {
    background: #f8f4e9;
    color: #5e4b38;
    border-color: #e0d5c0;
}

.ebook-theme-light .ebook-header {
    border-bottom-color: #e0d5c0;
}

.ebook-theme-light .ebook-title,
.ebook-theme-light .ebook-content h2,
.ebook-theme-light .ebook-content h3 {
    color: #5e4b38;
}

.ebook-theme-light .ebook-content blockquote {
    background: rgba(212, 201, 176, 0.3);
    border-left-color: #7d6b58;
}

.ebook-theme-sepia {
    background: #f0e6d2;
    color: #5d4037;
    border-color: #d7c8a8;
}

.ebook-theme-sepia .ebook-header {
    border-bottom-color: #d7c8a8;
}

.ebook-theme-sepia .ebook-title,
.ebook-theme-sepia .ebook-content h2,
.ebook-theme-sepia .ebook-content h3 {
    color: #5d4037;
}

.ebook-theme-sepia .ebook-content blockquote {
    background: rgba(199, 183, 153, 0.3);
    border-left-color: #8c7c65;
}

.ebook-theme-dark {
    background-image: url(/img/ydbj1.jpg);
    color: #e0d6c3;
    border-color: #ccc;
}

.ebook-theme-dark .ebook-header {
    border-bottom-color: #ccc;
}

.ebook-theme-dark .ebook-title,
.ebook-theme-dark .ebook-content h2,
.ebook-theme-dark .ebook-content h3 {
    color: #d4c9b0;
}

.ebook-theme-dark .ebook-content blockquote {
    background: rgba(90, 80, 64, 0.3);
    border-left-color: #a09070;
}

.ebook-theme-green {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.ebook-theme-green .ebook-header {
    border-bottom-color: #c8e6c9;
}

.ebook-theme-green .ebook-title,
.ebook-theme-green .ebook-content h2,
.ebook-theme-green .ebook-content h3 {
    color: #1b5e20;
}

.ebook-theme-green .ebook-content blockquote {
    background: rgba(165, 214, 167, 0.3);
    border-left-color: #4caf50;
}

/* 全屏模式 */
.ebook-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 99%;
    height: 100%;
    z-index: 2000;
    margin: 0;
    padding: 20px;
    border-radius: 0;
    overflow-y: auto;
}

.ebook-fullscreen .ebook-controls {
    top: 0;
    border-radius: 0 0 8px 8px;
    margin: 0 auto 30px;
    max-width: 1400px;
    width: calc(100% - 40px);
}

.ebook-fullscreen .ebook-header {
    padding-top: 30px;
}

/* 翻页按钮 */
.ebook-pagination {
    display: flex;
    justify-content: space-between;
    margin: 60px 0 40px;
}

.page-btn {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    background: rgba(125, 107, 88, 0.2);
    border-radius: 5px;
    text-decoration: none;
    color: #5e4b38;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(125, 107, 88, 0.3);
}

.page-btn:hover {
    background: rgba(125, 107, 88, 0.3);
    transform: translateY(-3px);
}

.page-btn i {
    margin: 0 10px;
}

/* ========== 响应式设计 ========== */
/* 侧边栏只在大屏幕上显示 */
@media (max-width: 1100px) {
    .sidebar {
        display: none;
    }
    
    .content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .ebook-controls {
        top: 60px;
        padding: 5px 5px;
    }
    
    .control-btn {
        width: 36px;
        height: 36px;
    }
    
   .ebook-title {
    font-size: 20px; /* 1.25rem 相当于 20px（假设根字体大小为 16px） */
    font-weight: bold; /* 加粗文本 */
}
    
    .ebook-subtitle {
        font-size: 1.1rem;
    }
    
    .ebook-content {
        font-size: 1.25rem;
    }
    
    .ebook-content h2 {
        font-size: 1.6rem;
    }
    
    .ebook-content h3 {
        font-size: 1.4rem;
    }
    
    .font-small .ebook-content {
        font-size: 0.95rem;
    }
    
    .font-large .ebook-content {
        font-size: 1.2rem;
    }
	 .fixed-buttons {
        bottom: 150px;
        right: 5px;
    }
    .action-top-btn {
        width: 30px;
        height: 30px;
        font-size: 1.3rem;
    }
    
    /* 友情链接在移动端的调整 */
    .friend-links-section {
        display: none;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-header .view-all {
        margin-top: 15px;
    }
    
    .friend-logo {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .friend-name {
        font-size: 1.1rem;
    }
    
    /* 移动端页脚只显示copyright */
    .footer-container {
        display: none;
    }
    
    .copyright {
        margin-top: 0;
        padding-top: 20px;
        border-top: none;
    }
    
    /* 移动端内容区域取消外框 */
    .content {
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 5px 5px;
    }
    
    .ebook-reader {
        padding: 5px 5px;
    }
}

@media (max-width: 480px) {
    .ebook-controls {
        justify-content: center;
    }
    
    .progress-container {
        max-width: 100%;
        order: 3;
        margin-top: 10px;
    }
    
    .ebook-title {
        font-size: 1.8rem;
    }
    
    .content {
        padding: 15px;
    }
    
    .logo span {
        font-size: 1.6rem;
    }
    
    .header-container {
        flex-wrap: wrap;
    }
    
    .theme-switcher {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .theme-options {
        width: 100%;
    }
    
    .article-item {
        flex-direction: column;
    }
    
    .article-img {
        width: 100%;
        height: 150px;
    }
    
    .friend-links {
        gap: 15px;
    }
    
    .friend-link-card {
        flex: 0 0 220px;
        padding: 15px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { 
        opacity: 0;
        transform: translateY(-10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* 新增全屏退出按钮样式 */
.exit-fullscreen-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(125, 107, 88, 0.8);
    color: #f8f4e9;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
}

.ebook-fullscreen .exit-fullscreen-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.exit-fullscreen-btn:hover {
    background: #5e4b38;
    transform: scale(1.1);
}

/* 全屏提示信息 */
.fullscreen-hint {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(94, 75, 56, 0.9);
    color: #f8f4e9;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.ebook-fullscreen .fullscreen-hint {
    opacity: 1;
    visibility: visible;
}

.fullscreen-hint i {
    margin-right: 8px;
    color: #d4c9b0;
}

/* 增强全屏控制栏可见性 */
.ebook-fullscreen .ebook-controls {
    background: rgba(78, 64, 50, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid #a09070;
}

.ebook-fullscreen .control-btn {
    background: rgba(212, 201, 176, 0.4);
}

/* 全屏模式下保留头部 */
.ebook-fullscreen header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2001;
}

.ebook-fullscreen .ebook-reader {
    padding-top: 100px;
    height: calc(100% - 100px);
}

.ebook-fullscreen .ebook-controls {
    top: 70px;
}

.article-navigation {
    margin: 3rem 0;
    padding: 0 1rem;
}

.nav-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* 文章导航卡片通用样式 */
.nav-article {
    display: block;
    perspective: 1000px;
}

.article-card {
    position: relative;
    height: auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* 卡片遮罩层，用于视觉效果 */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    z-index: 1;
    transition: all 0.3s ease;
}

/* 卡片内容 */
.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #036236; /* 修改为深色 */
}

/* 导航方向指示器 */
.nav-direction {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.prev-article .nav-direction {
    justify-content: flex-start;
}

.next-article .nav-direction {
    justify-content: flex-end;
}

/* 导航标签样式 */
.nav-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 文章标题 */
.nextarticle-title {
   font-size: 1.0rem;
    line-height: 1.5;
    max-height: 2em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    opacity: 0.9;
    transform: translateY(5px);
    transition: all 0.3s ease 0.1s;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

/* 卡片悬停效果 */
.nav-article:hover .article-card {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.nav-article:hover .card-overlay {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.2) 100%);
}

.prev-article:hover .nav-direction i {
    transform: translateX(-5px);
}

.next-article:hover .nav-direction i {
    transform: translateX(5px);
}

/* 为上一篇下一篇添加不同的背景色 - 使用更浅的色调 */
.prev-article .article-card {
    background: linear-gradient(135deg, #E5DDDC 0%, #F5EEEC 100%);
}

.next-article .article-card {
    background: linear-gradient(135deg, #F6DBBF 10%, #fdba74 90%);
}
/* 底部固定控制栏 */
@media (max-width: 768px) {
    .ebook-controls {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        border-radius: 8px 8px 0 0;
        padding: 8px 12px;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
    
    .content {
        padding-bottom: 60px; /* 为底部控制栏留出空间 */
    }
    
    .progress-container {
        position: absolute;
        top: -8px;
        left: 0;
        right: 0;
        height: 4px;
        border-radius: 0;
    }
    
    .progress-text {
        display: none; /* 移动端隐藏百分比文字 */
    }
}