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

/* 全局字体与背景 */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #000033, #1a1a4d, #333366);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 51, 0.9);
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

.navbar ul li {
    margin: 0 15px;
}

.navbar ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.navbar ul li a:hover {
    color: #ff9800;
}

/* 主容器样式 */
.container {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 20px;
}

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

h1 {
    font-size: 36px;
    text-align: center;
    margin-top: 50px;
}

h2 {
    font-size: 28px;
    border-bottom: 2px solid #ff9800;
    padding-bottom: 10px;
}

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

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

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

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

/* 按钮样式 */
button {
    background-color: #ff9800;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    font-size: 16px;
}

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

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

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

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

/* 示例展示样式 */
.sample-article {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    margin-top: 50px;
}

.sample-article h2 {
    color: #ff9800;
}

.sample-article pre {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #ff9800;
}

/* 动画效果 */
@keyframes aurora-move {
    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: aurora-move 15s linear infinite;
}

/* 星光闪烁效果 */
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: white;
    border-radius: 50%;
    animation: starTwinkle 5s infinite alternate;
}

@keyframes starTwinkle {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

/* 响应式设计 */
@media (max-width: 1440px) {
    h1 {
        font-size: 32px;
    }
    h2 {
        font-size: 24px;
    }
    h3 {
        font-size: 20px;
    }
}

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

@media (max-width: 1024px) {
    .navbar ul {
        flex-direction: column;
        align-items: center;
    }
    .navbar ul li {
        margin: 10px 0;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    .container {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 28px;
    }
    h2 {
        font-size: 20px;
    }
    h3 {
        font-size: 18px;
    }
    button {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 24px;
    }
    h2 {
        font-size: 18px;
    }
    h3 {
        font-size: 16px;
    }
    button {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* 提示信息样式 */
.note {
    background: rgba(255, 152, 0, 0.2);
    padding: 15px;
    border-left: 5px solid #ff9800;
    margin-bottom: 20px;
    border-radius: 5px;
    color: #ffffff;
}


