
/* ================ 基本设置 ================ */
:root {
  /* 颜色变量 */
  --color-primary: #2a3239;
  --color-secondary: #e2dac8;
  --color-accent: #63bfc2;
  --color-accent-dark: #356680;
  --color-accent-light: #b94768;
  --color-dark: #0c0908;
  --color-blue: #5577b3;
  --color-brown: #7e5d41;
  --color-green: #4e7454;
  --color-background: #1c1f24;
  --color-text: #ffffff;
  --color-text-secondary: #cccccc;
  --color-link: #63bfc2;
  --color-link-hover: #b94768;
  --color-border: #3a444e;
  --color-play-button: #FFC107;
  --color-play-button-hover: #FFD54F;


  --dark-bg: #121212;
  --dark-surface: #1e1e1e;
  --dark-input: #2d2d2d;
  --primary: #64ffda;
  --primary-light: #80ffdf;
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --border-radius: 4px;
  --hover-bg: rgba(100, 255, 218, 0.1);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s ease;



  /* 阴影变量 */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.3), 0 6px 6px rgba(0, 0, 0, 0.25);
  --shadow-xl: 0 15px 25px rgba(0, 0, 0, 0.35), 0 10px 10px rgba(0, 0, 0, 0.2);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 15px rgba(99, 191, 194, 0.5);
  --shadow-glow-yellow: 0 0 20px rgba(255, 193, 7, 0.4);

  /* 字体变量 */
  
  --font-primary: 'Roboto', 'Segoe UI', "Arial", sans-serif;
  --font-heading: "Arial", sans-serif;
  --font-mono: monospace;

  /* 尺寸变量 */
  --header-height: 80px;
  --gutter: 20px;
  --border-radius: 4px;
  --border-radius-lg: 8px;
  --border-radius-xl: 12px;
  --transition-fast: 0.15s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* 层叠变量 */
  --z-index-header: 100;
  --z-index-sidebar: 90;
  --z-index-cookie: 1000;
  --z-index-tooltip: 500;
  --z-index-fullscreen: 50;
  --z-index-language-dropdown: 150;
}

/* 全局盒模型设置 */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 基础元素样式 */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {

  /*background-color: var(--color-background);
  color: var(--color-text); */
  line-height: 1.6;
  overflow-x: hidden;



  background-color: var(--dark-bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  margin: 0;
  padding: 0;


}









h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin-top: 1em;
  margin-bottom: 0.5em;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}



h1 {
  font-size: 1.2rem;
  color: var(--color-accent);
}


h2 {
  font-size: 1.2rem;
  color: var(--color-accent);
}

h3 {
  font-size: 1.1rem;
  color: var(--color-accent-light);
}

p {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 1.2rem;


  text-align: left; /* 确保文本靠左对齐（虽然通常是默认值，但明确写出更保险） */
  text-indent: 2em; /* 设置首行缩进，2em 表示缩进2个字符的宽度，你也可以用像素值，如 30px */
  }







