
/* 全局样式设置，应用未来主义色彩搭配与响应式设计 */
:root {
  /* 主题色彩变量 */
  --primary-color: #0F2027;
  --secondary-color: #374785;
  --accent-color: #68B0AB;
  --highlight-color: #C34A36;
  --background-gradient: linear-gradient(135deg, #0F2027, #374785);
  --text-color: #e0e0e0;
  --header-font: 'Roboto', sans-serif;
  --body-font: 'Open Sans', sans-serif;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--body-font);
  color: var(--text-color);
  background: var(--background-gradient);
  line-height: 1.6;
  min-width: 320px;
  overflow-x: hidden;
}

/* 固定导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 32, 39, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar .logo {
  font-family: var(--header-font);
  font-size: 1.5rem;
  color: var(--accent-color);
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.navbar li {
  position: relative;
}

.navbar a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 1rem;
  transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.navbar a:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

.navbar li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(55, 71, 133, 0.9);
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.navbar li:hover ul {
  display: block;
}

.navbar li ul li {
  margin: 5px 0;
}

.navbar li ul li a {
  font-size: 0.9rem;
}

/* 章节导航系统样式 */
.chapter-nav {
  position: fixed;
  top: 60px;
  right: 20px;
  background: rgba(55, 71, 133, 0.8);
  padding: 10px 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.chapter-nav ul {
  list-style: none;
}

.chapter-nav li {
  margin: 10px 0;
}

.chapter-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-speed) ease;
}

.chapter-nav a:hover {
  color: var(--accent-color);
}

/* 主要内容区块样式 */
.content-section {
  padding: 100px 20px 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.content-section h2,
.content-section h3,
.content-section h4 {
  font-family: var(--header-font);
  color: var(--accent-color);
  margin-bottom: 20px;
  text-align: center;
}

.content-section h2 {
  font-size: 2rem;
}

.content-section h3 {
  font-size: 1.5rem;
}

.content-section h4 {
  font-size: 1.2rem;
}

.content-section p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #d0d0d0;
}

/* 分隔线样式 */
.divider {
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  margin: 40px 0;
  border: none;
}

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

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

/* 按钮样式 */
.button {
  background: linear-gradient(45deg, #00b4db, #0083b0);
  border: none;
  padding: 10px 20px;
  color: #fff;
  cursor: pointer;
  transition: background var(--transition-speed) ease, transform var(--transition-speed) ease;
  border-radius: 25px;
  font-size: 1rem;
}

.button:hover {
  background: linear-gradient(45deg, #8e2de2, #4a00e0);
  transform: scale(1.05);
}

/* 数据展示区样式 */
.data-display {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  padding: 20px;
  color: #fff;
  transition: all 0.5s ease;
}

.data-display.update {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.02);
}

/* 主题切换样式 */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(55, 71, 133, 0.8);
  padding: 10px 15px;
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--transition-speed) ease;
}

.theme-toggle:hover {
  background: rgba(55, 71, 133, 1);
}

.theme-toggle span {
  color: var(--text-color);
  font-size: 1rem;
}

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

/* 动画与过渡效果 */
@keyframes flow {
  0% { background-position: 0 0; }
  100% { background-position: 1000px 1000px; }
}

.background {
  background: url('https://images.gptkong.com/demo/sample1.png') repeat;
  animation: flow 60s linear infinite;
}

/* 图片边框装饰 */
.image-container {
  position: relative;
  overflow: hidden;
}

.image-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 3px solid var(--accent-color);
  border-radius: 15px;
  pointer-events: none;
  transition: transform var(--transition-speed) ease;
}

.image-container:hover::after {
  transform: scale(1.05);
}

/* 高对比信息样式 */
.highlight {
  color: #ff4081;
  font-weight: bold;
}

/* 链接样式 */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

a:hover {
  color: var(--secondary-color);
  transform: translateY(-2px);
}

/* 三维图表容器样式 */
.chart {
  width: 100%;
  height: 400px;
  perspective: 1000px;
}

.chart canvas {
  width: 100%;
  height: 100%;
  transform: rotateY(20deg);
}

/* 章节导航系统 */
.chapter-nav {
  position: fixed;
  top: 80px;
  right: 30px;
  background: rgba(55, 71, 133, 0.8);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 1001;
}

.chapter-nav ul {
  list-style: none;
}

.chapter-nav li {
  margin: 10px 0;
}

.chapter-nav a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-speed) ease;
}

.chapter-nav a:hover {
  color: var(--accent-color);
}

/* 提示信息样式 */
.reference-note {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(55, 71, 133, 0.8);
  padding: 10px 15px;
  border-radius: 10px;
  color: var(--text-color);
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* 主题切换实现 */
.theme-dark {
  --primary-color: #0F2027;
  --secondary-color: #374785;
  --accent-color: #68B0AB;
  --highlight-color: #C34A36;
  --background-gradient: linear-gradient(135deg, #0F2027, #374785);
  --text-color: #e0e0e0;
}

.theme-light {
  --primary-color: #ffffff;
  --secondary-color: #cccccc;
  --accent-color: #FFC0CB;
  --highlight-color: #C34A36;
  --background-gradient: linear-gradient(135deg, #ffffff, #cccccc);
  --text-color: #333333;
}

/* 适配移动设备 */
@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
    background: rgba(15, 32, 39, 0.95);
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    display: none;
  }

  .navbar ul.active {
    display: flex;
  }

  .navbar .menu-toggle {
    display: block;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.2rem;
  }

  .chapter-nav {
    top: 70px;
    right: 10px;
  }
}

/* 动画效果增强 */
.fade-in {
  animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 按钮动态效果 */
.dynamic-button {
  position: relative;
  overflow: hidden;
}

.dynamic-button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.dynamic-button:hover::before {
  top: 0;
  left: 0;
}

/* 表单按钮样式 */
.form-button {
  background: var(--accent-color);
  border: none;
  padding: 10px 20px;
  color: #fff;
  cursor: pointer;
  border-radius: 25px;
  transition: background var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.form-button:hover {
  background: var(--highlight-color);
  transform: scale(1.05);
}

/* 图标样式 */
.icon {
  stroke: var(--accent-color);
  transition: stroke var(--transition-speed) ease;
}

.icon:hover {
  stroke: var(--highlight-color);
}

/* 数据可视化动画样式 */
.data-visualization {
  animation: pulse 5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* 高级CSS3渐变和阴影 */
.gradient-box {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  padding: 20px;
}

/* 立体效果 */
.three-d {
  transform: perspective(1000px) rotateY(10deg);
  transition: transform var(--transition-speed) ease;
}

.three-d:hover {
  transform: perspective(1000px) rotateY(0deg);
}

/* 动态数据流背景 */
.dynamic-flow {
  background: url('https://images.gptkong.com/demo/sample2.png') repeat;
  animation: flow 120s linear infinite;
}

