/* 基础样式设置 */
* {
  font-family: 'Avenir', 'Segoe UI', Tahoma, sans-serif;
}

/* 复古纸质风格的整体背景设置 */
body {
  background-color: #f7f3e9;
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='100' viewBox='0 0 600 100'%3E%3Cpath d='M0,50 Q60,20 120,50 Q180,80 240,50 Q300,20 360,50 Q420,80 480,50 Q540,20 600,50 L600,100 L0,100 Z' fill='%23e6dfd3' opacity='0.5'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M20,80 Q30,60 40,80 Q50,100 60,80 Q70,60 80,80 L80,100 L20,100 Z' fill='%23d4c8b0' opacity='0.4'/%3E%3C/svg%3E");
  background-position: top center, bottom center;
  background-repeat: repeat-x;
  background-attachment: fixed;
  color: #5d4b35;
}

/* 内部页面的框架设置 */
html[subframe] #main-frame-error {
  display: none;
}

html:not([subframe]) #sub-frame-error {
  display: none;
}

/* 标题和文本样式 */
h1 {
  margin-top: 0;
  word-wrap: break-word;
  color: #5d4b35;
  font-size: 2.5em;
  text-align: center;
}

h1 span {
  font-weight: 500;
}

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

a:hover {
  color: #a0876c;
  text-decoration: underline;
}

/* 游戏标题样式 */
.game-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #5d4b35;
  text-align: center;
  font-weight: 700;
  letter-spacing: 2px;
}

/* 游戏说明文本 */
.game-instruction {
  font-size: 1.2em;
  margin: 10px 0 20px;
  color: #5f6368;
  text-align: center;
  font-weight: normal;
}

/* 确保游戏说明始终可见，覆盖.offline #main-message > p 的 display: none */
.offline #main-message > p.game-instruction {
  display: block !important;
  color: #5d4b35;
  font-size: 1.2em;
}


kbd {
  border: 1px solid #9fa6ad;
  box-shadow: 0 1px 1px rgba(12,13,14,.15),inset 0 1px 0 0 #fff;
  background-color: #e3e6e8;
  border-radius: 4px;
  color: #232629;
  display: inline-block;
  line-height: 1.5;
  margin: 0 .1em;
  overflow-wrap: break-word;
  padding: .1em .6em;
  text-shadow: 0 1px 0 #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: .85em
}

kbd:hover,kbd:hover * {
  background: #ccc
}

kbd:active,kbd:active * {
  box-shadow: 1px 1px 0 #ddd inset
}

/* 图标样式 */
.icon {
  -webkit-user-select: none;
  display: inline-block;
  margin: 0 auto;
  text-align: center;
}

.icon-offline {
  content: -webkit-image-set(
      url(../images/default_100_percent/offline/100-error-offline.png) 1x,
      url(../images/default_200_percent/offline/200-error-offline.png) 2x);
  position: relative;
  display: block;
  margin: 0 auto;
}

.hidden {
  display: none;
}

/* 内容容器基础样式 - 复古风格 */
.content-container {
  text-align: center;
  margin: 25px auto;
  max-width: 1024px;
  background-color: rgba(253, 249, 240, 0.95);
  padding: 35px;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(101, 84, 63, 0.15);
  border: 1px solid #e0d6c2;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* 手绘风格顶部边框保留并加强 */
.content-container:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    #a0876c,
    #a0876c 12px,
    transparent 12px,
    transparent 24px
  );
  opacity: 0.4;
}

/* 页面标题 */
.content-container h2 {
  font-size: 28px;
  font-weight: 600;
  color: #5d4b35;
  margin-top: 5px;
  margin-bottom: 25px;
  text-align: center;
  position: relative;
  display: inline-block;
  padding: 0 50px;
}

/* 标题装饰 */
.content-container h2:before,
.content-container h2:after {
  content: "";
  position: absolute;
  width: 40px;
  height: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='30' viewBox='0 0 40 30'%3E%3Cpath d='M10,15 L16,10 L22,5 L28,10 L30,15 L28,20 L25,18 L22,20 L18,22 L14,20 L12,16 Z' fill='%23a0876c' opacity='0.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  top: 50%;
  transform: translateY(-50%);
}

.content-container h2:before {
  left: 5px;
}

.content-container h2:after {
  right: 5px;
  transform: translateY(-50%) scaleX(-1);
}

/* Offline 模式的调整 */
.offline {
  transition: filter 1.5s cubic-bezier(0.65, 0.05, 0.36, 1),
              background-color 1.5s cubic-bezier(0.65, 0.05, 0.36, 1);
}

.offline body {
  transition: background-color 1.5s cubic-bezier(0.65, 0.05, 0.36, 1);
}

.offline.inverted {
  background-color: #403a34;
  filter: invert(1);
}

.offline.inverted body {
  background-color: #403a34;
}

/* 游戏容器样式 */
.offline .interstitial-wrapper {
  color: #5d4b35;
  font-size: 1em;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 600px;
  padding-top: 100px;
  position: relative;
  width: 100%;
}

.offline .runner-container {
  direction: ltr;
  height: 150px;
  max-width: 600px;
  overflow: hidden;
  position: absolute;
  top: 35px;
  width: 44px;
}

.offline .runner-container:focus {
  outline: none;
}

.offline .runner-canvas {
  height: 150px;
  max-width: 600px;
  opacity: 1;
  overflow: hidden;
  position: absolute;
  top: 0;
  z-index: 10;
}

