/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "SimSun", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* 头部样式 */
header {
    background-color: #c41e3a;
    color: white;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo img {
    max-width: 100px;
    margin-bottom: 10px;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

header h2 {
    font-size: 1.5em;
    font-weight: normal;
}

/* 导航样式 */
nav {
    background-color: #8b0000;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
}

nav li {
    margin: 0 20px;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #a52a2a;
}

/* 主要内容区域样式 */
main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.page-title {
    text-align: center;
    margin-bottom: 30px;
    color: #c41e3a;
    font-size: 2em;
}

/* 首页样式 */
.index-header {
    position: relative;
    background: linear-gradient(rgba(196, 30, 58, 0.9), rgba(139, 0, 0, 0.9));
    padding: 60px 0;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

.index-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/hero-main.png');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
}

.index-header h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease-out;
}

.index-header h2 {
    font-size: 1.8em;
    font-weight: normal;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero {
    background-color: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.hero h2 {
    color: #c41e3a;
    font-size: 2em;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.hero h2::after {
    content: "";
    display: block;
    width: 60%;
    height: 3px;
    background: #c41e3a;
    position: absolute;
    bottom: -10px;
    left: 20%;
    border-radius: 2px;
}

.hero p {
    font-size: 1.2em;
    line-height: 1.8;
    color: #444;
    max-width: 800px;
    margin: 0 auto;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
    margin-top: 50px;
}

.feature {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #c41e3a;
    transform: scaleX(0);
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature:hover::before {
    transform: scaleX(1);
}

.feature h3 {
    color: #c41e3a;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.feature p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature a {
    display: inline-block;
    padding: 10px 25px;
    background: #c41e3a;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: background 0.3s, transform 0.3s;
}

.feature a:hover {
    background: #8b0000;
    transform: scale(1.05);
}

/* 动画关键帧 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .index-header h1 {
        font-size: 2em;
    }

    .index-header h2 {
        font-size: 1.4em;
    }

    .hero {
        padding: 20px;
    }

    .hero h2 {
        font-size: 1.6em;
    }

    .hero p {
        font-size: 1.1em;
    }

    .features {
        grid-template-columns: 1fr;
        padding: 10px;
    }
}

/* 生平事迹页样式 */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.timeline-content img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* 英雄事迹页样式 */
.hero-intro {
    display: flex;
    align-items: center;
    gap: 30px;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.hero-image {
    flex: 0 0 40%;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s;
}

.hero-image img:hover {
    transform: scale(1.02);
}

.hero-text {
    flex: 1;
}

.hero-text p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
}

.hero-deeds {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.deed-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.deed-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.deed-card h3 {
    color: #c41e3a;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.deed-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

.deed-card p {
    color: #666;
    line-height: 1.6;
}

.historical-context {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.historical-context h3 {
    color: #c41e3a;
    margin-bottom: 20px;
    font-size: 1.5em;
    text-align: center;
}

.context-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.context-content img {
    flex: 0 0 40%;
    border-radius: 5px;
}

.context-content p {
    flex: 1;
    line-height: 1.8;
    color: #333;
}

.influence {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.influence h3 {
    color: #c41e3a;
    margin-bottom: 20px;
    font-size: 1.5em;
    text-align: center;
}

.influence ul {
    list-style: none;
    padding: 0;
}

.influence li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
}

.influence li::before {
    content: "•";
    color: #c41e3a;
    font-size: 1.5em;
    position: absolute;
    left: 5px;
    top: -2px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-intro,
    .context-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-image,
    .context-content img {
        flex: 0 0 100%;
    }

    .deed-card {
        text-align: center;
    }
}

/* 精神传承页样式 */
.spirit-qualities {
    margin: 40px 0;
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.quality-item {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

/* 图片展示页样式 */
.gallery-filter {
    text-align: center;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 10px 20px;
    margin: 0 10px;
    border: none;
    background-color: #c41e3a;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filter-btn:hover {
    background-color: #8b0000;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.item-desc {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .item-desc {
    transform: translateY(0);
}

/* 留言寄语页样式 */
.message-form {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.submit-btn {
    background-color: #c41e3a;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #8b0000;
}

.message-wall {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
}

.message-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #666;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }

    nav li {
        margin: 0;
    }

    .features,
    .hero-deeds,
    .quality-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 2em;
    }

    header h2 {
        font-size: 1.2em;
    }
} 
} 