
/* 
整体页面采用未来主义风格，结合现代科技感与高级质感，通过色彩渐变、阴影效果和动态动画营造出丰富的视觉层次。主色调以深蓝和银灰为主，辅以荧光蓝和亮紫，符合黄金比例配色法则，增强页面的专业性与科技感。使用Flexbox和Grid布局确保响应式设计，从320px到1920px各类设备皆能良好适配。页面中的图片采用圆角和阴影效果，悬浮时添加动态变化，提升互动体验。导航栏固定在顶部，使用透明度渐变与盒阴影增加视觉深度，导航链接添加微动画效果，提升用户操作的愉悦感。段落独立成块，通过间距和边框区分不同内容区域，避免文字堆砌。利用关键帧动画实现粒子动画和电路线条的动态展示，增强页面的动感与未来感。所有内部链接均添加rel="nofollow"属性，确保SEO优化。同时，在显著位置提示“这是一个网页样式设计参考”，符合用户需求。代码部分采用高亮显示，并通过背景与字体颜色区分，使其与正文内容区别开来，便于阅读和理解。底部区域使用Flexbox布局，整合反馈表单与社交链接，保持整体设计的一致性。媒体查询用于不同屏幕尺寸下的布局调整，确保内容在移动端和桌面端的最佳展示效果。以下是具体的CSS样式实现：
*/

/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #ffffff;
    line-height: 1.6;
}

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

.navbar-menu {
    display: flex;
    gap: 20px;
}

.navbar-menu a {
    color: #ffffff;
    text-decoration: none;
    position: relative;
    transition: color 0.3s;
}

.navbar-menu a:hover {
    color: #00ffff;
}

/* 搜索栏样式 */
.search-bar {
    position: relative;
}

.search-bar input {
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    transition: width 0.3s;
    width: 150px;
    background-color: #2a2a2a;
    color: #ffffff;
}

.search-bar input:focus {
    width: 200px;
    outline: none;
}

/* 主内容区样式 */
.container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    padding: 100px 40px 40px 40px;
    background-color: #2a2a2a;
}

.grid-item-text {
    font-size: 1.2em;
    color: #ffffff;
}

.grid-item-image {
    position: relative;
    overflow: hidden;
    max-width: 650px;
}

.grid-item-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.grid-item-image img:hover {
    transform: scale(1.05);
}

/* 粒子动画样式 */
.particle {
    width: 10px;
    height: 10px;
    background-color: #00ffff;
    border-radius: 50%;
    position: absolute;
    animation: moveParticles 5s linear infinite;
}

/* 电路线条动画 */
.electric-line {
    stroke: #ffffff;
    stroke-width: 2;
    stroke-dasharray: 1000;
    animation: drawLine 3s ease-in-out forwards;
}

/* 动画关键帧 */
@keyframes moveParticles {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

@keyframes drawLine {
    from { stroke-dashoffset: 1000; }
    to { stroke-dashoffset: 0; }
}

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

.button:hover {
    background-color: #ff00ff;
    transform: scale(1.05);
}

/* 滚动触发动画 */
.scroll-animate {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

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

/* 代码示例样式 */
.code-block {
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
}

.code-block code {
    color: #00ffff;
    font-family: 'Courier New', Courier, monospace;
    display: block;
}

/* 底部样式 */
.footer {
    background-color: #1e1e1e;
    color: #ffffff;
    padding: 40px 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-form {
    flex: 1;
    min-width: 250px;
    margin-right: 20px;
}

.footer-form input,
.footer-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 3px;
    background-color: #2a2a2a;
    color: #ffffff;
}

.footer-form button {
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    background-color: #00ffff;
    color: #2a2a2a;
    cursor: pointer;
    transition: background-color 0.3s;
}

.footer-form button:hover {
    background-color: #ff00ff;
}

.footer-social {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-social a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: #00ffff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        padding: 100px 20px 20px 20px;
    }

    .navbar-menu {
        flex-direction: column;
        gap: 10px;
    }

    .search-bar input {
        width: 100%;
    }

    .footer {
        flex-direction: column;
        align-items: center;
    }
}