.offline .controller {
  height: 100vh;
  left: 0;
  position: absolute;
  top: 0;
  width: 100vw;
  z-index: 9;
}

/* 离线资源和公告区域 */
#offline-resources {
  display: none;
}

#offline-instruction {
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-crisp-edges;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  left: 0;
  margin: auto;
  position: absolute;
  right: 0;
  top: 60px;
  width: fit-content;
}

.offline-runner-live-region {
  bottom: 0;
  clip-path: polygon(0 0, 0 0, 0 0);
  color: #f7f3e9;
  display: block;
  font-size: xx-small;
  overflow: hidden;
  position: absolute;
  text-align: center;
  transition: color 1.5s cubic-bezier(0.65, 0.05, 0.36, 1);
  user-select: none;
}

/* 游戏控制区域 */
.game-controls {
  text-align: center;
  margin: 25px auto;
  max-width: 800px;
  background-color: rgba(253, 249, 240, 0.9);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(101, 84, 63, 0.15);
  border: 1px solid #e0d6c2;
  box-sizing: border-box;
  position: relative;
}

/* 主题卡片样式 */
.theme-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 100%;
  margin-top: 20px;
}

/* 调整主题卡片为链接样式 */
.theme-card {
  display: block;
  text-decoration: none;
  background-color: #fcf7ef;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(101, 84, 63, 0.12);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  border: 1px solid #e6dfd3;
}

.theme-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(101, 84, 63, 0.2);
  text-decoration: none;
}

.theme-selection-container h2 {
  font-size: 28px;
  font-weight: 600;
  color: #5d4b35;
  margin-top: 5px;
  margin-bottom: 15px;
  text-align: center;
}

.theme-description {
  text-align: center;
  color: #5d4b35;
  max-width: 80%;
  margin: 0 auto 25px;
  line-height: 1.5;
  font-size: 16px;
}

.card-image {
  height: 170px;
  overflow: hidden;
  border-bottom: 1px solid #e6dfd3;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-title {
  padding: 12px;
  text-align: center;
  font-weight: 500;
  color: #5d4b35;
  font-size: 16px;
}


/* 平板电脑自适应 */
@media (max-width: 768px) {
  .theme-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .card-image {
    height: 140px;
  }
  
  .card-title {
    font-size: 14px;
    padding: 10px;
  }
}

/* 移动设备自适应 */
@media (max-width: 480px) {
  .theme-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .card-image {
    height: 120px;
  }
  
  .theme-card {
    margin: 0;
  }
  
  .card-title {
    font-size: 13px;
    padding: 8px 5px;
  }
}

/* 超小屏幕设备 */
@media (max-width: 320px) {
  .theme-cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .card-image {
    height: 140px;
  }
  
  .theme-card {
    max-width: 280px;
    margin: 0 auto;
  }
  
  .card-title {
    font-size: 14px;
  }
}

/* 小恐龙脚印装饰 */
.theme-cards:after {
  content: "";
  position: absolute;
  right: 40px;
  bottom: 15px;
  width: 120px;
  height: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='30' viewBox='0 0 120 30'%3E%3Cpath d='M10,20 A4,3 0 1,0 18,20 A4,3 0 1,0 10,20 Z M30,15 A4,3 0 1,0 38,15 A4,3 0 1,0 30,15 Z M50,20 A4,3 0 1,0 58,20 A4,3 0 1,0 50,20 Z M70,15 A4,3 0 1,0 78,15 A4,3 0 1,0 70,15 Z M90,20 A4,3 0 1,0 98,20 A4,3 0 1,0 90,20 Z' fill='%23a0876c' opacity='0.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  opacity: 0.6;
}

/* 信息头部样式 */
.info-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 25px;
  border-bottom: 2px solid rgba(160, 135, 108, 0.25);
  position: relative;
}

/* 添加装饰元素 */
.info-header:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='20' viewBox='0 0 80 20'%3E%3Cpath d='M40,0 C45,5 50,10 55,8 C60,6 65,4 70,8 C75,12 80,10 80,10 L80,20 L0,20 L0,10 C0,10 5,12 10,8 C15,4 20,6 25,8 C30,10 35,5 40,0 Z' fill='%23a0876c' opacity='0.15'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

.info-header h2 {
  font-size: 2.4em;
  color: #5d4b35;
  margin-bottom: 18px;
  margin-top: 0;
  letter-spacing: 0.7px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.6);
}

.info-header .intro-text {
  font-size: 1.15em;
  color: #5d4b35;
  line-height: 1.6;
  max-width: 85%;
  margin: 0 auto;
  font-style: italic;
}

/* 区块公共样式 */
.info-section {
  margin-bottom: 50px;
  padding-bottom: 35px;
  border-bottom: 1px solid rgba(160, 135, 108, 0.2);
  text-align: left;
  position: relative;
}

.info-section:last-child {
  margin-bottom: 10px;
  padding-bottom: 0;
  border-bottom: none;
}

