
/* 颜色变量定义 */
:root {
    --deep-blue: #0A1F44;
    --neon-purple: #8B00FF;
    --metallic-silver: #C0C0C0;
    --gradient-orange: linear-gradient(45deg, #FF7F50, #FF4500);
    --cold-grey: #2C3E50;
    --text-color: #C0C0C0;
    --background-gradient: linear-gradient(135deg, #0A1F44, #8B00FF);
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Orbitron', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --font-body: 'Inter', sans-serif;
}

/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    background: var(--background-gradient);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    color: var(--metallic-silver);
    margin: 20px 0 10px 0;
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    text-shadow: 2px 2px var(--cold-grey);
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

/* 段落样式 */
p {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0 20px;
    max-width: 800px;
    text-align: justify;
}

/* 强调文本 */
b {
    color: var(--neon-purple);
}

/* 链接样式 */
a {
    color: var(--gradient-orange);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    box-sizing: border-box;
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
}

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

code {
    font-family: var(--font-mono);
    color: #f8f8f2;
}

/* 模块化布局 */
.module {
    background: rgba(44, 62, 80, 0.8);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

/* 示例展示区 */
.sample-display {
    border: 2px dashed var(--neon-purple);
    padding: 20px;
    border-radius: 10px;
    background: rgba(10, 31, 68, 0.7);
}

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

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

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

@media (max-width: 768px) {
    p {
        font-size: 0.95rem;
        padding: 0 15px;
    }
    .module {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem;
    }
    p {
        font-size: 0.9rem;
        padding: 0 10px;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 1.5rem;
    }
    p {
        font-size: 0.85rem;
        padding: 0 5px;
    }
}

/* 按钮样式 */
.button {
    background: var(--neon-purple);
    color: var(--metallic-silver);
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.button:hover {
    background: var(--gradient-orange);
}

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

/* 弹性布局 */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
}

/* 特色模块 */
.feature {
    background: var(--deep-blue);
    border: 1px solid var(--neon-purple);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
}

/* 粒子效果 */
.particle-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

/* 动画效果 */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rotating {
    animation: rotate 10s linear infinite;
}

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

