/* 红色主题基础样式 */
:root {
    --primary-red: #c62828;
    --dark-red: #8e0000;
    --light-red: #ffccbc;
    --accent-red: #f44336;
    --text-dark: #333;
    --text-light: #fff;
    --background: #fff;
    --card-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background: linear-gradient(to right, var(--primary-red), var(--dark-red));
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

header h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

nav li {
    margin: 0 15px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

nav a:hover {
    background-color: rgba(255,255,255,0.2);
    color: var(--light-red);
}

/* 主要内容区域 */
main {
    min-height: calc(100vh - 180px);
}

/* 英雄区域 */
.hero {
    background: linear-gradient(rgba(198, 40, 40, 0.8), rgba(142, 0, 0, 0.8)), url('../images/background.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 人物介绍部分 */
.figures-section {
    padding: 3rem 0;
    background-color: #fafafa;
}

.figures-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--dark-red);
}

.figure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.figure-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.figure-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.figure-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.figure-card h3 {
    padding: 1rem;
    background-color: var(--primary-red);
    color: white;
    text-align: center;
    font-size: 1.3rem;
}

.figure-card p {
    padding: 1rem;
    text-align: center;
    color: var(--text-dark);
}

.btn {
    display: block;
    width: fit-content;
    margin: 1rem auto;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-red);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--dark-red);
}

/* 资源部分 */
.resources-section {
    padding: 3rem 0;
    background-color: white;
}

.resource-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.resource-item {
    background: white;
    border: 2px solid var(--light-red);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.resource-item h3 {
    color: var(--dark-red);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.resource-item p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* 底部 */
footer {
    background-color: var(--dark-red);
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}

/* 内容页面样式 */
.content-page {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.content-page h2 {
    color: var(--dark-red);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
}

.content-page h3 {
    color: var(--primary-red);
    margin: 1.2rem 0 0.8rem 0;
    font-size: 1.4rem;
}

.content-page p {
    margin-bottom: 1rem;
    text-align: justify;
    line-height: 1.8;
}

.content-page ul, .content-page ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-page li {
    margin-bottom: 0.5rem;
}

blockquote {
    border-left: 4px solid var(--primary-red);
    padding: 0.5rem 1rem;
    margin: 1rem 0;
    background-color: var(--light-red);
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 5px 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .figure-grid {
        grid-template-columns: 1fr;
    }
    
    .resource-list {
        grid-template-columns: 1fr;
    }
}