
/* 基本重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 字体导入 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Roboto:wght@400;700&display=swap');

/* 全局样式 */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0F172A, #1E1E1E);
    color: #FFFFFF;
    line-height: 1.6;
    padding: 20px;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-family: 'Roboto', sans-serif;
    color: #FBBF24;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

/* 段落样式 */
p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #D1D5DB;
}

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

code {
    font-family: 'Roboto', monospace;
    color: #EC4899;
}

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

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

th {
    background-color: #374151;
    color: #FBBF24;
}

td {
    color: #D1D5DB;
}

/* 列表样式 */
ul, ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
    color: #D1D5DB;
}

/* 文章样式 */
.article {
    background: #1E1E1E;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
}

/* 图片样式 */
img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 8px;
    margin: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* 按钮样式 */
button {
    background-color: #6EE7B7;
    color: #0F172A;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    font-size: 1rem;
}

button:hover {
    background-color: #FBBF24;
    transform: scale(1.05);
    box-shadow: 0 0 10px #FBBF24;
}

/* 模块样式 */
.module {
    background: #1E1E1E;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

/* 网格布局 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* 视差滚动 */
.parallax {
    perspective: 1px;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

.layer {
    position: relative;
    height: 100%;
    transform: translateZ(-1px) scale(2);
}

.foreground {
    transform: translateZ(0);
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* 霓虹效果 */
.neon-green {
    color: #6EE7B7;
    text-shadow: 0 0 10px #6EE7B7, 0 0 20px #6EE7B7, 0 0 30px #6EE7B7;
}

.pink-glow {
    color: #EC4899;
    text-shadow: 0 0 10px #EC4899, 0 0 20px #EC4899, 0 0 30px #EC4899;
}

.yellow-glow {
    color: #FBBF24;
    text-shadow: 0 0 10px #FBBF24, 0 0 20px #FBBF24, 0 0 30px #FBBF24;
}

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

a:hover {
    color: #FBBF24;
    text-decoration: underline;
}

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

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.75rem;
    }

    h4 {
        font-size: 1.25rem;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 15px;
    }
}

@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    h4 {
        font-size: 1.125rem;
    }
}

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

    img {
        max-width: 100%;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1rem;
    }

    button {
        width: 100%;
        padding: 10px;
    }
}

/* 内部提示 */
.reference-note {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-left: 5px solid #EC4899;
    margin-bottom: 30px;
    border-radius: 5px;
}

