
/* 页面整体样式定义 */

/* 设置基础样式，应用全局字体、背景颜色和文字颜色 */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif; /* 使用Roboto字体，确保现代感 */
  background: #1a1a1a; /* 深色背景，避免纯白色 */
  color: #e0e0e0; /* 浅灰色文字，提升可读性 */
}

/* 导航栏样式设定 */
.navbar {
  position: fixed; /* 固定在顶部，始终可见 */
  top: 0;
  width: 100%;
  background: rgba(30, 60, 114, 0.85); /* 半透明深蓝色背景 */
  backdrop-filter: blur(10px); /* 磨砂玻璃效果 */
  z-index: 1000; /* 确保导航栏位于最前 */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
}

/* 导航链接样式 */
.navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.navbar .nav-links li a {
  color: #ffffff; /* 白色文字 */
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.navbar .nav-links li a:hover {
  color: #1e90ff; /* 悬停时变为亮蓝色 */
}

/* 主要内容区域的渐变背景 */
.background-gradient {
  background: linear-gradient(135deg, #1e3c72, #2a5298, #6a11cb, #2575fc);
  background-size: 400% 400%;
  animation: gradientAnimation 15s ease infinite;
  padding: 100px 20px;
}

/* 渐变动画关键帧定义 */
@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 磨砂玻璃效果的容器样式 */
.frosted-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 30px;
  margin: 40px 0;
}

/* 文章内容样式 */
article {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

article h2, article h3, article h4 {
  color: #ffffff;
}

article h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

article h3 {
  font-size: 20px;
  margin-top: 30px;
  margin-bottom: 15px;
}

article p {
  font-size: 16px;
  margin-bottom: 15px;
}

/* 代码块样式 */
pre {
  background: rgba(40, 44, 52, 0.8);
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
}

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

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

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

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

.grid-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 8px;
  position: relative;
}

/* 按钮样式 */
.button {
  background-color: #2563eb;
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
  background-color: #1e40af;
  transform: scale(1.05);
}

/* 加载动画样式 */
.loader {
  border: 8px solid rgba(255, 255, 255, 0.3);
  border-top: 8px solid #2563eb;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1.5s linear infinite;
  margin: 100px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 面包屑导航样式 */
.breadcrumb {
  display: flex;
  list-style: none;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 5px;
  margin: 80px 20px 20px 20px;
}

.breadcrumb li + li:before {
  content: ">";
  padding: 0 8px;
  color: #fff;
}

.breadcrumb li a {
  color: #ffffff;
  text-decoration: none;
}

/* 悬浮淡入效果 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 核心视觉区域样式 */
.core-visual {
  position: relative;
  width: 100%;
  height: 600px;
  background: url('https://images.gptkong.com/demo/sample3.png') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.core-visual::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(38, 117, 252, 0.5);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transform: rotate(45deg);
}

.core-visual-content {
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
}

.core-visual-content h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.core-visual-content p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* 图表容器样式 */
.chart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.chart {
  width: 100%;
  max-width: 800px;
  height: 400px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border-radius: 10px;
  position: relative;
}

.chart:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

.tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1e3c72;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

/* 按钮悬停效果 */
.button:hover {
  background-color: #1e40af;
  transform: scale(1.05);
}

/* 装饰性图片样式 */
img.decorative-image {
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 响应式设计调整 */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
  }

  .nav-links li {
    width: 100%;
    text-align: left;
    padding: 10px 0;
  }

  .grid-container {
    grid-template-columns: 1fr;
  }

  .background-gradient {
    padding: 80px 10px;
  }
}

/* 补充样式以增强视觉层次与交互效果 */

/* 按钮样式 */
.button-primary {
  background: linear-gradient(45deg, #6a11cb, #2575fc);
  border: none;
  color: #fff;
  padding: 12px 25px;
  border-radius: 30px;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* 信息卡片样式 */
.card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* 链接样式 */
a {
  color: #1e90ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* 列表样式 */
ul {
  list-style-type: disc;
  margin-left: 20px;
}

/* 表格样式 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

table, th, td {
  border: 1px solid #444;
}

th, td {
  padding: 10px;
  text-align: left;
}

th {
  background: rgba(255, 255, 255, 0.2);
}

/* 引用样式 */
blockquote {
  border-left: 4px solid #1e90ff;
  padding-left: 15px;
  color: #ccc;
  margin: 20px 0;
}

/* 引导元素样式 */
.guideline {
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, #1e90ff, transparent);
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

/* 过渡效果 */
.transition-effect {
  transition: all 0.3s ease;
}

/* 悬浮效果 */
.hover-effect:hover {
  transform: scale(1.02);
}

/* 文字阴影 */
.text-shadow {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

/* 更多样式以确保设计需求完整 */

