
/* 全局样式重置，消除不同浏览器的默认样式差异 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 设置页面的基本字体和背景 */
body {
    font-family: 'Roboto', sans-serif; /* 正文字体 */
    background: linear-gradient(135deg, #0F2027, #203A43, #2C5364); /* 深蓝色渐变背景 */
    color: #ffffff;
    line-height: 1.6;
    letter-spacing: 0.5px;
    overflow-x: hidden; /* 防止横向滚动条 */
}

/* 定义标题的字体和颜色 */
h2, h3 {
    font-family: 'Orbitron', sans-serif; /* 未来感字体 */
    color: #00c6ff; /* 霓虹蓝色 */
    margin-bottom: 15px;
}

/* 段落样式 */
p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* 引导文字样式 */
.notice {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.5);
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(32, 58, 67, 0.9);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.navbar ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

.navbar li {
    margin: 0 20px;
}

.navbar a {
    color: #00c6ff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar a:hover {
    color: #e52e71;
    transform: scale(1.1);
}

/* 主内容区域的上边距，避免被固定导航栏遮挡 */
.main-content {
    padding-top: 80px;
    padding-bottom: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 文章样式 */
article {
    margin: 40px 20px;
}

/* 每个段落的视觉区块 */
section {
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

/* 代码块的独特样式 */
pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'Courier New', Courier, monospace;
}

code {
    color: #00ffea;
    font-size: 14px;
}

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

.image-container img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-container img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0,0,0,0.5);
}

/* 按钮样式 */
.gradient-button {
    background: linear-gradient(45deg, #00c6ff, #0072ff);
    border: none;
    border-radius: 25px;
    color: white;
    padding: 15px 30px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    margin: 20px 0;
}

.gradient-button:hover {
    background: linear-gradient(45deg, #0072ff, #00c6ff);
    transform: scale(1.05);
}

/* 渐变文字效果 */
.gradient-text {
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 网格布局容器 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* 模块卡片样式 */
.module-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.module-card:hover {
    transform: scale(1.05);
}

/* 数字雨效果 */
.digital-rain {
    position: absolute;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    overflow: hidden;
    top: 0;
    left: 0;
}

.digital-rain::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 50%;
    width: 2px;
    height: 100%;
    background: rgba(0, 255, 255, 0.5);
    animation: rain 5s linear infinite;
}

@keyframes rain {
    to { transform: translateY(100vh); }
}

/* 渐变动画背景 */
.background {
    position: fixed;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0F2027, #203A43, #2C5364);
    background-size: 600% 600%;
    animation: gradientAnimation 15s ease infinite;
    z-index: -1;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 3D图形效果 */
.vector-icon {
    width: 50px;
    height: 50px;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center center / contain;
    transform: rotateY(0deg);
    transition: transform 0.5s ease;
}

.vector-icon:hover {
    transform: rotateY(360deg);
}

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

    .navbar li {
        margin: 10px 0;
    }

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

    .gradient-button {
        width: 100%;
        padding: 10px;
    }

    .image-container img {
        width: 100%;
        height: auto;
    }
}

/* 面包屑导航样式 */
.breadcrumb {
    font-size: 14px;
    margin-bottom: 20px;
    color: #00c6ff;
}

.breadcrumb a {
    color: #00c6ff;
    text-decoration: none;
    margin: 0 5px;
}

.breadcrumb a:hover {
    color: #e52e71;
    text-decoration: underline;
}

/* 悬浮菜单样式 */
.floating-menu {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 198, 255, 0.8);
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.floating-menu:hover {
    background: rgba(229, 46, 113, 0.8);
    transform: scale(1.1);
}

.floating-menu::before {
    content: '≡';
    font-size: 24px;
    color: #ffffff;
}

/* 段落分隔线 */
.section-divider {
    height: 2px;
    background: linear-gradient(to right, #00c6ff, #e52e71);
    margin: 40px 0;
    border: none;
}

/* 卡片式布局中的引用样式 */
q {
    font-style: italic;
    color: #ff8a00;
}

/* 链接悬停效果 */
a {
    color: #00c6ff;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

a:hover {
    color: #e52e71;
    transform: scale(1.1);
}

/* 底部版权信息样式 */
.footer {
    text-align: center;
    padding: 20px 0;
    background: rgba(32, 58, 67, 0.9);
    color: #ffffff;
    position: relative;
    bottom: 0;
    width: 100%;
}

