
/* 
  页面整体样式设计
  1. 使用现代网页布局技术，如Flexbox和Grid，确保响应式设计。
  2. 应用未来感与高级质感的色彩搭配，主色调为深蓝色和银色，辅色为橙色和绿色，点缀色为亮橙。
  3. 所有图片装饰性展示，添加圆角、阴影和悬浮效果。
  4. 导航栏固定在顶部，采用半透明背景，菜单项在悬停时添加3D旋转动画。
  5. 主要内容区域采用模块化布局，保证每个板块宽度不小于500px。
  6. 使用线性渐变和径向渐变增强视觉层次感。
  7. 文字样式选择无衬线字体，调整字号以提高可读性。
  8. 添加过渡和动画效果，增强用户的互动体验。
  9. 保证所有内部链接添加rel="nofollow"属性，禁止外部链接。
  10. 突出显示“这是一个网页样式设计参考”提示。
  11. 使用CSS3高级特性，如box-shadow, text-shadow, keyframes动画等。
  12. 确保页面在各种设备和分辨率下展示良好，无水平滚动条。
*/

/* 设置全局字体和背景 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0D47A1, #81D4FA);
    color: #FFFFFF;
    line-height: 1.6;
}

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

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    color: #FFFFFF;
}

.navbar .nav-links {
    display: flex;
    gap: 15px;
}

.navbar .nav-links a {
    color: #FFFFFF;
    text-decoration: none;
    position: relative;
    transition: transform 0.5s;
}

.navbar .nav-links a:hover {
    transform: rotateY(360deg);
}

/* 显示“这是一个网页样式设计参考” */
.notice {
    text-align: center;
    padding: 100px 20px 50px 20px;
    font-size: 20px;
    font-weight: bold;
    background: rgba(255, 152, 0, 0.8);
    color: #FFFFFF;
    border-radius: 10px;
    margin: 80px 50px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 文章内容样式 */
article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

article h2, article h3 {
    color: #FFFFFF;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

article h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

article h3 {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
}

article p {
    font-size: 16px;
    margin-bottom: 15px;
    color: #F5F5F5;
}

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

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

/* 图片装饰样式 */
.decorative-images {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
}

.decorative-images img {
    width: 320px;
    height: 320px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* 模块化布局与网格系统 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    padding: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.grid-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.grid-item:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

/* 高对比度按钮设计 */
.btn-primary, .btn-success {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 16px;
}

.btn-primary {
    background-color: #FF9800;
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #E68900;
}

.btn-success {
    background-color: #4CAF50;
    color: #FFFFFF;
}

.btn-success:hover {
    background-color: #43A047;
}

/* 动态动画与滚动效果 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 代码块样式 */
.code-block {
    background: rgba(0,0,0,0.7);
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.code-block code {
    color: #81D4FA;
    font-family: 'Courier New', Courier, monospace;
}

/* 3D图标与微动效 */
.icon-3d {
    width: 50px;
    height: 50px;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center;
    background-size: contain;
    transition: transform 0.3s;
}

.icon-3d:hover {
    transform: scale(1.1) rotateZ(15deg);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
    }

    .nav-links a {
        padding: 10px 0;
        width: 100%;
        text-align: left;
    }

    .notice {
        margin: 100px 20px 30px 20px;
        font-size: 18px;
    }

    .grid-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .decorative-images img {
        width: 100%;
        height: auto;
    }
}

/* 按钮样式调整 */
.btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}


