:root {
    --deep-red: #8B0000;
    --crimson: #DC143C;
    --paper: #f7f4ed;
    --light-paper: #faf8f2;
    --ink: #333333;
    --ink-light: #5c5c5c;
    --gold: #D4AF37;
    --highlight: #fce2c5;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Serif SC', serif;
    line-height: 1.8;
    color: var(--ink);
    background-color: var(--paper);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23f7f4ed"/><path d="M0,0 Q100,20 100,100 L0,100 Z" fill="%23f0e8d8" opacity="0.1"/></svg>');
    background-size: cover;
    padding: 0 0 4rem;
}

/* 导航栏样式 */
.nav-container {
    position: sticky;
    top: 0;
    background: var(--light-paper);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.8rem;
    color: var(--crimson);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--ink);
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0.2rem;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--crimson);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--crimson);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-active {
    color: var(--crimson);
    font-weight: 600;
}

.nav-active::after {
    width: 100%;
}

/* 通用容器样式 */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 文章项通用样式 */
.post-item {
    background: var(--light-paper);
    padding: 2.2rem;
    margin-bottom: 3rem;
    border-radius: 4px;
    box-shadow: 0 5px 15px -5px var(--shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -10px var(--shadow);
}

.post-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 4px;
    background: var(--crimson);
    opacity: 0.8;
}

.post-category {
    display: inline-block;
    background: var(--deep-red);
    color: white;
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.post-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--ink);
    position: relative;
    padding-bottom: 0.5rem;
}

.post-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--gold);
}

.post-meta {
    display: flex;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--ink-light);
}

.post-date {
    margin-right: 1.5rem;
}

.post-excerpt {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ink-light);
    margin-bottom: 1.5rem;
}

.post-link {
    display: inline-block;
    text-decoration: none;
    color: var(--crimson);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--crimson);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.post-link:hover {
    background: var(--crimson);
    color: white;
    transform: translateY(-2px);
}

/* 免责声明通用样式 */
.disclaimer-box {
    background: #fff9ee;
    border: 1px solid var(--gold);
    border-radius: 4px;
    padding: 1.5rem;
    margin: 3rem 0;
    font-size: 0.9rem;
    color: var(--ink-light);
    position: relative;
}

.disclaimer-box::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 30px;
    width: 50px;
    height: 2px;
    background: var(--paper);
}

.disclaimer-title {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: var(--deep-red);
    font-weight: 500;
}

.disclaimer-title svg {
    margin-right: 0.5rem;
}

/* 返回链接样式 */
.back-to-list {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--crimson);
    margin-top: 2rem;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.back-to-list svg {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.back-to-list:hover {
    transform: translateX(-5px);
}

.back-to-list:hover svg {
    transform: translateX(-3px);
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 3rem 2rem 1rem;
    color: var(--ink-light);
    font-size: 0.9rem;
}

.footer-nav {
    margin-bottom: 1.5rem;
}

.footer-menu {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-item {
    margin: 0.5rem 1rem;
}

.footer-link {
    text-decoration: none;
    color: var(--ink-light);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--crimson);
}

.footer-divider {
    margin: 1.5rem auto;
    width: 200px;
    height: 1px;
    background: #e0d6c5;
}

.copyright {
    margin-top: 1.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }
    
    .nav-logo {
        margin-bottom: 1rem;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: space-around;
    }
    
    .nav-item {
        margin: 0;
    }
    
    .post-item {
        padding: 1.5rem;
    }
    
    .post-title {
        font-size: 1.5rem;
    }
}