/* 添加手绘风格的小恐龙脚印，增强主题感 */
.info-section:not(:last-child):after {
  content: "";
  position: absolute;
  bottom: -5px;
  right: 30px;
  width: 100px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='20' viewBox='0 0 100 20'%3E%3Cpath d='M10,12 A3,2 0 1,0 16,12 A3,2 0 1,0 10,12 Z M30,10 A3,2 0 1,0 36,10 A3,2 0 1,0 30,10 Z M50,12 A3,2 0 1,0 56,12 A3,2 0 1,0 50,12 Z M70,10 A3,2 0 1,0 76,10 A3,2 0 1,0 70,10 Z' fill='%23a0876c' opacity='0.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

/* 区块标题样式 */
.section-header {
  margin-bottom: 25px;
  position: relative;
  padding-left: 10px;
  border-left: 4px solid rgba(160, 135, 108, 0.5);
}

.section-header h3 {
  font-size: 1.8em;
  color: #5d4b35;
  margin: 0;
  display: flex;
  align-items: center;
  padding: 5px 0;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
}

.section-icon {
  font-size: 1.15em;
  margin-right: 12px;
  display: inline-block;
  background-color: rgba(160, 135, 108, 0.15);
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border-radius: 50%;
}

/* 区块内容样式 */
.section-content {
  padding-left: 15px;
}

.section-content h4 {
  font-size: 1.35em;
  margin: 25px 0 16px;
  color: #5d4b35;
  border-bottom: 1px dashed rgba(160, 135, 108, 0.3);
  padding-bottom: 8px;
  display: inline-block;
}

.section-content p {
  margin: 18px 0;
  line-height: 1.7;
  color: #5d4b35;
}

/* 统计数据容器 - 现代化重新设计 */
.stats-container {
  display: flex;
  justify-content: space-around;
  margin: 40px 0;
  gap: 25px;
}

.stat-box {
  text-align: center;
  padding: 30px 25px;
  background: linear-gradient(135deg, #ffffff, #f7f3e9);
  border-radius: 16px;
  width: 45%;
  box-shadow: 0 10px 20px rgba(101, 84, 63, 0.12);
  border: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(101, 84, 63, 0.18);
}

/* 漂亮的顶部图案 */
.stat-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #4285f4, #ea4335, #fbbc05, #34a853);
  border-radius: 6px 6px 0 0;
}

/* 添加背景装饰 */
.stat-box::after {
  content: "";
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(160, 135, 108, 0.08) 0%, rgba(160, 135, 108, 0) 70%);
  z-index: 0;
  border-radius: 50%;
}

.stat-number {
  font-size: 3em;
  font-weight: 800;
  color: #4285f4;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.6);
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  line-height: 1.1;
}

