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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #0A2647, #83C5BE);
    animation: backgroundMove 15s linear infinite;
    padding: 20px;
}

@keyframes backgroundMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 头部样式 */
header {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: #0A2647;
}

header p {
    font-size: 1.2rem;
    color: #555;
    margin-top: 10px;
}

/* 导航栏样式 */
nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

nav a {
    text-decoration: none;
    color: #FF9F1C;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #E58E26;
    transition: color 0.3s ease;
}

nav a[rel="nofollow"]::after {
    content: '';
}

/* 主要内容区 */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 示范展示样式 */
.sample-display {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
}

.sample-display h2 {
    font-family: 'Montserrat', sans-serif;
    color: #0A2647;
    margin-bottom: 15px;
}

.sample-display p {
    margin-bottom: 10px;
}

.sample-display pre {
    background: #f4f4f4;
    padding: 10px;
    border-left: 5px solid #FF9F1C;
    overflow-x: auto;
    border-radius: 5px;
}

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

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

.image-gallery img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 5px;
}

/* 按钮样式 */
.button {
    background: #FF9F1C;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background: #E58E26;
    transform: scale(1.05);
}

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

.aurora-background {
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    animation: aurora-move 15s linear infinite;
}

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

    .button {
        padding: 8px 16px;
    }
}

@media (max-width: 1200px) {
    .main-content {
        padding: 10px;
    }

    nav {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 1024px) {
    .image-gallery {
        flex-direction: column;
        align-items: center;
    }

    .sample-display pre {
        font-size: 0.9rem;
    }
}

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

    .button {
        width: 100%;
        text-align: center;
    }
}

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

    nav a {
        font-size: 1rem;
    }
}

@media (max-width: 320px) {
    header p {
        font-size: 1rem;
    }

    .sample-display pre {
        font-size: 0.8rem;
    }
}

/* 代码块样式 */
pre {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 0.9rem;
}

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

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