
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: radial-gradient(circle, rgb(0, 0, 102), rgb(51, 51, 153));
    color: #ffffff;
    overflow-x: hidden;
    transition: background 0.5s ease;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    color: #00ff99;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 10px;
    animation: gradientText 3s infinite;
}

h2 {
    font-size: 2em;
}

h3 {
    font-size: 1.75em;
}

h4 {
    font-size: 1.5em;
}

/* 动画效果 */
@keyframes gradientText {
    0% { color: #00ff99; }
    50% { color: #00ffff; }
    100% { color: #00ff99; }
}

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

/* 背景动态效果 */
.background-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    animation: auroraMove 15s linear infinite;
    z-index: -1;
}

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

/* 卡片模块 */
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    padding: 20px;
    margin: 20px 0;
    transition: transform 0.3s ease, background 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

/* 按钮样式 */
button {
    background-color: #00ff99;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    color: #000;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #00cccc;
    transform: scale(1.05);
}

button:active {
    background-color: #009999;
}

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

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    color: #00ff99;
    margin: 20px 0;
}

code {
    color: #00ff99;
}

/* 列表样式 */
ul {
    list-style-type: disc;
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
}

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

a:hover {
    color: #00ff99;
}

/* 示例展示区 */
.sample-display {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 20px;
    margin: 40px 0;
}

.sample-display h2 {
    text-align: left;
    color: #ff6699;
}

.sample-display pre {
    background: #1a1a1a;
    color: #00ff99;
}

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

@media (max-width: 1200px) {
    .container {
        width: 95%;
    }
}

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

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    .card {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }
    button {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 1.5em;
    }
    .card {
        padding: 10px;
    }
}

