
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica', sans-serif;
    background: linear-gradient(135deg, #1E273A, #00C4FF);
    color: #fff;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(30, 39, 58, 0.9);
    padding: 20px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar a {
    color: #E8EAED;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

.navbar a:hover {
    color: #FFA500;
}

/* 主容器样式 */
.container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 100px 50px 50px 50px;
    background-color: rgba(255, 255, 255, 0.1);
}

/* 左侧面板样式 */
.left-panel {
    flex: 1;
    margin-right: 20px;
}

.left-panel img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.left-panel img:hover {
    transform: scale(1.05);
}

/* 右侧面板样式 */
.right-panel {
    flex: 1;
    margin-left: 20px;
}

.right-panel h2, .right-panel h3, .right-panel h4 {
    color: #FFA500;
}

.right-panel p {
    font-size: 16px;
    color: #E8EAED;
}

.right-panel pre {
    background: #2C3E50;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}

.right-panel code {
    color: #1ABC9C;
}

/* 提示信息样式 */
.alert {
    text-align: center;
    padding: 20px;
    background-color: rgba(255, 165, 0, 0.8);
    color: #1E273A;
    font-size: 18px;
    margin: 20px;
    border-radius: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 100px 20px 20px 20px;
    }
    .left-panel, .right-panel {
        margin: 0;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 2s ease-in-out;
}

/* 图片布局样式 */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.image-gallery img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.image-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* 按钮样式 */
.btn {
    background-color: #00C4FF;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: #FFA500;
    transform: scale(1.05);
}

.btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 折叠内容样式 */
.collapsible {
    background-color: rgba(30, 39, 58, 0.7);
    color: #E8EAED;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 18px;
    transition: background-color 0.3s;
}

.collapsible:hover {
    background-color: rgba(255, 165, 0, 0.8);
}

.content {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    background-color: rgba(30, 39, 58, 0.5);
}

.code-example {
    background-color: #2C3E50;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.code-example code {
    color: #E74C3C;
    font-family: 'Courier New', Courier, monospace;
}

