
/* 基础样式重置与全局设定 */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a192f, #183b56); /* 深蓝到中蓝渐变背景 */
    color: #cdd9e5; /* 浅灰色文字 */
    overflow-x: hidden; /* 避免水平滚动条 */
    scroll-behavior: smooth; /* 平滑滚动 */
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* 移除链接默认样式 */
a {
    text-decoration: none;
    color: inherit;
}

/* 通用容器样式 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 标题通用样式 */
h2 {
    font-size: 2.5em;
    font-weight: bold;
    color: #64ffda; /* 亮蓝色标题 */
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3); /* 标题阴影 */
}

h3 {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #cdd9e5;
}

p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #a8b2bd; /* 稍暗灰色正文 */
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #64ffda; /* 亮蓝色按钮背景 */
    color: #0a192f; /* 深蓝色按钮文字 */
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease; /* 平滑过渡效果 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* 按钮阴影 */
}

.button:hover {
    background-color: #42c9b2; /* 悬停时按钮背景颜色 */
    transform: scale(1.05); /* 悬停时按钮 हल्का放大 */
}

/* 头部区域样式 */
.header {
    background: rgba(10, 25, 47, 0.8); /* 半透明深蓝色头部背景 */
    padding: 20px 0;
    position: sticky; /* 头部固定在顶部 */
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #64ffda;
    text-shadow: 2px 2px 3px rgba(0,0,0,0.5);
}

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

.nav-item {
    margin-left: 25px;
}

.nav-link {
    color: #cdd9e5;
    font-size: 1em;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #64ffda;
}

/* 首页内容区域样式 */
.hero {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.9), rgba(24, 59, 86, 0.9)); /* 带有透明度的渐变背景 */
    position: relative;
    overflow: hidden; /* 裁剪溢出内容，用于粒子效果 */
}

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

.hero h1 {
    font-size: 3.5em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 3px 3px 5px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2em;
    color: #a8b2bd;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* 特性展示区域样式 */
.features {
    padding: 80px 0;
    background-color: #0a192f; /* 深蓝色背景 */
}

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

.feature-item {
    background-color: rgba(255, 255, 255, 0.05); /* 特性项 হালকা背景 */
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* 平滑过渡效果 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* 特性项阴影 */
}

.feature-item:hover {
    transform: translateY(-5px); /* 悬停时 हल्का向上移动 */
    box-shadow: 0 8px 15px rgba(0,0,0,0.2); /* 悬停时阴影增强 */
}

.feature-icon img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 50%;
    background-color: #64ffda; /* 图标背景色 */
    padding: 15px;
}

.feature-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
}

.feature-desc {
    color: #a8b2bd;
}

/* 示例文章展示区域样式 */
.article-section {
    padding: 80px 0;
    background-color: #112240; /* 稍深蓝色背景 */
}

.article-content {
    background-color: rgba(255, 255, 255, 0.03); /* 文章内容 হালকা背景 */
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 3px 7px rgba(0,0,0,0.15); /* 文章内容阴影 */
}

.article-content h2 {
    text-align: left; /* 文章标题左对齐 */
}

.article-content h3, .article-content h4 {
    color: #64ffda; /* 文章小标题亮蓝色 */
    margin-top: 25px;
    margin-bottom: 10px;
}

.article-content pre {
    background-color: #0a192f; /* 代码块深蓝色背景 */
    color: #cdd9e5; /* 代码块文字颜色 */
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto; /* 代码块水平滚动 */
    font-size: 0.9em;
    line-height: 1.5;
    white-space: pre-wrap; /* 代码块自动换行 */
}

.article-content code {
    font-family: monospace, monospace; /* 代码字体 */
}

.article-content ul {
    list-style-type: square;
    padding-left: 25px;
    margin-bottom: 15px;
}

.article-content li {
    margin-bottom: 8px;
}

/* 页脚样式 */
.footer {
    background-color: #0a192f; /* 深蓝色页脚背景 */
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* 页脚顶部分割线 */
}

.footer p {
    font-size: 0.9em;
    color: #a8b2bd;
    margin-bottom: 0;
}

/* 小屏幕适配 */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 15px;
    }

    h2 {
        font-size: 2em;
    }

    h3 {
        font-size: 1.5em;
    }

    p {
        font-size: 1em;
    }

    .header-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo {
        margin-bottom: 10px;
    }

    .nav-list {
        flex-direction: column;
    }

    .nav-item {
        margin-left: 0;
        margin-top: 15px;
    }

    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 2.8em;
    }

    .hero p {
        font-size: 1.1em;
    }

    .features {
        padding: 60px 0;
    }

    .feature-item {
        padding: 20px;
    }

    .feature-icon img {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
        padding: 10px;
    }

    .feature-title {
        font-size: 1.3em;
    }

    .article-section {
        padding: 60px 0;
    }

    .article-content {
        padding: 25px;
    }
}

/* 更小屏幕适配 (手机) */
@media (max-width: 480px) {
    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.4em;
    }

    .hero h1 {
        font-size: 2.2em;
    }
}

