/* 宫崎骏治愈系配色 */
:root {
  --primary: #7ebea5;      /* 柔和青绿 */
  --secondary: #f7e9c4;    /* 米黄色 */
  --accent: #f6b7a2;       /* 柔粉橙 */
  --background: #f9f7f1;   /* 暖米白 */
  --text: #5a4636;         /* 深棕灰 */
  --highlight: #a3c7e7;    /* 天空蓝 */
}

/* 全站背景 */
body {
  background: var(--background);
  color: var(--text);
  font-family: 'Segoe UI', 'Arial', sans-serif;
  margin: 0;
  padding: 0;
}

/* 页面整体布局为flex，左侧导航，右侧内容 */
.body-layout {
  display: flex;
  min-height: 100vh;
  flex-direction: row;
}

/* 左侧导航栏 */
.navbar {
  position: sticky;
  top: 85px;
  left: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  width: 180px;
  height: auto;
  padding: 56px 0 0 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 2px 0 8px rgba(26,35,126,0.10);
  border-radius: 20px;
  margin-top: 24px;
  margin-right: 24px;
  margin-left: 220px;
  z-index: 100;
  transition: box-shadow 0.3s;
}
.navbar:hover {
  box-shadow: 4px 4px 24px rgba(26,35,126,0.18), 2px 0 8px rgba(255,136,0,0.08);
  transform: translateY(-2px) scale(1.02);
  transition: box-shadow 0.3s, transform 0.2s;
}
.navbar a {
  display: block;
  color: #fff;
  margin: 18px 0;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1em;
  width: 100%;
  text-align: left;
  padding: 10px 0 10px 8px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.navbar a:hover {
  background: var(--highlight);
  color: #fff;
}

/* 主体内容 */
.main-content {
  flex: 1;
  padding: 32px 0;
  box-sizing: border-box;
  min-width: 0;
}

/* 页眉、页脚不再有margin-left */
.header, .footer {
  margin-left: 0;
}

/* 页脚高度适配 */
.footer {
  min-height: 70px;
  margin-top: 40px;
  text-align: center;
  color: var(--text); /* 改为深色 */
  background: #fff;
  padding: 18px 0;
  font-size: 1em;
  letter-spacing: 1px;
  box-shadow: 0 -2px 8px rgba(26,35,126,0.06);
}
.darkred-footer {
  background: var(--secondary);
  color: var(--text); /* 改为深色 */
  box-shadow: 0 -2px 8px rgba(26,35,126,0.06);
}

/* 页脚链接样式，确保为主色 */
.footer a,
.darkred-footer a {
  color: var(--primary) !important;
  text-decoration: none;
  transition: color 0.2s;
}
.footer a:hover,
.darkred-footer a:hover {
  color: var(--accent) !important;
  text-decoration: underline;
}

/* 头部整体样式 */
.header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(26,35,126,0.08);
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0;
}

/* 头部内部flex布局，logo左，搜索栏更大更居中 */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 80px;
  gap: 48px;
}

.logo {
  display: flex;
  align-items: center;
  height: 56px;
  padding-right: 24px;
  gap: 14px;
}
.logo img {
  height: 48px;
  width: auto;
  vertical-align: middle;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(255,136,0,0.10);
}
.logo-title {
  color: var(--primary);
  font-size: 1.4em;
  font-weight: bold;
  font-family: 'Comic Sans MS', 'Segoe UI', 'Arial', sans-serif;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(255,136,0,0.10);
}

/* 搜索栏更大更显眼，整体偏中间 */
.search-form {
  display: flex;
  align-items: center;
  min-width: 500px;
  max-width: 700px;
  width: 60vw;
  margin-left: 80px;
  justify-content: flex-start;
}
.search-input {
  padding: 14px 28px;
  font-size: 1.25em;
  border: 2px solid var(--accent);
  border-radius: 10px 0 0 10px;
  background: var(--background);
  min-width: 300px;
  outline: none;
  transition: border 0.2s;
}
.search-input:focus {
  border-color: var(--primary);
}
.search-btn {
  padding: 14px 36px;
  font-size: 1.25em;
  border-radius: 0 10px 10px 0;
  background: var(--primary);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}
.search-btn:hover {
  background: var(--accent);
  color: var(--secondary);
}

