/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #040d21;
    background-image: url('../images/space-bg.jpg');
    background-size: cover;
    background-attachment: fixed;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
header {
    background-color: rgba(6, 23, 59, 0.8);
    color: #fff;
    padding: 20px 0;
    text-align: center;
    border-bottom: 3px solid #4c83ff;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    text-shadow: 0 0 10px #4c83ff, 0 0 20px #4c83ff;
}

header p {
    font-size: 1.2rem;
    color: #bbd0ff;
}

/* 主要内容样式 */
main {
    padding: 30px 0;
}

.content-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

/* 侧边栏样式 */
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.control-panel, .info-panel {
    background-color: rgba(6, 23, 59, 0.8);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #4c83ff;
    box-shadow: 0 0 15px rgba(76, 131, 255, 0.3);
}

.control-panel h2, .info-panel h2 {
    color: #fff;
    border-bottom: 2px solid #4c83ff;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.control-group {
    margin-bottom: 20px;
}

.control-group h3 {
    color: #bbd0ff;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.view-btn, .control-btn, .phenomenon-btn {
    background-color: #1a3a8a;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    margin: 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.view-btn:hover, .control-btn:hover, .phenomenon-btn:hover {
    background-color: #2d4cb3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.view-btn.active {
    background-color: #4c83ff;
    font-weight: bold;
}

.slider-container {
    margin: 10px 0;
    color: #fff;
}

.slider-container label {
    display: block;
    margin-bottom: 5px;
}

.slider-container input {
    width: 100%;
}

.checkbox-container {
    margin: 10px 0;
    color: #fff;
}

#info-content {
    color: #bbd0ff;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 3D模型容器样式 */
.model-container {
    flex-grow: 1;
    height: 500px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid #4c83ff;
    box-shadow: 0 0 20px rgba(76, 131, 255, 0.4);
}

/* 教学内容部分 */
.lessons-section {
    background-color: rgba(6, 23, 59, 0.8);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #4c83ff;
    box-shadow: 0 0 15px rgba(76, 131, 255, 0.3);
}

.lessons-section h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
    text-shadow: 0 0 5px #4c83ff;
}

.lesson-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.lesson-tab {
    background-color: #1a3a8a;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lesson-tab:hover {
    background-color: #2d4cb3;
}

.lesson-tab.active {
    background-color: #4c83ff;
    font-weight: bold;
}

.lesson-content {
    display: none;
    color: #fff;
}

.lesson-content.active {
    display: block;
}

.lesson-content h3 {
    color: #4c83ff;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

.lesson-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.lesson-item {
    background-color: rgba(13, 35, 87, 0.5);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    border: 1px solid #2d4cb3;
}

.lesson-item h4 {
    color: #bbd0ff;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.lesson-item img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 2px solid #4c83ff;
    object-fit: cover;
}

.lesson-item ul {
    text-align: left;
    margin-left: 20px;
}

.lesson-item li {
    margin-bottom: 5px;
    color: #bbd0ff;
}

.lesson-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.lesson-col {
    flex: 1;
    min-width: 300px;
    background-color: rgba(13, 35, 87, 0.5);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #2d4cb3;
}

.lesson-col h4 {
    color: #bbd0ff;
    margin-bottom: 10px;
    font-size: 1.2rem;
    text-align: center;
}

.lesson-col img {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
    border: 2px solid #4c83ff;
}

.lesson-col p {
    color: #bbd0ff;
}

.full-width-img {
    width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    border: 2px solid #4c83ff;
}

.lesson-text {
    color: #bbd0ff;
}

.lesson-text p {
    margin-bottom: 10px;
}

.lesson-text ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.lesson-text li {
    margin-bottom: 5px;
}

/* 页脚样式 */
footer {
    background-color: rgba(6, 23, 59, 0.8);
    color: #bbd0ff;
    text-align: center;
    padding: 15px 0;
    border-top: 3px solid #4c83ff;
}

/* 响应式设计 */
@media screen and (max-width: 900px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .lesson-tabs {
        flex-direction: column;
    }
    
    .lesson-tab {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .model-container {
        height: 350px;
    }
}