.stat-label {
  color: #5d4b35;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  position: relative;
  z-index: 1;
  background: rgba(248, 245, 238, 0.7);
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 为两个统计框设置不同颜色 */
.stat-box:nth-child(1) .stat-number {
  color: #4285f4; /* Google 蓝色 */
}

.stat-box:nth-child(2) .stat-number {
  color: #ea4335; /* Google 红色 */
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
  .stat-box {
    background: linear-gradient(135deg, #353029, #2d2824);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  }
  
  .stat-box:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
  }
  
  .stat-number {
    color: #8ab4f8; /* 暗色模式下的 Google 蓝色 */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  }
  
  .stat-box:nth-child(1) .stat-number {
    color: #8ab4f8; /* 暗色模式下的 Google 蓝色 */
  }
  
  .stat-box:nth-child(2) .stat-number {
    color: #f28b82; /* 暗色模式下的 Google 红色 */
  }
  
  .stat-label {
    color: #e8e1d4;
    background: rgba(45, 40, 36, 0.7);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .stats-container {
    gap: 20px;
  }
  
  .stat-box {
    padding: 25px 20px;
  }
  
  .stat-number {
    font-size: 2.6em;
  }
}

@media (max-width: 480px) {
  .stats-container {
    flex-direction: column;
    align-items: center;
  }
  
  .stat-box {
    width: 80%;
    max-width: 300px;
    margin-bottom: 15px;
  }
  
  .stat-number {
    font-size: 2.4em;
  }
  
  .stat-label {
    font-size: 0.9em;
  }
}


.stat-icon {
  font-size: 2em;
  margin-bottom: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
  .stat-icon {
    background-color: rgba(45, 40, 36, 0.7);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }
}

/* 时间线样式 - 增强吉卜力手绘风格 */
.timeline {
  margin: 30px 0;
  position: relative;
}

.timeline:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 29px;
  width: 3px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(160, 135, 108, 0.4) 0%,
    rgba(160, 135, 108, 0.4) 5px,
    rgba(160, 135, 108, 0.2) 5px,
    rgba(160, 135, 108, 0.2) 10px
  );
  border-radius: 3px;
}

.timeline-item {
  display: flex;
  margin-bottom: 25px;
  padding-left: 15px;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* 年份样式 - 重新设计 */
.year {
  font-weight: 700;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  color: #fff;
  background-color: #4285f4; /* Google 蓝色 */
  text-align: center;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 4px 10px rgba(66, 133, 244, 0.3);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transform: rotate(-5deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  /* 创建类似便利贴的效果 */
  border-bottom-right-radius: 25px 5px;
}

/* 添加悬停效果 */
.timeline-item:hover .year {
  transform: rotate(0deg) scale(1.05);
  box-shadow: 0 6px 14px rgba(66, 133, 244, 0.4);
}

/* 添加交替颜色，使年份显示更加丰富多彩 */
.timeline-item:nth-child(2n) .year {
  background-color: #ea4335; /* Google 红色 */
  box-shadow: 0 4px 10px rgba(234, 67, 53, 0.3);
}

.timeline-item:nth-child(3n) .year {
  background-color: #fbbc05; /* Google 黄色 */
  box-shadow: 0 4px 10px rgba(251, 188, 5, 0.3);
  color: #202124; /* 深色文字，提高对比度 */
}

.timeline-item:nth-child(4n) .year {
  background-color: #34a853; /* Google 绿色 */
  box-shadow: 0 4px 10px rgba(52, 168, 83, 0.3);
}

/* 添加伪元素，模拟便利贴的钉子或者胶带效果 */
.year::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.7);
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
  .year {
    box-shadow: 0 4px 10px rgba(66, 133, 244, 0.5);
  }
  
  .timeline-item:nth-child(2n) .year {
    box-shadow: 0 4px 10px rgba(234, 67, 53, 0.5);
  }
  
  .timeline-item:nth-child(3n) .year {
    box-shadow: 0 4px 10px rgba(251, 188, 5, 0.5);
  }
  
  .timeline-item:nth-child(4n) .year {
    box-shadow: 0 4px 10px rgba(52, 168, 83, 0.5);
  }
}

/* 响应式调整 */
@media (max-width: 480px) {
  .year {
    width: 50px;
    height: 50px;
    font-size: 14px;
  }
}

/* 事件样式 */
.event {
  flex-grow: 1;
  background-color: rgba(248, 245, 238, 0.7);
  border-radius: 8px;
  padding: 15px 20px;
  margin-left: 15px;
  box-shadow: 0 2px 8px rgba(101, 84, 63, 0.08);
  border: 1px solid rgba(160, 135, 108, 0.15);
  position: relative;
}

/* 为事件添加连接线 */
.event:before {
  content: "";
  position: absolute;
  left: -10px;
  top: 15px;
  width: 10px;
  height: 2px;
  background-color: rgba(160, 135, 108, 0.4);
}

.event strong {
  color: #5d4b35;
  display: block;
  margin-bottom: 6px;
  font-size: 1.05em;
}

.event p {
  margin: 0;
  color: #5d4b35;
  font-size: 0.95em;
  line-height: 1.6;
}

/* 控制按键样式 - 更好看的按键效果 */
.control-key {
  display: inline-block;
  padding: 4px 10px;
  margin-right: 8px;
  background-color: #e8e1d4;
  border-radius: 5px;
  font-weight: bold;
  color: #5d4b35;
  font-family: monospace;
  font-size: 0.95em;
  box-shadow: 0 2px 4px rgba(101, 84, 63, 0.15);
  border: 1px solid rgba(160, 135, 108, 0.2);
}

/* 快速开始区样式 */
.quick-start {
  background-color: rgba(248, 245, 238, 0.7);
  padding: 25px;
  border-radius: 12px;
  margin: 30px 0;
  text-align: center;
  border: 1px dashed rgba(160, 135, 108, 0.3);
  box-shadow: 0 3px 10px rgba(101, 84, 63, 0.08);
  position: relative;
}

/* 为快速开始区添加吉卜力风格的装饰 */
.quick-start:before {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='20' viewBox='0 0 50 20'%3E%3Cpath d='M25,0 C30,10 35,15 40,10 C45,5 50,10 50,10 L50,20 L0,20 L0,10 C0,10 5,5 10,10 C15,15 20,10 25,0 Z' fill='%23a0876c' opacity='0.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

.quick-start h4 {
  margin-top: 0;
  margin-bottom: 18px;
  color: #5d4b35;
  font-size: 1.4em;
}

.start-instruction {
  font-size: 1.3em;
  color: #5d4b35;
  line-height: 1.5;
}

/* 按键高亮样式 */
.key-highlight {
  display: inline-block;
  padding: 5px 15px;
  margin: 0 5px;
  background-color: #e8e1d4;
  border-radius: 6px;
  font-weight: bold;
  box-shadow: 0 3px 5px rgba(101, 84, 63, 0.15);
  color: #5d4b35;
  border: 1px solid rgba(160, 135, 108, 0.2);
}

/* 列表样式 - 更有吉卜力风格的列表 */
.controls-list,
.tips-list {
  list-style-type: none;
  padding-left: 8px;
  margin: 20px 0;
}

.controls-list li,
.tips-list li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  line-height: 1.6;
  color: #5d4b35;
}

.controls-list li:before,
.tips-list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M8,0 C12.4,0 16,3.6 16,8 C16,12.4 12.4,16 8,16 C3.6,16 0,12.4 0,8 C0,3.6 3.6,0 8,0 Z M8,3 C5.2,3 3,5.2 3,8 C3,10.8 5.2,13 8,13 C10.8,13 13,10.8 13,8 C13,5.2 10.8,3 8,3 Z' fill='%23a0876c' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

/* Why 部分卡片样式 - 保留原风格但增强视觉效果 */
.why-reasons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin: 30px 0;
}

.reason-card {
  background-color: rgba(248, 245, 238, 0.7);
  border-radius: 12px;
  padding: 25px 20px;
  box-shadow: 0 4px 12px rgba(101, 84, 63, 0.08);
  border: 1px solid rgba(160, 135, 108, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.reason-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(101, 84, 63, 0.15);
}

/* 为卡片添加底部装饰线 */
.reason-card:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: rgba(160, 135, 108, 0.3);
  border-radius: 0 0 12px 12px;
}

.reason-icon {
  font-size: 2.2em;
  margin-bottom: 12px;
  color: #a0876c;
  background-color: rgba(160, 135, 108, 0.1);
  width: 50px;
  height: 50px;
  line-height: 50px;
  text-align: center;
  border-radius: 50%;
}

.reason-card h4 {
  margin: 12px 0;
  font-size: 1.35em;
  color: #5d4b35;
  letter-spacing: 0.5px;
  border-bottom: none;
  padding-bottom: 0;
}

.reason-card p {
  margin: 12px 0 0;
  color: #5d4b35;
  font-size: 0.95em;
  line-height: 1.6;
}

/* 趣味事实框样式 - 更具特色的设计 */
.fun-fact {
  background-color: rgba(243, 238, 228, 0.7);
  border-left: 4px solid #a0876c;
  padding: 22px;
  margin: 35px 0 15px;
  border-radius: 0 12px 12px 0;
  color: #5d4b35;
  position: relative;
  box-shadow: 0 4px 10px rgba(101, 84, 63, 0.08);
}

/* 为趣味事实添加装饰 */
.fun-fact:before {
  content: "!";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-color: #a0876c;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  font-weight: bold;
  font-size: 14px;
}

.fun-fact strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.15em;
}

