/* common.css - 通用样式部分 */
/* ===== 基础样式 ===== */
body {
    font-family: 'Noto Sans SC', 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #faf9f7;
    color: #555;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    
    /* 纸张纹理效果 */
    background-image: 
        linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.8)),
        linear-gradient(90deg, transparent 79px, #abced4 79px, #abced4 81px, transparent 81px),
        linear-gradient(#eee 0.1em, transparent 0.1em);
    background-size: 100% 100%, 100% 100%, 100% 1.2em;
    background-position: 0 0, 0 0, 0 1.2em;
}

/* ===== 头部样式 ===== */
header {
    background: linear-gradient(to right, #5d452d, #8a6a48); /* 调整为更亮的暖色调 */
    color: #fff;
    padding: 15px; /* 减小顶部内边距 */
    text-align: center;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px; /* 减小底部外边距 */
}

.logo {
    width: 180px; /* 稍微减小logo尺寸 */
    height: auto;
    border-radius: 50%;
    border: 3px solid #d4a017;
    box-shadow: 0 0 15px rgba(212, 160, 23, 0.5);
}

.site-title {
    font-size: 2.3rem; /* 稍微减小标题尺寸 */
    color: #f8f3ec;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 3px;
    margin-bottom: 8px; /* 减小底部外边距 */
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(90deg, #d4945a, #a66d3a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-subtitle {
    color: #d4a017;
    font-size: 1.1rem; /* 稍微减小副标题尺寸 */
    font-style: italic;
}

/* ===== 导航样式 ===== */
nav {
    background-color: #6d553d; /* 调整为更亮的棕色 */
    padding: 10px 0; /* 减小垂直内边距 */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-link {
    color: #f8f3ec;
    text-decoration: none;
    padding: 8px 18px; /* 减小内边距 */
    margin: 0 4px; /* 减小外边距 */
    border-radius: 30px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 500;
}

.nav-link:hover {
    background-color: #d4a017;
    color: #1a0d03;
}

.nav-link.active {
    background-color: #a66d3a;
    color: #f8f3ec;
    font-weight: bold;
}

/* ===== 主容器样式 ===== */
.container {
    max-width: 1200px;
    margin: 1.5em auto; /* 减小外边距 */
    padding: 1.5em;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    border-left: 4px solid #4a87b8;
    flex: 1;
}

/* ===== 标题样式 ===== */
h1, h2 {
    color: #3a5168;
    margin-top: 0;
}

h2 {
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.5em;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: #a66d3a;
    border-radius: 2px;
}

/* ===== 段落样式 ===== */
p {
    margin-bottom: 1.5em;
    color: #666;
    text-align: justify;
    font-size: 1.1rem;
}

/* ===== 页脚样式 ===== */
footer {
    background: linear-gradient(to right, #6d553d, #8a6a48); /* 调整为更亮的棕色 */
    color: #f8f3ec;
    padding: 25px 20px; /* 减小垂直内边距 */
    text-align: center;
    margin-top: auto;
}

footer p {
    margin: 8px 0; /* 减小外边距 */
    font-size: 0.95rem;
    text-align: center;
}

.footer-link {
    color: #d4a017;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

/* ===== 通用组件样式 ===== */
.section {
    margin: 1.8em 0; /* 减小外边距 */
    padding-bottom: 1.3em; /* 减小内边距 */
    border-bottom: 1px dashed #e0e0e0;
}

.section:last-child {
    border-bottom: none;
}

.image-container {
    text-align: center;
    margin: 1.8em 0; /* 减小外边距 */
}

.image-container img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.image-caption {
    margin-top: 0.8em;
    font-size: 0.9em;
    color: #777;
    font-style: italic;
}

a {
    color: #4a87b8;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #3a5168;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    body {
        padding-bottom: 0;
    }
    
    header {
        padding: 12px 0; /* 减小内边距 */
    }
    
    .site-title {
        font-size: 1.9rem; /* 减小标题尺寸 */
    }
    
    .nav-container {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-link {
        margin: 4px 0; /* 减小外边距 */
        width: 80%;
        text-align: center;
        padding: 7px 15px; /* 减小内边距 */
    }
    
    .container {
        margin: 1em auto;
        padding: 1.2em;
        max-width: 95%;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    footer {
        padding: 18px 10px; /* 减小内边距 */
    }
}

@media (max-width: 480px) {
    .logo {
        width: 140px; /* 减小logo尺寸 */
    }
    
    .site-title {
        font-size: 1.7rem; /* 减小标题尺寸 */
    }
    
    .nav-link {
        padding: 6px 12px; /* 减小内边距 */
        font-size: 1rem;
    }
    
    .container {
        margin: 0.5em;
        padding: 1em;
    }/* common.css - 优化后的通用样式 */
/* ===== 基础样式 ===== */
body {
    font-family: 'Noto Sans SC', 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #fefcf9;
    color: #555;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    
    /* 更柔和的纸张纹理效果 */
    background-image: 
        linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)),
        linear-gradient(90deg, transparent 89px, rgba(210, 230, 240, 0.3) 89px, rgba(210, 230, 240, 0.3) 91px, transparent 91px),
        linear-gradient(#f5f5f5 0.1em, transparent 0.1em);
    background-size: 100% 100%, 100% 100%, 100% 1.5em;
    background-position: 0 0, 0 0, 0 1.5em;
}

/* ===== 头部样式 ===== */
header {
    background: linear-gradient(135deg, #8c6d50, #b58e6b);
    color: #fff;
    padding: 12px;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}

.logo {
    width: 160px;
    height: auto;
    border-radius: 50%;
    border: 3px solid #f0c674;
    box-shadow: 0 0 12px rgba(240, 198, 116, 0.4);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.site-title {
    font-size: 2.2rem;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
    margin-bottom: 6px;
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 500;
}

.site-subtitle {
    color: #f0c674;
    font-size: 1rem;
    font-style: italic;
    letter-spacing: 1px;
}

/* ===== 导航样式 ===== */
nav {
    background-color: #a78b73;
    padding: 8px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    margin: 0 6px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    background-color: #f0c674;
    color: #5d452d;
    transform: translateY(-2px);
}

.nav-link.active {
    background-color: #8c6d50;
    color: #fff;
    font-weight: 600;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.1);
}

/* ===== 主容器样式 ===== */
.container {
    max-width: 1200px;
    margin: 1.2em auto;
    padding: 1.8em;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    border-top: 4px solid #8c6d50;
    flex: 1;
}

/* ===== 标题样式 ===== */
h1, h2, h3 {
    color: #5d452d;
    margin-top: 0;
    font-weight: 500;
}

h2 {
    font-size: 1.8rem;
    border-bottom: none;
    padding-bottom: 0.8em;
    text-align: center;
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #f0c674;
    border-radius: 3px;
}

/* ===== 段落样式 ===== */
p {
    margin-bottom: 1.5em;
    color: #666;
    text-align: justify;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ===== 页脚样式 ===== */
footer {
    background: linear-gradient(135deg, #8c6d50, #a78b73);
    color: #fff;
    padding: 20px;
    text-align: center;
    margin-top: auto;
    font-size: 0.9rem;
}

footer p {
    margin: 8px 0;
    color: rgba(255,255,255,0.9);
}

.footer-link {
    color: #f0c674;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* ===== 通用组件样式 ===== */
.section {
    margin: 1.5em 0;
    padding-bottom: 1.2em;
    border-bottom: 1px dashed #e8e8e8;
}

.section:last-child {
    border-bottom: none;
}

.image-container {
    text-align: center;
    margin: 1.5em 0;
}

.image-container img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-container img:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.image-caption {
    margin-top: 0.8em;
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
}

a {
    color: #8c6d50;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

a:hover {
    color: #5d452d;
    text-decoration: underline;
}

/* ===== 按钮样式 ===== */
.btn {
    display: inline-block;
    background: #8c6d50;
    color: white;
    padding: 0.7em 1.4em;
    border-radius: 25px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn:hover {
    background: #5d452d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-decoration: none;
}

/* ===== 卡片样式 ===== */
.card {
    background: white;
    border-radius: 8px;
    padding: 1.5em;
    margin-bottom: 1.5em;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    body {
        background-size: 100% 100%, 100% 100%, 100% 1.2em;
    }
    
    header {
        padding: 10px 0;
    }
    
    .logo {
        width: 140px;
    }
    
    .site-title {
        font-size: 1.8rem;
    }
    
    .nav-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        margin: 4px;
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .container {
        margin: 1em;
        padding: 1.2em;
        border-radius: 8px;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h2:after {
        width: 60px;
    }
    
    footer {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 120px;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .site-subtitle {
        font-size: 0.9rem;
    }
    
    .nav-link {
        padding: 5px 10px;
        font-size: 0.85rem;
        margin: 3px;
    }
    
    .container {
        margin: 0.8em;
        padding: 1em;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    p {
        font-size: 1rem;
    }
}
    
    h2:after {
        width: 60px;
    }
}