/* 沉浸式叙事风格 - 杏色主题 */
:root {
    --apricot-light: #FFD8BE;
    --apricot-primary: #FFB38A;
    --apricot-dark: #E0966B;
    --apricot-darker: #A56B4A;
    --text-dark: #3A2E26;
    --text-light: #5C4A3A;
    --shadow-soft: 0 4px 12px rgba(165, 107, 74, 0.15);
    --shadow-hard: 0 6px 16px rgba(165, 107, 74, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Serif SC', 'Source Han Serif', serif;
}

body {
    background-color: var(--apricot-light);
    color: var(--text-dark);
    line-height: 1.8;
    letter-spacing: 0.02em;
    background-image: linear-gradient(to bottom, 
        rgba(255, 216, 190, 0.9), 
        rgba(255, 216, 190, 0.7)),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path fill="%23E0966B" fill-opacity="0.05" d="M30,10L50,30L70,10L90,30L70,50L90,70L70,90L50,70L30,90L10,70L30,50L10,30L30,10Z"/></svg>');
}

a {
    text-decoration: none;
    color: var(--apricot-darker);
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    border-bottom: 1px dotted transparent;
}

a:hover {
    color: var(--text-dark);
    border-bottom-color: var(--apricot-dark);
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 叙事风格头部 */
header {
    background-color: rgba(255, 179, 138, 0.85);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    font-style: italic;
    letter-spacing: 0.1em;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav ul li a {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 500;
    color: white;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-bottom: none;
}

/* 故事卡片 */
.story-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 0.5rem;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--apricot-primary);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hard);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--apricot-darker);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--apricot-primary), transparent);
}

/* 文章网格 */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.story-item {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
}

.story-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(165, 107, 74, 0.2);
}

.story-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid rgba(224, 150, 107, 0.2);
}

.story-content {
    padding: 1.5rem;
}

.story-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 1rem;
    border-top: 1px dashed rgba(224, 150, 107, 0.3);
    padding-top: 0.8rem;
}

/* 分类标签 */
.category-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: var(--apricot-primary);
    color: white;
    border-radius: 1rem;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* 文章详情 */
.article-header {
    text-align: center;
    margin-bottom: 3rem;
}

.article-title {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--apricot-darker);
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-hard);
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.9;
}

.article-content p {
    margin-bottom: 1.5rem;
    text-indent: 2em;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.3rem;
    margin: 2rem auto;
    display: block;
    box-shadow: var(--shadow-soft);
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.pagination a {
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    background-color: white;
    box-shadow: var(--shadow-soft);
    font-weight: 500;
}

.pagination a:hover {
    background-color: var(--apricot-primary);
    color: white;
    box-shadow: var(--shadow-hard);
}

/* 友情链接 */
.friend-links {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 0.5rem;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-soft);
}

.friend-links h3 {
    margin-bottom: 1.5rem;
    color: var(--apricot-darker);
    font-size: 1.5rem;
}

.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.friend-links-container a {
    padding: 0.5rem 1.2rem;
    background-color: rgba(255, 179, 138, 0.2);
    border-radius: 2rem;
    border: 1px solid var(--apricot-primary);
}

.friend-links-container a:hover {
    background-color: var(--apricot-primary);
    color: white;
}

/* 页脚 */
footer {
    background-color: var(--apricot-darker);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
    font-size: 0.9rem;
}

.copyright {
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .story-grid {
        grid-template-columns: 1fr;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-content p {
        text-indent: 1em;
    }
}