/* FAQ 样式 - 更具吉卜力风格的设计 */
.faq-container {
  margin-top: 25px;
}

.faq-item {
  margin-bottom: 25px;
  border-bottom: 1px dashed rgba(160, 135, 108, 0.25);
  padding-bottom: 25px;
  transition: transform 0.2s ease;
}

.faq-item:hover {
  transform: translateX(5px);
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-question {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 12px;
  color: #5d4b35;
  position: relative;
  padding-left: 35px;
}

.faq-question:before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 0;
  width: 25px;
  height: 25px;
  background-color: rgba(160, 135, 108, 0.15);
  color: #a0876c;
  font-weight: bold;
  text-align: center;
  line-height: 25px;
  border-radius: 50%;
}

.faq-answer {
  color: #5d4b35;
  line-height: 1.6;
  padding-left: 35px;
  position: relative;
}

.faq-answer:before {
  content: "A";
  position: absolute;
  left: 0;
  top: 0;
  width: 25px;
  height: 25px;
  background-color: rgba(160, 135, 108, 0.1);
  color: #a0876c;
  font-weight: bold;
  text-align: center;
  line-height: 25px;
  border-radius: 50%;
}

.faq-answer code {
  background-color: #e8e1d4;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
  border: 1px solid rgba(160, 135, 108, 0.15);
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
  .content-container {
    background-color: rgba(53, 48, 43, 0.95);
  }
  
  .info-header h2,
  .section-header h3,
  .section-content h4,
  .section-content p,
  .control-key,
  .quick-start h4,
  .start-instruction,
  .controls-list li,
  .tips-list li,
  .reason-card h4,
  .reason-card p,
  .faq-question,
  .faq-answer {
    color: #e8e1d4;
  }
  
  .intro-text {
    color: #c4bcae;
  }
  
  .stat-box, 
  .quick-start,
  .reason-card,
  .event,
  .fun-fact {
    background-color: rgba(45, 40, 36, 0.7);
    border-color: #403a34;
  }
  
  .key-highlight,
  .control-key,
  .faq-answer code {
    background-color: #403a34;
    color: #e8e1d4;
    border-color: #504a43;
  }
  
  .event strong,
  .reason-card h4,
  .stat-label {
    color: #e8e1d4;
  }
  
  .stat-number,
  .reason-icon {
    color: #c4bcae;
  }
  
  .faq-question:before,
  .faq-answer:before {
    background-color: rgba(160, 135, 108, 0.25);
    color: #c4bcae;
  }
  
  .controls-list li:before,
  .tips-list li:before {
    filter: invert(0.8);
  }
  
  .year {
    background-color: #6d5d48;
    color: #e8e1d4;
  }
  
  .timeline:before {
    background: repeating-linear-gradient(
      to bottom,
      rgba(160, 135, 108, 0.3) 0%,
      rgba(160, 135, 108, 0.3) 5px,
      rgba(160, 135, 108, 0.15) 5px,
      rgba(160, 135, 108, 0.15) 10px
    );
  }
  
  .faq-item {
    border-bottom-color: rgba(160, 135, 108, 0.15);
  }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .content-container {
    padding: 25px 20px;
  }
  
  .info-header h2 {
    font-size: 2em;
  }
  
  .section-header h3 {
    font-size: 1.6em;
  }
  
  .why-reasons {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .start-instruction {
    font-size: 1.2em;
  }
  
  .timeline-item {
    flex-direction: column;
  }
  
  .year {
    margin-bottom: 10px;
    width: auto;
    display: inline-block;
    padding: 5px 15px;
  }
  
  .event {
    margin-left: 0;
    margin-top: 10px;
  }
  
  .event:before {
    display: none;
  }
  
  .timeline:before {
    display: none;
  }
}

@media (max-width: 480px) {
  .content-container {
    padding: 20px 15px;
  }
  
  .info-header .intro-text {
    max-width: 100%;
  }
  
  .section-content {
    padding-left: 5px;
  }
  
  .stats-container {
    flex-direction: column;
  }
  
  .stat-box {
    width: 100%;
  }
  
  .quick-start {
    padding: 20px 15px;
  }
  
  .key-highlight {
    padding: 3px 10px;
    margin: 0 3px;
  }
  
  .faq-question,
  .faq-answer {
    padding-left: 30px;
  }
  
  .faq-question:before,
  .faq-answer:before {
    width: 22px;
    height: 22px;
    line-height: 22px;
    font-size: 0.9em;
  }
}

/* 离线游戏模式 */
.arcade-mode,
.arcade-mode .runner-container,
.arcade-mode .runner-canvas {
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-crisp-edges;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  max-width: 100%;
  overflow: hidden;
}

.arcade-mode #buttons,
.arcade-mode #main-content {
  opacity: 0;
  overflow: hidden;
}

