/* 苔藓绿主题变量 */
:root {
    --moss-dark: #2a3b2a;
    --moss-primary: #4a6b4a;
    --moss-light: #8a9b8a;
    --moss-accent: #5c8a5c;
    --parchment: #f5f0e5;
    --ink: #1a1a1a;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 基础生态风格 */
body {
    background-color: var(--parchment);
    color: var(--ink);
    font-family: 'Noto Serif SC', 'SimSun', serif;
    line-height: 1.8;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M20,20 Q30,10 40,20 T60,20 T80,20" stroke="%234a6b4a" fill="none" opacity="0.05" stroke-width="0.5"/></svg>');
}

a {
    color: var(--moss-primary);
    text-decoration: underline dotted;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--moss-accent);
    text-decoration: underline solid;
}

/* 沉浸式全宽布局 */
.immersive-container {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

/* 生态风格头部 */
.forest-header {
    background: linear-gradient(to bottom, var(--moss-dark), var(--moss-primary));
    color: var(--parchment);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.forest-header::before {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    height: 40px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23f5f0e5"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23f5f0e5"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%23f5f0e5"/></svg>');
    background-size: cover;
    z-index: 10;
}

.site-title {
    font-size: 2.8rem;
    text-align: center;
    margin: 0;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.site-subtitle {
    text-align: center;
    font-size: 1.2rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

/* 生态导航 */
.eco-nav {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.eco-nav a {
    margin: 0 1rem;
    padding: 0.5rem 1rem;
    color: var(--parchment);
    text-decoration: none;
    border-radius: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(245, 240, 229, 0.3);
}

.eco-nav a:hover {
    background-color: rgba(245, 240, 229, 0.2);
    transform: translateY(-2px);
}

/* 故事化内容区域 */
.story-container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.story-section {
    margin-bottom: 4rem;
    position: relative;
}

.story-section::after {
    content: "";
    display: block;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--moss-light), transparent);
    margin-top: 3rem;
}

.section-heading {
    font-size: 1.8rem;
    color: var(--moss-primary);
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--moss-light);
    display: inline-block;
}

/* 文章卡片 - 仿古籍样式 */
.story-card {
    background: white;
    border-radius: 2px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.story-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--moss-primary), var(--moss-accent));
}

.story-card:hover {
    transform: translateY(-5px);
}

.card-title {
    font-size: 1.5rem;
    color: var(--moss-dark);
    margin-bottom: 1rem;
}

.card-excerpt {
    color: var(--ink);
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.card-meta {
    display: flex;
    color: var(--moss-light);
    font-size: 0.9rem;
}

.card-meta span {
    margin-right: 1.5rem;
}

/* 详情页特殊样式 */
.story-article {
    background: white;
    padding: 3rem;
    box-shadow: var(--shadow);
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-title {
    font-size: 2.2rem;
    color: var(--moss-dark);
    margin-bottom: 1rem;
}

.article-meta {
    color: var(--moss-light);
    margin-bottom: 2rem;
}

.article-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin: 2rem 0;
    border-radius: 2px;
}

.article-content {
    line-height: 1.9;
}

.article-content p {
    margin-bottom: 1.5rem;
    text-indent: 2em;
}

/* 增强版友情链接 */
.forest-links {
    background-color: var(--moss-dark);
    color: var(--parchment);
    padding: 3rem 2rem;
    margin: 4rem 0;
}

.links-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.link-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.link-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.link-card a {
    color: var(--parchment);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.link-card img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

/* 生态页脚 */
.forest-footer {
    background-color: var(--moss-dark);
    color: var(--parchment);
    text-align: center;
    padding: 2rem 0;
    position: relative;
}

.forest-footer::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%232a3b2a"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%232a3b2a"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" fill="%232a3b2a"/></svg>');
    background-size: cover;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }
    
    .eco-nav a {
        margin: 0.5rem;
    }
    
    .story-container {
        padding: 0 1rem;
    }
    
    .article-image {
        height: 250px;
    }
    
    .links-container {
        grid-template-columns: 1fr;
    }
}