/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif, '微软雅黑', 'Microsoft YaHei';
    line-height: 1.6;
    color: #2d1810;
    background: linear-gradient(135deg, #f7f3e9 0%, #f0e6d2 30%, #e8d5b7 70%, #dfc49a 100%);
    min-height: 100vh;
}

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

/* 头部样式 */
.header {
    background: rgba(247, 243, 233, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(45, 24, 16, 0.1);
    border-bottom: 2px solid rgba(45, 24, 16, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    padding: 12px 20px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.title-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.donation-btn {
    background: linear-gradient(135deg, #6d6d6d, #8a8a8a);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(109, 109, 109, 0.3);
    border: 2px solid transparent;
}

.donation-btn:hover {
    background: linear-gradient(135deg, #5a5a5a, #7a7a7a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(109, 109, 109, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d1810;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(45, 24, 16, 0.2);
}

.subtitle {
    color: #5c3e2a;
    font-size: 0.9rem;
    font-weight: 300;
    margin: 0;
}

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

.nav-header .header-content {
    flex: 1;
    justify-content: flex-end;
}

.back-btn {
    color: #6d6d6d;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(109, 109, 109, 0.1);
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(109, 109, 109, 0.2);
    transform: translateX(-5px);
}

/* 主要内容样式 */
.main {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.intro-section {
    text-align: center;
    margin-bottom: 50px;
    background: rgba(250, 246, 236, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(45, 24, 16, 0.12);
    border: 1px solid rgba(45, 24, 16, 0.08);
}

.intro-section h2 {
    font-size: 1.8rem;
    color: #2d1810;
    margin-bottom: 20px;
    font-weight: 600;
}

.intro-section p {
    font-size: 1.1rem;
    color: #5c3e2a;
    max-width: 600px;
    margin: 0 auto;
}

/* 章节网格样式 */
.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.chapter-card {
    background: rgba(250, 246, 236, 0.95);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(45, 24, 16, 0.12);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(45, 24, 16, 0.08);
}

.chapter-card:hover {
    box-shadow: 0 10px 30px rgba(45, 24, 16, 0.18);
    border-color: rgba(109, 109, 109, 0.4);
}

.chapter-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d1810;
    margin-bottom: 15px;
    text-align: center;
}

.chapter-preview {
    color: #5c3e2a;
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* 章节详情页样式 */
.chapter-detail {
    background: rgba(250, 246, 236, 0.95);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 25px rgba(45, 24, 16, 0.12);
    border: 1px solid rgba(45, 24, 16, 0.08);
}

.chapter-navigation {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.nav-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #6d6d6d;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-btn:hover {
    background: #5a5a5a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(109, 109, 109, 0.3);
}

.nav-btn.home-btn {
    background: #2d1810;
}

.nav-btn.home-btn:hover {
    background: #1a0f0a;
}

.chapter-detail h1 {
    font-size: 2.2rem;
    color: #2d1810;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
}


.content-section {
    margin-bottom: 30px;
}

.content-section h3 {
    color: #2d1810;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
    border-left: 4px solid #6d6d6d;
    padding-left: 15px;
}

.original-text {
    background: #faf7f0;
    border-left: 4px solid #6d6d6d;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2d1810;
}

.translation-text {
    background: #fdfbf8;
    border: 1px solid rgba(45, 24, 16, 0.15);
    padding: 20px;
    border-radius: 8px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #5c3e2a;
}

/* 页脚样式 */
.footer {
    background: rgba(45, 24, 16, 0.95);
    color: #f7f3e9;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #f7f3e9;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid #6d6d6d;
    padding-bottom: 8px;
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.keywords {
    font-size: 0.8rem !important;
    opacity: 0.6 !important;
    font-style: italic;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.8rem;
    }
    
    .header-content {
        gap: 10px;
    }
    
    .chapters-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .chapter-detail {
        padding: 25px;
    }
    
    .chapter-detail h1 {
        font-size: 1.8rem;
    }
    
    .nav-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-header .header-content {
        justify-content: center;
    }
    
    .back-btn {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .intro-section {
        padding: 25px;
    }
    
    .intro-section h2 {
        font-size: 1.5rem;
    }
    
    .chapter-detail {
        padding: 20px;
    }
    
    .original-text, .translation-text {
        padding: 15px;
    }
    
    .chapter-navigation {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-btn {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-section p {
        font-size: 0.85rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .title {
        font-size: 1.3rem;
    }
    
    .subtitle {
        font-size: 0.75rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chapter-detail {
    animation: fadeIn 0.8s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f7f3e9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #6d6d6d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a5a5a;
}

/* 章节导航样式 */
.all-chapters-navigation {
    margin-top: 40px;
    padding: 30px;
    background: rgba(250, 246, 236, 0.95);
    border-radius: 15px;
    border: 1px solid rgba(45, 24, 16, 0.08);
    box-shadow: 0 8px 25px rgba(45, 24, 16, 0.12);
}

.all-chapters-navigation h3 {
    color: #2d1810;
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid #6d6d6d;
    padding-bottom: 10px;
}

.chapters-grid-nav {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.chapter-nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(109, 109, 109, 0.1);
    color: #2d1810;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(45, 24, 16, 0.1);
}

.chapter-nav-link:hover {
    background: rgba(109, 109, 109, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 24, 16, 0.15);
    color: #1a0f0a;
}

.chapter-nav-link.current-chapter {
    background: #6d6d6d;
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(109, 109, 109, 0.3);
}

.chapter-nav-link.current-chapter:hover {
    background: #5a5a5a;
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .chapters-grid-nav {
        grid-template-columns: repeat(8, 1fr);
        gap: 6px;
    }
    
    .chapter-nav-link {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .all-chapters-navigation {
        padding: 20px;
        margin-top: 30px;
    }
    
    .all-chapters-navigation h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .chapters-grid-nav {
        grid-template-columns: repeat(6, 1fr);
        gap: 4px;
    }
    
    .chapter-nav-link {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    .all-chapters-navigation {
        padding: 15px;
        margin-top: 25px;
    }
}

/* 赞赏页面样式 */
.donation-container {
    max-width: 800px;
    margin: 0 auto;
}

.donation-intro {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(250, 246, 236, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(45, 24, 16, 0.12);
    border: 1px solid rgba(45, 24, 16, 0.08);
}

.donation-intro h2 {
    font-size: 2rem;
    color: #2d1810;
    margin-bottom: 20px;
    font-weight: 600;
}

.donation-intro p {
    font-size: 1.1rem;
    color: #5c3e2a;
    line-height: 1.7;
    margin-bottom: 15px;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.payment-card {
    background: rgba(250, 246, 236, 0.95);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(45, 24, 16, 0.12);
    border: 1px solid rgba(45, 24, 16, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.payment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(45, 24, 16, 0.18);
}

.payment-header h3 {
    font-size: 1.5rem;
    color: #2d1810;
    margin-bottom: 8px;
    font-weight: 600;
}

.payment-header p {
    color: #5c3e2a;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-code {
    width: 280px;
    height: 280px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(45, 24, 16, 0.15);
    margin-bottom: 15px;
    object-fit: contain;
    background: white;
    padding: 10px;
}

.qr-instruction {
    color: #6d6d6d;
    font-size: 0.9rem;
    font-weight: 500;
}

.donation-message {
    background: rgba(250, 246, 236, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(45, 24, 16, 0.12);
    border: 1px solid rgba(45, 24, 16, 0.08);
    text-align: center;
}

.donation-message h3 {
    font-size: 1.5rem;
    color: #2d1810;
    margin-bottom: 20px;
    font-weight: 600;
}

.donation-message p {
    color: #5c3e2a;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.donation-message ul {
    text-align: left;
    max-width: 500px;
    margin: 20px auto;
    padding-left: 0;
    list-style: none;
}

.donation-message li {
    color: #5c3e2a;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.donation-message li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #6d6d6d;
    font-weight: bold;
}

.gratitude {
    font-style: italic;
    color: #2d1810;
    font-weight: 500;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(45, 24, 16, 0.15);
}

/* 赞赏页面响应式设计 */
@media (max-width: 768px) {
    body.donation-page .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    body.donation-page .title-section {
        flex-direction: column;
        gap: 5px;
    }
    
    .donation-btn {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    .donation-intro {
        padding: 25px;
    }
    
    .donation-intro h2 {
        font-size: 1.6rem;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .payment-card {
        padding: 25px;
    }
    
    .qr-code {
        width: 240px;
        height: 240px;
    }
    
    .donation-message {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .donation-intro {
        padding: 20px;
    }
    
    .donation-intro h2 {
        font-size: 1.4rem;
    }
    
    .donation-intro p {
        font-size: 1rem;
    }
    
    .payment-card {
        padding: 20px;
    }
    
    .payment-header h3 {
        font-size: 1.3rem;
    }
    
    .qr-code {
        width: 220px;
        height: 220px;
    }
    
    .donation-message {
        padding: 20px;
    }
    
    .donation-message h3 {
        font-size: 1.3rem;
    }
    
    .donation-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
} 