
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: radial-gradient(circle at top left, #0074d9, #2ecc71, #f4f6f8);
    color: #333333;
    line-height: 1.6;
    padding-top: 60px; /* 为固定导航栏预留空间 */
}

/* 导航栏样式 */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #0074d9;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.header nav ul {
    list-style: none;
    display: flex;
}

.header nav ul li {
    margin-left: 20px;
}

.header nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.header nav ul li a:hover {
    color: #2ecc71;
}

/* 主内容样式 */
.main {
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

.section {
    margin-bottom: 40px;
}

.section h2 {
    font-size: 2rem;
    color: #0074d9;
    margin-bottom: 20px;
    text-align: center;
}

.section p {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 15px;
}

.section img {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 10px;
    border-radius: 8px;
}

/* 按钮样式 */
.button-primary {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    font-size: 1rem;
}

.button-primary:hover {
    background-color: #27ae60;
    transform: scale(1.05);
}

/* 示例展示样式 */
.example-article {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.example-article h2 {
    color: #2e86de;
    margin-bottom: 15px;
}

.example-article pre {
    background-color: #f4f6f8;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 15px;
}

.example-article code {
    font-size: 0.9rem;
    color: #d35400;
}

/* 提示信息样式 */
.tip {
    text-align: center;
    font-size: 1.2rem;
    color: #e74c3c;
    margin: 20px 0;
}

/* 底部样式 */
.footer {
    background-color: #0074d9;
    color: white;
    text-align: center;
    padding: 20px;
    position: relative;
    bottom: 0;
    width: 100%;
}

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

body {
    animation: aurora-move 15s linear infinite;
    background-size: 400% 400%;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 1200px) {
    .header nav ul li {
        margin-left: 15px;
    }
    .section h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 1024px) {
    .main {
        padding: 15px;
    }
    .section h2 {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }
    .header nav ul {
        flex-direction: column;
        width: 100%;
    }
    .header nav ul li {
        margin: 10px 0;
    }
    .section {
        margin-bottom: 30px;
    }
    .section img {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .header .logo {
        font-size: 1.2rem;
    }
    .header nav ul li a {
        font-size: 0.9rem;
    }
    .button-primary {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    .section h2 {
        font-size: 1.2rem;
    }
}

@media (max-width: 320px) {
    .header {
        padding: 8px 10px;
    }
    .header .logo {
        font-size: 1rem;
    }
    .header nav ul li a {
        font-size: 0.8rem;
    }
    .button-primary {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .section h2 {
        font-size: 1rem;
    }
}

