
/* CSS变量定义 */
:root {
    --bg-color: #0A1F3C; /* 深蓝色背景 */
    --secondary-bg: #000000; /* 黑色辅助背景 */
    --accent-color: #8A2BE2; /* 霓虹紫点缀色 */
    --hover-acc-color: #39FF14; /* 荧光绿色悬停 */
    --highlight-color: #FFA500; /* 橙黄色强调 */
    --text-color: #C0C0C0; /* 银灰色文本 */
    --font-header: 'Space Grotesk', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

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

body {
    background: linear-gradient(135deg, var(--bg-color), var(--secondary-bg));
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    padding: 20px;
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-family: var(--font-header);
    color: white;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-top: 20px;
}

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

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

h4 {
    font-size: 1.5rem;
    margin-top: 25px;
}

/* 段落样式 */
p {
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--text-color);
}

/* 代码块样式 */
pre {
    background-color: #1E1E1E;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

/* 按钮样式 */
button, .button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 4px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    margin: 10px 0;
}

button:hover, .button:hover {
    background-color: var(--hover-acc-color);
    transform: scale(1.05);
}

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

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

th {
    background-color: #1E1E1E;
    color: var(--text-color);
}

td {
    background-color: #000000;
    color: var(--text-color);
}

/* 容器与网格布局 */
.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.module {
    background-color: #1E1E1E;
    color: var(--text-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1440px) {
    .container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    h3 {
        font-size: 1.5rem;
    }
    h4 {
        font-size: 1.25rem;
    }
    p, code {
        font-size: 0.9rem;
    }
    button, .button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

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

.navbar a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 10px;
    font-size: 1rem;
}

.navbar a:hover {
    color: var(--hover-acc-color);
}

/* 多语言切换样式 */
.language-switcher {
    display: flex;
    align-items: center;
}

.language-switcher a {
    margin-left: 10px;
    font-weight: bold;
}

/* 图片样式 */
img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

/* 提示信息样式 */
.reference-note {
    background-color: #1E1E1E;
    color: #FF6347;
    padding: 15px;
    border-left: 5px solid #FF6347;
    margin: 30px 0;
    border-radius: 4px;
    font-weight: bold;
}

/* 文章展示区域 */
.article-section {
    margin-top: 80px;
}

.article-section article {
    background-color: #000000;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.article-section h2, .article-section h3, .article-section h4 {
    color: white;
}

.article-section table {
    background-color: #1E1E1E;
}

.footer {
    text-align: center;
    padding: 20px;
    color: var(--text-color);
    margin-top: 40px;
}

