
/* 基本样式设定 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #2D3436 70%, #FFA726 25%, #FF6F00 5%);
    color: #CED6E0;
    line-height: 1.6;
}

/* 标题样式 */
h1, h2, h3, h4 {
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5em;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.75em;
}

h4 {
    font-size: 1.5em;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: background 0.3s ease;
}

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

.navbar a:hover {
    color: #FFA726;
    transform: scale(1.1);
}

/* 主内容区布局 */
.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 100px 50px 50px 50px;
}

/* 左侧内容样式 */
.left-panel {
    background: rgba(255, 167, 38, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    animation: fadeIn 1s ease-in-out;
}

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

.left-panel img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

/* 右侧内容样式 */
.right-panel {
    background: rgba(61, 193, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    animation: fadeIn 1.5s ease-in-out;
}

.right-panel pre {
    background: #2D3436;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 20px;
}

/* 图片展示区 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 50px 0;
}

.image-gallery img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

/* 提示信息样式 */
.notice {
    background: rgba(255, 103, 0, 0.2);
    padding: 20px;
    border-left: 5px solid #FF6F00;
    margin: 30px 0;
    border-radius: 5px;
    font-size: 1.2em;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
    }

    .container {
        padding: 100px 20px 20px 20px;
    }

    .image-gallery img {
        width: 100px;
        height: 100px;
    }
}

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

/* 代码块样式 */
.code-block {
    background: #1e272e;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    margin: 20px 0;
}

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

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

table, th, td {
    border: 1px solid #FFA726;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background: #FF6F00;
    color: #fff;
}

tr:nth-child(even) {
    background: rgba(255, 167, 38, 0.1);
}

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

.collapsible:hover {
    background-color: #FFA726;
}

.content {
    padding: 0 18px;
    display: none;
    background-color: rgba(255, 167, 38, 0.05);
    overflow: hidden;
    border-radius: 5px;
}

/* 点缀色使用 */
.highlight {
    color: #FF6F00;
    font-weight: bold;
}

/* 按钮样式 */
button {
    background-color: #FF6F00;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #FFA726;
    transform: scale(1.05);
}

/* 段落独立成块 */
.section {
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255, 167, 38, 0.05);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

