
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #000046, #1cb5e0);
    color: #ffffff;
    overflow-x: hidden;
}

/* 标题字体 */
h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    color: #8e44ad; /* 霓虹紫色 */
    margin: 20px 0;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    padding: 15px 0;
    z-index: 1000;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.navbar a {
    text-decoration: none;
    color: #1abc9c; /* 青绿色 */
    font-size: 16px;
    transition: color 0.3s ease, background 0.3s ease;
    padding: 5px 10px;
}

.navbar a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* 主内容区 */
.section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.5);
}

.section:nth-child(even) {
    background: rgba(28, 181, 224, 0.5);
}

.container {
    max-width: 1200px;
    width: 100%;
}

/* 按钮样式 */
button {
    background: #ff9f43;
    border: none;
    padding: 12px 25px;
    color: #ffffff;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    font-size: 16px;
}

button:hover {
    transform: scale(1.1);
    background: #e67e22;
}

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

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

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

@media (max-width: 1200px) {
    .navbar ul {
        gap: 20px;
    }
    h1 {
        font-size: 2.2em;
    }
    h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 1024px) {
    .section {
        padding: 50px 15px;
    }
    h1 {
        font-size: 2em;
    }
    h2 {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        gap: 15px;
    }
    .section {
        flex-direction: column;
        text-align: center;
    }
    button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }
    h2 {
        font-size: 1.4em;
    }
    .navbar ul {
        gap: 10px;
    }
}

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

/* 动画效果 */
@keyframes auroraMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    animation: auroraMove 15s linear infinite;
}

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

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

/* 文章示例展示 */
.article-demo {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    margin-top: 40px;
}

.article-demo h2 {
    color: #8e44ad;
}

.article-demo p, .article-demo li {
    color: #ecf0f1;
    line-height: 1.6;
}

.article-demo ul {
    list-style: disc;
    margin-left: 20px;
}

