/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8b4513;
    --secondary-color: #d2b48c;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #f9f5e9;
    --card-bg: #fff;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --max-width: 800px;
    --mobile-breakpoint: 768px;
}

body {
    font-family: "SimSun", "宋体", serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding: 20px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 1rem;
}

h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.author-info {
    font-style: italic;
    color: var(--light-text);
}

.author-info .author {
    font-weight: bold;
    margin-right: 0.5rem;
}

main {
    flex: 1;
}

.poem-content {
    font-size: 1.2rem;
    line-height: 2;
    text-align: center;
    margin-bottom: 2rem;
}

.poem-content p {
    margin-bottom: 0.5rem;
}

.poem-notes {
    background-color: #f5f5f5;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 2rem;
}

.poem-notes h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.poem-notes ul {
    list-style-position: inside;
}

footer {
    margin-top: 2rem;
    text-align: center;
    border-top: 1px solid var(--secondary-color);
    padding-top: 1rem;
}

.navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.nav-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-button:hover {
    background-color: #6b3410;
}

.copyright {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .poem-content {
        font-size: 1rem;
    }
    
    .navigation {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-button {
        width: 100%;
    }
}