
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用无衬线字体 */
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); /* 主体渐变背景 */
    color: #ffffff; /* 白色字体 */
    line-height: 1.6;
}

/* 导航栏样式 */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

header h1 {
    font-size: 24px;
    color: #00e6e6; /* 点缀色 */
}

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

nav ul li {
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: #00e6e6;
    border-bottom: 2px solid #00e6e6;
}

/* 提示信息样式 */
.notification {
    text-align: center;
    padding: 100px 20px 50px 20px; /* 留出导航栏空间 */
    background: rgba(0, 0, 0, 0.5);
}

.notification h2 {
    font-size: 28px;
    color: #ffffff;
    margin-bottom: 20px;
}

.notification p {
    font-size: 16px;
    color: #cccccc;
}

/* 文章内容样式 */
article {
    max-width: 1200px;
    margin: auto;
    padding: 60px 20px;
}

article h2 {
    font-size: 22px;
    color: #00e6e6;
    margin-top: 40px;
    margin-bottom: 20px;
    position: relative;
}

article h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background: #00e6e6;
}

article section {
    margin-bottom: 40px;
}

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

article pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}

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

/* 图像样式 */
img.decorative {
    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;
    margin: 20px auto;
    display: block;
}

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

/* 卡片式布局 */
.card {
    background: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    padding: 20px;
    margin: 15px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 16px rgba(0, 0, 0, 0.2);
    background: #2a2a2a;
}

/* 仪表盘样式 */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.chart {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 15px;
}

/* 个性化设置样式 */
.settings {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 10px;
}

.settings h3 {
    font-size: 18px;
    color: #00e6e6;
    margin-bottom: 10px;
}

.settings label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
}

.settings input[type="color"],
.settings select {
    width: 100%;
    padding: 5px;
    border: none;
    border-radius: 5px;
}

/* 社交互动区样式 */
.social-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    background: #1e1e1e;
    padding: 40px 20px;
    border-top: 1px solid #333;
}

.social-item {
    flex: 1 1 200px;
    margin: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.social-item:hover {
    transform: scale(1.05);
}

.social-item img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
}

.social-item h4 {
    font-size: 18px;
    color: #00e6e6;
    margin-bottom: 10px;
}

.social-item p {
    font-size: 14px;
    color: #cccccc;
}

/* 底部样式 */
footer {
    background: #0f2027;
    color: #ffffff;
    text-align: center;
    padding: 20px;
}

footer p {
    margin: 0;
    font-size: 14px;
}

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

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .dashboard {
        grid-template-columns: 1fr;
    }

    .social-section {
        flex-direction: column;
    }

    .social-item {
        flex: 1 1 100%;
    }
}

/* 动画关键帧 */
@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    50% { transform: translate(50px, 50px); }
    100% { transform: translate(0, 0); }
}

/* 动态背景动画 */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    animation: moveBackground 20s linear infinite;
}

/* 3D 模型样式 */
.vr-model {
    width: 400px;
    height: 400px;
    perspective: 1000px;
    margin: 0 auto;
}

.vr-model .model {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotateModel 20s infinite linear;
}

@keyframes rotateModel {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}

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

.code-example pre {
    margin: 0;
}

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