/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: #555;
    transition: color 0.3s;
}

a:hover {
    color: #c0392b;
}

ul {
    list-style: none;
}

/* Layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Banner */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.banner {
    background-color: #c0392b; /* Classic Chinese Red */
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.banner h1 {
    font-size: 2.5rem;
    font-weight: normal;
    letter-spacing: 5px;
    margin-bottom: 10px;
}

.banner p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Navigation */
nav {
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

nav .container {
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
}

nav li {
    margin: 0 15px;
}

nav a {
    display: block;
    padding: 15px 5px;
    font-size: 1.1rem;
    color: #666;
}

nav a.active {
    color: #c0392b;
    border-bottom: 2px solid #c0392b;
}

/* Main Content */
main {
    flex: 1;
    padding: 40px 0;
}

/* Poem List (Index) */
.poem-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.poem-card {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
}

.poem-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    border-color: #e6b0aa;
}

.poem-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: #2c3e50;
}

.poem-card .author {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.poem-card .preview {
    color: #666;
    font-size: 1rem;
    margin-bottom: 15px;
}

.poem-card .read-more {
    color: #c0392b;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Single Poem Page */
.poem-detail {
    background: #fff;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.poem-detail h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.poem-detail .author {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 30px;
    display: block;
}

.poem-content {
    font-size: 1.3rem;
    line-height: 2;
    color: #34495e;
}

.poem-content p {
    margin-bottom: 10px;
}

/* About Page */
.about-content {
    background: #fff;
    padding: 40px;
    border-radius: 4px;
    line-height: 1.8;
}

.about-content h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.about-content p {
    margin-bottom: 15px;
    color: #555;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #bdc3c7;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    margin-top: auto;
}

footer p {
    margin: 5px 0;
}
