
/* 
  页面整体样式设计
  本样式采用玻璃拟态与科技魅影的设计理念，主色调为深蓝与电蓝，辅色为霓虹紫和银灰，点缀色使用霓虹绿和橙色，确保色彩搭配和谐且富有科技感。
  使用CSS Grid和Flexbox进行响应式布局，保证在不同设备上的良好展示。
  玻璃拟态效果通过rgba半透明背景和backdrop-filter实现，增强页面的现代感与透明度。
  动效设计包括按钮悬停、卡片浮动及粒子动画，提升用户交互体验的流畅性和活跃度。
  导航栏固定在顶部，使用半透明背景，确保用户在滚动时始终能访问导航菜单。
  图片采用圆角、阴影和悬浮效果，增强视觉美感。
  文本排版采用无衬线字体，确保可读性与现代感相结合。标题字号设置为16-18px，正文为15-17px，确保信息层次分明。
  页面含有清晰的章节导航，帮助用户快速定位内容区域，每个导航项均加上rel="nofollow"属性。
  代码示例部分样式独特，与正文形成区分，采用高亮显示，便于阅读和理解。
  整体设计注重留白，避免页面过于拥挤，使用渐变线条和装饰元素分隔不同区块，营造呼吸感。
*/

/* 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #ffffff;
  background: linear-gradient(135deg, #0D47A1 70%, #2979FF 25%, #D500F9 5%);
  line-height: 1.6;
}

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

a:hover {
  color: #FF6D00;
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(13, 71, 161, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  z-index: 1000;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.navbar .menu {
  display: flex;
}

.navbar .menu a {
  margin: 0 15px;
  font-size: 1rem;
}

.navbar .hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.navbar .hamburger div {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  margin: 4px;
  transition: all 0.3s ease;
}

/* 移动端导航 */
@media (max-width: 768px) {
  .navbar .menu {
    display: none;
    flex-direction: column;
    background: rgba(13, 71, 161, 0.9);
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 10px;
    border-radius: 10px;
  }

  .navbar .menu a {
    margin: 10px 0;
  }

  .navbar .hamburger {
    display: flex;
  }

  .navbar.active .menu {
    display: flex;
  }
}

/* 主页英雄区 */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.gptkong.com/demo/sample1.png') center/cover no-repeat;
  opacity: 0.3;
}

.hero-content {
  z-index: 1;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.cta-button {
  background-color: #2979FF;
  color: #ffffff;
  padding: 15px 30px;
  border: none;
  border-radius: 25px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.cta-button:hover {
  background-color: #00E676;
  transform: scale(1.05);
}

/* 章节导航 */
.section-nav {
  position: fixed;
  top: 100px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  padding: 15px;
  border-radius: 10px;
}

.section-nav a {
  display: block;
  margin: 10px 0;
  font-size: 0.9rem;
  color: #ffffff;
}

.section-nav a:hover {
  color: #FF6D00;
}

/* 主体内容样式 */
.content-section {
  padding: 100px 20px;
}

.content-section h2, .content-section h3, .content-section h4 {
  margin-bottom: 20px;
}

.content-section p {
  margin-bottom: 15px;
  font-size: 1rem;
}

/* 玻璃拟态卡片 */
.glass-card {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

/* 图片样式 */
.decorative-image {
  width: 100%;
  max-width: 320px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.decorative-image:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* 代码示例样式 */
.code-example {
  background: rgba(0, 0, 0, 0.7);
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
  margin-bottom: 30px;
}

.code-example pre {
  font-family: 'Courier New', Courier, monospace;
  color: #00FF00;
}

.code-example code {
  font-size: 0.9rem;
}

/* 表格样式 */
.table-responsive {
  overflow-x: auto;
}

.table-responsive table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 10px;
}

.table-responsive thead {
  background-color: rgba(255, 255, 255, 0.2);
}

.table-responsive th, .table-responsive td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.table-responsive th {
  font-size: 1rem;
}

.table-responsive td {
  font-size: 0.9rem;
}

