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

/* 字体设置 */
body {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    line-height: 1.6;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #002B5B, #1DE9B6);
    color: #ffffff;
    padding: 20px;
    animation: backgroundMove 15s linear infinite;
}

/* 背景动画 */
@keyframes backgroundMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* 主要容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(0, 43, 91, 0.8);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

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

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

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

h4 {
    font-size: 1.2em;
    margin-top: 20px;
}

/* 段落样式 */
p {
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 1em;
}

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

code {
    color: #1DE9B6;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95em;
}

/* 链接样式 */
a {
    color: #FFC107;
    text-decoration: none;
}

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

/* 按钮样式 */
button {
    background-color: #FFC107;
    color: #002B5B;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #1DE9B6;
}

/* 网格容器 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* 网格项 */
.grid-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: scale(1.05);
}

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

/* 示例展示区域 */
.example-display {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 40px;
}

/* 提示文字样式 */
.notice {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #FFC107;
}

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

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

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

@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    .container {
        padding: 20px;
    }
    h2 {
        font-size: 1.8em;
    }
    h3 {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.6em;
    }
    h3 {
        font-size: 1.1em;
    }
    p {
        font-size: 0.9em;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 15px;
    }
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.4em;
    }
    h3 {
        font-size: 1em;
    }
    p {
        font-size: 0.8em;
    }
}

