
/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #000000, #2c3e50, #8e44ad);
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
}

/* 文章整体布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-family: 'Roboto Mono', monospace;
    color: #6F00FF;
    text-shadow: 0 0 10px #4B0082, 0 0 20px #4B0082, 0 0 40px #6F00FF;
    margin-bottom: 20px;
}

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

h2 {
    font-size: 2.5rem;
}

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

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

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

/* 强调文本 */
b {
    color: #e67e22;
}

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

code {
    color: #fdcb6e;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
}

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

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

th {
    background: #34495e;
}

td {
    background: #2c3e50;
}

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

/* 按钮样式 */
button, .interactive-button {
    background-color: #4B0082;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

button:hover, .interactive-button:hover {
    background-color: #6F00FF;
    transform: scale(1.1);
}

/* 模块化设计 */
.module {
    margin-bottom: 40px;
}

.module::before {
    content: '';
    display: block;
    height: 4px;
    width: 50px;
    background: #e67e22;
    margin-bottom: 10px;
    border-radius: 2px;
}

/* 提示文本 */
.reference {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 20px;
    color: #f1c40f;
}

/* 示例数据展示 */
.demo-article {
    background: rgba(44, 62, 80, 0.9);
    padding: 20px;
    border-radius: 10px;
    margin-top: 40px;
}

.demo-article h2 {
    color: #e74c3c;
}

.demo-article pre {
    background: #2d3436;
    padding: 10px;
    border-radius: 5px;
}

.demo-article table {
    background: #2c3e50;
}

.demo-article img {
    margin-bottom: 15px;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    body {
        padding: 15px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    h3 {
        font-size: 1.8rem;
    }

    h4 {
        font-size: 1.3rem;
    }

    p {
        font-size: 1rem;
    }
}

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

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 2rem;
    }
}

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

    h2 {
        font-size: 1.8rem;
    }

    .interactive-button {
        width: 100%;
        text-align: center;
    }
}

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

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    p {
        font-size: 0.95rem;
    }

    table, pre {
        font-size: 0.9rem;
    }
}

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

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    p {
        font-size: 0.9rem;
    }

    .interactive-button {
        padding: 8px 16px;
    }

    table, pre {
        font-size: 0.8rem;
    }
}

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

    h2 {
        font-size: 1.1rem;
    }

    h3 {
        font-size: 1rem;
    }

    p {
        font-size: 0.8rem;
    }

    .interactive-button {
        padding: 6px 12px;
    }

    table, pre {
        font-size: 0.7rem;
    }
}

