
/* 页面通用样式 */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #dcdcdc;
    background-color: #000a1f;
    overflow-x: hidden; /* 防止水平滚动条 */
}

h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    color: #ffffff;
    font-weight: bold;
    margin-top: 2em;
    margin-bottom: 1em;
    text-shadow: 0 0 10px rgba(155, 89, 182, 0.7); /* 霓虹紫文字阴影 */
}

p, ul, ol, table, pre {
    margin-bottom: 1.5em;
    line-height: 1.6;
    color: #e0e0e0; /* 亮银色文本 */
}

a {
    color: #00bfff; /* 电光蓝链接 */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #9b59b6; /* 霓虹紫悬停链接 */
}

/* 全局背景渐变和动画 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom center, rgba(255, 87, 34, 0.2), transparent 50%),
                radial-gradient(circle at top left, rgba(0, 191, 255, 0.1), transparent 50%),
                radial-gradient(circle at top right, rgba(155, 89, 182, 0.15), transparent 50%),
                linear-gradient(to bottom, #000a1f, #000000); /* 多层渐变叠加 */
    background-size: cover;
    background-attachment: fixed;
    animation: aurora-move 20s linear infinite alternate; /* 极光动画，更慢速 */
    z-index: -1; /* 置于内容下方 */
}

@keyframes aurora-move {
    0% {
        background-position: 0% 0%, 10% 10%, 90% 20%, 0% 0%;
    }
    100% {
        background-position: 100% 100%, 110% 110%, 190% 120%, 100% 100%;
    }
}


/* 容器和布局 */
.container {
    width: 85%;
    max-width: 1200px;
    margin: 50px auto;
    padding: 30px 40px;
    background-color: rgba(0, 10, 31, 0.85); /* 深蓝半透明容器背景 */
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6); /* 容器阴影增强 */
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    position: relative; /* 为了定位提示信息 */
}

.section {
    padding: 20px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1); /* 分割线更柔和 */
    margin-bottom: 20px;
}

.section:last-child {
    border-bottom: none; /* 移除最后一个section的分割线 */
    margin-bottom: 0;
}

.grid-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center; /* 垂直居中对齐 */
}

.grid-item {
    flex: 1;
    min-width: 250px; /* 最小宽度，适应小屏幕 */
}

/* 标题和文本样式 */
.main-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5em;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    margin-bottom: 1.5em;
    letter-spacing: 0.05em; /* 字间距 */
    text-shadow: 0 0 20px #9b59b6; /* 更强的霓虹标题阴影 */
}

.section-title {
    font-size: 2.2em;
    color: #00bfff; /* 电光蓝小标题 */
    border-bottom: 2px solid #00bfff; /* 电光蓝标题下划线 */
    padding-bottom: 0.3em;
    margin-bottom: 0.8em;
    display: inline-block; /* 使下划线适应文字宽度 */
}

.subsection-title {
    font-size: 1.6em;
    color: #ffffff;
    margin-bottom: 0.6em;
    font-weight: bold;
}

.body-text {
    font-size: 1.1em;
    line-height: 1.7;
}

/* 图片样式 */
.image-style {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4); /* 图片阴影 */
    transition: transform 0.3s ease; /* 图片 hover 动画 */
}

.image-style:hover {
    transform: scale(1.05);
}

.decorative-image {
    width: 100px; /* 小尺寸装饰图片 */
    height: 100px;
    object-fit: cover; /* 保持图片比例 */
    border-radius: 50%; /* 圆形图片 */
    margin: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* 列表样式 */
ul, ol {
    padding-left: 25px;
}

li {
    margin-bottom: 0.6em;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
}

th, td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px;
    text-align: left;
}

th {
    background-color: rgba(0, 191, 255, 0.1); /* 电光蓝表头背景 */
    font-weight: bold;
    color: #ffffff;
}

/* 代码块样式 */
pre {
    background-color: #1e272e; /* 深色代码背景 */
    color: #f8f8f2; /* 代码高亮颜色 */
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto; /* 水平滚动条，如果代码过长 */
    font-family: 'Consolas', monospace; /* 等宽字体 */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* 代码块阴影 */
    position: relative; /* 相对定位，为了添加行号 */
}

pre code {
    display: block; /* 确保代码块独占一行 */
    line-height: 1.4;
    font-size: 0.9em;
}

/* 链接样式 */
a[rel="nofollow"] {
    text-decoration: none; /* 移除下划线 */
    color: #00bfff;
}

a[rel="nofollow"]:hover {
    color: #9b59b6;
    text-decoration: underline; /* 悬停时显示下划线 */
}

/* 提示信息样式 */
.reference-tip {
    position: absolute;
    top: 15px;
    right: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9em;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 92%;
        padding: 25px 30px;
    }
    .main-title {
        font-size: 3em;
    }
    .section-title {
        font-size: 2em;
    }
}

@media (max-width: 1024px) {
    .container {
        width: 95%;
        margin: 30px auto;
    }
    .main-title {
        font-size: 2.5em;
    }
    .section-title {
        font-size: 1.8em;
    }
    .body-text {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .container {
        width: 98%;
        padding: 20px;
        margin: 20px auto;
    }
    .main-title {
        font-size: 2em;
    }
    .section-title {
        font-size: 1.6em;
    }
    .grid-row {
        flex-direction: column; /* 垂直排列 grid items */
    }
    .grid-item {
        min-width: auto; /* 移除最小宽度限制 */
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    .main-title {
        font-size: 1.6em;
    }
    .section-title {
        font-size: 1.4em;
    }
    .body-text {
        font-size: 0.95em;
    }
    ul, ol {
        padding-left: 20px;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 10px;
    }
    .main-title {
        font-size: 1.4em;
    }
    .section-title {
        font-size: 1.2em;
    }
}