a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover, a:focus {
  color: var(--color-link-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

strong {
  font-weight: 700;
}

button, .button {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background-color: var(--color-accent);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover, .button:hover {
  background-color: var(--color-accent-light);
  transform: translateY(-2px);
}





/* Header 样式 */
.site-header {
  background-color: var(--dark-surface);
  box-shadow: var(--shadow);
  width: 100%;

}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* 移动布局 (默认) */
.header-container {
  display: grid;
  grid-template-columns: 50% 50%;
  grid-template-rows: auto auto;
  grid-template-areas:
    "logo language"
    "search search"
    "menu menu";
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem 0;


  justify-items: center;

}



.logo-container { grid-area: logo; }
.language-select-wrapper { grid-area: language; }
.search-container { grid-area: search; }
.main-navigation { grid-area: menu; }







.nav-menu {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  height: 2rem;
  padding: 0.3rem 0;

}






.nav-link {
  padding: 0.5rem 0.8rem;
  border-radius: var(--border-radius);
  font-size: 1.05rem;
  font-weight: 700;
  margin-right: 1.5rem;
  width: auto;
  
}

.nav-link:hover {
  background-color: var(--hover-bg);
  color: var(--primary);
}






.logo-container {
  grid-area: logo;
  display: flex;
  align-items: center;
  padding-left: 0.5rem;
  
}



.logo-image {
  height: 35px;
  width: auto;
}




.search-container {
  display: flex;
  justify-content: center;
  height: 36px;
  padding-left: 0.5rem;
  width: 100%;

  
}


.search-form {
  
  background-color: var(--dark-input);
  height: 100%;
  width: 100%;

  margin-left: 20px;


  
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);

}




.search-input {


  color: var(--text-primary);

  font-size: 0.9rem;
  background-color: var(--dark-input);
  width: 100%;
  height: 100%;
  

}
  



.search-button {
  cursor: pointer;

  margin-right: 20px;



}





.search-button:hover {
  background-color: var(--hover-bg);
}

.search-icon {
  width: 16px;
  height: 16px;
  z-index: 100;
  
  
}



/* 语言选择器样式 */


.language-select-wrapper {
  display: flex;
  align-items: center;

  height: 36px;
  cursor: pointer;

  background-color: var(--dark-input);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  justify-content: end;

  max-width: 112px;

  
}

.globe-icon {
  width: 18px;
  height: 18px;
  margin-left: 0.5rem;
  color: var(--primary);
  pointer-events: none;
}


#language-select {

  cursor: pointer;
}

select#language-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 0 0.3rem;
  flex-grow: 1;
  cursor: pointer;
  font-size: 0.9rem;
}

select#language-select option {
  background-color: var(--dark-input);
  color: var(--text-primary);
}




/* 导航菜单 */
.main-navigation {
  justify-self: start;
  display: flex;
  padding-right: 0.5rem;
}



.nav-menu {

  width: 100%;
  
  

  margin: 0;
  padding: 0;
  list-style: none;
 
  z-index: 101;

  display: flex;

  flex-direction: row;
  flex-wrap: wrap;

  background-color: var(--dark-surface);

  box-shadow: var(--shadow);  /*添加阴影 */

}




.nav-item {
  
  
  width: 100%;
  
}

.nav-link {
  display: block;
  padding: 1rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
}

.nav-link:hover {

  background-color: var(--hover-bg);

  color: var(--primary);
}




.main-layout {

 
  width: 100%;

  margin: 0 auto;
  padding: 0 var(--gutter);
  gap: var(--gutter);


  display: grid;

  grid-template-rows: auto auto auto auto auto; 
  grid-template-areas:
    "game-showcase"
    "area_1"
    "game-details"
    "area_2"
    "faq"
} 


 

.sidebar-left { grid-area: area_1; }
.game-showcase { grid-area: game-showcase; }
.sidebar-right { grid-area: area_2; }
.game-details { grid-area: game-details; }
.faq { grid-area: faq; }








/* 辅助类 */
.game-container {
  width: 100%;

  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}


.game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}



.image-to-game {
  width: 100%;
  height: 100%;
}



.image-placeholder {
  width: 100%;
  height: 100%;

}








.container {
  width: 100%;

  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}





.sidebar-left, .sidebar-right {
  padding: 2rem 0;
  border-top: 1px solid transparent;
  border-image: linear-gradient(
    to right, 
    rgba(99,191,194,0), 
    rgba(99,191,194,0.5) 50%, 
    rgba(99,191,194,0)
  ) 1;
  background: var(--color-background);
}



.sidebar-section {
  background-color: var(--color-primary);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  top: calc(var(--header-height) + var(--gutter));
}



.sidebar-left-games-grid 
.sidebar-right-games-grid {


  display: flex;
  flex-wrap: wrap; /* 允许换行 */
  justify-content: center; /* 水平居中 */
  gap: 1rem; /* 可选：设置子项之间的间距 */
  margin-bottom: 2rem;
}

.game-card {

  width: 150px;
  height: 150px;
  display: flex;
  flex-direction: column;  /* 竖向排列 */
  align-items: center;     /* 水平居中（因为方向是 column，此时 "水平" 指横向） */
  justify-content: center; /* 垂直居中（可选） */
  gap: 10px;              /* 子项间距 */
  border: 1px dashed #ccc;
  
}







