
/* 网页通用样式设置 */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0a0a0a, #1c2833); /* 深色渐变背景 */
    color: #f0f0f0; /* 浅色文本 */
    overflow-x: hidden; /* 防止水平滚动条 */
}

/* 容器和布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background: linear-gradient(to right, #2c3e50, #34495e); /* 头部渐变背景 */
    padding: 20px 0;
    text-align: center;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.header h1 {
    color: #ecf0f1; /* 头部标题颜色 */
    font-size: 2.5em;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 2px 2px 3px #1a242f;
}

.main-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 响应式列布局 */
    gap: 30px;
}

.section {
    background: linear-gradient(145deg, #2e3740, #252d34); /* 区块背景 */
    padding: 25px;
    border-radius: 12px;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.4),
                -2px -2px 5px rgba(255,255,255,0.05);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 6px 6px 15px rgba(0,0,0,0.5),
                -3px -3px 7px rgba(255,255,255,0.08);
}

.section h2 {
    color: #95a5a6; /* 区块标题颜色 */
    border-bottom: 2px solid #7f8c8d;
    padding-bottom: 10px;
    margin-top: 0;
}

.section p {
    line-height: 1.6;
    color: #dcdcdc; /* 段落文本颜色 */
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* 图片网格 */
    gap: 10px;
    margin-top: 20px;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s ease-in-out;
}

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

/* 代码块样式 */
pre {
    background-color: #333; /* 代码块背景色 */
    color: #f8f8f2; /* 代码颜色 */
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto; /* 水平滚动条 */
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.4;
    tab-size: 4;
    word-wrap: break-word; /* 代码自动换行 */
    white-space: pre-wrap;
    box-shadow: 3px 3px 7px rgba(0,0,0,0.3);
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #3a3a3a;
    color: #e0e0e0;
    border-radius: 8px;
    overflow: hidden; /* 隐藏表格边框溢出 */
    box-shadow: 3px 3px 7px rgba(0,0,0,0.3);
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #555; /* 表格分隔线颜色 */
}

th {
    background-color: #444; /* 表头背景色 */
    font-weight: bold;
}

/* 列表样式 */
ul, ol {
    padding-left: 20px;
    color: #d0d0d0;
    line-height: 1.6;
}

li {
    margin-bottom: 8px;
}

/* 链接样式（虽然不使用外部链接，但可用于页面内部锚点，并添加 nofollow 以符合要求） */
a {
    color: #5dade2; /* 链接颜色 */
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: #85c1e9; /* 鼠标悬停链接颜色 */
}

/* 底部样式 */
.footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    background: linear-gradient(to right, #34495e, #2c3e50); /* 底部渐变背景 */
    color: #bdc3c7; /* 底部文本颜色 */
    border-radius: 8px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}

/* 辅助类 */
.text-center {
    text-align: center;
}

.mt-lg {
    margin-top: 40px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    .header h1 {
        font-size: 2em;
    }
    .main-content {
        grid-template-columns: 1fr; /* 小屏幕单列布局 */
    }
    .section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.6em;
    }
    .section h2 {
        font-size: 1.3em;
    }
    .section p {
        font-size: 0.95em;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 10px;
    }
    .section {
        padding: 15px;
    }
}

/* 霓虹强调色 */
.neon-blue {
    color: #4af;
    text-shadow: 0 0 5px #4af, 0 0 10px #4af, 0 0 15px #4af;
}

.neon-green {
    color: #0f0;
    text-shadow: 0 0 5px #0f0, 0 0 10px #0f0, 0 0 15px #0f0;
}

/* 装饰线 */
.deco-line {
    height: 2px;
    background: linear-gradient(to right, rgba(74, 170, 255, 0.3), rgba(0, 255, 0, 0.3));
    margin: 20px 0;
    border-radius: 1px;
}

/* 图片边框效果 */
.image-border {
    border: 2px solid #555;
    padding: 3px;
    border-radius: 10px;
}

/* 文字阴影效果 */
.text-shadow {
    text-shadow: 1px 1px 2px #222;
}

/* 动画效果 (例如悬停放大图片已在 .image-grid img:hover 中定义) */

/* 额外空白区域 */
.spacer {
    margin-top: 60px;
}

/* 特殊强调样式 */
.highlight {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