.arcade-mode .interstitial-wrapper {
  height: 100vh;
  max-width: 100%;
  overflow: hidden;
}

.arcade-mode .runner-container {
  left: 0;
  margin: auto;
  right: 0;
  transform-origin: top center;
  transition: transform 250ms cubic-bezier(0.4, 0, 1, 1) 400ms;
  z-index: 2;
}

/* 慢速模式选项 */
.slow-speed-option {
  align-items: center;
  background: #f8f5ee;
  border-radius: 24px/50%;
  bottom: 0;
  color: #5d4b35;
  display: none;
  font-size: 1em;
  left: 0;
  line-height: 1.1em;
  margin: 5px auto;
  padding: 2px 12px 3px 20px;
  position: absolute;
  right: 0;
  width: max-content;
  z-index: 999;
  border: 1px solid rgba(160, 135, 108, 0.3);
}

.slow-speed-option.hidden {
  display: none;
}

.slow-speed-option [type=checkbox] {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.slow-speed-option .slow-speed-toggle {
  cursor: pointer;
  margin-inline-start: 8px;
  padding: 8px 4px;
  position: relative;
}

.slow-speed-option [type=checkbox]:disabled ~ .slow-speed-toggle {
  cursor: default;
}

.slow-speed-option-label [type=checkbox] {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.slow-speed-option .slow-speed-toggle::before,
.slow-speed-option .slow-speed-toggle::after {
  content: '';
  display: block;
  margin: 0 3px;
  transition: all 100ms cubic-bezier(0.4, 0, 1, 1);
}

.slow-speed-option .slow-speed-toggle::before {
  background: rgb(189,193,198);
  border-radius: 0.65em;
  height: 0.9em;
  width: 2em;
}

.slow-speed-option .slow-speed-toggle::after {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px 0 rgba(101, 84, 63, 0.3);
  height: 1.2em;
  position: absolute;
  top: 51%;
  transform: translate(-20%, -50%);
  width: 1.1em;
}

.slow-speed-option [type=checkbox]:focus + .slow-speed-toggle {
  box-shadow: 0 0 8px rgba(160, 135, 108, 0.5);
  outline: 1px solid rgba(160, 135, 108, 0.5);
}

.slow-speed-option [type=checkbox]:checked + .slow-speed-toggle::before {
  background: #a0876c;
  opacity: 0.5;
}

.slow-speed-option [type=checkbox]:checked + .slow-speed-toggle::after {
  background: #a0876c;
  transform: translate(calc(2em - 90%), -50%);
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #292420;
    background-image: 
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='100' viewBox='0 0 600 100'%3E%3Cpath d='M0,50 Q60,20 120,50 Q180,80 240,50 Q300,20 360,50 Q420,80 480,50 Q540,20 600,50 L600,100 L0,100 Z' fill='%23332e29' opacity='0.5'/%3E%3C/svg%3E"),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M20,80 Q30,60 40,80 Q50,100 60,80 Q70,60 80,80 L80,100 L20,100 Z' fill='%23403a34' opacity='0.4'/%3E%3C/svg%3E");
  }

  h1, .game-title {
    color: #e8e1d4;
  }
  
  .game-instruction {
    color: #c4bcae;
  }
  
  .offline #main-message > p.game-instruction {
    color: #e8e1d4;
  }
  
  .content-container {
    background-color: rgba(53, 48, 43, 0.95);
    border-color: #403a34;
    color: #e8e1d4;
  }
  
  .content-container h2 {
    color: #e8e1d4;
  }
  
  .theme-card {
    background-color: #3c352e;
    border-color: #403a34;
  }
  
  .card-image {
    border-bottom-color: #403a34;
  }
  
  .card-title {
    color: #e8e1d4;
  }
  
  .game-info-section {
    background-color: rgba(53, 48, 43, 0.95);
    border-color: #403a34;
    color: #e8e1d4;
  }
  
  .info-header h2 {
    color: #e8e1d4;
  }
  
  .intro-text {
    color: #c4bcae;
  }
  
  .quick-start {
    background-color: #2d2824;
    border-color: #403a34;
  }
  
  .key-highlight {
    background-color: #403a34;
    color: #e8e1d4;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  }
  
  .stat-box {
    background-color: #2d2824;
  }
  
  .stat-number {
    color: #c4bcae;
  }
  
  .stat-label {
    color: #a09788;
  }
  
  .info-section h3 {
    color: #e8e1d4;
  }
  
  .info-section h4 {
    color: #c4bcae;
  }
  
  .event p {
    color: #a09788;
  }
  
  .region {
    background-color: #403a34;
    border-color: #504a43;
  }
  
  .fun-fact {
    background-color: #353029;
    border-left-color: #5d5347;
  }
  
  .slow-speed-option {
    background-color: #2d2824;
    color: #e8e1d4;
    border-color: #403a34;
  }
  
  .icon {
    filter: invert(1);
  }

  .offline .runner-canvas {
    filter: invert(1);
    transition: filter 1.5s cubic-bezier(0.65, 0.05, 0.36, 1),
              background-color 1.5s cubic-bezier(0.65, 0.05, 0.36, 1);
  }
  
  .offline.inverted .runner-canvas {
    filter: invert(0);
  }

  .offline.inverted {
    background-color: var(--background-color);
    filter: invert(0);
  }

  .offline.inverted body {
    background-color: #fff;
  }

  .offline.inverted .offline-runner-live-region {
    color: #fff;
  }
  
  a {
    color: #c4bcae;
  }
  
  a:hover {
    color: #e8e1d4;
  }
  
  .game-controls {
    background-color: rgba(53, 48, 43, 0.95);
    border-color: #403a34;
  }
}

