
/* 网页通用样式 */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #0a192f, #000000);
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.7;
    letter-spacing: 0.5px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: #ffd700; /* 金色标题 */
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5); /* 标题文字阴影 */
}

p, li, td {
    font-family: 'Roboto', sans-serif;
    color: #f0f0f0;
    font-size: 16px;
    line-height: 1.8;
}

a {
    color: #39ff14; /* 霓虹绿链接 */
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
}

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

.section {
    margin-bottom: 60px;
    padding: 40px;
    background-color: rgba(255, 255, 255, 0.05); /* 模块背景 */
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2); /* 模块阴影 */
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-item {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
}

/* 头部样式 */
header {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

nav ul li {
    display: inline;
    margin: 0 20px;
}

nav ul li a {
    color: #ffffff;
    font-size: 18px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

nav ul li a:hover {
    color: #39ff14;
    text-shadow: 0 0 5px #39ff14;
}

/* 主内容区域 */
main {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* 特色模块 */
.feature-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    padding: 50px 30px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    margin-bottom: 40px;
}

.feature-section h2 {
    color: #39ff14; /* 霓虹绿特色标题 */
    text-shadow: 0 0 8px #39ff14;
}

.feature-section p {
    color: #e0e0e0;
    font-size: 18px;
    max-width: 800px;
    margin: 20px auto;
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 20px auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* 代码块样式 */
pre {
    background-color: rgba(0, 0, 0, 0.8);
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto; /* 水平滚动条，在小屏幕上可以滚动 */
    tab-size: 4;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap; /* 代码自动换行 */
    word-wrap: break-word; /* 单词过长时换行 */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

pre code {
    display: block; /* 确保代码块占据整个pre宽度 */
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden; /* 防止border-radius溢出 */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

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

th {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffd700;
    font-weight: bold;
}

/* 按钮样式 */
button, .button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #39ff14;
    color: #0a192f;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.5);
}

button:hover, .button:hover {
    background-color: #ffffff;
    color: #0a192f;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
    }

    .section {
        padding: 30px 20px;
        margin-bottom: 40px;
    }

    nav ul li {
        margin: 0 10px;
    }

    nav ul li a {
        font-size: 16px;
    }

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

    .feature-section {
        padding: 40px 20px;
    }

    .feature-section p {
        font-size: 16px;
    }

    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 2em;
    }

    h3 {
        font-size: 1.7em;
    }

    p, li, td {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    nav ul li {
        display: block;
        margin: 10px 0;
    }
}

/* 提示信息样式 */
.reference-tip {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
}

/* 示例文章特定样式 */
.article-section article {
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.article-section article h2 {
    color: #39ff14; /* 文章二级标题霓虹绿 */
}

.article-section article h3 {
    color: #ffd700; /* 文章三级标题金色 */
}

.article-section article b {
    color: #ffffff; /* 文章内强调文字白色 */
    font-weight: bolder;
}

/* 分割线 */
.divider {
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
    margin: 30px 0;
}

/* 辅助类 */
.text-center { text-align: center; }
.mt-large { margin-top: 80px; }
.mb-large { margin-bottom: 80px; }
.highlight-text { color: #ffd700; text-shadow: 0 0 5px rgba(255, 215, 0, 0.8); } /* 高亮文本 */
.interactive-element { color: #39ff14; text-shadow: 0 0 5px rgba(57, 255, 20, 0.8); } /* 互动元素文本 */
.section-title { font-size: 2.8em; margin-bottom: 0.5em; } /* 节标题 */
.section-subtitle { font-size: 1.4em; color: #ccc; margin-bottom: 2em; } /* 节副标题 */
.image-grid { display: flex; flex-wrap: wrap; justify-content: space-around; }
.image-grid img { width: calc(33.33% - 20px); margin-bottom: 20px; } /* 图片网格 */
.code-block { margin: 20px 0; } /* 代码块间距 */
.list-style-none { list-style: none; padding-left: 0; } /* 无样式列表 */
.gradient-button {
    background: linear-gradient(to right, #39ff14, #ffd700);
    color: #0a192f;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.7), 0 0 10px rgba(255, 215, 0, 0.7);
}
.gradient-button:hover {
    background: linear-gradient(to right, #ffffff, #ffffff);
    color: #0a192f;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
}

/* 示例数据展示区域样式 */
.example-data-section {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    margin-bottom: 60px;
}

.example-data-section h2 {
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.example-data-list {
    list-style: none;
    padding: 0;
}

.example-data-list li {
    margin-bottom: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}

.example-data-list li h3 {
    color: #39ff14;
    margin-bottom: 10px;
    text-shadow: 0 0 3px rgba(57, 255, 20, 0.5);
}

.example-data-list li p {
    color: #e0e0e0;
}


