
/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 设置背景和字体 */
body {
    background: linear-gradient(135deg, #0F172A 0%, #38BDF8 100%);
    font-family: 'Roboto Mono', monospace;
    color: #FFFFFF;
    line-height: 1.6;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 40px 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5em;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* 导航栏样式 */
nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

nav a {
    color: #38BDF8;
    text-decoration: none;
    font-size: 1.1em;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #FFFFFF;
    transition: width 0.3s;
    margin-top: 5px;
}

nav a:hover {
    color: #FFFFFF;
}

nav a:hover::after {
    width: 100%;
}

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

/* 模块样式 */
.module {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.module::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, #8B5CF6, #38BDF8, #8B5CF6);
    opacity: 0.1;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 标题样式 */
h2, h3, h4 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 15px;
}

h2 {
    font-size: 2em;
    border-bottom: 2px solid #38BDF8;
    padding-bottom: 10px;
}

h3 {
    font-size: 1.5em;
    color: #A78BFA;
}

h4 {
    font-size: 1.2em;
    color: #8B5CF6;
}

/* 段落和列表 */
p {
    margin-bottom: 15px;
    font-size: 1em;
}

ul, ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 10px;
}

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

th, td {
    border: 1px solid #38BDF8;
    padding: 10px;
    text-align: left;
}

th {
    background: rgba(56, 189, 248, 0.2);
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

code {
    color: #38BDF8;
    font-family: 'Roboto Mono', monospace;
}

/* 图片样式 */
img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* 按钮样式 */
.button {
    background-color: #38BDF8;
    color: #0F172A;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.3s ease;
    font-size: 1em;
}

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

/* 链接样式 */
a {
    color: #38BDF8;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFFFFF;
}

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

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

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

@media (min-width: 1024px) {
    .container {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

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

/* 视觉提示 */
.reference {
    text-align: center;
    font-size: 1.2em;
    margin-top: 30px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

/* 差异化展示示例文章 */
.sample-article {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.sample-article h2, .sample-article h3, .sample-article h4 {
    color: #A78BFA;
}

.sample-article pre {
    background: rgba(255, 255, 255, 0.1);
    color: #38BDF8;
}

/* 动态效果 */
.icon:hover {
    fill: rgba(56, 189, 248, 0.5);
    transition: fill 0.3s ease;
}

