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

/* 文字和背景基础设置 */
body {
    font-family: 'Montserrat', sans-serif;
    background: radial-gradient(circle, rgb(0, 5, 36), transparent);
    color: #FFFFFF;
    line-height: 1.6;
    padding: 20px;
    overflow-x: hidden;
    animation: aurora-move 15s linear infinite;
}

/* 渐变动画 */
@keyframes aurora-move {
    0% {
        background: radial-gradient(circle, rgb(0, 5, 36), transparent);
    }
    50% {
        background: radial-gradient(circle, rgb(34, 34, 34), transparent);
    }
    100% {
        background: radial-gradient(circle, rgb(0, 5, 36), transparent);
    }
}

/* 头部导航栏 */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-family: 'Exo 2', sans-serif;
    font-size: 24px;
    color: #67E6DC;
}

nav a {
    color: #67E6DC;
    margin-left: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #FF6F91;
}

/* 主容器设置 */
.container {
    max-width: 1200px;
    margin: 100px auto 50px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* 文章样式 */
article h2 {
    font-family: 'Exo 2', sans-serif;
    font-size: 36px;
    color: #67E6DC;
    margin-bottom: 20px;
    text-align: center;
}

article h3 {
    font-size: 24px;
    color: #FF6F91;
    margin-top: 30px;
    margin-bottom: 10px;
}

article p {
    font-size: 16px;
    margin-bottom: 15px;
}

article table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

article table, th, td {
    border: 1px solid #67E6DC;
}

article th, td {
    padding: 10px;
    text-align: left;
}

article pre {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

article code {
    color: #67E6DC;
    font-family: 'Courier New', Courier, monospace;
}

article ul {
    list-style: disc inside;
    margin-bottom: 20px;
}

button {
    background-color: #67E6DC;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

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

/* 代码块样式 */
.code-block {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.code-block code {
    display: block;
    white-space: pre;
    color: #67E6DC;
    font-family: 'Courier New', Courier, monospace;
}

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

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

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

    article h2 {
        font-size: 30px;
    }

    article h3 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav a {
        margin: 5px 0;
    }

    .container {
        padding: 15px;
    }

    article h2 {
        font-size: 26px;
    }

    article h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 18px;
    }

    nav a {
        font-size: 14px;
    }

    article h2 {
        font-size: 22px;
    }

    article h3 {
        font-size: 16px;
    }

    article p, article ul, article table, article pre {
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 16px;
    }

    nav a {
        font-size: 12px;
    }

    article h2 {
        font-size: 20px;
    }

    article h3 {
        font-size: 14px;
    }

    article p, article ul, article table, article pre {
        font-size: 12px;
    }
}

