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

/* 颜色变量 */
:root {
    --deep-blue: #0A1F3D;
    --light-gray: #F5F7FA;
    --orange: #FF6B35;
    --neon-green: #00FFA3;
    --white: #FFFFFF;
    --font-title: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* 全局样式 */
body {
    font-family: var(--font-body);
    background: radial-gradient(circle, var(--deep-blue), transparent);
    color: var(--light-gray);
    line-height: 1.6;
    padding: 20px;
    animation: aurora-move 15s linear infinite;
}

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

/* 容器布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, var(--deep-blue), var(--orange));
    border-radius: 10px;
    margin-bottom: 40px;
}

header h1 {
    font-family: var(--font-title);
    font-size: 48px;
    color: var(--white);
    margin-bottom: 20px;
}

header p {
    font-size: 18px;
    color: var(--light-gray);
}

/* 按钮样式 */
button {
    background-color: var(--orange);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

button:hover {
    background-color: var(--neon-green);
    transform: scale(1.05);
}

button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

button:hover::before {
    width: 200px;
    height: 200px;
}

/* 主内容样式 */
main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* 图文并茂的模块 */
.section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

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

.section .text {
    flex: 1;
}

.section h2 {
    font-family: var(--font-title);
    font-size: 32px;
    color: var(--orange);
    margin-bottom: 10px;
}

.section p {
    font-size: 16px;
    color: var(--light-gray);
}

/* 示例展示样式 */
.example {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
}

.example h2 {
    font-family: var(--font-title);
    font-size: 28px;
    color: var(--neon-green);
    margin-bottom: 15px;
}

.example article {
    color: var(--light-gray);
}

.example pre {
    background-color: #1e2a38;
    color: #c5cbe3;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    margin-top: 10px;
}

.example code {
    font-size: 14px;
}

/* 代码块样式 */
code {
    background-color: #1e2a38;
    color: #c5cbe3;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
}

/* 底部提示 */
footer {
    text-align: center;
    padding: 20px;
    font-size: 16px;
    color: var(--light-gray);
}

/* 响应式设计 */
@media (max-width: 1440px) {
    header h1 {
        font-size: 42px;
    }

    .section h2 {
        font-size: 28px;
    }

    .example h2 {
        font-size: 24px;
    }
}

@media (max-width: 1200px) {
    .section {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 1024px) {
    header {
        padding: 40px 15px;
    }

    header h1 {
        font-size: 36px;
    }

    .section h2 {
        font-size: 24px;
    }

    .example h2 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 30px 10px;
    }

    header h1 {
        font-size: 28px;
    }

    .section h2 {
        font-size: 20px;
    }

    .example h2 {
        font-size: 18px;
    }

    button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

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

    .section h2 {
        font-size: 18px;
    }

    .example h2 {
        font-size: 16px;
    }

    .section p, .example article p {
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    header {
        padding: 20px 5px;
    }

    header h1 {
        font-size: 20px;
    }

    .section h2 {
        font-size: 16px;
    }

    .example h2 {
        font-size: 14px;
    }

    .section p, .example article p {
        font-size: 12px;
    }
}