.game-card-image-container img {
  max-width: 100%;    /* 图片宽度不超过容器宽度 */
  max-height: 79%;    /* 图片高度不超过容器高度的 79% */
  width: auto;        /* 保持原始宽度比例 */
  height: auto;       /* 保持原始高度比例 */
  object-fit: contain; /* 按比例缩放（可选） */
  justify-content: center; /* 水平居中 */
  align-items: center;     /* 垂直居中 */
}



.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.75rem;
  color: var(--color-accent);

  display: inline-block;
  padding: 0 0.5rem;


}

.section-title::after {
  content: '';

  bottom: -0.5rem;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(99, 191, 194, 0),
    rgba(99, 191, 194, 0.8),
    rgba(99, 191, 194, 0)
  );
}









.game-showcase {
  padding: 2rem 0;
  background: linear-gradient(to bottom, var(--color-background), var(--color-primary));

  overflow: hidden;
  width: auto;
  height: auto;

  
}

.game-showcase::before {
  content: '';
  background: linear-gradient(90deg, rgba(99, 191, 194, 0), rgba(99, 191, 194, 0.5), rgba(99, 191, 194, 0));
}



.image-placeholder {
  width: 100%;
  height: 100%;


  /* aspect-ratio: 16/9; */


  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 30px rgba(99, 191, 194, 0.2);
  transform: perspective(1000px) rotateX(2deg);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  border: 3px solid rgba(255, 255, 255, 0.1);

  display: grid;

/*下面是最新添加的*/
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;

}




.iframe-game-content {
  width: 100%;
  height: 100%;
}



.iframe-game-content iframe {

  display: block; /* 确保 iframe 是块级元素，避免底部出现奇怪的空隙 */
  width: 100%;   /* 让 iframe 宽度填满其容器 .iframe-game-content */
  height: auto;  /* 让高度自动计算 */
  aspect-ratio: 4 / 3; /* <--- 设置宽高比！将 4 / 3 替换成你的内容的实际比例 */
  border: none;

}




.game-preview,
.iframe-game-content {
  width: 100%;
  height: 100%; /* 关键：继承父容器尺寸 */
  grid-area: 1/1; /* 所有元素重叠在同一网格区域 */

}

.image-placeholder:hover {
  transform: perspective(1000px) rotateX(0deg);
  box-shadow: var(--shadow-xl), 0 0 40px rgba(99, 191, 194, 0.3);
  border-color: rgba(99, 191, 194, 0.3);
}


.game-preview {
  display: grid;
  /*下面是最新添加的*/
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.game-overplay,
.game-screenshot {

  grid-area: 1/1; /* 所有元素重叠在同一网格区域 */

}






.game-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 保持比例并填充 */
  border-radius: 4%;
}









.game-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-overplay {


  width: 100%;
  height: 100%;
  display: flex;

 
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  transition: background var(--transition-medium);
  backdrop-filter: blur(2px);
  z-index: 200;

}

.game-overplay:hover {
  background: rgba(0, 0, 0, 0.6);
}

.fullscreen-toggle {

  bottom: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: background-color var(--transition-medium), transform var(--transition-fast), box-shadow var(--transition-medium);
  z-index: var(--z-index-fullscreen);
  box-shadow: var(--shadow-md);
}

.fullscreen-toggle:hover {
  background-color: rgba(99, 191, 194, 0.8);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg), 0 0 10px rgba(99, 191, 194, 0.5);
}

.fullscreen-icon {
  width: 16px;
  height: 16px;
  fill: none;
}

