
/* 网页基础样式 */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0a0a0a; /* 深黑色背景，增强科技感 */
    color: #e0e0e0; /* 浅灰色文字，提高可读性 */
    line-height: 1.7;
    overflow-x: hidden; /* 防止水平滚动条 */
}

/* 全局链接样式 */
a {
    color: #66ccff; /* 亮蓝色链接，突出显示 */
    text-decoration: none; /* 移除默认下划线 */
}

a:hover {
    color: #aaddff; /* 悬停时链接颜色略微变化 */
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Condensed', 'Arial Narrow Bold', sans-serif; /* 标题字体 */
    color: #ffcc66; /* 金黄色标题，醒目且符合赛博朋克主题 */
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* 标题文字阴影 */
}

h2 { font-size: 2.2em; }
h3 { font-size: 1.8em; }
h4 { font-size: 1.4em; }

/* 段落样式 */
p {
    margin-bottom: 1.2em;
    font-size: 1.1em;
}

/* 代码块样式 */
pre {
    background-color: #1e1e1e; /* 深灰色代码块背景 */
    color: #f8f8f2; /* 浅色代码文字 */
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto; /* 水平滚动条，当代码过长时显示 */
    tab-size: 4;
    font-family: 'Courier New', Courier, monospace; /* 等宽字体 */
    font-size: 0.95em;
    line-height: 1.5;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.3); /* 代码块阴影 */
    white-space: pre-wrap; /* 代码自动换行 */
}

/* 列表样式 */
ul, ol {
    margin-bottom: 1.2em;
    padding-left: 25px;
}

li {
    margin-bottom: 0.6em;
}

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

/* 头部区域样式 */
header {
    background: linear-gradient(to right, #242424, #0a0a0a); /* 头部背景渐变 */
    padding: 30px 0;
    border-bottom: 1px solid #333; /* 头部底部边框 */
}

header h1 {
    color: #fdd835; /* 头部标题颜色，鲜艳的黄色 */
    font-size: 2.8em;
    text-align: center;
    margin: 0;
    letter-spacing: 1px;
}

/* 主内容区域样式 */
main {
    padding: 40px 0;
    background: linear-gradient(to bottom, #0a0a0a, #181818); /* 主内容背景渐变 */
}

.hero-section {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #1a237e, #5e35b1); /* 英雄区域背景渐变 */
    color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); /* 英雄区域阴影 */
    margin-bottom: 50px;
}

.hero-section h2 {
    font-size: 3.5em;
    color: #ffea00; /* 英雄区域标题颜色 */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* 英雄区域标题阴影 */
}

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

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

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

.feature-item {
    background-color: #121212; /* 特性项背景色 */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4); /* 特性项阴影 */
    transition: transform 0.3s ease; /* 特性项过渡效果 */
}

.feature-item:hover {
    transform: translateY(-5px); /* 悬停时向上轻微位移 */
}

.feature-item h3 {
    color: #00bcd4; /* 特性标题颜色 */
    margin-top: 0;
}

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

.example-section {
    background-color: #1a1a1a; /* 示例区域背景色 */
    padding: 50px 0;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); /* 示例区域阴影 */
    margin-bottom: 50px;
}

.example-section h2 {
    color: #9ccc65; /* 示例区域标题颜色 */
    text-align: center;
    margin-bottom: 40px;
}

.example-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* 示例列表响应式网格 */
    gap: 30px;
}

.example-item {
    background-color: #1e1e1e; /* 示例项背景色 */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); /* 示例项阴影 */
}

.example-item h4 {
    color: #ffb74d; /* 示例项标题颜色 */
    margin-top: 0;
}

.example-item p {
    color: #eee;
}

.article-section {
    padding: 40px 0;
    background: linear-gradient(to bottom, #181818, #242424); /* 文章区域背景渐变 */
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); /* 文章区域阴影 */
    margin-bottom: 50px;
}

.article-section h2 {
    color: #e6ee9c; /* 文章区域标题颜色 */
    text-align: center;
    margin-bottom: 30px;
}

.article-content {
    background-color: #121212; /* 文章内容背景色 */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4); /* 文章内容阴影 */
}

.article-content h3 {
    color: #39ff14; /* 文章内容子标题颜色，荧光绿 */
}

.article-content b {
    color: #80deea; /* 文章内容强调文字颜色 */
}

/* 页脚样式 */
footer {
    background: linear-gradient(to left, #242424, #0a0a0a); /* 页脚背景渐变 */
    padding: 20px 0;
    text-align: center;
    color: #999;
    border-top: 1px solid #333; /* 页脚顶部边框 */
    font-size: 0.9em;
}

/* 响应式媒体查询 */
/* 小尺寸手机 */
@media (max-width: 320px) {
    .container {
        width: 95%;
        padding: 10px;
    }

    header h1 {
        font-size: 2em;
    }

    .hero-section h2 {
        font-size: 2.5em;
    }

    .hero-section p {
        font-size: 1em;
    }
}

/* 大尺寸手机 */
@media (min-width: 321px) and (max-width: 480px) {
    .container {
        width: 90%;
        padding: 15px;
    }

    header h1 {
        font-size: 2.2em;
    }

    .hero-section h2 {
        font-size: 2.8em;
    }

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

/* 竖屏平板 */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        width: 85%;
    }

    header h1 {
        font-size: 2.4em;
    }

    .hero-section h2 {
        font-size: 3em;
    }

    .feature-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

/* 中等屏幕，重点适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        width: 80%;
    }

    header h1 {
        font-size: 2.6em;
    }

    .hero-section h2 {
        font-size: 3.2em;
    }
}

/* 桌面显示器 */
@media (min-width: 1025px) and (max-width: 1200px) {
    .container {
        width: 75%;
    }

    header h1 {
        font-size: 2.8em;
    }

    .hero-section h2 {
        font-size: 3.5em;
    }
}

/* 大尺寸桌面显示器 */
@media (min-width: 1201px) {
    .container {
        width: 70%;
    }

    header h1 {
        font-size: 3em;
    }

    .hero-section h2 {
        font-size: 3.8em;
    }
}

/* 装饰图片样式 */
.decorative-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

/* 分隔线样式 */
hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(204, 204, 204, 0), rgba(204, 204, 204, 0.75), rgba(204, 204, 204, 0));
    margin: 30px 0;
}

/* 特殊强调文本样式 */
.highlight {
    color: #ffca28; /* 醒目的黄色高亮 */
    font-weight: bold;
}

/* 清晰可读的代码示例额外样式 */
.article-content pre {
    background-color: #282a36; /* 稍微深色的代码背景 */
    color: #f8f8f2;        /* 代码文本颜色 */
    border-left: 4px solid #6272a4; /* 左侧边框强调 */
    padding: 12px 15px;    /* 略微调整内边距 */
    border-radius: 6px;     /* 圆角 */
    overflow-x: auto;      /* 水平滚动 */
    font-size: 0.9em;      /* 稍小字体 */
    line-height: 1.6;       /* 行高 */
    font-family: 'Fira Code', 'Courier New', monospace; /* 更现代的代码字体 */
}

/* 按钮样式示例 (未使用，但可用于交互元素) */
.button {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background-color: #00bcd4; /* 青色按钮背景 */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.button:hover {
    background-color: #00acc1; /* 悬停时略微加深背景色 */
}

/* 页面提示信息样式 */
.reference-tip {
    text-align: center;
    color: #777;
    font-size: 0.9em;
    margin-top: 40px;
    margin-bottom: 20px;
}

