
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Lora', serif;
    background: linear-gradient(135deg, #0A66C2, #8A2BE2);
    color: #FFFFFF;
}

/* 布局容器 */
.container {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

/* 左侧导航栏 */
.navbar {
    background-color: #1C1C1C;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100%;
    width: 250px;
}

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

.navbar a:hover {
    color: #39FF14;
}

/* 右侧内容区域 */
.content {
    margin-left: 250px;
    padding: 40px;
    background-color: rgba(28, 28, 28, 0.8);
    min-height: 100vh;
    overflow: hidden;
}

/* 标题样式 */
h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    color: #39FF14;
}

h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

h2 {
    font-size: 28px;
    margin-top: 40px;
}

h3 {
    font-size: 22px;
    margin-top: 30px;
}

/* 段落样式 */
p {
    font-size: 16px;
    line-height: 1.8;
    color: #F5F5F5;
    margin: 15px 0;
}

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

th, td {
    border: 1px solid #39FF14;
    padding: 12px;
    text-align: left;
}

th {
    background-color: #0A66C2;
}

td {
    background-color: #1C1C1C;
    color: #F5F5F5;
}

/* 代码块样式 */
pre {
    background-color: #2C2C2C;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    color: #39FF14;
    font-family: 'Courier New', Courier, monospace;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #39FF14;
}

/* 按钮样式 */
.button {
    background-color: #39FF14;
    color: #000;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s;
}

.button:hover {
    transform: scale(1.1);
    background-color: #0A66C2;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    h1 {
        font-size: 32px;
    }
}

@media (max-width: 1200px) {
    .container {
        grid-template-columns: 200px 1fr;
    }
    .navbar {
        width: 200px;
    }
    h1 {
        font-size: 28px;
    }
}

@media (max-width: 1024px) {
    .content {
        padding: 30px;
    }
    h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    .navbar {
        position: relative;
        width: 100%;
        height: auto;
        flex-direction: row;
        overflow-x: scroll;
    }
    .navbar a {
        margin: 10px;
    }
    .content {
        margin-left: 0;
        padding: 20px;
    }
    h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    h3 {
        font-size: 18px;
    }
    p {
        font-size: 14px;
    }
    .button {
        padding: 8px 16px;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 20px;
    }
    h2 {
        font-size: 20px;
    }
    h3 {
        font-size: 16px;
    }
    p {
        font-size: 12px;
    }
    .navbar a {
        font-size: 16px;
    }
}

