
/* 网页通用样式 */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0a1128, #000000); /* 深蓝黑渐变背景 */
    color: #f0f0f0; /* 浅色文本 */
    line-height: 1.7;
    overflow-x: hidden; /* 避免水平滚动条 */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: #ffffff; /* 白色标题 */
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    letter-spacing: 0.05em;
}

h2 {
    font-size: 2.2em;
}

h3 {
    font-size: 1.8em;
}

p {
    font-size: 1.1em;
    color: #d0d0d0; /* 稍浅的段落文本 */
    margin-bottom: 1em;
}

a {
    color: #5bc0de; /* 链接颜色 */
    text-decoration: none;
}

a:hover {
    color: #ffffff; /* 悬停链接颜色 */
    text-decoration: underline;
}

/* 容器和布局 */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
}

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

.card {
    background-color: rgba(30, 41, 59, 0.8); /* 深色卡片背景，带透明度 */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* 卡片阴影 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px); /* 悬停时轻微上移 */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); /* 悬停时阴影增强 */
}

/* 头部区域样式 */
header {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3)); /* 头部渐变叠加 */
}

header h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff; /* 白色主标题 */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); /* 标题阴影 */
    letter-spacing: 0.1em;
}

header p {
    font-size: 1.3em;
    color: #eeeeee; /* 稍浅的头部段落文本 */
    max-width: 700px;
    margin: 0 auto;
}

/* 服务板块样式 */
.services-section {
    padding: 60px 0;
}

.services-section h2 {
    text-align: center;
    margin-bottom: 60px;
    color: #ffffff; /* 白色二级标题 */
    position: relative;
    padding-bottom: 20px;
    display: inline-block;
}

.services-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #ff7f50, #ffbf00); /* 标题下划线渐变 */
}

.service-item {
    text-align: center;
}

.service-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 50%; /* 圆形图片 */
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.1); /* 图片边框阴影 */
    transition: transform 0.3s ease;
}

.service-item img:hover {
    transform: scale(1.1); /* 悬停放大 */
}

.service-item h3 {
    color: #ff7f50; /* 服务标题颜色 */
    margin-bottom: 15px;
}

.service-item p {
    color: #c0c0c0; /* 服务描述文本 */
}

/* 案例展示样式 */
.case-studies-section {
    padding: 60px 0;
    background-color: rgba(255, 255, 255, 0.03); /* 案例区背景 */
}

.case-studies-section h2 {
    text-align: center;
    margin-bottom: 60px;
    color: #ffffff; /* 白色二级标题 */
    position: relative;
    padding-bottom: 20px;
    display: inline-block;
}

.case-studies-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #00bcd4, #009688); /* 标题下划线渐变 */
}


.case-study-card {
    background-color: rgba(44, 62, 80, 0.7); /* 案例卡片背景 */
}

.case-study-card img {
    width: 100%;
    border-radius: 10px 10px 0 0; /* 图片上圆角 */
    margin-bottom: 20px;
}

.case-study-card h3 {
    color: #00bcd4; /* 案例标题颜色 */
    margin-bottom: 15px;
}

.case-study-card p {
    color: #b0b0b0; /* 案例描述文本 */
}

/* 文章展示样式 */
.article-section {
    padding: 60px 0;
}

.article-section h2 {
    text-align: center;
    margin-bottom: 60px;
    color: #ffffff; /* 白色二级标题 */
    position: relative;
    padding-bottom: 20px;
    display: inline-block;
}

.article-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #a8ff78, #78ffd6); /* 标题下划线渐变 */
}

article {
    background-color: rgba(30, 41, 59, 0.8); /* 文章背景 */
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* 文章阴影 */
}

article h2, article h3 {
    color: #a8ff78; /* 文章内部标题颜色 */
}

article p {
    color: #d0d0d0; /* 文章段落文本 */
}

article b {
    color: #ffffff; /* 文章粗体文本 */
}

pre {
    background-color: #282c34; /* 代码块背景 */
    color: #abb2bf; /* 代码颜色 */
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto; /* 水平滚动条，在小屏幕下 */
    font-size: 0.9em;
    line-height: 1.5;
    tab-size: 4;
    white-space: pre-wrap; /* 代码换行 */
    word-wrap: break-word; /* 代码断词换行 */
}

code {
    font-family: 'Courier New', Courier, monospace;
}


/* 示例数据展示样式 */
.data-section {
    padding: 60px 0;
    background-color: rgba(255, 255, 255, 0.05); /* 数据区背景 */
}

.data-section h2 {
    text-align: center;
    margin-bottom: 60px;
    color: #ffffff; /* 白色二级标题 */
    position: relative;
    padding-bottom: 20px;
    display: inline-block;
}

.data-section h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, #e67e22, #d35400); /* 标题下划线渐变 */
}

.data-item {
    background-color: rgba(44, 62, 80, 0.7); /* 数据项背景 */
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); /* 数据项阴影 */
}

