body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
}
header {
    background: #2d3e50;
    color: #fff;
    padding: 24px 0 16px 0;
    text-align: center;
}
nav {
    background: #1a232f;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
nav a {
    color: #fff;
    text-decoration: none;
    padding: 16px 28px;
    font-size: 18px;
    transition: background 0.3s;
}
nav a:hover {
    background: #3c4a5b;
}
.main {
    max-width: 1000px;
    margin: 32px auto;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 10px;
    padding: 36px;
}
#gallery {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 32px;
}
#gallery img {
    width: 220px;
    height: 320px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.12);
}
section {
    margin-bottom: 36px;
}
#poem-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}
#poem-content {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 10px;
}
#next-poem {
    background: #2d3e50;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}
#next-poem:hover {
    background: #1a232f;
}
#qa-section {
    margin-top: 30px;
    padding: 20px;
    background: #f0f0f0;
    border-radius: 8px;
}
#qa-section label {
    font-size: 16px;
}
#qa-section input {
    padding: 6px 12px;
    font-size: 16px;
    margin-right: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
#qa-section button {
    background: #2d3e50;
    color: #fff;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}
#qa-section button:hover {
    background: #1a232f;
}
#qa-answer {
    margin-top: 12px;
    font-size: 16px;
    color: #2a7a2a;
}
footer {
    background: #1a232f;
    color: #fff;
    text-align: center;
    padding: 16px 0;
    font-size: 16px;
    letter-spacing: 2px;
    margin-top: 40px;
    border-radius: 0 0 10px 10px;
}
