/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    background-color: #f5f5f5;
    color: #333;
}

/* 头部样式 */
header {
    background: linear-gradient(to bottom, #1a1a1a, #2b2b2b);
    color: #fff;
    padding: 2rem;
    text-align: center;
    border-bottom: 3px solid #8b0000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.logo {
    max-width: 150px;
    margin: 1rem auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

header h1 {
    font-size: 2.5em;
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

header h1::after {
    content: '';
    display: block;
    width: 50%;
    height: 2px;
    background: #d4af37;
    margin: 10px auto;
    transition: width 0.3s ease;
}

header h1:hover::after {
    width: 80%;
}

/* 导航栏样式 */
nav {
    background: linear-gradient(to bottom, #2b2b2b, #333);
    padding: 1rem;
    border-bottom: 2px solid #8b0000;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    font-size: 1.1em;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: width 0.3s ease;
}

nav a:hover {
    color: #d4af37;
}

nav a:hover::after {
    width: 100%;
}

/* 主要内容区域 */
.content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    min-height: calc(100vh - 300px);
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.content h2 {
    color: #8b0000;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    position: relative;
    padding-bottom: 1rem;
}

.content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #8b0000, #d4af37);
}

.content h3 {
    color: #333;
    margin: 1.5rem 0;
    font-size: 1.5em;
    position: relative;
    padding-left: 1rem;
}

.content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: #8b0000;
}

/* 文章样式 */
article {
    background: #fff;
    padding: 2rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

article:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* 图片基础样式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

/* 人物图片特殊样式 */
.hero-image {
    border: 3px solid #d4af37;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    filter: grayscale(20%);
    transition: all 0.4s ease;
}

.hero-image:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    border-color: #8b0000;
}

/* 图片容器样式 */
.image-container {
    position: relative;
    margin: 1.5rem 0;
    overflow: hidden;
}

.image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.1));
    pointer-events: none;
}

/* 图片标题样式 */
.image-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.9em;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.image-container:hover .image-title {
    transform: translateY(0);
}

/* 文章内图片样式 */
article img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

article img:hover {
    transform: scale(1.02);
}

/* 历史照片特效 */
.historical-photo {
    filter: sepia(30%);
    border: 4px solid #d4af37;
    padding: 3px;
    background: #fff;
}

.historical-photo:hover {
    filter: sepia(0%);
}

/* 纪念馆图片样式 */
.memorial-image {
    filter: brightness(95%);
    transition: all 0.4s ease;
}

.memorial-image:hover {
    filter: brightness(105%);
    transform: scale(1.03);
}

/* 响应式图片调整 */
@media (max-width: 768px) {
    .hero-image {
        max-width: 90%;
    }
    
    .image-title {
        font-size: 0.8em;
        padding: 0.8rem;
    }
}

/* 特色内容网格 */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* 引用样式 */
blockquote {
    background: #f9f9f9;
    border-left: 4px solid #d4af37;
    margin: 1.5rem 0;
    padding: 1rem 2rem;
    position: relative;
    font-style: italic;
}

blockquote::before {
    content: '"';
    font-size: 4em;
    color: #d4af37;
    position: absolute;
    left: 10px;
    top: -10px;
    opacity: 0.2;
}

/* 地址样式 */
.address {
    color: #666;
    font-style: italic;
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #ddd;
}

/* 页脚样式 */
footer {
    background: linear-gradient(to bottom, #2b2b2b, #1a1a1a);
    color: #fff;
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

footer p {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

footer p:hover {
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 0.5rem 0;
    }
    
    .content {
        padding: 0 1rem;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
} 