
/* 整体页面样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用现代无衬线字体 */
    background: linear-gradient(135deg, #0d47a1 70%, #1976d2 25%, #4a148c 5%); /* 主色调占70%，辅色25%，点缀色5% */
    color: #ffffff;
    line-height: 1.6;
}

/* 固定导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 71, 161, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    z-index: 1000;
    transition: background 0.3s ease;
}

.navbar:hover {
    background: rgba(13, 71, 161, 1);
}

.navbar .logo {
    font-size: 1.5em;
    font-weight: bold;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.navbar ul li a {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s ease;
}

.navbar ul li a:hover {
    color: #81d4fa;
}

/* 主容器样式 */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 100px 50px 50px 50px; /* 上方留出导航栏空间 */
}

/* 文章内容样式 */
article {
    flex: 1 1 60%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

article h2, article h3 {
    color: #81d4fa;
}

article pre {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 15px 0;
}

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

article .highlight {
    color: #81d4fa;
    font-weight: 600;
}

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

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

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

/* 强调提示样式 */
.highlight-message {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
    font-size: 1.2em;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 交互折叠区域样式 */
.collapsible {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.1em;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.active, .collapsible:hover {
    background: rgba(129, 212, 250, 0.3);
}

.content {
    padding: 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    margin-bottom: 10px;
}

/* 代码示例块样式 */
.code-example {
    background: #263238;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 15px 0;
    font-family: 'Courier New', Courier, monospace;
    color: #ffeb3b;
}

/* 按钮样式 */
.btn {
    background: linear-gradient(45deg, #81d4fa, #4a148c);
    border: none;
    padding: 15px 30px;
    color: #ffffff;
    font-size: 1.2em;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.btn:hover {
    transform: scale(1.05);
    background: linear-gradient(45deg, #4a148c, #81d4fa);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        flex-direction: column;
        padding: 100px 20px 20px 20px;
    }
    
    .image-gallery {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        background: rgba(13, 71, 161, 0.9);
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        display: none;
    }
    
    .navbar ul.active {
        display: flex;
    }
    
    .image-gallery {
        flex-direction: column;
        align-items: center;
    }
}

