
/* 基础样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #000046, #1cb5e0);
    color: #ffffff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

/* 标题样式 */
h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    color: #ff00ff;
    margin-bottom: 15px;
}

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

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

h3 {
    font-size: 1.5em;
    margin-top: 30px;
}

/* 段落样式 */
p {
    font-size: 1em;
    margin-bottom: 15px;
    text-align: justify;
}

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

/* 代码块样式 */
pre {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #00ffea;
}

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

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

th {
    background-color: #333;
}

tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

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

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

a:hover {
    color: #ff00ff;
}

/* 按钮样式 */
button {
    background-color: #6a11cb;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #3f007d;
    transform: scale(1.1);
}

button:active {
    transform: scale(0.95);
}

/* 响应式布局 */
@media (max-width: 1440px) {
    h1 {
        font-size: 2.2em;
    }

    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.3em;
    }

    .container {
        width: 95%;
    }
}

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

    h2 {
        font-size: 1.6em;
    }

    h3 {
        font-size: 1.2em;
    }
}

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

@media (max-width: 768px) {
    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.4em;
    }

    h3 {
        font-size: 1.1em;
    }
}

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

    h2 {
        font-size: 1.2em;
    }

    h3 {
        font-size: 1em;
    }

    p, pre, code, table, button {
        font-size: 0.9em;
    }
}

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

    h2 {
        font-size: 1em;
    }

    h3 {
        font-size: 0.9em;
    }

    .container {
        padding: 10px;
    }
}

/* 网格系统 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* 模块样式 */
.module {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.module:hover {
    transform: translateY(-10px) scale(1.05);
}

/* 动态背景效果 */
.dynamic-background {
    animation: gradient 15s ease infinite;
    background-size: 400% 400%;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 提示信息样式 */
.reference-note {
    text-align: center;
    font-size: 1em;
    margin: 20px 0;
    color: #1cb5e0;
}

