
/* 基础样式重置与全局设定 */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0A192F, #0D284A); /* 深蓝渐变背景 */
    color: #BFC0C0; /* 银灰色文字 */
    overflow-x: hidden; /* 防止水平滚动条 */
    scroll-behavior: smooth; /* 平滑滚动 */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: #64FFDA; /* 亮蓝色标题 */
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: bold;
}

p {
    line-height: 1.8;
    margin-bottom: 1.2em;
    color: #d4d4d4; /* 稍亮的银灰色段落文字 */
}

a {
    color: #64FFDA; /* 亮蓝色链接 */
    text-decoration: none;
}

a:hover {
    text-decoration: underline; /* 链接hover效果 */
}

ul, ol {
    padding-left: 20px;
    margin-bottom: 1.2em;
}

li {
    line-height: 1.6;
}

/* 代码块样式 */
pre {
    background-color: #1E2D3B; /* 深色代码背景 */
    color: #f8f8f2; /* 代码高亮颜色 */
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto; /* 水平滚动条，如果代码过长 */
    white-space: pre-wrap; /* 代码自动换行 */
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 1.5em;
}

code {
    font-family: 'Courier New', monospace;
    color: #ff79c6; /* 代码内高亮颜色 */
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #64FFDA; /* 亮蓝色按钮背景 */
    color: #0A192F; /* 深蓝色按钮文字 */
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.button:hover {
    background-color: #BFC0C0; /* 银灰色按钮hover背景 */
    transform: scale(1.05); /* 按钮hover放大效果 */
    color: #0A192F;
}

/* 容器和布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 60px; /* 顶部内边距，留出导航栏空间 */
    padding-bottom: 60px;
}

.section {
    padding: 60px 0;
    text-align: center; /* 默认居中对齐 */
}

.section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #64FFDA; /* 亮蓝色标题 */
    text-shadow: 2px 2px 3px rgba(0,0,0,0.3); /* 标题阴影 */
}

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

.grid-item {
    background-color: rgba(255, 255, 255, 0.05); /* 半透明白色网格项背景 */
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* 默认阴影 */
}

.grid-item:hover {
    transform: translateY(-5px); /* 悬停时轻微向上移动 */
    box-shadow: 0 8px 16px rgba(0,0,0,0.2); /* 悬停时阴影加深 */
}

.grid-item h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #64FFDA; /* 亮蓝色小标题 */
}

.grid-item p {
    color: #BFC0C0; /* 银灰色内容文字 */
}

/* 头部导航栏 */
.header {
    background: rgba(0, 0, 0, 0.2); /* 半透明黑色导航栏背景 */
    position: fixed; /* 固定定位 */
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000; /* 确保导航栏在最上层 */
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    color: #64FFDA; /* 亮蓝色Logo文字 */
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links li:first-child {
    margin-left: 0;
}

.nav-links li a {
    color: #BFC0C0; /* 银灰色导航链接 */
    font-size: 16px;
    transition: color 0.3s ease;
    rel: nofollow;
}

.nav-links li a:hover {
    color: #64FFDA; /* 亮蓝色导航链接hover */
    text-decoration: none;
}

/* 英雄区/首屏 */
.hero {
    background: linear-gradient(135deg, #0D284A, #1E2D3B); /* 英雄区深蓝渐变 */
    padding: 150px 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* 裁剪溢出粒子效果 */
}

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

.hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #64FFDA; /* 亮蓝色英雄区标题 */
    text-shadow: 3px 3px 5px rgba(0,0,0,0.5); /* 标题阴影 */
}

.hero-subtitle {
    font-size: 1.4em;
    color: #BFC0C0; /* 银灰色英雄区副标题 */
    margin-bottom: 40px;
}

/* 关于我们 Section */
.about-us {
    background-color: #132F4C; /* 关于我们section背景色 */
}

.about-us-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.about-us-text {
    flex: 1;
    text-align: left;
}

.about-us-image {
    flex: 1;
    text-align: right;
}

.about-us-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.3);
}

/* 功能特点 Section */
.features {
    background: linear-gradient(135deg, #1E2D3B, #294B63); /* 功能特点section渐变背景 */
}

/* 示例文章 Section */
.article-section {
    background-color: #0A192F; /* 文章section背景色 */
    padding: 80px 0;
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}

.article-content h2 {
    font-size: 2.2em;
    color: #64FFDA; /* 文章标题颜色 */
}

.article-content h3 {
    font-size: 1.8em;
    color: #64FFDA; /* 文章小标题颜色 */
    margin-top: 1.8em;
}

.article-content p, .article-content ul, .article-content ol, .article-content table {
    margin-bottom: 1.5em;
    color: #d4d4d4; /* 文章正文颜色 */
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.article-content th, .article-content td {
    border: 1px solid #333;
    padding: 8px;
    text-align: left;
}

.article-content th {
    background-color: #1E2D3B; /* 表头背景 */
    color: #BFC0C0; /* 表头文字颜色 */
}

/* 底部 Footer */
.footer {
    background-color: #0D284A; /* 底部footer背景色 */
    color: #BFC0C0; /* 底部文字颜色 */
    text-align: center;
    padding: 30px 0;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        padding: 15px;
        padding-top: 50px;
        padding-bottom: 50px;
    }
    .section {
        padding: 50px 0;
    }
    .section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .grid-container {
        gap: 20px;
    }
    .grid-item {
        padding: 20px;
    }
    .header {
        padding: 15px 0;
    }
    .hero {
        padding: 120px 0;
    }
    .hero-title {
        font-size: 3em;
    }
    .hero-subtitle {
        font-size: 1.2em;
    }
    .about-us-content {
        flex-direction: column; /* 垂直布局 */
        text-align: center;
    }
    .about-us-text, .about-us-image {
        flex: none;
        width: 100%;
    }
    .about-us-image {
        margin-top: 30px;
        text-align: center;
    }
    .article-section {
        padding: 60px 0;
    }
    .article-content {
        padding: 0 15px;
    }
    .article-content h2 {
        font-size: 2em;
    }
    .article-content h3 {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0;
    }
    .hero-title {
        font-size: 2.5em;
    }
    .hero-subtitle {
        font-size: 1.1em;
    }
    .nav-links {
        display: none; /* 隐藏导航链接，可考虑添加汉堡菜单 */
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0;
    }
    .hero-title {
        font-size: 2em;
    }
    .hero-subtitle {
        font-size: 1em;
    }
    .grid-container {
        grid-template-columns: 1fr; /* 单列布局 */
    }
    .grid-item {
        padding: 15px;
    }
    .article-section {
        padding: 40px 0;
    }
    .article-content h2 {
        font-size: 1.8em;
    }
    .article-content h3 {
        font-size: 1.4em;
    }
}

@media (max-width: 320px) {
    .hero-title {
        font-size: 1.8em;
    }
    .hero-subtitle {
        font-size: 0.9em;
    }
}

/* 装饰性图片通用样式 */
.decorative-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