.fullscreen-text {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.play-button {

  background-color: var(--color-play-button); /* 黄色背景 */
  color: #333333; /* 深色文字，提高对比度 */
  font-size: 1.25rem;
  padding: 0.75rem 2rem 0.75rem 1.75rem;
  border-radius: 30px;
  font-weight: 700;
  display: flex;
  flex-wrap: nowrap;    /* 阻止项目换行 */
  align-items: center;
  gap: 8px;
  transition: transform var(--transition-medium), background-color var(--transition-medium), box-shadow var(--transition-medium);
  box-shadow: var(--shadow-lg), var(--shadow-glow-yellow);
  border: none;
  cursor: pointer;
  overflow: hidden;


  line-height: 0; /* 防止按钮高度被行高撑开 */


}



.play-icon {

  /* 或者使用相对单位, 如 em, 让图标随字体大小缩放 */
  width: 2.3em;
  height: 2.3em;
  /* 需要调整垂直对齐方式 */
  vertical-align: middle; /* 或 top, bottom, text-bottom 等*/
}






.play-button::after {

  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.8s;
  z-index: -1;
}

.play-button:hover, .play-button:focus {
  background-color: var(--color-play-button-hover); /* 浅黄色高亮 */
  transform: scale(1.05) translateY(-2px);
  box-shadow: var(--shadow-xl), 0 0 25px rgba(255, 193, 7, 0.6);
}

.play-button:hover::after {
  left: 100%;
}

.game-info {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.game-title {
  margin-top: 0;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ================ 游戏信息区域下方，添加评分样式 ================ */
.game-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stars {
  display: flex;
  gap: 0.25rem;
}

.star {
  width: 20px;
  height: 20px;
  background-image: url('../images/star-empty.svg');
  background-size: cover;
  transition: transform var(--transition-fast);
}

.star.filled {
  background-image: url('../images/star-filled.svg');
}

.star.half-filled {
  background-image: url('../images/star-half.svg');
}

.rating-value {
  font-weight: 700;
  color: var(--color-accent);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.votes-count {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.social-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.like-counter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--border-radius);
  transition: background-color var(--transition-medium), transform var(--transition-fast);
}

.like-counter:hover {
  background-color: rgba(99, 191, 194, 0.1);
  transform: scale(1.05);
}

.like-counter:active {
  transform: scale(0.95);
}

.like-icon {
  width: 20px;
  height: 20px;
  background-image: url('../images/like-icon.svg');
  background-size: cover;
  transition: transform var(--transition-medium);
}

.like-counter:hover .like-icon {
  transform: scale(1.1);
}

.like-counter.liked .like-icon {
  animation: pulse 1s;
}

.like-count {
  font-weight: 700;
  color: var(--color-accent);
}

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

/* ================ Embed 区域 ================ */
.embed-section {
  width: 100%;
  max-width: 600px;
  margin-top: 2rem;
  padding: 1rem;
  background-color: rgba(42, 50, 57, 0.8);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.embed-section:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.embed-label {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.embed-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;

}

.embed-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--color-background);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  box-shadow: var(--shadow-inner);
  transition: border-color var(--transition-medium), box-shadow var(--transition-medium);
}

.embed-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(99, 191, 194, 0.3), var(--shadow-inner);
}

.copy-button {
  background-color: var(--color-accent);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color var(--transition-medium), transform var(--transition-fast);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.copy-button:hover {
  background-color: var(--color-accent-light);
  transform: scale(1.05);
}

.copy-button:active {
  transform: scale(0.95);
}

.copy-button.copied {
  background-color: var(--color-green);
}

.copy-icon {
  width: 16px;
  height: 16px;
}



/* ================ 游戏描述区域 ================ */
.game-details {
  padding: 3rem 0;
  background-color: var(--color-background);

}

.game-details::before {
  content: '';

  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(99, 191, 194, 0),
    rgba(99, 191, 194, 0.3),
    rgba(99, 191, 194, 0)
  );
}

.game-details {
  margin-bottom: 2rem;
  line-height: 1.7;
}

.game-details h2 {
  margin-top: 2rem;
  font-size: 1.75rem;

}

.game-details h2::after {
  content: '';

  bottom: -0.25rem;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-accent);
}

.game-details h3 {
  margin-top: 1.5rem;
  font-size: 1.25rem;
}

.game-details ul {
  margin-left: 1rem;
  margin-bottom: 1.5rem;
}

.game-details li {
  margin-bottom: 0.75rem;

  padding-left: 1rem;
}

.game-details li::before {
  content: '';

  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
}





/* FAQ Section */


.faq-item {
  margin-bottom:2rem;
}

.faq-item summary {
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  color: white;

  border-radius: 5px;
  border: 1px solid grey;
  list-style: none;
  outline: none;
  transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: -5px;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background-color: black;
}

.faq-item p {
  /* border: 1px solid gray; */
  border-top: none;
  border-radius: 0 0 5px 5px;
  color: white;
  background-color: #0c0908;
  
}




