
/* 全局样式设置 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1E90FF 70%, #F5F5F5 30%);
    color: #333;
}

/* 响应式布局 */
.container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 144, 255, 0.9);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #FFA500;
}

/* 主要内容区域 */
.main-content {
    padding-top: 80px;
}

/* 提示文字样式 */
.prompt {
    text-align: center;
    font-size: 1.5em;
    color: #8A2BE2;
    margin: 40px 0;
    animation: fadeIn 2s ease-in-out;
}

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

.image-gallery img {
    width: 100%;
    max-width: 320px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* 文章样式 */
article {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

article h2, article h3 {
    color: #1E90FF;
}

article p {
    line-height: 1.6;
    font-size: 16px;
    color: #333;
}

article pre {
    background: #F5F5F5;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
}

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

article .highlight {
    background: #E6E6FA;
    padding: 5px;
    border-radius: 3px;
}

/* 按钮样式 */
.button {
    background: #32CD32;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
}

.button:hover {
    background: #8A2BE2;
    transform: translateY(-2px);
}

/* 折叠区域样式 */
.collapsible {
    background-color: #1E90FF;
    color: white;
    cursor: pointer;
    padding: 10px 20px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    border-radius: 5px;
    transition: background 0.3s ease;
    margin: 20px 0;
}

.collapsible:hover {
    background-color: #8A2BE2;
}

.content {
    padding: 0 20px;
    display: none;
    overflow: hidden;
    background-color: #F5F5F5;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* 代码块样式 */
.language-css {
    background: #F0F8FF;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

.language-css code {
    color: #2F4F4F;
    font-family: 'Courier New', monospace;
}

/* 图标样式 */
.icon {
    font-size: 24px;
    color: #32CD32;
    margin-right: 10px;
}

/* 底部样式 */
.footer {
    text-align: center;
    padding: 20px;
    background: #1E90FF;
    color: #fff;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 响应式设计 */
@media (min-width: 768px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .container {
        grid-template-columns: repeat(3, 1fr);
    }
}

