/* --- 🎨 颜色与字体变量 (暖色调与古风) --- */
:root {
    --color-background: #f7f3ed; /* 暖米色/纸张色 */
    --color-primary: #4a3d32; /* 深棕色/墨色 */
    --color-accent: #c29c7d; /* 古铜/暖金色（强调色） */
    --color-text: #333333;
    --font-title: 'Noto Serif SC', serif; /* 适合标题，有古典韵味 */
    --font-body: 'KaiTi', serif; /* 适合正文，更具书写感 */
    --padding-section: 120px 5%;
}

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

body {
    font-family: var(--font-body);
    color: var(--color-primary);
    background-color: var(--color-background);
    line-height: 1.7;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent); /* 悬停时使用暖金色 */
}

/* --- 导航栏 --- */
header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-title);
    font-size: 1.8em;
    font-weight: 700;
    color: var(--color-primary);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    font-size: 1em;
    font-weight: 500;
    position: relative;
}

/* 导航栏的古风装饰线 */
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

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


/* --- 通用区块样式 --- */
.section-padding {
    padding: var(--padding-section);
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    font-family: var(--font-title);
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
    color: var(--color-primary);
    position: relative;
}

/* 标题的古风装饰（模拟卷轴边缘） */
section h2::before, section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 1px;
    background-color: var(--color-accent);
    margin: 10px auto 0;
}


/* --- 英雄区 (Hero Section) --- */
#hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    text-align: center;
    background-color: var(--color-primary); /* 英雄区使用深色，增强沉稳感 */
    color: var(--color-background);
}

.hero-content .title {
    font-family: var(--font-title);
    font-size: 4em;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-content .subtitle {
    font-size: 1.5em;
    color: #e0dcc0; /* 柔和的暖白 */
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.main-cta {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-primary);
    padding: 12px 35px;
    border-radius: 3px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.main-cta:hover {
    background-color: #e65b50; /* 稍深的暖红色 */
    color: var(--color-background);
}

/* --- 诗词集 (Poem Section) --- */
#poems {
    background-color: var(--color-background);
}

.poem-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.poem-card {
    background: #fff;
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.poem-card:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.poem-title {
    font-family: var(--font-title);
    font-size: 1.8em;
    color: var(--color-primary);
    margin-bottom: 15px;
    border-bottom: 1px dashed rgba(194, 156, 125, 0.4); /* 模拟诗行分隔 */
    padding-bottom: 10px;
}

.poem-text {
    font-size: 1.1em;
    margin-bottom: 15px;
    white-space: pre-wrap; /* 保持诗词的排版格式 */
}

.author {
    display: block;
    text-align: right;
    font-style: italic;
    color: #777;
    font-size: 0.9em;
}

/* --- 心绪集 (Story Section) --- */
#story {
    background-color: #fff; /* 故事区使用白色背景，突出内容 */
}

.story-text-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
    background: #fdfbf8; /* 更暖的背景 */
    border-left: 5px solid var(--color-accent);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.philosophy {
    font-size: 1.4em;
    font-family: var(--font-title);
    color: var(--color-primary);
    margin-bottom: 20px;
}

.deep-reflection {
    font-size: 1.2em;
    color: #555;
}


/* --- 联络/底部 --- */
#contact {
    background-color: var(--color-primary);
    color: var(--color-background);
    text-align: center;
}

#contact h2 {
    color: var(--color-background);
    border-left-color: var(--color-background);
}

.contact-note {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.contact-info, .social-links {
    font-size: 1.1em;
    margin-bottom: 10px;
}

footer {
    background-color: #222;
    color: #999;
    text-align: center;
    padding: 20px;
    font-size: 0.85em;
}

/* --- 响应式设计 --- */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 10px;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-content .title {
        font-size: 2.5em;
    }
    .section-padding {
        padding: 50px 3%;
    }
}