/* 内容布局 */
.content-wrapper {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

/* 侧边栏样式 */
.sidebar {
    width: 200px;
    flex-shrink: 0;
}

.section-nav {
    position: sticky;
    top: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.section-nav ul {
    padding: 10px 0;
}

.section-nav li {
    padding: 0 15px;
}

.section-nav a {
    display: block;
    padding: 12px 15px;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s;
}

.section-nav a:hover,
.section-nav a.active {
    background-color: #c41230;
    color: #fff;
}

/* 主要内容区样式 */
.content {
    flex: 1;
    min-width: 0; /* 防止flex子项溢出 */
}

.content-section {
    margin-bottom: 50px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c41230;
}

.section-content img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.section-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* 时间线样式 */
.timeline {
    margin-top: 30px;
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #c41230;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #c41230;
    border: 3px solid #fff;
}

.timeline-item .time {
    font-size: 14px;
    color: #c41230;
    margin-bottom: 5px;
    display: block;
}

.timeline-item h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.timeline-item p {
    color: #666;
    margin-bottom: 0;
}

/* 文化交流网格 */
.exchange-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.exchange-item {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.exchange-item h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.exchange-item p {
    color: #666;
    margin-bottom: 0;
}

/* 现代传承特性 */
.inheritance-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.feature h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.feature p {
    color: #666;
    margin-bottom: 0;
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .exchange-grid,
    .inheritance-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .section-nav {
        position: static;
    }

    .section-nav ul {
        display: flex;
        overflow-x: auto;
        padding: 10px;
        white-space: nowrap;
    }

    .section-nav li {
        padding: 0 5px;
    }

    .exchange-grid,
    .inheritance-features {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 20px;
    }

    .section-content img {
        height: 200px;
    }
}

/* 动画效果 */
.content-section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
} 