
/* 全局样式设置，包括字体、背景、颜色等 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用现代无衬线字体 */
    background-color: #F5F5DC; /* 主色调米色，营造复古氛围 */
    color: #4B3621; /* 深棕色字体，保证可读性 */
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 导航栏样式 */
.navbar {
    position: fixed; /* 固定在顶部 */
    top: 0;
    width: 100%;
    background-color: #4B3621; /* 深棕色背景 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* 轻微阴影效果 */
    z-index: 1000;
}

.navbar a {
    color: #F5F5DC; /* 米色字体 */
    text-decoration: none;
    margin: 0 15px;
    font-family: 'Bodoni', serif; /* 复古衬线字体 */
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #1E90FF; /* 悬停时变为科技蓝 */
}

/* 主内容区样式 */
.container {
    max-width: 1200px;
    margin: 100px auto 50px; /* 上方留出导航栏空间 */
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* 左侧内容区域 */
.left-panel {
    background-color: #F5F5DC; /* 米色背景 */
    padding: 20px;
    border: 2px solid #8B9467; /* 复古边框 */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* 阴影增强立体感 */
}

/* 右侧内容区域 */
.right-panel {
    background-color: #1E90FF; /* 科技蓝背景 */
    padding: 20px;
    border-radius: 10px;
    color: #fff; /* 白色字体 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 图像样式 */
img.decorative {
    max-width: 650px; /* 最大宽度限制 */
    width: 100%;
    border-radius: 15px; /* 圆角效果 */
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* 阴影增强立体感 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

img.decorative:hover {
    transform: scale(1.05); /* 悬停时放大 */
    box-shadow: 0 8px 20px rgba(0,0,0,0.3); /* 增强阴影 */
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-family: 'Bodoni', serif; /* 复古衬线字体 */
    color: #4B3621;
    margin-bottom: 20px;
    position: relative;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 20px;
}

/* 段落样式 */
p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #4B3621;
}

/* 按钮样式 */
.button {
    background: linear-gradient(45deg, #4B3621, #8B9467); /* 渐变背景 */
    border: none;
    color: #F5F5DC; /* 米色字体 */
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
    font-size: 16px;
}

.button:hover {
    transform: scale(1.05); /* 悬停时放大 */
    background: linear-gradient(45deg, #1E90FF, #C0C0C0); /* 渐变色变化 */
}

/* 卡片式模块样式 */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    background-color: #8B9467; /* 橄榄绿色背景 */
    flex: 1 1 calc(33% - 40px);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* 阴影 */
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.card:hover {
    transform: translateY(-10px); /* 悬停时上移 */
    background-color: #1E90FF; /* 变为科技蓝 */
    color: #fff;
}

/* 时间轴样式 */
.timeline {
    list-style: none;
    padding: 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: #C0C0C0; /* 银灰色线条 */
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 10px;
    height: 10px;
    background: #1E90FF; /* 科技蓝圆点 */
    border-radius: 50%;
    left: calc(100% - 5px);
}

/* 虚拟导览模块样式 */
.virtual-tour {
    width: 100%;
    height: 500px;
    perspective: 1000px; /* 3D视角 */
    position: relative;
}

.model {
    width: 200px;
    height: 200px;
    background-color: #C0C0C0; /* 银灰色背景 */
    transform: translate(-50%, -50%) rotateY(0deg);
    transition: transform 1s ease;
    margin: 0 auto;
    position: absolute;
    top: 50%;
    left: 50%;
}

.model:hover {
    transform: translate(-50%, -50%) rotateY(360deg); /* 旋转动画 */
}

/* 代码块样式 */
pre code {
    display: block;
    padding: 15px;
    background-color: #1E90FF; /* 科技蓝背景 */
    color: #fff; /* 白色字体 */
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    position: relative;
}

/* 折叠区域样式 */
.collapsible {
    background-color: #8B9467;
    color: white;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 18px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.collapsible:hover {
    background-color: #1E90FF;
}

.content {
    padding: 0 18px;
    display: none;
    overflow: hidden;
    background-color: #F5F5DC;
    border-left: 4px solid #C0C0C0;
    border-radius: 0 5px 5px 0;
    margin-bottom: 20px;
}

.active, .collapsible:hover {
    background-color: #1E90FF;
    color: white;
}

/* 响应式设计，适配不同屏幕 */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr;
    }
    .card {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar a {
        margin: 10px 0;
    }
    .container {
        margin: 80px 20px 20px;
    }
}

@media (max-width: 500px) {
    h1 {
        font-size: 24px;
    }
    h2 {
        font-size: 20px;
    }
    h3 {
        font-size: 18px;
    }
    p, a, .button {
        font-size: 14px;
    }
    .timeline-item {
        width: 100%;
        padding: 20px;
        text-align: left;
    }
    .timeline-item::before {
        left: 50%;
    }
}

