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

body {
    font-family: 'Noto Serif SC', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f6f0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #8b5a2b;
    transition: color 0.3s ease;
}

a:hover {
    color: #d4a76a;
}

/* 头部样式 */
header {
    background-color: #8b5a2b;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

header .subtitle {
    font-size: 1rem;
    opacity: 0.8;
}

/* 导航样式 */
nav {
    background-color: #d4a76a;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    color: #fff;
    padding: 15px 20px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

nav a:hover, nav a.active {
    background-color: rgba(139, 90, 43, 0.7);
    color: #fff;
}

/* 主要内容区域 */
main {
    padding: 40px 0;
}

/* 英雄区域 */
.hero {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    padding-right: 30px;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #8b5a2b;
}

.hero p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    background-color: #8b5a2b;
    color: #fff;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 500;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #6d4522;
    color: #fff;
}

/* 特性区域 */
.features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.feature-box {
    flex: 1;
    min-width: 250px;
    background-color: #fff;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.feature-box h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #8b5a2b;
}

.feature-box p {
    margin-bottom: 15px;
}

.read-more {
    font-weight: 500;
    display: inline-block;
}

/* 引用区域 */
.quote {
    background-color: #f0e6d6;
    padding: 40px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 30px;
}

blockquote p {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 15px;
    color: #8b5a2b;
}

.quote-source {
    font-weight: 500;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

/* 全文页面样式 */
.scripture {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.scripture h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #8b5a2b;
}

.scripture-text {
    line-height: 2;
    text-align: justify;
    margin-bottom: 20px;
}

.scripture-text p {
    margin-bottom: 15px;
    text-indent: 2em;
}

/* 章节页面样式 */
.chapter-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chapter-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.chapter-card:hover {
    transform: translateY(-5px);
}

.chapter-card h3 {
    color: #8b5a2b;
    margin-bottom: 10px;
}

/* 注解页面样式 */
.explanation-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.explanation-item {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.explanation-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.explanation-item h3 {
    color: #8b5a2b;
    margin-bottom: 15px;
}

.original-text {
    background-color: #f0e6d6;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-weight: 500;
}

/* 搜索框样式 */
.search-container {
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #d4a76a;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    font-family: inherit;
}

.search-button {
    background-color: #8b5a2b;
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #6d4522;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav a {
        text-align: center;
    }
    
    .hero {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .features {
        flex-direction: column;
    }
    
    .feature-box {
        margin-bottom: 20px;
    }
    
    .chapter-list {
        grid-template-columns: 1fr;
    }
}