/* 自定义滚动条颜色为亮黄 */
::-webkit-scrollbar {
  width: 16px;
  background: #f5f6ff;
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Firefox */
* {
  scrollbar-width: thick;
  scrollbar-color: var(--accent) var(--background);
}

/* 响应式：小屏幕下自动竖排 */
@media (max-width: 900px) {
  .search-form {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 12px 8px;
    gap: 10px;
  }
  .logo {
    justify-content: center;
    margin-bottom: 8px;
  }
  .main-content {
    padding: 16px 0;
  }
  .section {
    padding: 16px 8px;
    margin: 16px auto;
  }
  .navbar {
    margin-left: 0;
  }
}

/* 板块 */
.section {
  background: #fff;
  padding: 28px 32px;
  margin: 32px 0;
  border-radius: 14px;
  max-width: 900px;
  box-shadow: 0 2px 12px rgba(26,35,126,0.07);
}
.section h2, .section h3 {
  color: var(--primary);
  margin-top: 0;
}
.game-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.game-list li {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: #fff;
  box-shadow: 0 1px 4px rgba(26,35,126,0.04);
  transition: background 0.2s;
}
.game-list li:hover {
  background: var(--accent);
  color: var(--secondary);
}

/* 卡片列表布局 */
.game-card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin-top: 16px;
}

/* 单个卡片样式 */
.game-card {
  border: 2px solid var(--primary);
  box-shadow: 0 2px 8px rgba(255,179,71,0.13);
  border-radius: 12px;
  background: #fff;
  width: 140px;
  min-width: 140px;
  max-width: 140px;
  height: 140px;
  display: inline-block;
  vertical-align: top;
  margin: 10px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
  padding: 0;
}

.game-card-thumb {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--accent);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.game-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  transition: transform 0.28s cubic-bezier(.4,1.6,.6,1);
}

.game-card:hover .game-card-thumb img,
.game-card:focus .game-card-thumb img {
  transform: scale(1.08);
  z-index: 1;
}

/* 标题覆盖在图片上，悬停时渐显 */
.game-card-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  opacity: 0;
  background: rgba(255,179,71,0.78);
  color: #fff;
  font-size: 1.1em;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.25s, color 0.2s;
  z-index: 2;
  padding: 0 6px;
}

.game-card:hover .game-card-title,
.game-card:focus .game-card-title {
  opacity: 1;
}

/* 新增游戏iframe样式 */
.game-iframe-wrapper {
  position: relative;
  width: 800px;
  height: 600px;
  margin: 0 auto;
  background: url('/images/internet-roadtrip1.png') center center / cover no-repeat, var(--accent);
  border: 2px solid var(--primary);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-iframe {
  width: 100%;
  height: 700px;
  background: var(--secondary);
  border-radius: 12px;
  border: none;
  display: block;
}

/* 游戏玩法演示图片样式 */
.guide-image {
  max-width: 720px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(255,136,0,0.10);
  display: block;
  margin: 20px auto;
}

/* 全屏按钮样式（右下角） */
.fullscreen-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  padding: 8px 22px;
  font-size: 1em;
  border-radius: 8px;
  background: var(--primary, #7ebea5);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transition: background 0.2s;
}
.fullscreen-btn:hover {
  background: var(--accent, #f6b7a2);
}

/* 社交分享按钮样式 */
.share-buttons {
  margin-top: 18px;
  text-align: center;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  font-size: 1.08em;
  letter-spacing: 0.5px;
  color: var(--primary);
  font-weight: bold;
}
.share-buttons span {
  color: var(--primary);
  font-weight: bold;
  font-size: 1em;
}
.share-buttons a {
  display: inline-block;
  margin: 0 8px;
  border-radius: 8px;
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  font-size: 1em;
  font-weight: bold;
  padding: 8px 18px;
  box-shadow: 0 2px 8px rgba(255,136,0,0.10);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.15s, background 0.2s, color 0.2s;
  vertical-align: middle;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  letter-spacing: 0.5px;
}
.share-buttons a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--highlight);
  box-shadow: 0 4px 16px rgba(255,136,0,0.18);
  transform: translateY(-2px) scale(1.08);
}

/* 其他地方可适当用 var(--highlight) 作为点缀色 */

.common-iframe-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 32px auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  background: var(--secondary, #f7e9c4);
  position: relative; /* 关键 */
}

.common-iframe {
  width: 100%;
  height: 600px;
  border: none;
  background: #f9f7f1;
  display: block;
}



/* 立即游戏按钮样式 */
.play-btn {
  display: inline-block;
  padding: 16px 48px;
  font-size: 1.3em;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(90deg, #ff9800 0%, #ff5e62 100%);
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(255,152,0,0.18), 0 2px 8px rgba(0,0,0,0.10);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 1px;
}

.play-btn:hover {
  background: linear-gradient(90deg, #ff5e62 0%, #ff9800 100%);
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 8px 32px rgba(255,94,98,0.18), 0 2px 8px rgba(0,0,0,0.13);
}