* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}
body {
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* 头部样式 */
header {
    background-color: #c8102e;
    color: white;
    padding: 15px 0;
}
.header-content {
    display: flex;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}
.logo img {
    height: 60px;
}
.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}
.logo p {
    font-size: 0.9rem;
    opacity: 0.9;
}
/* 导航栏样式 */
nav {
    background-color: #a80c24;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.nav-list {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}
.nav-list li {
    position: relative;
}
.nav-list a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: background-color 0.3s;
}
.nav-list a:hover {
    background-color: #8b0a1e;
}
/* 卡片样式 */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
.card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}
.card h3 {
    padding: 15px 20px 5px;
    color: #333;
    font-size: 1.2rem;
}
.card p {
    padding: 0 20px 15px;
    color: #666;
}
/* 按钮样式 */
.btn {
    display: inline-block;
    background-color: #c8102e;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    margin: 0 20px 20px;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    float: right;
}
.btn:hover {
    background-color: #a80c24;
}
/* 轮播图样式 */
.slideshow {
    position: relative;
    height: 600px;
    margin-bottom: 40px;
    margin-top: 30px;
    overflow: hidden;
    border-radius: 8px;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}
.slide.active {
    opacity: 1;
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 轮播图圆点样式 */
.dots-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10; 
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}
.dot.active {
    background-color: white;
    transform: scale(1.2);
}
/* 党史学习时间线样式 */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    padding-left: 20px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: #c8102e;
    border-radius: 2px;
}
.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
}
.timeline-date {
    font-weight: bold;
    color: #c8102e;
    font-size: 1.1rem;
    margin-bottom: 10px;
    position: relative;
}
.timeline-date::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: white;
    border: 3px solid #c8102e;
}
.timeline-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.timeline-content h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.3rem;
}
/* 问答部分样式 */
.quiz {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 40px;
}
.quiz-type {
    color: #c8102e;
    font-size: 1.3rem;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}
.quiz-question {
    font-weight: 600;
    margin: 20px 0 15px;
    color: #333;
    font-size: 1.1rem;
}
.quiz-options {
    margin-left: 20px;
    margin-bottom: 20px;
}
.quiz-options label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}
.quiz-options label:hover {
    background-color: #f8f9fa;
}
.quiz-options input {
    margin-right: 10px;
}
#result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    font-weight: 600;
}
.correct {
    background-color: #d4edda;
    color: #155724;
}
.incorrect {
    background-color: #f8d7da;
    color: #721c24;
}
.answer-explanation {
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 0.95rem;
}
/* 主内容区样式 */
main {
    padding: 40px 0;
}
.page-title {
    color: #c8102e;
    margin-bottom: 30px;
    font-size: 2rem;
    text-align: center;
}
.section-title {
    color: #c8102e;
    margin: 40px 0 15px;
    font-size: 1.5rem;
    position: relative;
    padding-left: 10px;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: #c8102e;
}
/* 详情页样式 */
.detail-title {
    color: #000; 
    margin-bottom: 20px;
    font-size: 2rem;
    text-align: center; 
}
.detail-meta {
    text-align: right; 
    margin-bottom: 30px;
    color: #666;
}
.detail-meta i {
    margin-right: 5px; 
}
.detail-body {
    line-height: 1.8;
    font-size: 1.05rem;
}
.detail-body img {
    width: 900px;
    height: 600px;
    margin: 20px auto; 
    border-radius: 8px;
    display: block; 
}
.detail-body h3 {
    color: #c8102e;
    margin: 30px 0 15px;
    font-size: 1.4rem;
}
/* 联系方式页面样式 */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 30px 0 60px;
}
.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}
.contact-info {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.contact-info h3, .contact-form h3 {
    color: #c8102e;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    font-size: 1.4rem;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}
.contact-item i {
    color: #c8102e;
    font-size: 1.3rem;
    margin-top: 3px;
}
.contact-item p {
    margin: 0;
    color: #333;
}
.contact-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}
.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}
.form-group textarea {
    min-height: 150px;
    resize: vertical;
}
.follow-us {
    text-align: center;
    margin: 60px 0;
}
.follow-us h2 {
    color: #c8102e;
    margin-bottom: 30px;
}
.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}
/* 联系方式二维码 */
.qrcode-group {
    text-align: center; 
    margin: 40px 0;
}
.qrcode-item {
    display: inline-block;
}
.qrcode-box {
    margin: 0 auto;
    width: 200px; 
}
.qrcode-box img {
    width: 100%; 
    height: auto;
    border-radius: 8px; 
}
.qrcode-text {
    text-align: center; 
    margin-top: 10px; 
    color: #333;
    font-size: 1rem;
}
/* 关于我们页面样式 */
.about-section {
    background-color: white;
    padding: 30px;
    margin-bottom: 20px; 
    border-radius: 8px; 
}
.about-section h3 {
    color: #c8102e;
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}
.about-img {
    width: 1150px; /* 限制最大宽度 */
    height: 500px; /* 自动维持宽高比例 */
    object-fit: cover;
}
.mission-list, .join-list {
    list-style: none;
    padding-left: 0;
}
.mission-list li {
    position: relative;
    padding: 12px 15px 12px 40px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}
.mission-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #c8102e;
}
.mission-icon::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}
.join-list li {
    margin-bottom: 15px;
    padding-left: 5px;
}
.join-benefits {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 20px;
    margin-top: 20px;
}
.join-benefits h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1rem;
}
.join-benefits ul {
    padding-left: 20px;
}
.join-benefits li {
    margin-bottom: 8px;
}
.join-btn {
    margin-top: 20px;
}
/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}
.footer-section {
    flex: 1;
    min-width: 200px;
}
.footer-section h3 {
    color: #f8f9fa;
    margin-bottom: 20px;
    font-size: 1.2rem;
    padding-bottom: 10px;
    border-bottom: 2px solid #c8102e;
}
.footer-section ul {
    list-style: none;
}
.footer-section li {
    margin-bottom: 10px;
}
.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s;
}
.footer-section a:hover {
    color: #ffd700; 
    text-decoration: underline; 
    text-decoration-color: #ffff00; 
}
.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}
/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .logo {
        flex-direction: column;
        margin-bottom: 15px;
    }
    .nav-list {
        justify-content: center;
    }
    .nav-list a {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    .slideshow {
        height: 250px;
    }
    .page-title {
        font-size: 1.6rem;
    }
    .section-title {
        font-size: 1.3rem;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-section {
        margin-bottom: 20px;
    }
    .contact-container {
        flex-direction: column;
    }
    .about-section {
        padding: 20px;
    }
    .about-img {
        max-width: 100%;
    }
}
