* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2c3e50;
    --secondary: #34495e;
    --accent: #3498db;
    --text: #333;
    --text-light: #777;
    --background: #f9f9f9;
    --card: #ffffff;
    --border: #eaeaea;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Noto Serif SC', 'Source Han Serif SC', 'SimSun', serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.8;
    min-height: 100vh;
    overflow-x: hidden;
}

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

header {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--text);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.8rem;
}

nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 400;
    position: relative;
    padding-bottom: 3px;
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition);
}

nav a:hover::after {
    width: 100%;
}

.poems-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 400;
    color: var(--text);
}

.poems-list {
    column-count: 3;
    column-gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.poem-item {
    break-inside: avoid;
    background: rgb(249, 248, 248);
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid #ccc !important;
    padding: 14px;
    border-radius: 16px !important;
}

.poem-item:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.poem-header {
    margin-bottom: 1.2rem;
}

.poem-title {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-align: center;
}

.poem-title a {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.poem-title a:hover {
    color: var(--accent);
}

.poem-date {
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: right;
    border-right: 2px solid var(--border);
    padding-right: 1.2rem;
}

.poem-excerpt {
    color: var(--text-light);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    border-left: 2px solid var(--border);
    padding-left: 1.2rem;
}

.read-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    font-weight: 500;
}

.read-link:hover {
    text-decoration: underline;
}

.poem-detail {
    padding: 4rem 0;
}

.poem-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--card);
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border);
    line-height: 2.2;
    font-size: 1.1rem;
}

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

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 2rem;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
}

.back-link:hover {
    text-decoration: underline;
}

footer {
    background: #f0f0f0;
    padding: 3rem 0 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

.copyright {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1.2rem;
    }

    .poem-content {
        padding: 1.8rem;
    }

    .poems-list {
        column-count: 1;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .poem-item {
        padding: 1.5rem;
    }

    .poem-title {
        font-size: 1.4rem;
    }

    .poems-list {
        column-count: 1;
    }
}