
/* 整体页面设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #e8c6f9, #8a7dfb);
    color: #333;
    overflow-x: hidden;
}

/* 全屏动态背景 */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,87,34,0.5), transparent);
    animation: aurora-move 15s linear infinite;
    z-index: -1;
}

/* 动画关键帧 */
@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;
}

/* 标题样式 */
h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

h1 {
    font-size: 3em;
}

h2 {
    font-size: 2.5em;
}

h3 {
    font-size: 2em;
}

/* 文章内容样式 */
.article-content {
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    margin-bottom: 40px;
}

.article-content p {
    font-size: 1.1em;
    color: #333;
}

.article-content pre {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.article-content code {
    font-family: 'Courier New', Courier, monospace;
    color: #d63384;
}

/* 示例展示区样式 */
.example-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    margin-bottom: 40px;
}

.example-section h2 {
    text-align: left;
    color: #6c5ce7;
}

.example-section p {
    color: #555;
}

.example-section pre {
    background: #e8c6f9;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.example-section code {
    font-family: 'Courier New', Courier, monospace;
    color: #333;
}

/* 按钮样式 */
button {
    background: #8a7dfb;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    margin: 10px;
}

button:hover {
    transform: scale(1.1);
    background: #6c5ce7;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* 图片样式 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.image-gallery img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.05);
}

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

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

@media (max-width: 1024px) {
    .container {
        max-width: 768px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2.5em;
    }
    
    h2 {
        font-size: 2em;
    }
    
    h3 {
        font-size: 1.5em;
    }
    
    .image-gallery img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.8em;
    }
    
    h3 {
        font-size: 1.3em;
    }
    
    button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    
    .image-gallery img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.5em;
    }
    
    h3 {
        font-size: 1.2em;
    }
    
    .image-gallery img {
        width: 80px;
        height: 80px;
    }
}

/* 3D效果 */
.three-d {
    perspective: 1000px;
}

.three-d:hover .inner {
    transform: rotateY(360deg);
}

.inner {
    transition: transform 2s;
    transform-style: preserve-3d;
}

/* 鼠标追踪光晕 */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    z-index: 1000;
}


