
/* 基础样式重置与全局设定 */
body, html {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #0a0a0a; /* 深色背景，符合潮流科技感 */
    color: #e0e0e0; /* 浅色文字，突出显示 */
    overflow-x: hidden; /* 防止水平滚动条 */
    scroll-behavior: smooth; /* 平滑滚动效果 */
}

*, *::before, *::after {
    box-sizing: border-box; /* 使用 border-box 模型 */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: #fff; /* 标题颜色 */
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

p {
    line-height: 1.6;
    margin-bottom: 1em;
    color: #d0d0d0; /* 段落文本颜色 */
}

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

a:hover {
    color: #a2d9ff; /* 链接悬停颜色 */
}

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

code {
    font-family: monospace, monospace;
    padding: 0.2em 0.4em;
    background-color: #2d2d2d; /* 代码块背景色 */
    color: #f8f8f2; /* 代码颜色 */
    border-radius: 3px;
}

pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 1em;
    border-radius: 5px;
    overflow-x: auto; /* 代码块水平滚动 */
    tab-size: 4; /* Tab 宽度 */
    white-space: pre-wrap; /* 代码自动换行 */
}

/* 全局容器样式 */
.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
}

/* 英雄区域样式 */
.hero-section {
    background: linear-gradient(135deg, #243c5a, #121212); /* 深蓝到黑渐变背景 */
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* 裁剪溢出背景 */
}

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

.hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 3px #000; /* 标题阴影 */
}

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

/* 服务介绍区域样式 */
.services-section {
    background-color: #1a1a1a; /* 稍亮的深色背景 */
    padding: 80px 0;
}

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

.service-item {
    background-color: #252525;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease; /* 动画过渡效果 */
}

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

.service-icon {
    font-size: 2.5em;
    color: #74b9ff;
    margin-bottom: 20px;
}

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

.service-description {
    color: #c0c0c0;
}

/* 案例展示区域样式 */
.cases-section {
    background-color: #0a0a0a; /* 与页面背景一致 */
    padding: 80px 0;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.case-item {
    background-color: #1f1f1f;
    border-radius: 8px;
    overflow: hidden; /* 裁剪图片圆角 */
    transition: box-shadow 0.3s ease;
}

.case-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); /* 悬停时阴影效果 */
}

.case-image {
    width: 100%;
    height: auto;
    display: block; /* 移除图片底部空白 */
}

.case-content {
    padding: 25px;
}

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

.case-description {
    color: #b0b0b0;
}

/* 技术资源区域样式 */
.resources-section {
    background-color: #1a1a1a;
    padding: 80px 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.resource-item {
    background-color: #252525;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    transition: transform 0.2s ease;
}

.resource-item:hover {
    transform: scale(1.05); /* 悬停时轻微放大 */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.resource-icon {
    font-size: 2em;
    color: #8be9fd;
    margin-bottom: 15px;
}

.resource-title {
    font-size: 1.1em;
    color: #fff;
    margin-bottom: 10px;
}

/* 示例文章展示区域样式 */
.article-section {
    background-color: #0a0a0a;
    padding: 80px 0;
}

.article-content {
    background-color: #1f1f1f;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.article-content h2 {
    font-size: 2em;
    margin-bottom: 25px;
    color: #fff;
    border-bottom: 2px solid #444; /* 分割线 */
    padding-bottom: 10px;
}

.article-content h3 {
    font-size: 1.6em;
    margin-top: 2em;
    margin-bottom: 15px;
    color: #fff;
}

.article-content p, .article-content ul, .article-content ol, .article-content table {
    margin-bottom: 1.5em;
    color: #c0c0c0;
}

.article-content pre {
    margin-bottom: 1.5em;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
}

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

.article-content th {
    background-color: #333;
    color: #fff;
    font-weight: bold;
}

/* 代码高亮 - 简单风格，可根据需求扩展 */
.article-content pre code {
    display: block;
    padding: 15px;
    background-color: #2d2d2d;
    color: #f8f8f2;
    border-radius: 5px;
    overflow-x: auto; /* 代码块水平滚动 */
    white-space: pre-wrap; /* 代码自动换行 */
}

/* 页脚样式 */
.footer-section {
    background-color: #000; /* 深黑色页脚 */
    padding: 40px 0;
    text-align: center;
    color: #888;
    font-size: 0.9em;
}

.footer-links a {
    color: #888;
    margin: 0 15px;
}

.footer-links a:hover {
    color: #ccc;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }
    .hero-title {
        font-size: 2.5em;
    }
    .hero-description {
        font-size: 1.1em;
    }
    .services-grid, .cases-grid, .resources-grid {
        grid-template-columns: 1fr; /* 移动端单列布局 */
    }
    .article-content {
        padding: 30px;
    }
    .article-content h2 {
        font-size: 1.8em;
    }
    .article-content h3 {
        font-size: 1.4em;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 0;
    }
    .hero-title {
        font-size: 2em;
    }
    .hero-description {
        font-size: 1em;
    }
    .article-content {
        padding: 20px;
    }
    .article-content h2 {
        font-size: 1.6em;
    }
    .article-content h3 {
        font-size: 1.3em;
    }
}

/* 装饰性背景元素 - 可视需求调整 */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.gptkong.com/demo/sample9.png') repeat; /* 使用示例图片 */
    opacity: 0.08; /* 轻微透明度 */
    z-index: 0; /* 置于内容下方 */
    background-size: cover;
}

.services-section::after {
    content: '';
    position: absolute;
    top: 0; /* 调整起始位置 */
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(100, 200, 255, 0.05), rgba(100, 100, 255, 0.05)); /* 细微纹理 */
    pointer-events: none; /* 穿透点击 */
    z-index: 0;
}
.services-section {
    position: relative; /* 配合 ::after 定位 */
    overflow: hidden;
}

