
/* 基础样式重置与全局设定 */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 或 'Circular Std', 根据实际情况选择，这里先用Roboto */
    background: linear-gradient(180deg, #0a0e27, #040613); /* 深邃渐变背景 */
    color: #e0e0e0; /* 柔和的文字颜色 */
    overflow-x: hidden; /* 避免水平滚动条 */
    scroll-behavior: smooth; /* 平滑滚动效果 */
}

body {
    padding: 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: #ffffff; /* 更亮的标题颜色 */
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    line-height: 1.3;
}

p, ul, ol, pre, code {
    line-height: 1.6;
    margin-bottom: 1em;
    font-family: 'Circular Std', sans-serif; /* 正文部分使用Circular Std */
}

a {
    color: #5bc0de; /* 链接颜色 */
    text-decoration: none; /* 移除默认下划线 */
}

a:hover {
    color: #ffffff; /* 鼠标悬停链接颜色 */
    text-decoration: underline; /* 鼠标悬停显示下划线，提供视觉反馈 */
}

/* 容器和布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
    background-color: rgba(255, 255, 255, 0.05); /* 半透明容器背景 */
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2); /* 容器阴影 */
    display: flex;
    flex-direction: column;
    align-items: stretch; /* 使子元素拉伸以填充容器宽度 */
}

.section {
    margin-bottom: 30px;
    padding: 25px;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.2); /* 模块背景 */
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
    border: 1px solid rgba(255, 255, 255, 0.05); /* 模块边框 */
}

.section-title {
    font-size: 2em;
    color: #f8f9fa; /* 醒目的分标题颜色 */
    border-bottom: 2px solid #6610f2; /* 分标题下划线 */
    padding-bottom: 0.5em;
    margin-bottom: 1em;
}

/* 首页头部区域 */
.header-section {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(45deg, rgba(10, 14, 39, 0.8), rgba(4, 6, 19, 0.8)); /* 头部区域渐变背景 */
    border-radius: 12px;
    margin-bottom: 40px;
}

.header-title {
    font-size: 3.5em;
    color: #ffffff;
    text-shadow: 2px 2px 4px #000000; /* 标题阴影 */
    margin-bottom: 10px;
    letter-spacing: 1.2px; /* 字间距 */
}

.header-subtitle {
    font-size: 1.4em;
    color: #cccccc;
    font-weight: normal;
}

/* 特色模块 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 自适应列数 */
    gap: 25px;
}

.feature-item {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.3); /* 特色项背景 */
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* 平滑过渡效果 */
}

.feature-item:hover {
    transform: translateY(-5px); /* 悬停时轻微上移 */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4); /* 更明显的悬停阴影 */
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background-color: #6610f2; /* 图标背景色 */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 1.8em;
}

.feature-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #ffffff;
}

.feature-description {
    color: #aaaaaa;
}

/* 项目展示模块 */
.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 项目列表自适应列数 */
    gap: 20px;
}

.project-item {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.25); /* 项目项背景 */
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08); /* 项目项边框 */
    transition: background-color 0.3s ease;
}

.project-item:hover {
    background-color: rgba(0, 0, 0, 0.4); /* 悬停时项目项背景变化 */
}

.project-title {
    font-size: 1.2em;
    margin-bottom: 8px;
    color: #ffffff;
}

.project-description {
    color: #bbbbbb;
    margin-bottom: 12px;
}

.project-contributor {
    font-size: 0.95em;
    color: #999999;
    margin-bottom: 6px;
}

.project-status {
    font-size: 0.9em;
    color: #cccccc;
}

/* 示例文章模块 */
.article-section {
    background-color: rgba(0, 0, 0, 0.15); /* 文章区背景 */
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05); /* 文章区边框 */
}

.article-section h2 {
    color: #d4ff72; /* 文章标题颜色 */
    border-bottom-color: #a0d911; /* 文章标题下划线颜色 */
}

.article-section h3 {
    color: #a8a2ff; /* 文章小标题颜色 */
}

.article-section p, .article-section ul, .article-section ol {
    color: #d0d0d0; /* 文章文本颜色 */
}

.article-section pre {
    background-color: #282a36; /* 代码块背景色 */
    color: #f8f8f2; /* 代码颜色 */
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto; /* 水平滚动条，代码过长时可滚动 */
    white-space: pre-wrap; /* 代码自动换行 */
    font-family: monospace, monospace; /* 等宽字体 */
    font-size: 0.9em;
    line-height: 1.4;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3); /* 代码块内阴影 */
}

.article-section pre code {
    display: block; /* 确保代码块显示为块级元素 */
    padding: 0; /* 移除内边距，避免重复 */
}


/* 页脚 */
.footer-section {
    text-align: center;
    padding: 20px;
    color: #888888;
    font-size: 0.9em;
    border-top: 1px solid rgba(255, 255, 255, 0.08); /* 页脚顶部分割线 */
    margin-top: 50px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        padding: 15px 20px;
    }
    .header-section {
        padding: 40px 15px;
    }
    .header-title {
        font-size: 3em;
    }
    .header-subtitle {
        font-size: 1.2em;
    }
    .section {
        padding: 20px;
    }
    .section-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    .header-section {
        padding: 30px 10px;
    }
    .header-title {
        font-size: 2.5em;
    }
    .header-subtitle {
        font-size: 1em;
    }
    .section {
        padding: 15px;
    }
    .section-title {
        font-size: 1.6em;
    }
    .feature-grid {
        grid-template-columns: 1fr; /* 小屏幕单列布局 */
    }
    .project-list {
        grid-template-columns: 1fr; /* 小屏幕项目列表单列 */
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px 5px;
    }
    .container {
        padding: 5px;
        border-radius: 0;
        background-color: transparent;
        box-shadow: none;
    }
    .header-section {
        padding: 20px 5px;
        border-radius: 0;
    }
    .header-title {
        font-size: 2em;
    }
    .section {
        padding: 10px;
        border-radius: 0;
        background-color: transparent;
        backdrop-filter: none;
        border: none;
    }
    .section-title {
        font-size: 1.4em;
        margin-bottom: 0.7em;
        padding-bottom: 0.3em;
    }
    .feature-item {
        padding: 15px;
    }
    .project-item {
        padding: 15px;
    }
    .article-section {
        padding: 20px 10px;
        border-radius: 0;
        background-color: transparent;
        border: none;
    }
}

