
/*  全局样式  */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    color: #e0e0e0;
    background: linear-gradient(135deg, #0a0a2e, #1c1c5b);
    margin: 0;
    padding: 0;
    overflow-x: hidden; /*  防止水平滚动条  */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: #ffffff;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

h2 {
    font-size: 2.2em;
}

h3 {
    font-size: 1.8em;
}

p {
    font-size: 1.1em;
    margin-bottom: 1.2em;
    color: #d0d0d0;
}

a {
    color: #00bcd4;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

.section {
    padding: 60px 0;
}

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

.grid-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/*  页眉样式  */
.header {
    background: linear-gradient(to bottom, rgba(10, 10, 46, 0.95), rgba(10, 10, 46, 0.7));
    padding: 30px 0;
    text-align: center;
    position: relative; /*  为粒子背景定位  */
    overflow: hidden; /*  裁剪粒子效果  */
}

.header-content {
    position: relative; /*  确保内容在粒子之上  */
    z-index: 1;
    padding: 20px;
}

.header h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px #000000;
    letter-spacing: 1.2px;
}

.header p {
    font-size: 1.3em;
    color: #c0c0c0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/*  特色区域样式  */
.features-section {
    background: linear-gradient(to bottom, #1c1c5b, #2e2e7a);
}

.feature-item {
    text-align: center;
}

.feature-item img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 0 0 5px rgba(0, 255, 159, 0.2);
    background-color: #00ff9f; /*  背景色  */
    padding: 10px;
}

.feature-item h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
}

.feature-item p {
    color: #b0b0b0;
}

/*  示例数据展示区域样式  */
.example-data-section {
    background: linear-gradient(to bottom, #2e2e7a, #404099);
}

.example-data-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.example-data-list li {
    margin-bottom: 25px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.example-data-list li:last-child {
    margin-bottom: 0;
}

.example-data-list strong {
    color: #ffffff;
}

/*  文章展示区域样式  */
.article-section {
    background: linear-gradient(to bottom, #404099, #5252b8);
}

.article-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.article-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 12px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.article-content h2, .article-content h3, .article-content h4 {
    color: #ffffff;
}

.article-content pre {
    background-color: #1a1a1a;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto; /*  代码块水平滚动  */
    font-size: 0.9em;
    line-height: 1.5;
    tab-size: 4;
    margin-bottom: 20px;
    white-space: pre-wrap; /*  代码块自动换行  */
}

/*  页脚样式  */
.footer {
    background: #0a0a2e;
    color: #888;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
}

/*  响应式布局  */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
    .header h1 {
        font-size: 3em;
    }
    .header p {
        font-size: 1.2em;
    }
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
    }
    .header h1 {
        font-size: 2.5em;
    }
    .header p {
        font-size: 1.1em;
    }
    .section {
        padding: 50px 0;
    }
    .grid-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 360px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .header {
        padding: 40px 0;
    }
    .header h1 {
        font-size: 2em;
    }
    .header p {
        font-size: 1em;
    }
    .section {
        padding: 40px 0;
    }
    .grid-item {
        padding: 15px;
    }
    .article-content {
        padding: 30px;
    }
}

@media (max-width: 320px) {
    .container {
        max-width: 300px;
    }
    .header h1 {
        font-size: 1.8em;
    }
    .article-content {
        padding: 20px;
    }
}

/*  辅助类，例如按钮样式等，如果需要可以添加  */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1.1em;
    text-align: center;
    text-decoration: none;
    background-color: #00bcd4;
    color: #fff;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #00a7bb;
}

/*  图像和图标样式，如果使用图像可以定义  */
.image-style {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 5px;
}

/*  代码高亮样式，这里使用了简单的预设，可以根据需要扩展  */
pre code.hljs {
    padding: 1em;
}

pre code.hljs {
    color: #f8f8f2;
    background: #282a36;
}

.hljs-comment,
.hljs-quote {
    color: #6272a4;
    font-style: italic;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-subst {
    color: #8be9fd;
    font-weight: bold;
}

.hljs-number,
.hljs-literal,
.hljs-variable,
.hljs-template-variable,
.hljs-tag .hljs-attr {
    color: #f8f8f2; /*  调整为更醒目的颜色 */
}

.hljs-string,
.hljs-doctag {
    color: #50fa7b;
}

.hljs-type,
.hljs-name,
.hljs-selector-id,
.hljs-selector-class,
.hljs-meta,
.hljs-template-tag {
    color: #ff79c6;
}

.hljs-attribute {
    color: #f1fa8c;
}

.hljs-symbol {
    color: #bbbbbb;
}

.hljs-bullet,
.hljs-link,
.hljs-params,
.hljs-property,
.hljs-built_in,
.hljs-builtin-name {
    color: #f8f8f2;
}

.hljs-deletion {
    color: #ff5555;
    background-color: #282a36;
    display: inline-block;
}

.hljs-addition {
    color: #50fa7b;
    background-color: #282a36;
    display: inline-block;
}

.hljs-emphasis {
    font-style: italic;
}

.hljs-strong {
    font-weight: bold;
}

