/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, #8B0000, #B22222);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255,255,255,0.2);
}

/* 轮播图 */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    max-width: 500px;
}

.carousel-caption h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.carousel-controls {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
}

.carousel-controls button {
    background: rgba(255,255,255,0.3);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-controls button:hover {
    background: rgba(255,255,255,0.5);
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #8B0000, #B22222);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 0, 0, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 10px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background: #545b62;
    color: white;
}

/* 介绍区域 */
.intro-section {
    padding: 4rem 0;
    text-align: center;
    background: white;
}

.intro-section h2 {
    color: #8B0000;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.intro-section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: #666;
    line-height: 1.8;
}

/* 特色内容 */
.features-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #8B0000;
    margin-bottom: 1rem;
}

.feature-link {
    color: #8B0000;
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    display: inline-block;
}

/* 故事区域 */
.stories-section {
    padding: 4rem 0;
    background: white;
}

.stories-section h2 {
    text-align: center;
    color: #8B0000;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.story-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.story-content {
    padding: 1.5rem;
}

.story-content h3 {
    color: #8B0000;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.story-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.story-summary {
    color: #555;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.read-more {
    color: #8B0000;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.read-more:hover {
    color: #B22222;
}

.section-footer {
    text-align: center;
}

/* 关于我们页面 */
.page-header {
    background: linear-gradient(135deg, #8B0000, #B22222);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.about-content h2 {
    color: #8B0000;
    margin: 2rem 0 1rem 0;
    border-left: 4px solid #8B0000;
    padding-left: 1rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.team-member {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.member-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #8B0000, #B22222);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.team-member h3 {
    color: #8B0000;
    margin-bottom: 0.5rem;
}

.role {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tech-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.tech-item h4 {
    color: #8B0000;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.tech-item ul {
    list-style: none;
}

.tech-item li {
    padding: 0.3rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.tech-item li:last-child {
    border-bottom: none;
}

/* 页脚 */
.site-footer {
    background: #343a40;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #495057;
    color: #ccc;
}

/* 红色人物页面样式 */
.heroes-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.heroes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.hero-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.hero-card:hover {
    transform: translateY(-5px);
}

.hero-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.hero-content {
    padding: 1.5rem;
}

.hero-content h3 {
    color: #8B0000;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.hero-title {
    color: #666;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.hero-dates {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.hero-achievements h4 {
    color: #333;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.hero-achievements ul {
    list-style: none;
    margin-bottom: 1rem;
}

.hero-achievements li {
    padding: 0.3rem 0;
    border-bottom: 1px solid #f8f9fa;
    position: relative;
    padding-left: 1rem;
}

.hero-achievements li:before {
    content: "•";
    color: #8B0000;
    position: absolute;
    left: 0;
}

.hero-quote {
    background: #f8f9fa;
    padding: 1rem;
    border-left: 4px solid #8B0000;
    border-radius: 0 5px 5px 0;
}

.hero-quote p {
    font-style: italic;
    color: #666;
    margin: 0;
}

/* 故事页面筛选器 */
.stories-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #e9ecef;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: #8B0000;
    color: white;
    border-color: #8B0000;
}

.story-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.category {
    background: #8B0000;
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.date {
    color: #666;
    font-size: 0.9rem;
}

.story-detail {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.story-detail h4 {
    color: #8B0000;
    margin: 1.5rem 0 0.5rem 0;
}

.story-detail h4:first-child {
    margin-top: 0;
}

.read-more-btn {
    background: none;
    border: 2px solid #8B0000;
    color: #8B0000;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    margin-top: 1rem;
}

.read-more-btn:hover {
    background: #8B0000;
    color: white;
}

/* 图库页面样式 */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: white;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 1rem;
}

.gallery-caption h4 {
    color: #8B0000;
    margin-bottom: 0.5rem;
}

.gallery-caption p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* 图库模态框 */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    margin: 5% auto;
    max-width: 800px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.modal-caption {
    padding: 1.5rem;
}

.modal-caption h3 {
    color: #8B0000;
    margin-bottom: 0.5rem;
}

/* 联系页面样式 */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.info-card h3 {
    color: #8B0000;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.info-card p {
    margin-bottom: 0.5rem;
}

.team-contact h3 {
    color: #8B0000;
    margin-bottom: 1rem;
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.team-member-contact {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.team-member-contact h4 {
    color: #8B0000;
    margin-bottom: 0.5rem;
}

.contact-form-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form-container h2 {
    color: #8B0000;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B0000;
    box-shadow: 0 0 0 2px rgba(139, 0, 0, 0.1);
}

.form-success {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 2rem;
}

.success-icon {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 1rem;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .features-grid,
    .stories-grid,
    .team-grid,
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        height: 400px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .heroes-grid {
        grid-template-columns: 1fr;
    }
    
    .stories-filter,
    .gallery-filters {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}