/* Add to your existing CSS file */
.faq-answer-list {
  margin-top: 10px;
  padding-left: 25px;
}

.faq-answer-list li {
  margin-bottom: 8px;
  line-height: 1.5;
  color: #5d4b35;
}

@media (prefers-color-scheme: dark) {
  .faq-answer-list li {
    color: #e8e1d4;
  }
}

/* 游戏版本链接样式 */
.game-version-list {
  margin-top: 10px;
}

.game-version-list li {
  margin-bottom: 8px;
  padding-left: 10px;
  border-left: 3px solid #4285f4;
}

.game-link {
  color: #4285f4;
  font-weight: 500;
  text-decoration: underline;
  position: relative;
  padding: 2px 0;
  transition: color 0.3s, background-color 0.3s;
}

.game-link:hover {
  color: #0d47a1;
  background-color: rgba(66, 133, 244, 0.1);
  text-decoration: underline;
}

.game-link::after {
  content: " ▶";
  font-size: 0.8em;
  vertical-align: middle;
  margin-left: 3px;
  opacity: 0.7;
}

/* 暗色模式下的游戏链接样式 */
@media (prefers-color-scheme: dark) {
  .game-link {
    color: #8ab4f8;
  }
  
  .game-link:hover {
    color: #aecbfa;
    background-color: rgba(138, 180, 248, 0.1);
  }
  
  .game-version-list li {
    border-left-color: #8ab4f8;
  }
}

/* 视频容器样式 */
.game-tutorial-video {
  margin: 30px 0;
  background-color: rgba(248, 245, 238, 0.7);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(101, 84, 63, 0.08);
  border: 1px solid rgba(160, 135, 108, 0.15);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 宽高比 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: 0 5px 15px rgba(101, 84, 63, 0.15);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-caption {
  font-style: italic;
  text-align: center;
  margin-top: 12px;
  color: #5d4b35;
}

/* 轮播图样式 */
.tips-carousel {
  margin: 25px 0;
}

.carousel-container {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(101, 84, 63, 0.12);
}

.carousel-slide img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.carousel-caption {
  background-color: rgba(248, 245, 238, 0.9);
  padding: 10px 15px;
  font-size: 0.95em;
  color: #5d4b35;
  text-align: center;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* 比较图表样式 */
.versions-comparison {
  margin: 25px 0;
}

.comparison-grid {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(101, 84, 63, 0.12);
  margin-bottom: 20px;
}

.comparison-image {
  width: 100%;
  display: block;
  border-radius: 8px;
}

/* 恐龙信息图样式 */
.dino-info-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 15px 0;
}

.dino-image-container {
  text-align: center;
  margin-bottom: 15px;
}

.dino-info-image {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(101, 84, 63, 0.12);
}

.image-caption {
  font-style: italic;
  font-size: 0.9em;
  margin-top: 10px;
  color: #5d4b35;
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
  .game-tutorial-video,
  .carousel-caption {
    background-color: #2d2824;
  }
  
  .video-caption,
  .carousel-caption,
  .image-caption {
    color: #e8e1d4;
  }
}

/* 响应式调整 */
@media (min-width: 768px) {
  .dino-info-container {
    flex-direction: row;
    align-items: center;
  }
  
  .dino-image-container {
    flex: 0 0 40%;
    margin-right: 20px;
    margin-bottom: 0;
  }
}

/* 视频弹窗样式 */
.video-popup-trigger {
    color: #4285f4;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
    position: relative;
}

.video-popup-trigger:hover {
    color: #0d47a1;
}

.video-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.video-popup-container {
    position: relative;
    width: 90%;
    max-width: 853px;
    background-color: #000;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.video-popup-close {
    position: absolute;
    top: -40px;
    right: -5px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    z-index: 1;
}

.video-popup-content {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
}

.video-popup-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 3px;
}

/* 变体展示区样式 */
.variants-container {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin-top: 15px;
}

.variants-list {
    flex: 1;
    min-width: 0;
}

.variant-video-showcase {
    flex: 0 0 360px;
    background-color: rgba(248, 245, 238, 0.7);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(101, 84, 63, 0.08);
    border: 1px solid rgba(160, 135, 108, 0.15);
}

.variant-video-showcase h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #5d4b35;
    text-align: center;
    font-size: 1.2em;
}

.variant-video-showcase .video-container {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 3px 8px rgba(101, 84, 63, 0.12);
}

.variant-video-showcase video {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.try-now-button {
    display: block;
    text-align: center;
    background-color: #4285f4;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.try-now-button:hover {
    background-color: #0d47a1;
    text-decoration: none;
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .variants-container {
        flex-direction: column;
    }
    
    .variant-video-showcase {
        flex: none;
        width: 100%;
    }
}

/* 暗色模式 */
@media (prefers-color-scheme: dark) {
    .variant-video-showcase {
        background-color: #2d2824;
    }
    
    .variant-video-showcase h4, .video-caption {
        color: #e8e1d4;
    }
    
    .try-now-button {
        background-color: #8ab4f8;
        color: #202124;
    }
    
    .try-now-button:hover {
        background-color: #aecbfa;
        color: #202124;
    }
    
    .video-popup-trigger {
        color: #8ab4f8;
    }
    
    .video-popup-trigger:hover {
        color: #aecbfa;
    }
}

/* 游戏控制指南样式重新设计 */
.how-to-play {
  position: relative;
}

.how-to-play .section-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  padding-left: 0;
}