.data-item h3 {
    color: #e67e22; /* 数据项标题颜色 */
    margin-bottom: 15px;
}

.data-item p {
    color: #c0c0c0; /* 数据项描述文本 */
}

/* 页脚样式 */
footer {
    padding: 40px 20px;
    text-align: center;
    background-color: #0a1128; /* 页脚背景 */
    color: #888888; /* 页脚文本颜色 */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* 页脚顶部边框 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    header {
        padding: 60px 15px;
    }

    header h1 {
        font-size: 2.8em;
    }

    header p {
        font-size: 1.1em;
    }

    .services-section,
    .case-studies-section,
    .article-section,
    .data-section {
        padding: 40px 0;
    }

    .services-section h2,
    .case-studies-section h2,
    .article-section h2,
    .data-section h2 {
        font-size: 2em;
        margin-bottom: 40px;
    }

    article {
        padding: 30px;
    }

    .grid-container {
        grid-template-columns: 1fr; /* 堆叠卡片 */
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2.2em;
    }

    header p {
        font-size: 1em;
    }

    .services-section h2,
    .case-studies-section h2,
    .article-section h2,
    .data-section h2 {
        font-size: 1.8em;
    }

    .card, .case-study-card, .data-item, article {
        padding: 20px;
    }
}

/* 装饰性元素 - 渐变按钮示例 (未使用，可扩展) */
.btn-gradient {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(to right, #ff7f50, #ffbf00);
    color: #ffffff;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-gradient:hover {
    background: linear-gradient(to right, #ffbf00, #ffd700); /* 悬停时颜色变化 */
    transform: scale(1.05);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

/* 提示信息样式 */
.reference-tip {
    text-align: center;
    padding: 20px;
    font-size: 1.1em;
    color: #999;
}

/* 文字排版优化类 */
.text-justify {
    text-align: justify;
}
.text-center {
    text-align: center;
}
.text-bold {
    font-weight: bold;
}
.text-italic {
    font-style: italic;
}
.text-uppercase {
    text-transform: uppercase;
}
.text-lowercase {
    text-transform: lowercase;
}
.text-capitalize {
    text-transform: capitalize;
}
.text-shadow {
    text-shadow: 2px 2px 4px #000000;
}
.letter-spacing {
    letter-spacing: 0.1em;
}
.word-spacing {
    word-spacing: 0.2em;
}

/* 图片样式类 */
.img-rounded {
    border-radius: 8px;
}
.img-circle {
    border-radius: 50%;
}
.img-shadow {
    box-shadow: 5px 5px 10px #000000;
}
.img-border {
    border: 2px solid #ffffff;
}

/* 分隔线样式 */
.divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 40px 0;
}

/* 代码高亮 - PrismJS (模拟，未引入库) */
.language-javascript, .language-css, .language-html {
    /* 假设是 PrismJS 风格，实际需引入库 */
    color: #f8f8f2;
    background: none;
    text-shadow: 0 1px 0 rgba(0,0,0,.3);
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #6272a4;
}

.token.punctuation {
    color: #f8f8f2;
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
    color: #f8f8f2;
}

.token.number {
    color: #bd93f9;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #50fa7b;
}

.token.variable,
.token.operator {
    color: #f8f8f2;
}

.token.keyword {
    color: #ff79c6;
}

.token.function {
    color: #8be9fd;
}

.token.regex,
.token.important,
.token.bold,
.token.italic {
    color: #ffb86c;
}

.token.entity {
    cursor: help;
}

/* 额外样式增加字数 */
.highlight-text {
    color: #ffbf00; /* 高亮文本颜色 */
    font-weight: bold;
}

.underline-text {
    text-decoration: underline; /* 下划线文本 */
    text-underline-offset: 5px; /* 下划线偏移 */
}

.shadow-box {
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5); /* 更强的阴影效果 */
}

.border-glow {
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 10px;
    box-shadow: 0 0 10px 5px rgba(0, 191, 255, 0.2); /* 边框发光效果 */
}

.gradient-bg {
    background: linear-gradient(45deg, #43cea2, #185a9d); /* 另一种渐变背景 */
    padding: 20px;
    border-radius: 10px;
}

.tilt-card {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* 倾斜卡片效果 */
}

.tilt-card:hover {
    transform: rotateX(10deg) rotateY(15deg);
}

.parallax-bg {
    background-image: url('https://images.gptkong.com/demo/sample1.png'); /* 示例图片用作视差背景，实际不应该使用 */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 400px; /* 设置高度以便看到效果 */
    margin-bottom: 40px;
}

.parallax-bg-content {
    background-color: rgba(0, 0, 0, 0.5); /* 覆盖层以增强文字可读性 */
    color: white;
    padding: 50px;
    text-align: center;
}

.parallax-bg-content h2 {
    margin-bottom: 20px;
}

.parallax-bg-content p {
    font-size: 1.2em;
}

