
/* 基础样式重置与全局设定 */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #04071c, #0b132b);
    color: #e0e0e0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* 页面容器及通用布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px;
}

.section {
    padding: 60px 0;
    text-align: center;
}

.section-title {
    font-size: 2.5em;
    color: #fff;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

/* 头部区域样式 */
header {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 0;
    position: relative; /* 确保header成为定位上下文 */
    z-index: 100; /* 提高层级，确保在内容之上 */
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    filter: blur(10px); /* 高斯模糊效果 */
    z-index: -1; /* 置于内容下方 */
}


nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #ddd;
    font-size: 1.1em;
    transition: color 0.3s ease;
    padding: 10px 15px;
    border-radius: 5px;
}

nav a:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.05);
}

/* 首页主体内容区域 */
#hero {
    position: relative;
    padding-top: 120px;
    padding-bottom: 180px;
    overflow: hidden; /* 隐藏溢出内容，如背景动画 */
}

#hero::before {
    content: '';
    position: absolute;
    top: -50%; /* 向上偏移，超出viewport */
    left: -50%; /* 向左偏移，超出viewport */
    width: 200%; /* 宽度扩展到两倍viewport */
    height: 200%; /* 高度扩展到两倍viewport */
    background: url('https://images.gptkong.com/demo/sample1.png') center/cover no-repeat;
    opacity: 0.15; /* 轻微透明度 */
    animation: backgroundPan 20s linear infinite; /* 背景平移动画 */
    z-index: -1;
}

@keyframes backgroundPan {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}


.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5em;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
    letter-spacing: 1.1px;
}

.hero-subtitle {
    font-size: 1.4em;
    color: #ccc;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1em;
    text-decoration: none;
    color: #fff;
    background-color: #3498db; /* 鲜明的按钮颜色 */
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #555;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #eee;
}


/* 特色服务部分 */
#features {
    background: linear-gradient(135deg, #111, #1a2437);
    padding: 80px 0;
}

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

.feature-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.feature-icon-1 { background-image: url('https://images.gptkong.com/demo/sample2.png'); }
.feature-icon-2 { background-image: url('https://images.gptkong.com/demo/sample3.png'); }
.feature-icon-3 { background-image: url('https://images.gptkong.com/demo/sample4.png'); }

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

.feature-desc {
    color: #ccc;
    font-size: 1em;
}


/* 示例文章展示区域 */
#example-article {
    background: rgba(0, 0, 0, 0.1); /* 较浅的背景以区分 */
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#example-article .container {
    max-width: 900px; /* 文章内容区域宽度略窄 */
}

#example-article h2, #example-article h3 {
    color: #fff;
    margin-top: 30px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#example-article h2 {
    font-size: 2em;
}

#example-article h3 {
    font-size: 1.5em;
}


#example-article p, #example-article li, #example-article td {
    color: #ddd;
    font-size: 1em;
    line-height: 1.8;
    margin-bottom: 15px;
}

#example-article b {
    color: #fff;
}

#example-article code {
    background-color: #222;
    color: #eee;
    padding: 8px 12px;
    border-radius: 5px;
    font-family: monospace, monospace;
    font-size: 0.9em;
}

#example-article pre {
    background-color: #222;
    color: #eee;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto; /* 代码块超出时显示横向滚动条 */
    white-space: pre-wrap; /* 代码换行 */
    font-family: monospace, monospace;
    font-size: 0.9em;
    line-height: 1.6;
}

#example-article pre code {
    padding: 0; /* 移除code标签内部的padding */
    background-color: transparent; /* 使code标签背景透明 */
}

#example-article ul, #example-article ol {
    padding-left: 30px;
    margin-bottom: 20px;
}

#example-article li {
    margin-bottom: 10px;
}

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

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

#example-article th {
    background-color: #333;
    color: #eee;
}

/* 示例数据展示区域 */
#example-data {
    background: linear-gradient(135deg, #1a2437, #222d40);
    padding: 80px 0;
}

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

.data-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.data-title {
    font-size: 1.4em;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.data-list {
    list-style: none;
    padding: 0;
}

.data-list li {
    margin-bottom: 10px;
    font-size: 1em;
    color: #ccc;
}

.data-list li strong {
    color: #ddd;
}


/* 页脚样式 */
footer {
    background: #080b16;
    color: #777;
    text-align: center;
    padding: 30px 0;
    font-size: 0.9em;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
    .section-title {
        font-size: 2.2em;
    }
    .hero-title {
        font-size: 3em;
    }
    .hero-subtitle {
        font-size: 1.2em;
    }
    nav ul {
        gap: 20px;
    }
    nav a {
        font-size: 1em;
    }
    .btn {
        padding: 12px 25px;
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px 20px;
    }
    .section {
        padding: 50px 0;
    }
    .section-title {
        font-size: 2em;
    }
    .hero-title {
        font-size: 2.5em;
    }
    .hero-subtitle {
        font-size: 1.1em;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .features-grid, .data-grid {
        grid-template-columns: 1fr;
    }
    #example-article .container {
        max-width: 100%;
        padding: 0 20px;
    }
    #example-article h2 {
        font-size: 1.8em;
    }
    #example-article h3 {
        font-size: 1.3em;
    }
    #example-article p, #example-article li, #example-article td {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px 15px;
    }
    .section {
        padding: 40px 0;
    }
    .section-title {
        font-size: 1.8em;
    }
    .hero-title {
        font-size: 2em;
    }
    .hero-subtitle {
        font-size: 1em;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    #example-article h2 {
        font-size: 1.6em;
    }
    #example-article h3 {
        font-size: 1.2em;
    }
    #example-article p, #example-article li, #example-article td {
        font-size: 0.9em;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 8px 10px;
    }
    .section-title {
        font-size: 1.6em;
    }
    .hero-title {
        font-size: 1.8em;
    }
}