.game-categories {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.category-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--color-primary);
  color: var(--color-text);
  border-radius: var(--border-radius);
  transition: background-color var(--transition-medium), transform var(--transition-fast);
  text-decoration: none;
}

.category-link:hover, .category-link:focus {
  background-color: var(--color-accent);
  text-decoration: none;
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ================ 游戏讨论区域 ================ */
.game-discussion {
  padding: 3rem 0;
  background-color: var(--color-primary);

}

.game-discussion::before {
  content: '';

  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(99, 191, 194, 0),
    rgba(99, 191, 194, 0.3),
    rgba(99, 191, 194, 0)
  );
}

.comments-section {
  max-width: 700px;
  margin: 0 auto;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-input {
  width: 100%;
  min-height: 120px;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background-color: var(--color-background);
  color: var(--color-text);
  resize: vertical;
  transition: border-color var(--transition-medium);
}

.comment-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(99, 191, 194, 0.2);
}

.terms-agreement {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.submit-comment {
  align-self: flex-end;
  background-color: var(--color-accent);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: background-color var(--transition-medium), transform var(--transition-fast), box-shadow var(--transition-medium);
  box-shadow: var(--shadow-sm);
}

.submit-comment:hover, .submit-comment:focus {
  background-color: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ================ 网站底部 ================ */
.site-footer {
  background-color: var(--color-dark);
  padding: 2rem 0;

}

.site-footer::before {
  content: '';

  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(99, 191, 194, 0),
    rgba(99, 191, 194, 0.3),
    rgba(99, 191, 194, 0)
  );
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.footer-link {
  color: var(--color-text-secondary);
  transition: color var(--transition-medium);

  padding: 0.25rem 0;
}

.footer-link::after {
  content: '';

  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: width var(--transition-medium);
}

.footer-link:hover, .footer-link:focus {
  color: var(--color-accent);
}

.footer-link:hover::after, .footer-link:focus::after {
  width: 100%;
}

.copyright {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

/* ================ Cookie通知 ================ */
.cookie-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-primary);
  padding: 1.5rem 0;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
  z-index: var(--z-index-cookie);
  backdrop-filter: blur(5px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-notice h3 {
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--color-accent);
}

.cookie-notice p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.accept-cookies, .reject-cookies {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  transition: background-color var(--transition-medium), transform var(--transition-fast);
}

.accept-cookies {
  background-color: var(--color-accent);
  color: white;
}

.accept-cookies:hover, .accept-cookies:focus {
  background-color: var(--color-accent-light);
  transform: translateY(-2px);
}

.reject-cookies {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-text);
}

.reject-cookies:hover, .reject-cookies:focus {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* 重要游戏框样式补充 */
.game-card {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  background-color: var(--color-primary);

  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.05);
}




.infopage {
  width: 79%;
  text-align: left;

  margin-left: auto;
  margin-right: auto;

  padding: 3rem 0;
  background-color: var(--color-background);

  margin-bottom: 2rem;
  line-height: 1.7;
}

.infopage h2 {
  margin-top: 2rem;
  font-size: 1.75rem;
}

.infopage h3 {
  margin-top: 1.5rem;
  font-size: 1.25rem;
}







/* 桌面布局 */
@media (min-width: 992px) {
  .site-header {
    /* position: sticky; */
    top: 0;
  }



  
h1 {
  font-size: 1.9rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.5rem;
}


p {

  margin-bottom: 1.3rem;
}






/* PC端布局 */
.header-container {
  display: grid;
  grid-template-columns: 30% 45% 25%;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "logo search language"
    "menu menu menu";
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem 0;

  justify-items: center;

}


.logo-container { grid-area: logo; }
.language-select-wrapper { grid-area: language; }
.search-container { grid-area: search; }
.main-navigation { grid-area: menu; }





.logo-container {

  justify-content: flex-start;
  
}





.search-container {

  justify-content: center;
  
}




.language-select-wrapper {
 
  justify-content: end;

  max-width: 100%;
  width: 123px;
  
}





/* ================ 大尺寸布局 ================ */
.main-layout {

 
  width: 100%;

  margin: 0 auto;
  padding: 0 var(--gutter);
  gap: var(--gutter);


  display: grid;
  grid-template-columns: 19% 59% 19%; 

  align-items: start; /* 关键代码 */
 
  
  /* 定义5行来容纳5行内容块 */
  grid-template-rows: auto auto auto auto auto; 
  grid-template-areas:
    "area_1 game-showcase area_2"
    "area_1 game-details area_2"
    "area_1 faq area_2"
} 


 

.sidebar-left { grid-area: area_1; }
.game-showcase { grid-area: game-showcase; }
.sidebar-right { grid-area: area_2; }
.game-details { grid-area: game-details; }
.faq { grid-area: faq; }





.sidebar-left {
  margin-right: 0;
  width: 100%;

  /*
  flex-shrink: 0;
  align-self: flex-start;

  position: sticky;
  top: calc(var(--header-height) + var(--gutter));
  */
}

.sidebar-right {
  margin-left: 0;
  width: 100%;
  /*
  flex-shrink: 0;
  align-self: flex-start;
  */
}



.sidebar-left, .sidebar-right {
  padding: 2rem 0;
  border-top: 1px solid transparent;
  border-image: linear-gradient(
    to right, 
    rgba(99,191,194,0), 
    rgba(99,191,194,0.5) 50%, 
    rgba(99,191,194,0)
  ) 1;
  background: var(--color-background);
}



.sidebar-section {
  background-color: var(--color-primary);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  top: calc(var(--header-height) + var(--gutter));
}



.sidebar-left-games-grid 
.sidebar-right-games-grid {


  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;

}





.section-title {
  text-align: left;
}

.section-title::after {
  content: '';

  bottom: -0.5rem;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(99, 191, 194, 0),
    rgba(99, 191, 194, 0.8),
    rgba(99, 191, 194, 0)
  );
}



.image-to-game {
  width: 100%;
  height: 69vh;
}



.image-placeholder {
  width: 100%;
  height: 100%;

}


.iframe-game-content {
  width: 100%;

}

.iframe-game-content iframe {
  width: 100%;
  height: 100%;
  border: none;


  display: block; /* 确保 iframe 是块级元素，避免底部出现奇怪的空隙 */
  width: 100%;   /* 让 iframe 宽度填满其容器 .iframe-game-content */
  height: auto;  /* 让高度自动计算 */
  aspect-ratio: 4 / 3;
  border: none;
}







/* 添加关闭按钮的HTML (需要在JS中添加) */
/*
<button class="close-menu">
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
    <line x1="18" y1="6" x2="6" y2="18"></line>
    <line x1="6" y1="6" x2="18" y2="18"></line>
  </svg>
  <span class="sr-only">Close Menu</span>
</button>
*/

/* 菜单切换JS代码 */
/*
document.addEventListener('DOMContentLoaded', function() {
  const menuToggle = document.querySelector('.menu-toggle');
  const navMenu = document.getElementById('primary-menu');
  
  // 创建关闭按钮
  const closeButton = document.createElement('button');
  closeButton.className = 'close-menu';
  closeButton.innerHTML = `
    <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
      <line x1="18" y1="6" x2="6" y2="18"></line>
      <line x1="6" y1="6" x2="18" y2="18"></line>
    </svg>
    <span class="sr-only">Close Menu</span>
  `;
  
  // 添加关闭按钮到header容器
  const headerContainer = document.querySelector('.header-container');
  headerContainer.appendChild(closeButton);
  
  // 菜单切换事件
  menuToggle.addEventListener('click', function() {
    const expanded = this.getAttribute('aria-expanded') === 'true' || false;
    this.setAttribute('aria-expanded', !expanded);
    if (!expanded) {
      document.body.style.overflow = 'hidden'; // 防止背景滚动
    } else {
      document.body.style.overflow = '';
    }
  });
  
  // 关闭按钮事件
  closeButton.addEventListener('click', function() {
    menuToggle.setAttribute('aria-expanded', 'false');
    document.body.style.overflow = '';
  });
  
  // 点击菜单外部关闭
  document.addEventListener('click', function(event) {
    if (!menuToggle.contains(event.target) && 
        !navMenu.contains(event.target) && 
        !closeButton.contains(event.target) && 
        menuToggle.getAttribute('aria-expanded') === 'true') {
      menuToggle.setAttribute('aria-expanded', 'false');
      document.body.style.overflow = '';
    }
  });
});
*/




