
/* 网页通用样式 */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1E272E;
    color: #FFFFFF;
    line-height: 1.7;
    overflow-x: hidden; /* 避免水平滚动条 */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    color: #FFFFFF;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

h2 {
    font-size: 2.2em;
}

h3 {
    font-size: 1.8em;
}

p {
    font-size: 1em;
    color: #EEEEEE;
    margin-bottom: 1.2em;
}

a {
    color: #FFA500;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFD700;
}

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

.section {
    padding: 60px 0;
}

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

.card {
    background-color: #353B48;
    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;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.card-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.card-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}


.card-content {
    flex-grow: 1;
}

.card-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5em;
    color: #FFFFFF;
}

.card-text {
    font-size: 1em;
    color: #EEEEEE;
}

/* 顶部导航栏 */
.navbar {
    background: rgba(30, 39, 46, 0.9); /* 深蓝色背景，轻微透明 */
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px); /* 毛玻璃效果 */
}

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

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

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

.nav-links li {
    margin-left: 30px;
}

.nav-links li:first-child {
    margin-left: 0;
}

.nav-links li a {
    color: #FFFFFF;
    font-size: 1.1em;
    position: relative; /* 下划线动画定位 */
    padding-bottom: 5px; /* 预留空间显示下划线 */
}

.nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #FFA500;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.nav-links li a:hover::after {
    transform: scaleX(1);
}


/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1E272E 0%, #353B48 100%); /* 渐变背景 */
    padding: 150px 0 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* 裁剪超出容器的粒子效果 */
}

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


.hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #FFFFFF, #FFA500, #FFFFFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientText 5s linear infinite;
}

@keyframes gradientText {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}


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

.hero-button {
    display: inline-block;
    background: linear-gradient(90deg, #FFA500, #353B48);
    color: #FFFFFF;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.hero-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}


/* 特色服务 Section */
#services {
    background-color: #2C333A; /* 略深的背景色 */
}


/* 示例文章 Section */
#example-article {
    background-color: #353B48;
    padding: 60px 0;
}

#example-article .container {
    background-color: #2C333A;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#example-article h2 {
    color: #FFA500; /* 文章标题特殊颜色 */
    text-align: center;
    margin-bottom: 40px;
}

#example-article h3 {
    color: #FFFFFF;
    margin-top: 2em;
    margin-bottom: 1em;
}

#example-article b {
    color: #FFD700; /* 强调文本颜色 */
}

#example-article pre {
    background-color: #353B48; /* 代码块背景色 */
    color: #EEEEEE;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto; /* 代码块水平滚动 */
    font-size: 0.9em;
    white-space: pre-wrap; /* 代码自动换行 */
}

#example-article code {
    font-family: monospace, monospace;
}

#example-article table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 20px;
}

#example-article th, #example-article td {
    border: 1px solid #444;
    padding: 10px;
    text-align: left;
}

#example-article th {
    background-color: #444;
    color: #FFFFFF;
    font-weight: bold;
}

/* 示例数据 Section */
#example-data {
    background-color: #2C333A;
    padding: 60px 0;
}

#example-data .container {
    background-color: #353B48;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#example-data h2 {
    color: #FFA500; /* 数据展示标题特殊颜色 */
    text-align: center;
    margin-bottom: 40px;
}

#example-data ul {
    list-style: none;
    padding: 0;
}

#example-data li {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #353B48;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

#example-data li:hover {
    background-color: #444;
}


#example-data li strong {
    color: #FFD700;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
    .hero {
        padding: 120px 0 80px 0;
    }
    .hero-title {
        font-size: 3em;
    }
    .hero-subtitle {
        font-size: 1.1em;
    }
    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
    }
    .hero {
        padding: 100px 0 70px 0;
    }
    .hero-title {
        font-size: 2.5em;
    }
    .hero-subtitle {
        font-size: 1em;
    }
    .navbar-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .logo {
        margin-bottom: 15px;
    }
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
    }
    .nav-links li {
        margin-left: 0;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .hero {
        padding: 80px 0 60px 0;
    }
    .hero-title {
        font-size: 2em;
    }
    .hero-subtitle {
        font-size: 0.9em;
    }
    .card {
        padding: 20px;
    }
    .card-title {
        font-size: 1.3em;
    }
    .card-text {
        font-size: 0.95em;
    }
    #example-article .container, #example-data .container {
        padding: 20px;
    }
}

@media (max-width: 320px) {
    .hero-title {
        font-size: 1.8em;
    }
}

/* 额外装饰性样式 - 可根据需要调整或添加 */
.decorative-line {
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 165, 0, 0), #FFA500, rgba(255, 165, 0, 0));
    margin: 40px auto;
    width: 80%;
}

.section-title {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 60px;
    color: #FFFFFF;
    position: relative; /* 添加下划线位置 */
    display: inline-block; /* 让标题宽度自适应内容 */
    padding-bottom: 10px; /* 预留空间显示下划线 */
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: #FFA500;
}

/* 代码高亮 - 简单实现，可根据需求扩展 */
pre code .keyword { color: #C792EA; }
pre code .string { color: #C3E88D; }
pre code .comment { color: #82AAFF; font-style: italic; }
pre code .number { color: #F78C6C; }
pre code .operator { color: #FFB370; }
pre code .punctuation { color: #FFFFFF; } /* 根据主题调整标点颜色 */
pre code .function { color: #80CBC4; }
pre code .class-name { color: #FFCB6B; }
pre code .attribute { color: #8DE9FD; }

