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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #d3d3d3;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    background-size: 300% 300%;
    animation: gradient-animation 15s ease infinite;
    padding: 20px;
}

/* 动画定义 */
@keyframes gradient-animation {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

@keyframes aurora-move {
    0% {background-position: 0% 0%;}
    100% {background-position: 100% 100%;}
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 0;
    color: #ffffff;
}

header h1 {
    font-size: 3em;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    font-size: 1.2em;
    color: #cccccc;
}

/* 导航栏样式 */
nav {
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 10px 20px;
    margin: 0 10px;
    transition: background-color 0.3s, transform 0.3s;
    border-radius: 5px;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

/* 主内容区域 */
main {
    margin-top: 80px;
}

article {
    margin-bottom: 50px;
}

article h2, article h3, article h4 {
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    margin-bottom: 15px;
}

article h2 {
    font-size: 2.5em;
    border-bottom: 2px solid #3a7bd5;
    padding-bottom: 10px;
}

article h3 {
    font-size: 2em;
    margin-top: 30px;
}

article h4 {
    font-size: 1.5em;
    margin-top: 25px;
}

article p {
    font-size: 1em;
    margin-bottom: 20px;
    color: #d3d3d3;
}

article pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

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

article ul li {
    margin-bottom: 10px;
}

/* 示例展示样式 */
.sample-display {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 40px;
}

.sample-display h2 {
    font-size: 2em;
    margin-bottom: 15px;
}

.sample-display pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}

.sample-display code {
    color: #ffcc00;
    font-family: 'Courier New', Courier, monospace;
}

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

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 30px;
    background: linear-gradient(45deg, #ff6e7f, #bfe9ff);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* 脚注样式 */
footer {
    text-align: center;
    padding: 30px 0;
    color: #aaaaaa;
    font-size: 0.9em;
}

.footer-note {
    margin-top: 10px;
    font-style: italic;
}

/* 响应式设计 */

/* 手机小屏320px */
@media (max-width: 320px) {
    header h1 {
        font-size: 2em;
    }

    nav a {
        padding: 8px 12px;
        margin: 0 5px;
        font-size: 0.9em;
    }

    article h2 {
        font-size: 1.8em;
    }

    article h3 {
        font-size: 1.5em;
    }

    .button {
        padding: 8px 20px;
        font-size: 0.9em;
    }
}

/* 手机大屏480px */
@media (max-width: 480px) {
    header h1 {
        font-size: 2.2em;
    }

    nav a {
        padding: 9px 15px;
        margin: 0 7px;
        font-size: 1em;
    }

    article h2 {
        font-size: 2em;
    }

    article h3 {
        font-size: 1.6em;
    }

    .button {
        padding: 9px 22px;
        font-size: 1em;
    }
}

/* 平板竖屏768px */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    article h2 {
        font-size: 2.2em;
    }

    article h3 {
        font-size: 1.8em;
    }

    .button {
        padding: 10px 25px;
        font-size: 1.1em;
    }
}

/* 中等屏幕1024px */
@media (max-width: 1024px) {
    header h1 {
        font-size: 2.8em;
    }

    nav a {
        padding: 10px 20px;
        font-size: 1.1em;
    }

    article h2 {
        font-size: 2.4em;
    }

    article h3 {
        font-size: 2em;
    }

    .button {
        padding: 11px 28px;
        font-size: 1.2em;
    }
}

/* 桌面显示器1200px */
@media (max-width: 1200px) {
    .container {
        max-width: 1100px;
    }

    header h1 {
        font-size: 3em;
    }

    article h2 {
        font-size: 2.5em;
    }

    article h3 {
        font-size: 2.2em;
    }

    .button {
        padding: 12px 30px;
        font-size: 1.3em;
    }
}

/* 大尺寸桌面显示器1440px及以上 */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    header h1 {
        font-size: 3.5em;
    }

    article h2 {
        font-size: 2.8em;
    }

    article h3 {
        font-size: 2.4em;
    }

    .button {
        padding: 14px 35px;
        font-size: 1.4em;
    }
}

