:root {
  --main-bg-color: #0a0e17;
  --secondary-bg-color: #121724;
  --accent-color: #6c5ce7;
  --accent-color-hover: #5649c1;
  --text-color: #ffffff;
  --secondary-text-color: #a0a0b2;
  --card-bg-color: #1a1f2e;
  --card-hover-color: #232838;
  --sidebar-width: 240px;
  --header-height: 60px;
  --filter-bg-color: #2a2e3b;
  --filter-active-color: #3a3e4b;
  --border-color: #2d3345;
  --success-color: #00b894;
  --warning-color: #fdcb6e;
  --danger-color: #ff7675;
  --info-color: #0984e3;
}

body {
  background-color: var(--main-bg-color);
  color: var(--text-color);
  font-family: "Roboto", sans-serif;
  margin: 0;
  padding: 0;
  background-image: linear-gradient(
      to bottom,
      rgba(10, 14, 23, 0.8) 0%,
      rgba(10, 14, 23, 1) 100%
    ),
    url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgcGF0dGVyblRyYW5zZm9ybT0icm90YXRlKDQ1KSI+PHJlY3QgaWQ9InBhdHRlcm4tYmFja2dyb3VuZCIgd2lkdGg9IjQwMCUiIGhlaWdodD0iNDAwJSIgZmlsbD0icmdiYSgyMCwgMjQsIDM1LCAwLjAzKSI+PC9yZWN0PjxjaXJjbGUgZmlsbD0icmdiYSg2MCwgNjUsIDkwLCAwLjA1KSIgY3g9IjIwIiBjeT0iMjAiIHI9IjEiPjwvY2lyY2xlPjwvcGF0dGVybj48L2RlZnM+PHJlY3QgZmlsbD0idXJsKCNwYXR0ZXJuKSIgaGVpZ2h0PSIxMDAlIiB3aWR0aD0iMTAwJSI+PC9yZWN0Pjwvc3ZnPg==");
  background-attachment: fixed;
}

/* Layout Structure */
.site {
  width: 100%;
  min-height: 100vh;
  position: relative;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--secondary-bg-color);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 1;
  padding-top: var(--header-height);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  left: 0;
  top: 0;
  transform: translateX(0);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

body:not(.sidebar-active) .sidebar {
  transform: translateX(-100%);
  box-shadow: none;
}

.site-content {
  margin-left: var(--sidebar-width);
  margin-right: auto;
  padding: calc(var(--header-height) + 20px) 25px 50px;
  transition: margin-left 0.3s ease, width 0.3s ease;
  position: relative;
}

/* 当侧边栏关闭时的内容区域样式 */
body:not(.sidebar-active) .site-content {
  margin-left: 0;
}

/* 响应式布局 */
@media screen and (max-width: 1023px) {
  .site-content {
    margin-left: 0 !important; /* 强制去除左边距 */
    width: 100% !important; /* 强制占据全宽 */
  }

  .sidebar {
    transform: translateX(-100%); /* 移动设备上默认隐藏 */
    z-index: 1; /* 确保侧边栏在内容之上 */
  }

  body.sidebar-active .sidebar {
    transform: translateX(0);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  }
}

