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

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #4A90E2, #6C5CE7);
    color: #FFFFFF;
    line-height: 1.6;
    padding: 20px;
    background-attachment: fixed;
    animation: backgroundMove 15s linear infinite;
}

/* 背景动画 */
@keyframes backgroundMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* 响应式网格布局 */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: #FFFFFF;
    margin-bottom: 20px;
}

h1 {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
}

h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 10px;
}

/* 段落样式 */
p {
    font-family: 'Open Sans Light', sans-serif;
    font-size: 1rem;
    color: #F0F0F0;
    margin-bottom: 15px;
}

/* 链接样式 */
a {
    color: #F0932B;
    text-decoration: none;
    position: relative;
}

a::after {
    content: '';
    display: block;
    width: 0%;
    height: 2px;
    background: #F0932B;
    transition: width 0.3s;
}

a:hover::after {
    width: 100%;
}

/* 按钮样式 */
button {
    background: #6C5CE7;
    color: #FFFFFF;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, background 0.3s;
}

button:hover {
    transform: scale(1.05);
    background: #4A90E2;
}

/* 卡片式布局 */
.card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}

.card code {
    color: #F0932B;
    font-family: 'Courier New', Courier, monospace;
}

/* 示例展示区 */
.example-display {
    grid-column: span 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.example-display h2 {
    text-align: center;
    margin-bottom: 25px;
}

.example-display article {
    max-height: 600px;
    overflow-y: auto;
}

.example-display article pre {
    background: #2C3A47;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

.example-display article code {
    color: #F0932B;
    font-family: 'Courier New', Courier, monospace;
}

/* 提示信息 */
.reference-note {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 20px;
    color: #F0F0F0;
}

/* 图标与图形元素样式 */
.icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    vertical-align: middle;
}

/* 图片样式 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.image-gallery img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

/* 响应式设计细节 */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    .example-display {
        padding: 20px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .example-display article {
        max-height: 400px;
    }

    button {
        width: 100%;
        padding: 12px 0;
    }
}

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

    h2 {
        font-size: 1.5rem;
    }

    p {
        font-size: 0.9rem;
    }
}

