
/* 
全局样式设置
设置网页的基础样式，包括字体、背景颜色、颜色搭配等，遵循黄金比例配色法则。主色调为深蓝色，辅色为银灰色，点缀色为荧光蓝，营造未来科技感和高级质感。
*/
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1E3A8A 70%, #D0D6F9 25%, #3FCEFF 5%);
    color: #ffffff;
    line-height: 1.6;
}

/* 
导航栏样式
固定在顶部，使用半透明背景，包含导航链接，链接添加rel="nofollow"属性。响应式设计确保在不同设备下的良好显示。
*/
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 58, 138, 0.8);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(30, 58, 138, 1);
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #3FCEFF;
}

/* 
主内容容器样式
使用flex布局，左右分屏设计。左侧展示图片，右侧展示文本。响应式设计在小屏幕下改为上下布局。
*/
.container {
    display: flex;
    padding-top: 80px; /* 留出导航栏高度 */
    min-height: 100vh;
    box-sizing: border-box;
}

.left-panel, .right-panel {
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
}

.left-panel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background: rgba(30, 58, 138, 0.5);
}

.left-panel img {
    width: 150px;
    height: 150px;
    margin: 10px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.left-panel img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}

.right-panel {
    background: rgba(48, 63, 159, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 
按钮样式
采用渐变色背景，悬停时颜色反转并放大。圆角设计，增加现代感。
*/
.button {
    background: linear-gradient(45deg, #3FCEFF, #1E3A8A);
    border: none;
    padding: 15px 30px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    border-radius: 25px;
    transition: transform 0.3s ease, background 0.3s ease;
    margin-top: 20px;
    align-self: flex-start;
}

.button:hover {
    transform: scale(1.1);
    background: linear-gradient(45deg, #1E3A8A, #3FCEFF);
}

/* 
文章样式
设置文章内容的排版，标题与段落的样式，确保阅读体验。代码块样式与正文区分，使用背景色和边框。
*/
article {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

article h2, article h3, article h4 {
    color: #3FCEFF;
}

article p {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 20px;
}

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

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

/* 
提示信息样式
突出显示“这是一个网页样式设计参考”的提示，使用显眼的颜色和字体。
*/
.reference-note {
    background: rgba(63, 206, 255, 0.2);
    border-left: 5px solid #3FCEFF;
    padding: 15px;
    margin: 20px 0;
    font-size: 18px;
    color: #ffffff;
    border-radius: 5px;
}

/* 
图片装饰样式
所有装饰性图片采用圆角、阴影和悬浮效果。确保描述属性为空。
*/
.decorative-images img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.decorative-images img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}

/* 
响应式设计
使用媒体查询确保页面在不同屏幕尺寸下的良好显示，无水平滚动条，内容完整可见。
*/
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .left-panel, .right-panel {
        flex: none;
        width: 100%;
        padding: 10px;
    }
    
    .right-panel {
        padding: 20px;
    }
    
    .navbar a {
        margin: 0 10px;
        font-size: 14px;
    }
    
    .button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .reference-note {
        font-size: 16px;
    }
}

/* 
卡片式设计
信息模块采用卡片式布局，增加阴影和圆角，悬停时轻微上移和阴影加深。
*/
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    padding: 20px;
    margin: 20px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.3);
}

/* 
折叠区域样式
次要信息采用折叠效果，用户点击后展开。使用细腻的过渡动画。
*/
.collapsible {
    background: rgba(48, 63, 159, 0.7);
    color: #ffffff;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 18px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.collapsible:hover {
    background: rgba(63, 206, 255, 0.7);
}

.content {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(48, 63, 159, 0.5);
    border-radius: 0 0 5px 5px;
}

/* 
代码示例区样式
代码块有独特的背景和边框，易于辨识与阅读。
*/
.code-example {
    background: #1E3A8A;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
}

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

/* 
页面底部样式
简洁的底部设计，包含版权信息。
*/
.footer {
    background: rgba(30, 58, 138, 0.8);
    color: #ffffff;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* 
动画效果
定义页面加载动画和元素的动效，增加互动性。
*/
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 2s ease-in-out;
}