/* Header */
.site-header {
  background-color: rgba(18, 23, 36, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid rgba(45, 51, 69, 0.6);
}

/* 移动端的header内边距更小 */
@media screen and (max-width: 767px) {
  .site-header {
    padding: 0 10px;
  }
}

/* Left Header Section */
.header-left {
  display: flex;
  align-items: center;
  width: auto;
  flex: 1; /* 占据剩余空间 */
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.menu-toggle:hover {
  color: var(--accent-color);
}

/* 菜单按钮在侧边栏关闭时的样式 */
body:not(.sidebar-active) .menu-toggle {
  color: var(--accent-color);
}

body:not(.sidebar-active) .menu-toggle i:before {
  content: "\f0c9"; /* fa-bars */
}

.sidebar-active .menu-toggle i:before {
  content: "\f00d"; /* fa-times (X icon) */
}

.site-title {
  font-family: "Audiowide", "Roboto", sans-serif;
  letter-spacing: 1px;
}

.site-title a {
  background: linear-gradient(90deg, var(--accent-color), #a29bfe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.6rem;
  text-shadow: 0 0 15px rgba(108, 92, 231, 0.3);
}

/* Custom Logo */
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
  transition: opacity 0.3s;
}

.custom-logo-link:hover {
  opacity: 0.9;
}

.custom-logo {
  max-height: 30px;
  width: auto;
}

/* Site Logo */
.site-logo {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.site-logo img,
.custom-logo {
  max-height: 35px;
  width: auto;
  transition: opacity 0.3s;
}

.site-logo:hover img,
.site-logo:hover .custom-logo {
  opacity: 0.9;
}

/* 中间部分已移除 */

/* Right Header Section */
.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Header Quick Links */
.header-quick-links {
  display: flex;
  align-items: center;
  margin-right: 5px;
}

.header-link {
  display: flex;
  align-items: center;
  color: var(--secondary-text-color);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 5px 10px;
  margin-right: 8px;
  border-radius: 4px;
  transition: all 0.3s ease;
  background-color: var(--secondary-bg-color);
  border: 1px solid #333;
}

.header-link:hover {
  color: var(--text-color);
  background-color: var(--card-bg-color);
  border-color: var(--accent-color);
}

.header-link i {
  margin-right: 5px;
  font-size: 0.9rem;
}

.trending-link i {
  color: #ff4757;
}

.trending-link:hover {
  border-color: #ff4757;
}

.new-games-link i {
  color: #2ed573;
}

.new-games-link:hover {
  border-color: #2ed573;
}

/* 在移动设备上隐藏链接文本，只显示图标 */

/* Filter Type Selector Styles */
.filter-type-selector {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.filter-type-btn {
  background-color: var(--secondary-bg-color);
  color: var(--text-color);
  border: none;
  padding: 10px 20px;
  margin: 0 5px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
}

.filter-type-btn:hover {
  background-color: var(--filter-active-color);
}

.filter-type-btn.active {
  background-color: var(--accent-color);
  color: white;
}

.filter-tabs {
  display: none;
}

.filter-tabs.active {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* Game Tags Page Styles - Alphabetical Layout */
.alpha-nav-container {
  background-color: var(--card-bg-color);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 30px;
  position: sticky;
  top: var(--header-height);
}

.alpha-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.alpha-nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--secondary-bg-color);
  color: var(--text-color);
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s ease;
}

.alpha-nav-item:hover {
  background-color: var(--accent-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(126, 63, 242, 0.4);
}

.alpha-tags-container {
  margin-bottom: 40px;
}

.alpha-section {
  margin-bottom: 30px;
  background-color: var(--card-bg-color);
  border-radius: 8px;
  padding: 20px;
  scroll-margin-top: calc(var(--header-height) + 70px);
}

.alpha-letter {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 5px;
  display: inline-block;
}

.alpha-tags-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.alpha-tag-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: var(--secondary-bg-color);
  border-radius: 4px;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.2s ease;
}

.alpha-tag-item:hover {
  background-color: var(--filter-active-color);
  transform: translateY(-2px);
  color: white;
}

.alpha-tag-name {
  font-weight: 500;
}

.alpha-tag-count {
  background-color: var(--accent-color);
  color: white;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.8rem;
  min-width: 24px;
  text-align: center;
}

.no-tags-found {
  text-align: center;
  padding: 30px;
  color: var(--secondary-text-color);
}

/* Responsive styles */
@media screen and (max-width: 767px) {
  .alpha-tags-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .alpha-nav-item {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}

/* Game Categories and Tags Styles */
.categories-container,
.tags-container {
  display: flex;
  align-items: center;
}

.categories-label,
.tags-label {
  font-weight: 600;
  margin-right: 10px;
  color: var(--secondary-text-color);
}

.tags.are-medium .tag {
  font-size: 0.85rem;
  margin-right: 5px;
  margin-bottom: 5px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.tags.are-medium .tag.is-info {
  background-color: var(--accent-color);
}

.tags.are-medium .tag.is-warning {
  background-color: #ff9f43;
  color: #fff;
}

.tags.are-medium .tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Game Rating Styles */
.game-rating {
  display: flex;
  margin: 15px 0;
  width: 100%;
}

.game-rating-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
  padding: 10px 15px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.game-rating-btn:first-child {
  margin-left: 0;
}

.game-rating-btn:last-child {
  margin-right: 0;
}

.game-rating-btn .icon {
  margin-right: 8px;
}

.game-rating-btn.is-active {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.game-rating-btn.is-success.is-active {
  background-color: #23d160;
}

.game-rating-btn.is-danger.is-active {
  background-color: #ff3860;
}
@media screen and (max-width: 767px) {
  .header-link .link-text {
    display: none;
  }

  .header-link {
    padding: 6px;
    margin-right: 5px;
  }

  .header-link i {
    margin-right: 0;
  }
}

/* 搜索图标和下拉框 */
.search-toggle-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-toggle {
  background: none;
  border: none;
  color: var(--secondary-text-color);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.search-toggle:hover {
  color: var(--text-color);
}

.search-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--secondary-bg-color);
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 1;
  display: none;
  margin-top: 5px;
  min-width: 250px;
}

.search-toggle-container.active .search-dropdown {
  display: block;
}

.header-search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input {
  background-color: var(--card-bg-color);
  border: none;
  border-radius: 20px;
  color: var(--text-color);
  padding: 8px 15px;
  width: 180px;
  height: 36px;
  font-size: 0.9rem;
  outline: none;
}

.search-input:focus {
  box-shadow: 0 0 0 2px var(--accent-color);
}

.search-button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--secondary-text-color);
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

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

.user-actions {
  display: flex;
  align-items: center;
}

.favorites-icon {
  color: var(--secondary-text-color);
  font-size: 1.2rem;
  margin-right: 15px;
  transition: color 0.3s ease;
}

.favorites-icon:hover {
  color: var(--text-color);
}

.login-button {
  background-color: var(--accent-color);
  color: var(--text-color);
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.login-button:hover {
  background-color: #6a2cf0;
}

/* Sidebar Navigation */
.sidebar-nav {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  color: var(--secondary-text-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.sidebar-nav-item:hover,
.sidebar-nav-item.active {
  background-color: var(--card-bg-color);
  color: var(--text-color);
}

.sidebar-nav-item i {
  margin-right: 15px;
  width: 20px;
  text-align: center;
}

.sidebar-section {
  margin-bottom: 20px;
}

.sidebar-section-title {
  padding: 10px 20px;
  color: var(--secondary-text-color);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Sidebar Footer */
.sidebar-footer {
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid var(--card-bg-color);
}

.sidebar-footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-footer-menu li {
  margin-bottom: 8px;
}

.sidebar-footer-menu a {
  color: var(--secondary-text-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  display: block;
  padding: 5px 0;
}

.sidebar-footer-menu a:hover {
  color: var(--text-color);
}

.social-links {
  display: flex;
  gap: 10px;
  padding: 0 20px;
}

.social-link {
  color: var(--secondary-text-color);
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--text-color);
}

.sidebar-copyright {
  padding: 20px 0 0 0;
  font-size: 0.8rem;
  color: var(--secondary-text-color);
  text-align: center;
}

.sidebar-copyright p {
  margin: 0 0 5px 0;
}

/* Game Cards */
.game-section {
  margin-bottom: 45px;
  position: relative;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.section-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    var(--accent-color),
    rgba(108, 92, 231, 0.1)
  );
}

.section-title {
  color: var(--text-color);
  font-size: 1.7rem;
  font-weight: bold;
  margin: 0;
  position: relative;
  display: inline-block;
  font-family: "Poppins", "Roboto", sans-serif;
  letter-spacing: 0.5px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 40px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.view-more {
  color: var(--secondary-text-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  background-color: rgba(26, 31, 46, 0.5);
  display: inline-flex;
  align-items: center;
}

.view-more:hover {
  color: var(--text-color);
  background-color: var(--card-hover-color);
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.view-more i {
  margin-left: 5px;
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.view-more:hover i {
  transform: translateX(3px);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
  position: relative;
}

.game-card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  height: 100%;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-color);
}

.game-card-image {
  position: relative;
  padding-top: 60%; /* 降低图片高度比例 */
  overflow: hidden;
}

.game-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .game-card-image img {
  transform: scale(1.08);
}

.game-card-content {
  padding: 0.5rem;
  position: relative;
}

.game-card-title {
  margin: 0 0 8px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  height: 2.5rem;
}

.game-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-block;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.game-tag.new {
  background-color: var(--success-color);
  color: #fff;
}

.game-tag.trending {
  background-color: var(--danger-color);
  color: #fff;
  animation: pulse 1.5s infinite;
}

.game-tag.featured {
  background-color: var(--warning-color);
  color: #222;
}

.game-tag.most-liked {
  background-color: var(--info-color);
  color: #fff;
}

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

/* Buttons */
.button.is-primary {
  background-color: var(--accent-color);
  border-color: transparent;
}

/* Comments Styling */
.comments-area {
  margin-top: 2rem;
  padding: 1.25rem;
  background-color: var(--card-bg-color);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comments-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment-list > li {
  margin-bottom: 0.75rem;
  background-color: var(--bg-color);
  border-radius: 6px;
  overflow: hidden;
  border-bottom: 1px solid #333;
  padding-bottom: 0.5rem;
}

.comment-list > li:last-child {
  border-bottom: none;
}

/* 嵌套评论样式 */
.comment-list .children {
  margin-left: 1.5rem;
  padding-left: 0.75rem;
  border-left: 3px solid var(--accent-color);
  list-style: none;
  margin-top: 0.5rem;
}

.comment-list .children li {
  background-color: rgba(30, 30, 30, 0.5);
  border-bottom: none;
  position: relative;
}

.comment-list .children li:before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 1.25rem;
  width: 0.75rem;
  height: 1px;
  background-color: var(--accent-color);
}

.comment-body {
  padding: 0.75rem;
  position: relative;
}

.comment-meta {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.comment-avatar {
  margin-right: 0.75rem;
}

.comment-avatar img {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent-color);
}

.comment-author-info {
  display: flex;
  flex-direction: column;
}

.comment-author {
  font-weight: bold;
  color: var(--accent-color);
  font-size: 0.95rem;
}

.comment-time {
  font-size: 0.8rem;
  color: var(--secondary-text-color);
}

.comment-content {
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.comment-content p {
  margin-bottom: 0.5rem;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.comment-actions {
  text-align: right;
}

.reply-link a {
  display: inline-block;
  color: var(--secondary-text-color);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.reply-link a:hover {
  color: var(--accent-color);
}

/* Comment Form Styling */
.comment-respond {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.comment-reply-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

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

.comment-form-comment {
  order: 1;
}

.comment-form-author,
.comment-form-email {
  order: 2;
}

.form-submit {
  order: 3;
}

.comment-form .input,
.comment-form .textarea {
  background-color: var(--bg-color);
  border: 1px solid #333;
  color: var(--text-color);
  width: 100%;
  padding: 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.comment-form .input:focus,
.comment-form .textarea:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 0 1px var(--accent-color);
}

.comment-form .input::placeholder,
.comment-form .textarea::placeholder {
  color: var(--secondary-text-color);
  opacity: 0.7;
}

.comment-form .submit {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
  align-self: flex-end;
  transition: background-color 0.2s ease;
}

.comment-form .submit:hover {
  background-color: #6a2cf0;
}

/* Comment Pagination */
.comment-pagination {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.comment-pagination a {
  color: var(--accent-color);
  text-decoration: none;
}

.comment-pagination a:hover {
  text-decoration: underline;
}

.button.is-primary:hover {
  background-color: #6a2cf0;
}

.login-button {
  background-color: var(--accent-color);
  color: var(--text-color);
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-weight: bold;
}

/* 无游戏提示 */
.no-games-found {
  text-align: center;
  padding: 35px;
  background-color: var(--card-bg-color);
  border-radius: 12px;
  border: 1px dashed var(--border-color);
  color: var(--secondary-text-color);
  font-size: 0.95rem;
  grid-column: 1 / -1;
}

/* Game Filters */
.game-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.filter-tab {
  background-color: var(--filter-bg-color);
  color: var(--secondary-text-color);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.filter-tab:hover,
.filter-tab.active {
  background-color: var(--filter-active-color);
  color: var(--text-color);
}

.sort-options {
  display: flex;
  align-items: center;
}

.sort-label {
  color: var(--secondary-text-color);
  margin-right: 10px;
  font-size: 0.9rem;
}

.sort-select {
  background-color: var(--filter-bg-color);
  color: var(--text-color);
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
}

/* Pagination */
.pagination-container {
  margin-top: 40px;
  text-align: center;
}

.pagination {
  display: inline-flex;
  background-color: var(--filter-bg-color);
  border-radius: 30px;
  padding: 5px;
  overflow: hidden;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 2px;
  color: var(--secondary-text-color);
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.pagination a:hover,
.pagination span.current {
  background-color: var(--accent-color);
  color: var(--text-color);
}

.pagination .prev,
.pagination .next {
  font-size: 0.8rem;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.9rem;
  color: var(--secondary-text-color);
  margin-top: 5px;
}

.breadcrumbs a {
  color: var(--secondary-text-color);
  text-decoration: none;
}

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

/* Menu Toggle Active State */
.menu-toggle.is-active {
  color: var(--accent-color);
}

/* Sidebar Active State */
.sidebar.is-active {
  transform: translateX(0) !important;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* Responsive */
@media screen and (max-width: 1200px) {
  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 767px) {
  .site-content {
    padding: calc(var(--header-height) + 15px) 15px 30px;
  }

  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }

  .game-card-title {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .section-header {
    margin-bottom: 20px;
  }

  .view-more {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  .game-section {
    margin-bottom: 30px;
  }
}

/* Category Games Section */
.category-games {
  margin-top: 30px;
  margin-bottom: 30px;
}

.category-header {
  margin-bottom: 15px;
}

.category-title {
  color: var(--text-color);
  font-size: 1.3rem;
  font-weight: bold;
  margin: 0;
}

@media screen and (max-width: 767px) {
  .category-title {
    font-size: 1.2rem;
  }
}

.category-section {
  margin-bottom: 35px;
}

.category-section .section-title {
  color: var(--text-color);
  font-size: 1.4rem;
  font-weight: bold;
}

/* 页面切换动画 */
.site-main {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Updated Category Page Styling */
.category-content-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

/* Sidebar Styling */
.category-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  height: max-content;
}

.filter-widget,
.sort-widget,
.related-categories-widget {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.widget-title {
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-option {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background-color: var(--filter-bg-color);
  color: var(--secondary-text-color);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.filter-option i {
  margin-right: 10px;
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.filter-option:hover,
.filter-option.active {
  background-color: var(--filter-active-color);
  color: var(--text-color);
  transform: translateX(5px);
}

.filter-option.active {
  border-left: 3px solid var(--accent-color);
  font-weight: 500;
}

.sort-options {
  width: 100%;
}

.games-sort {
  width: 100%;
  background-color: var(--filter-bg-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.games-sort:hover,
.games-sort:focus {
  border-color: var(--accent-color);
}

.related-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-categories-list li {
  margin-bottom: 8px;
}

.related-categories-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background-color: var(--filter-bg-color);
  color: var(--secondary-text-color);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.related-categories-list a:hover {
  background-color: var(--filter-active-color);
  color: var(--text-color);
  transform: translateX(5px);
}

.cat-count {
  background-color: var(--accent-color);
  color: white;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.75rem;
  min-width: 24px;
  text-align: center;
}

/* Main Content Area */
.category-main-content {
  min-width: 0; /* Prevents overflow issues */
}

.category-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 15px 20px;
  background-color: var(--card-bg-color);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.results-count {
  color: var(--text-color);
  font-size: 0.95rem;
}

.view-toggle {
  display: flex;
  gap: 8px;
}

.view-toggle-btn {
  background-color: var(--filter-bg-color);
  color: var(--secondary-text-color);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-toggle-btn:hover {
  background-color: var(--filter-active-color);
  color: var(--text-color);
}

.view-toggle-btn.active {
  background-color: var(--accent-color);
  color: white;
}

/* Grid and List Views */
.games-grid-wrapper {
  display: grid;
  gap: 20px;
}

.games-grid-wrapper.view-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.games-grid-wrapper.view-list {
  grid-template-columns: 1fr;
}

.games-grid-wrapper.view-list .game-card {
  display: flex;
  flex-direction: row;
  height: 150px;
}

.games-grid-wrapper.view-list .game-card-image {
  width: 180px;
  min-width: 180px;
  padding-top: 0;
  height: 100%;
}

.games-grid-wrapper.view-list .game-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.games-grid-wrapper.view-list .game-card-title {
  height: auto;
  margin-bottom: 10px;
}

/* Responsive Adjustments */
@media screen and (max-width: 1024px) {
  .category-content-wrapper {
    grid-template-columns: 220px 1fr;
    gap: 20px;
  }

  .games-grid-wrapper.view-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .category-content-wrapper {
    grid-template-columns: 1fr;
  }

  .category-sidebar {
    position: static;
    margin-bottom: 20px;
  }

  .filter-widget,
  .sort-widget,
  .related-categories-widget {
    margin-bottom: 15px;
    padding: 15px;
  }

  .games-grid-wrapper.view-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .games-grid-wrapper.view-list .game-card {
    height: 130px;
  }

  .games-grid-wrapper.view-list .game-card-image {
    width: 140px;
    min-width: 140px;
  }
}

@media screen and (max-width: 480px) {
  .games-grid-wrapper.view-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .games-grid-wrapper.view-list .game-card {
    flex-direction: column;
    height: auto;
  }

  .games-grid-wrapper.view-list .game-card-image {
    width: 100%;
    padding-top: 60%;
  }

  .category-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .view-toggle {
    align-self: flex-end;
  }
}

/* Category Header Styling */
.category-header {
  margin-bottom: 30px;
}

.category-banner {
  position: relative;
  height: 280px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.category-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  background: linear-gradient(
    to top,
    rgba(10, 14, 23, 0.9) 0%,
    rgba(10, 14, 23, 0.5) 50%,
    rgba(10, 14, 23, 0.2) 100%
  );
}

.category-header-simple {
  background-color: var(--card-bg-color);
  border-radius: 16px;
  padding: 15px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-left: 4px solid var(--accent-color);
}

.category-title {
  color: var(--text-color);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-description {
  color: var(--secondary-text-color);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 800px;
}

/* Game Card Overlay and Effects */
.game-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.2) 60%,
    rgba(0, 0, 0, 0) 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.game-card:hover .game-card-overlay {
  opacity: 1;
}

.play-now-btn {
  background-color: var(--accent-color);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.2s ease;
  transform: translateY(10px);
  opacity: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.game-card:hover .play-now-btn {
  transform: translateY(0);
  opacity: 1;
}

.play-now-btn:hover {
  background-color: var(--accent-color-hover);
  transform: scale(1.05);
}

/* No Games Found */
.no-games-found {
  text-align: center;
  padding: 50px 20px;
  background-color: var(--card-bg-color);
  border-radius: 12px;
  border: 1px dashed var(--border-color);
  color: var(--secondary-text-color);
  margin: 30px 0;
}

.no-games-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 20px;
  opacity: 0.7;
}

.no-games-found h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.no-games-found p {
  margin-bottom: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.back-to-home {
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.back-to-home:hover {
  background-color: var(--accent-color-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Game Card Meta and Tags */
.game-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.game-card-tag {
  font-size: 0.7rem;
  color: var(--secondary-text-color);
  background-color: var(--filter-bg-color);
  border: 1px solid var(--border-color);
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.game-card-tag:hover {
  background-color: var(--filter-active-color);
  color: var(--text-color);
  border-color: var(--accent-color);
}

.game-card-category {
  font-size: 0.7rem;
  color: var(--secondary-text-color);
  background-color: rgba(42, 46, 59, 0.7);
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  transition: all 0.2s ease;
  line-height: 1.2;
}

/* List View Adjustments */
.games-grid-wrapper.view-list .game-card-meta {
  margin-top: 5px;
}

/* Brainrot Games Content Section */
.brainrot-games-content {
  background: linear-gradient(135deg, var(--secondary-bg-color) 0%, var(--card-bg-color) 100%);
  margin: 60px 0 0 0;
  padding: 60px 0;
  border-top: 2px solid var(--border-color);
  position: relative;
}

.brainrot-games-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-color) 50%, transparent 100%);
}

.brainrot-games-content .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.brainrot-games-content .content-wrapper {
  background-color: rgba(26, 31, 46, 0.6);
  border-radius: 20px;
  padding: 50px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(45, 51, 69, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brainrot-games-content h2 {
  color: var(--text-color);
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  background: linear-gradient(135deg, var(--accent-color), #a29bfe);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(108, 92, 231, 0.3);
  line-height: 1.2;
}

.brainrot-games-content h3 {
  color: var(--text-color);
  font-size: 1.8rem;
  font-weight: 600;
  margin: 40px 0 20px 0;
  padding-left: 20px;
  border-left: 4px solid var(--accent-color);
  position: relative;
}

.brainrot-games-content h3::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-color);
}

.brainrot-games-content p {
  color: var(--secondary-text-color);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 25px;
  text-align: justify;
  transition: color 0.3s ease;
}

.brainrot-games-content p:hover {
  color: rgba(255, 255, 255, 0.9);
}

.brainrot-games-content strong {
  color: var(--accent-color);
  font-weight: 600;
  text-shadow: 0 0 5px rgba(108, 92, 231, 0.2);
}

/* Responsive Design for Brainrot Games Content */
@media screen and (max-width: 1024px) {
  .brainrot-games-content .content-wrapper {
    padding: 40px 35px;
  }
  
  .brainrot-games-content h2 {
    font-size: 2.2rem;
  }
  
  .brainrot-games-content h3 {
    font-size: 1.6rem;
  }
}

@media screen and (max-width: 768px) {
  .brainrot-games-content {
    padding: 40px 0;
  }
  
  .brainrot-games-content .container {
    padding: 0 15px;
  }
  
  .brainrot-games-content .content-wrapper {
    padding: 30px 25px;
    border-radius: 15px;
  }
  
  .brainrot-games-content h2 {
    font-size: 1.9rem;
    margin-bottom: 30px;
  }
  
  .brainrot-games-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px 0;
  }
  
  .brainrot-games-content p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: left;
  }
}

@media screen and (max-width: 480px) {
  .brainrot-games-content .content-wrapper {
    padding: 25px 20px;
    border-radius: 12px;
  }
  
  .brainrot-games-content h2 {
    font-size: 1.7rem;
  }
  
  .brainrot-games-content h3 {
    font-size: 1.3rem;
    padding-left: 15px;
  }
  
  .brainrot-games-content p {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}
