
/* 
整体页面采用未来主义风格，以深蓝色至黑色的渐变背景为主色调，辅以霓虹蓝、紫色和青色的高亮色，营造出科技感与未来感。使用CSS3的线性渐变、box-shadow和text-shadow等特性，为元素添加立体感和视觉层次。同时，运用Flexbox和Grid实现响应式设计，确保页面在各种设备上均有良好的展示效果。
*/

/* 通用样式 */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); /* 深蓝到黑色渐变背景 */
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5); /* 透明渐变背景 */
    backdrop-filter: blur(10px); /* 背景模糊效果 */
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

.navbar a:hover {
    color: #00d4ff; /* 霓虹蓝色悬停效果 */
}

/* 提示信息样式 */
.notice {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 1.2em;
    border-bottom: 2px solid #00d4ff;
    animation: fadeIn 2s ease-in-out;
}

/* 主内容区域样式 */
.main-content {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
    padding: 100px 50px 50px 50px; /* 上部留出导航栏空间 */
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.sidebar img:hover {
    transform: scale(1.05); /* 悬停放大效果 */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

/* 文章内容样式 */
.article {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

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

.article p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

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

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

/* 卡片布局样式 */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    flex: 1 1 calc(33% - 40px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.2);
}

@media (max-width: 1200px) {
    .navbar {
        padding: 10px 20px;
    }

    .card-container {
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .navbar a {
        margin: 0 10px;
    }

    .card {
        flex: 1 1 calc(50% - 30px);
    }

    .main-content {
        grid-template-columns: 1fr;
        padding: 100px 20px 20px 20px;
    }
}

@media (max-width: 480px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .card {
        flex: 1 1 100%;
    }
}

/* 图片悬停动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* 背景视频样式 */
.background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* 互动节点样式 */
.node {
    width: 10px;
    height: 10px;
    background: #00d4ff;
    border-radius: 50%;
    animation: flow 3s infinite;
}

.node.active {
    animation-duration: 2s;
    background: #ff00c8;
}

/* 流动动画 */
@keyframes flow {
    0% { transform: translateX(0); }
    50% { transform: translateX(20px); }
    100% { transform: translateX(0); }
}

/* 按钮样式 */
.interactive-button {
    background: #ffffff;
    color: #000000;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    font-size: 16px;
}

.interactive-button:hover {
    transform: rotate(5deg);
    box-shadow: 0 0 10px #00d4ff;
}

/* 底部样式 */
.footer {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}

.footer a {
    color: #00d4ff;
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ff00c8;
}

/* 自动适应图片布局 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.image-gallery img {
    width: 100%;
    max-width: 650px;
    border-radius: 10px;
    box-shadow: 0 4px 8px 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 16px rgba(0,0,0,0.5);
}

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

.collapsible:hover {
    background: rgba(0, 212, 255, 0.2);
}

.content {
    padding: 0 18px;
    display: none;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 10px;
}

.collapsible.active + .content {
    display: block;
}

/* 代码示例样式 */
.code-example {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px 0;
}

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

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table, th, td {
    border: 1px solid #00d4ff;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background: rgba(0, 212, 255, 0.2);
}

tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

/* 图标动画样式 */
.icon {
    font-size: 2em;
    color: #00d4ff;
    transition: transform 0.3s ease, color 0.3s ease;
}

.icon:hover {
    transform: scale(1.2);
    color: #ff00c8;
}

/* 动态布局元素 */
.parallax-section {
    height: 100vh;
    background-image: url('https://images.gptkong.com/demo/sample1.png');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-section h2 {
    color: #ffffff;
    font-size: 3em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* 动态交互元素 */
.card:hover .icon {
    transform: rotate(360deg);
}

/* 确保没有水平滚动 */
html, body {
    overflow-x: hidden;
}

