/* 页面主要内容样式 */
.history-main {
    max-width: 1200px;
    margin: calc(var(--header-height) + var(--nav-height) + 30px) auto 50px;
    padding: 0 15px;
}

/* 页面标题样式 */
.page-title {
    text-align: center;
    margin-bottom: 40px;
}

.page-title h2 {
    color: var(--primary-color);
    font-size: 36px;
    margin-bottom: 10px;
}

.page-title p {
    color: #666;
    font-size: 18px;
}

/* 时间轴导航样式 */
.timeline {
    margin-bottom: 60px;
}

.timeline-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.timeline-nav button {
    padding: 10px 20px;
    border: none;
    background: none;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.timeline-nav button::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.timeline-nav button.active {
    color: var(--primary-color);
}

.timeline-nav button.active::after {
    transform: scaleX(1);
}

/* 时间轴内容样式 */
.timeline-content {
    position: relative;
}

.era-content {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    opacity: 0;
    transition: opacity 0.5s;
}

.era-content.active {
    display: grid;
    opacity: 1;
}

.era-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.era-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s;
}

.era-image:hover img {
    transform: scale(1.05);
}

.era-info {
    padding: 20px;
}

.era-info h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 10px;
}

.era-years {
    color: var(--secondary-color);
    font-size: 18px;
    margin-bottom: 20px;
}

.era-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.cultural-elements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.element {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.element h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* 文化专题样式 */
.culture-topics {
    margin-bottom: 60px;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.topic-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.topic-item:hover {
    transform: translateY(-5px);
}

.topic-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.topic-content {
    padding: 20px;
}

.topic-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.topic-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* 文物展示样式 */
.artifacts {
    margin-bottom: 60px;
}

.artifact-slider {
    position: relative;
    overflow: hidden;
    padding: 0 40px;
}

.artifact-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 30px;
}

.artifact-item {
    flex: 0 0 300px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.artifact-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.artifact-info {
    padding: 15px;
}

.artifact-info h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

.slider-prev:hover,
.slider-next:hover {
    background-color: var(--secondary-color);
}

/* 互动学习样式 */
.interactive {
    margin-bottom: 60px;
}

.interactive-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.quiz-section,
.virtual-tour {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.quiz-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.submit-answer {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-answer:hover {
    background-color: var(--secondary-color);
}

.tour-preview {
    position: relative;
}

.tour-preview img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.start-tour {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.start-tour:hover {
    background-color: var(--secondary-color);
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .timeline-nav {
        flex-wrap: wrap;
    }

    .era-content {
        grid-template-columns: 1fr;
    }

    .topic-grid {
        grid-template-columns: 1fr;
    }

    .interactive-content {
        grid-template-columns: 1fr;
    }

    .cultural-elements {
        grid-template-columns: 1fr;
    }
} 