/* 快速开始区域升级 */
.quick-start {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #f8f4ec, #f0ece0);
  padding: 30px;
  border-radius: 16px;
  margin: 20px 0 30px;
  text-align: center;
  border: none;
  box-shadow: 0 10px 20px rgba(101, 84, 63, 0.12);
  position: relative;
  overflow: hidden;
}

.quick-start::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #4285f4, #ea4335, #fbbc05, #34a853);
  border-radius: 6px 6px 0 0;
}

.quick-start::after {
  content: "🦖";
  position: absolute;
  bottom: -15px;
  right: 20px;
  font-size: 50px;
  opacity: 0.15;
  transform: rotate(10deg);
}

.quick-start h4 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #5d4b35;
  font-size: 1.4em;
  border-bottom: none;
  padding-bottom: 0;
  display: block;
  position: relative;
}

.quick-start h4::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background-color: rgba(160, 135, 108, 0.3);
}

.start-instruction {
  font-size: 1.4em;
  color: #5d4b35;
  line-height: 1.5;
  margin-top: 15px;
}

/* 按键高亮样式现代化 */
.key-highlight {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  margin: 0 6px;
  min-width: 40px;
  height: 40px;
  background: white;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1.1em;
  box-shadow: 0 4px 8px rgba(101, 84, 63, 0.2);
  color: #4285f4;
  border: none;
  position: relative;
  top: -2px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.key-highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(101, 84, 63, 0.25);
}

/* 控制按键样式现代化 */
.controls-card {
  background: white;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 8px 16px rgba(101, 84, 63, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.controls-card h4 {
  margin-top: 0;
  color: #4285f4;
  font-size: 1.3em;
  border-bottom: none;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(160, 135, 108, 0.1);
}

.control-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  margin-right: 10px;
  min-width: 80px;
  background: #f0ece0;
  border-radius: 6px;
  font-weight: bold;
  color: #5d4b35;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-size: 0.95em;
  box-shadow: 0 2px 4px rgba(101, 84, 63, 0.1);
  border: none;
}

/* 提示卡片样式 */
.tips-card {
  background: #fcfaf5;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 8px 16px rgba(101, 84, 63, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.tips-card h4 {
  margin-top: 0;
  color: #ea4335;
  font-size: 1.3em;
  border-bottom: none;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(160, 135, 108, 0.1);
}

/* 提示列表样式 */
.controls-list,
.tips-list {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.controls-list li,
.tips-list li {
  margin-bottom: 16px;
  position: relative;
  padding-left: 35px;
  line-height: 1.6;
  color: #5d4b35;
}

.controls-list li:last-child,
.tips-list li:last-child {
  margin-bottom: 0;
}

.controls-list li::before {
  content: "🎮";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 18px;
}

.tips-list li::before {
  content: "💡";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 18px;
}

.tips-list li:nth-child(2)::before {
  content: "🦅";
}

.tips-list li:nth-child(3)::before {
  content: "⚡";
}

.tips-list li:nth-child(4)::before {
  content: "🦘";
}

.tips-list li:nth-child(5)::before {
  content: "🎂";
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
  .quick-start {
    background: linear-gradient(135deg, #353029, #2d2824);
  }
  
  .key-highlight {
    background: #353029;
    color: #8ab4f8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }
  
  .controls-card {
    background: #2d2824;
  }
  
  .controls-card h4 {
    color: #8ab4f8;
    border-bottom-color: rgba(160, 135, 108, 0.2);
  }
  
  .tips-card {
    background: #322e29;
  }
  
  .tips-card h4 {
    color: #f28b82;
    border-bottom-color: rgba(160, 135, 108, 0.2);
  }
  
  .control-key {
    background: #403a34;
    color: #e8e1d4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .how-to-play .section-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .quick-start {
    padding: 25px 20px;
  }
  
  .key-highlight {
    padding: 6px 15px;
    height: 36px;
    min-width: 36px;
  }
  
  .start-instruction {
    font-size: 1.2em;
  }
  
  .controls-card,
  .tips-card {
    padding: 20px;
  }
}

/* Footer styles */
.site-footer {
  background-color: rgba(248, 245, 238, 0.7);
  padding: 25px 0;
  margin-top: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #5d4b35;
  backdrop-filter: blur(5px);
}

.footer-content {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-text {
  font-size: 14px;
  line-height: 1.5;
  margin: 5px 0;
  color: #5d4b35;
}

.footer-link {
  color: #4285f4;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-link:hover {
  color: #0d47a1;
  text-decoration: underline;
}

.footer-dino {
  position: absolute;
  bottom: -10px;
  right: 30px;
  opacity: 0.1;
  font-size: 40px;
  transform: rotate(20deg);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .site-footer {
    background-color: rgba(53, 48, 43, 0.95);
    color: #e8e1d4;
  }
  
  .footer-text {
    color: #c4bcae;
  }
  
  .footer-link {
    color: #8ab4f8;
  }
  
  .footer-link:hover {
    color: #aecbfa;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .site-footer {
    padding: 20px 0;
  }
}

@media (max-width: 480px) {
  .footer-text {
    font-size: 12px;
  }
  
  .footer-dino {
    display: none;
  }
}