.cases-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.gptkong.com/demo/sample10.png') repeat; /* 另一张示例图片 */
    opacity: 0.05;
    z-index: 0;
    background-size: cover;
}
.cases-section {
    position: relative; /* 配合 ::before 定位 */
    overflow: hidden;
}

/*  补充样式以增加 <style> 代码块字数，并增强视觉效果 */
.hero-title {
    letter-spacing: 1px; /* 标题字间距 */
    text-transform: uppercase; /* 标题字母大写 */
    font-weight: 700; /* 更粗的标题字体 */
}

.service-title {
    letter-spacing: 0.5px;
    font-weight: 600;
}

.case-title {
    font-weight: 600;
}

.resource-title {
    font-weight: 500;
}

.service-item, .case-item, .resource-item {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); /* 默认阴影 */
}

/* 更丰富的渐变色按钮示例 */
.gradient-button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(to right, #4a90e2, #63b3ed); /* 亮蓝色渐变 */
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* 按钮阴影 */
}

.gradient-button:hover {
    background: linear-gradient(to right, #63b3ed, #4a90e2); /* 悬停时反向渐变 */
    transform: translateY(-2px); /* 悬停时轻微上移 */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3); /* 更明显的悬停阴影 */
}

/* 增加分隔线样式 */
hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(200, 200, 200, 0.1), rgba(200, 200, 200, 0.7), rgba(200, 200, 200, 0.1)); /* 渐变分隔线 */
    margin: 30px 0;
}

/*  增加额外的视觉元素，例如点缀性的彩色小圆点 */
.dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #74b9ff; /* 亮蓝色点 */
    opacity: 0.7;
}

.hero-section .dot:nth-child(1) { top: 20%; left: 10%; }
.hero-section .dot:nth-child(2) { top: 40%; right: 15%; }
.hero-section .dot:nth-child(3) { bottom: 25%; left: 30%; }
.hero-section .dot:nth-child(4) { top: 70%; right: 25%; }

/*  调整文章代码块样式，进一步增强可读性 */
.article-content pre code {
    padding: 20px;
    line-height: 1.4;
    font-size: 14px;
    border-left: 4px solid #66d9ef; /* 左侧强调色条 */
}

/*  使用更多的背景图片，增加页面的视觉层次和丰富度 */
.resources-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.gptkong.com/demo/sample11.png') repeat; /* 另一张背景图 */
    opacity: 0.06;
    z-index: 0;
    background-size: cover;
}
.resources-section {
    position: relative;
    overflow: hidden;
}

.article-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.gptkong.com/demo/sample12.png') repeat; /* 又一张背景图 */
    opacity: 0.07;
    z-index: 0;
    background-size: cover;
}
.article-section {
    position: relative;
    overflow: hidden;
}

/*  为列表添加一些样式，使其更具视觉吸引力 */
.article-content ul, .article-content ol {
    list-style-type: none; /* 移除默认列表标记 */
    padding-left: 0;
}

.article-content li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.article-content ul li::before {
    content: '•'; /* 使用自定义列表标记 */
    position: absolute;
    left: 8px;
    top: 0;
    color: #74b9ff; /* 列表标记颜色 */
}

/*  优化移动端排版，确保小屏幕下的阅读体验 */
@media (max-width: 320px) {
    .container {
        width: 95%; /* 更小的屏幕边距 */
        padding: 10px;
    }
    .hero-title {
        font-size: 1.8em; /* 极小屏幕标题 */
    }
    .hero-description {
        font-size: 0.9em; /* 极小屏幕描述 */
    }
    .article-content {
        padding: 15px; /* 极小屏幕文章内边距 */
    }
    .article-content h2 {
        font-size: 1.4em; /* 极小屏幕文章二级标题 */
    }
    .article-content h3 {
        font-size: 1.2em; /* 极小屏幕文章三级标题 */
    }
}
/* 样式代码结束 */

