/* ============================================
   Sprunki Modern Template - 自定义样式
   用于补充原站样式，确保新组件视觉一致
   ============================================ */

/* === 全局样式 === */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: url("/assets/templates/sprunki-modern/images/bg-new-pattern-3.d64a068c.webp") center no-repeat fixed;
  background-size: cover;
  background-attachment: fixed;
  overflow-x: hidden !important;
}

/* 移动端背景优化 */
@media (max-width: 768px) {
  body {
    background: linear-gradient(to bottom, #f0f4f8 0%, #e2e8f0 100%);
    background-attachment: scroll;
  }
}

/* Header 固定定位 */
.header-component {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

/* 为固定 Header 留出空间 */
.game-play.container-fluid {
  margin-top: 88px;
}

/* === 分享按钮样式 (SMI) === */
.smi {
  width: 100%;
  color: #fff;
  text-align: center;
  font-size: 15px;
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.smi .share_btn_wrap {
  flex: 1;
  min-width: 80px;
  padding: 10px 8px;
  transition: opacity 0.2s, transform 0.2s;
  cursor: pointer;
  border: none;
  color: white;
  font-weight: 500;
  font-size: 14px;
}

.smi .share_btn_wrap:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.smi .facebook {
  background-color: #3061c4;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.smi .linkedin {
  background-color: #0d77b7;
}

.smi .twitter {
  background-color: #111111ee;
}

.smi .whatsapp {
  background-color: rgb(88, 190, 85);
}

.smi .reddit {
  background-color: rgb(224, 90, 49);
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.smi .share_btn {
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  line-height: 21px;
}

.smi svg {
  height: 15px;
  width: 15px;
  fill: #fff;
  display: inline-block;
}

.smi svg path {
  fill: #fff;
}

.smi i {
  margin: 0 !important;
}

.smi .fav {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === 推荐游戏列表样式 === */
.right-game-container {
  width: 100%;
}

.games_list2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0;
}

/* 大屏幕 - 推荐游戏 3-4 列 */
@media (min-width: 1400px) {
  .games_list2 {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .games_list2 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 中等屏幕 - 2列 */
@media (min-width: 992px) and (max-width: 1199px) {
  .games_list2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 平板和中等屏幕 - 调整内容区域比例 */
@media (min-width: 769px) and (max-width: 1024px) {
  .content-main {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }

  .content-aside {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }

  .content-grid-layout {
    flex-direction: column !important;
  }
}

/* PC端 - 恢复双列布局并优化比例 */
@media (min-width: 1025px) {
  .game-description {
    background: rgba(255, 255, 255, 0.4);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .comments-section {
    background: rgba(255, 255, 255, 0.4);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    max-height: 700px;
    overflow-y: auto;
  }

  /* 右侧推荐游戏区域 */
  .right-game-container {
    background: rgba(255, 255, 255, 0.4);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  /* PC端右侧栏中的推荐游戏保持2列 */
  .col-xl-4 .games_list2 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }

  /* 确保右侧栏游戏标题字体稍小 */
  .col-xl-4 .game-title {
    font-size: 10px;
  }

  /* 内容区域恢复正常间距 */
  .content-main,
  .content-aside {
    margin: 0;
  }
}

/* 超大屏幕优化 */
@media (min-width: 1600px) {
  /* 页面容器可以更宽 */
  div[style*="maxWidth: \"92%\""] {
    max-width: 1600px !important;
  }

  /* 评论区域可以更宽 */
  .content-aside {
    min-width: 450px !important;
  }
}

.game-item {
  display: block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  aspect-ratio: 1/1;
  background: #e9ecef;
}

.game-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.game-thumbnail {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.game-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 4px;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.game-item:hover .game-info {
  background: rgba(0, 0, 0, 0.85);
}

.game-title {
  font-size: 10px;
  font-weight: 600;
  margin: 0;
  text-align: center;
  color: #fff;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: 2.4em;
}

/* === 热门游戏列表样式 === */
.games-grid {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
  scroll-behavior: smooth;
}

.games-grid::-webkit-scrollbar {
  height: 8px;
}

.games-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.games-grid::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.games-grid::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.game-card {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  flex: 0 0 180px;
  min-width: 180px;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.game-card-thumbnail {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #e9ecef;
  position: relative;
}

.game-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.game-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
}

.game-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.game-card-meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2px;
}

/* === 分类列表样式 === */
.categories-section {
  padding: 24px 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #2c3e50;
}

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

.category-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: white;
}

.category-icon {
  font-size: 1.5rem;
}

.category-name {
  font-size: 0.9rem;
}

/* === 游戏介绍样式 === */
.game-description {
  background: rgba(255, 255, 255, 0.4);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.game-description h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  color: #2c3e50;
}

.game-description h3 {
  font-size: 1.25rem;
  margin-top: 20px;
  margin-bottom: 12px;
  color: #34495e;
}

.description-content {
  line-height: 1.8;
  color: #555;
}

.description-content ul,
.description-content ol {
  margin: 12px 0;
  padding-left: 24px;
}

.description-content li {
  margin-bottom: 8px;
}

/* === 游戏 SEO 内容样式 === */
.game-seo-content {
  line-height: 1.8;
  color: #555;
}

.game-seo-content h3 {
  font-size: 1.25rem;
  margin-top: 24px;
  margin-bottom: 12px;
  color: #34495e;
  font-weight: 600;
}

.game-seo-content h3:first-of-type {
  margin-top: 16px;
}

.game-seo-content p {
  margin-bottom: 16px;
  line-height: 1.8;
}

.game-seo-content ul,
.game-seo-content ol {
  margin: 12px 0 20px 0;
  padding-left: 24px;
}

.game-seo-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.game-seo-content strong {
  font-weight: 600;
  color: #2c3e50;
}

.game-seo-content a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.2s;
}

.game-seo-content a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.game-seo-content blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 4px solid #667eea;
  background: #f8f9fa;
  color: #555;
  font-style: italic;
}

.game-seo-content code {
  background: #f4f4f4;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: #e74c3c;
}

.game-seo-content pre {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 16px 0;
}

.game-seo-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* === 评分区域样式 === */
.reviews-section {
  background: rgba(255, 255, 255, 0.4);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.review-title h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #2c3e50;
}

.overall-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.rating-score {
  font-size: 2rem;
  font-weight: 700;
  color: #f39c12;
}

.rating-stars {
  display: flex;
  gap: 2px;
}

.star {
  color: #ddd;
  font-size: 1.2rem;
}

.star.filled {
  color: #f39c12;
}

.total-reviews {
  font-size: 0.9rem;
  color: #6c757d;
}

.reviews-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stars-label {
  flex: 0 0 60px;
  font-size: 0.85rem;
  color: #555;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f39c12, #e67e22);
  transition: width 0.3s;
}

.count-label {
  flex: 0 0 40px;
  text-align: right;
  font-size: 0.85rem;
  color: #6c757d;
}

/* === 评论区域样式 === */
.comments-section {
  background: rgba(255, 255, 255, 0.4);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  max-height: 600px;
  overflow-y: auto;
}

/* 评论滚动条样式 */
.comments-section::-webkit-scrollbar {
  width: 8px;
}

.comments-section::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

.comments-section::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.comments-section::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.comments-title {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: #2c3e50;
}

.comment-form {
  margin-bottom: 24px;
}

.comment-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  resize: vertical;
  font-family: inherit;
}

.comment-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.comment-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  gap: 12px;
}

.rating-select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
}

.submit-comment-btn {
  padding: 10px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.submit-comment-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-item {
  padding: 16px;
  background: rgba(248, 249, 250, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(233, 236, 239, 0.6);
}

.comment-header {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.comment-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #e9ecef;
}

.comment-meta {
  flex: 1;
}

.comment-user {
  display: block;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
}

.comment-timestamp {
  display: block;
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 4px;
}

.comment-rating {
  display: flex;
  gap: 2px;
}

.comment-rating .star {
  font-size: 0.9rem;
}

.comment-content p {
  margin: 0 0 8px 0;
  line-height: 1.6;
  color: #555;
}

.read-more-btn {
  background: none;
  border: none;
  color: #667eea;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
}

.read-more-btn:hover {
  text-decoration: underline;
}

.comment-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e9ecef;
}

.comment-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.comment-action-btn:hover {
  background: #e9ecef;
  color: #2c3e50;
}

/* === FAQ 样式 === */
.faq-section {
  padding: 24px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-section h2 {
  font-size: 1.75rem;
  margin-bottom: 20px;
  color: #2c3e50;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.faq-item {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 16px;
  background: #f8f9fa;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.2s;
}

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

.faq-question:hover {
  background: #e9ecef;
}

.faq-answer {
  padding: 16px;
  background: rgba(255, 255, 255, 0.3);
  line-height: 1.6;
  color: #555;
}

/* === 页脚样式 === */
.footer-container {
  width: 100vw;
  background-color: transparent;
  border-top: 2px solid rgba(0, 0, 0, 0.1);
  margin: 24px 0 0 0 !important;
  padding: 24px 0 !important;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

.footer-container .row {
  align-items: center;
}

/* PC端 Logo 左对齐 */
.footer-container .col-lg-4 {
  text-align: left !important;
}

/* PC端右侧内容居中 */
.footer-container .col-lg-8 {
  text-align: center !important;
  justify-content: center !important;
}

.footer-container .col-lg-8 .copyright {
  width: 100%;
}

/* 移动端所有内容居中 */
@media (max-width: 991px) {
  .footer-container .col-12 {
    text-align: center !important;
    justify-content: center !important;
  }
}

@media (max-width: 991px) {
  .footer-container {
    margin-bottom: 60px !important;
    padding: 20px 0 !important;
  }

  .fix_center {
    justify-content: center !important;
  }
}

.footer-container .copyright {
  color: #6d5c5c;
  text-align: center;
  font-size: 15px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.footer-container .copyright .terms-and-policy-container {
  color: #6d5c5c;
  text-decoration: none;
  cursor: pointer;
}

.footer-container .copyright .terms-and-policy-container:hover {
  color: #4d4dc3;
}

/* === 响应式样式 === */

/* 桌面端 - 大于 1024px */
@media (min-width: 1024px) {
  /* 内容区域两列布局 */
  .game-description {
    margin-right: 0;
  }

  /* 使用 CSS Grid 实现桌面端两列布局 */
  section > div[style*="flex-wrap"] {
    display: grid !important;
    grid-template-columns: 1fr 380px !important;
    gap: 24px !important;
  }
}

/* 桌面端菜单显示 - 大于 768px */
@media (min-width: 769px) {
  /* 显示桌面端菜单 */
  .right-header-main-wrap {
    display: block !important;
  }

  /* 隐藏移动端菜单按钮 */
  .sidebar_btn_show {
    display: none !important;
  }

  /* 隐藏侧边栏 */
  .sidebar {
    display: none !important;
  }

  /* 菜单项样式 */
  .header-menu-list-wrap a {
    text-decoration: none;
    color: #333;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
  }

  .header-menu-list-wrap a:hover {
    background: #f5f5f5;
    color: #667eea;
  }

  .header-menu-list-wrap a.active {
    background: #667eea;
    color: white;
  }

  .header-menu-list-wrap .title-main-wrap {
    margin: 0;
    font-weight: 500;
    font-size: 0.95rem;
  }
}

/* 平板端 */
@media (max-width: 1200px) {
  .game-card {
    flex: 0 0 160px;
    min-width: 160px;
  }
}

/* 移动端 - 小于 768px */
@media (max-width: 768px) {
  /* 页面容器 */
  body {
    font-size: 14px;
  }

  /* 游戏播放器区域 - 占满屏幕宽度 */
  .game-play.container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
  }

  .game-play .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .game-play .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .game-play .col-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* iframe 容器 */
  .full-screen-demo {
    width: 100% !important;
    padding: 0 !important;
  }

  .game-play-container {
    width: 100% !important;
    padding: 0 !important;
  }

  /* iframe 样式 - 保持 16:9 宽高比 */
  .game-iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9 !important;
    max-height: none !important;
    display: block !important;
    border: none !important;
  }

  /* iframe 包装容器 */
  .game-play-container > .w-100 {
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
    background: #000;
  }

  /* 游戏操作区域添加内边距 */
  .game-action-container {
    padding: 12px 16px !important;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  }

  /* 广告区域添加内边距 */
  .ads-slot {
    padding: 0 16px 16px 16px !important;
  }

  .ads-slot .ads {
    border-radius: 8px;
    overflow: hidden;
  }

  .ads-ngang {
    border-radius: 8px;
  }

  /* 分享按钮区域添加内边距 */
  .smi {
    padding: 0 16px !important;
  }

  /* 推荐游戏区域保持正常边距 */
  .right-game-container {
    padding: 0 16px;
  }

  /* 游戏列表标题优化 */
  .right-game-container::before {
    content: '🎮 Recommended Games';
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
  }

  /* 游戏列表 */
  .games_list2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .game-card {
    flex: 0 0 140px;
    min-width: 140px;
  }

  /* 分类网格 */
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .category-card {
    padding: 12px;
    font-size: 0.85rem;
  }

  /* 评论表单 */
  .comment-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  /* 游戏描述区域 */
  .game-description {
    padding: 8px;
    background: transparent !important;
  }

  .game-description h2 {
    font-size: 1.5rem;
  }

  .game-description h3 {
    font-size: 1.1rem;
  }

  /* 评论区域 */
  .comments-section {
    padding: 8px;
    background: transparent !important;
  }

  .comments-title {
    font-size: 1.1rem;
  }

  .comment-header {
    flex-direction: row;
  }

  .comment-avatar {
    width: 40px;
    height: 40px;
  }

  /* 游戏操作按钮区域 */
  .game-action-container {
    flex-direction: column;
    gap: 12px;
  }

  .game-details-container-left {
    width: 100%;
  }

  .game-right-section-new-wrap {
    width: 100%;
    justify-content: flex-start !important;
  }

  /* 全屏按钮 */
  .fullscreen_btn {
    font-size: 14px;
  }

  .fullscreen_btn svg {
    width: 24px !important;
    height: 24px !important;
  }

  /* 分享按钮 */
  .smi {
    font-size: 12px;
    gap: 4px !important;
    margin-bottom: 16px !important;
  }

  .smi .share_btn_wrap {
    min-width: 60px;
    padding: 10px 8px;
    flex: 1;
  }

  .smi svg {
    height: 14px;
    width: 14px;
  }

  /* 游戏操作区域布局优化 */
  .game-action-container {
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
  }

  .game-details-container-left .out-main-wrap {
    gap: 12px !important;
  }

  .game-img-container {
    flex-shrink: 0;
  }

  .game-title-container {
    flex: 1;
    min-width: 0;
  }

  .game-name {
    font-size: 1.1rem !important;
    line-height: 1.3;
    margin-bottom: 4px;
  }

  .game-created-by {
    font-size: 0.8rem;
    color: #6b7280;
  }

  /* Header 优化 */
  .header-component {
    padding: 8px 0;
  }

  /* 隐藏桌面端菜单 */
  .right-header-main-wrap {
    display: none !important;
  }

  /* 调整顶部间距 */
  .game-play.container-fluid {
    margin-top: 70px;
  }

  /* 确保侧边栏按钮可见 */
  .sidebar_btn_show {
    display: flex !important;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }

  /* Logo 优化 */
  .main-logo-wrap {
    max-height: 40px;
    height: auto;
  }

  /* 侧边栏优化 */
  .sidebar {
    width: 280px !important;
    max-width: 85vw !important;
    z-index: 9999;
  }

  .sidebar.show {
    transform: translateX(0) !important;
  }

  .bg-shade-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
  }

  /* 搜索框移动端优化 */
  .search-main-new-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9997;
    padding: 8px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
  }

  .search-main-new-wrap.show {
    transform: translateY(0);
  }
}

/* 小屏手机 - 小于 480px */
@media (max-width: 480px) {
  /* 标题大小 */
  .section-title {
    font-size: 1.15rem;
  }

  /* 游戏卡片 */
  .game-card {
    flex: 0 0 130px;
    min-width: 130px;
  }

  /* 分类单列显示 */
  .categories-grid {
    grid-template-columns: 1fr;
  }

  /* 游戏列表保持两列 */
  .games_list2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .game-title {
    font-size: 10px;
  }

  /* 游戏播放器 - 保持宽高比 */
  .game-iframe {
    aspect-ratio: 16/9 !important;
    max-height: none !important;
  }

  /* 游戏信息 */
  .game-img-container img {
    width: 48px;
    height: 48px;
  }

  .game-name {
    font-size: 1rem !important;
  }

  .game-created-by {
    font-size: 0.75rem !important;
  }

  /* 全屏按钮优化 */
  .fullscreen_btn {
    padding: 8px 12px !important;
    font-size: 13px !important;
  }

  /* 分享按钮 */
  .smi .share_btn_wrap {
    min-width: 50px;
    padding: 6px 4px;
  }

  .smi .d-none.d-lg-inline-block {
    display: none !important;
  }

  /* 评论 */
  .comment-item {
    padding: 12px;
  }

  /* 页脚进一步优化 - 小屏手机 */
  .footer-container {
    padding: 12px 0 !important;
    background-color: transparent !important;
  }

  .footer-container .main-logo-wrap {
    height: 24px !important;
  }

  .footer-container .copyright {
    font-size: 11px !important;
  }

  .footer-container .terms-and-policy-container {
    padding: 0 4px !important;
    font-size: 11px !important;
  }

  .footer-container .copyright > div[style] {
    font-size: 10px !important;
  }

  .comment-content p {
    font-size: 0.9rem;
  }

  /* 页面容器内边距 */
  div[style*="paddingLeft: \"2.5%\""] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* 广告区域 */
  .ads-ngang {
    min-height: 60px !important;
    font-size: 12px;
  }

  /* 内容区域移动端单列布局 */
  .content-grid-layout {
    flex-direction: column !important;
  }

  .content-main,
  .content-aside {
    flex: 1 1 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
  }

  /* 内容区域添加边距 */
  .game-description,
  .comments-section {
    margin: 4px;
    border-radius: 12px;
    box-shadow: none;
    background: transparent !important;
  }

  /* 分类区域 */
  .categories-section {
    padding: 4px;
  }

  /* 优化分类卡片 */
  .category-card {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  /* 推荐游戏标题 */
  .right-game-container {
    background: transparent !important;
    margin: 4px;
    padding: 4px !important;
    border-radius: 12px;
    box-shadow: none;
  }

  /* 游戏卡片阴影优化 */
  .game-item {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  }

  /* 页脚区域 - 移动端 */
  .footer-container {
    padding: 16px 0 !important;
    margin-bottom: 0 !important;
    background-color: transparent !important;
  }

  /* 页脚 Logo 缩小 */
  .footer-container .main-logo-wrap {
    height: 28px !important;
    width: auto;
  }

  /* 页脚链接样式 */
  .footer-container .copyright {
    font-size: 12px !important;
  }

  .footer-container .terms-and-policy-container {
    padding: 0 6px !important;
    font-size: 12px !important;
    display: inline-block;
    line-height: 1.8;
  }

  /* 页脚声明和通知文字 */
  .footer-container .copyright > div[style] {
    font-size: 11px !important;
    line-height: 1.6;
    margin-top: 8px !important;
  }

  /* 页脚行间距 */
  .footer-container .row {
    gap: 12px;
  }

  /* 评论卡片透明背景 */
  .comment-item {
    background: transparent !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
}

/* === 缺少内容提示样式 === */
.missing-content-indicator {
  background: #fef3c7;
  border: 2px dashed #f59e0b;
  border-radius: 8px;
  padding: 24px;
  margin: 16px 0;
  text-align: center;
  color: #92400e;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
  animation: pulse-warning 2s ease-in-out infinite;
}

.missing-content-indicator::before {
  content: '⚠️ ';
  font-size: 24px;
  margin-right: 8px;
}

@keyframes pulse-warning {
  0%, 100% {
    background: #fef3c7;
    border-color: #f59e0b;
  }
  50% {
    background: #fde68a;
    border-color: #d97706;
  }
}

/* 在预览模式下高亮显示缺少内容 */
.preview-mode .missing-content-indicator {
  background: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
  animation: pulse-error 2s ease-in-out infinite;
}

@keyframes pulse-error {
  0%, 100% {
    background: #fee2e2;
    border-color: #ef4444;
  }
  50% {
    background: #fecaca;
    border-color: #dc2626;
  }
}

/* === 触摸设备优化 === */
@media (hover: none) and (pointer: coarse) {
  /* 增大触摸目标 */
  button,
  a,
  .game-item,
  .category-card {
    min-height: 44px;
    min-width: 44px;
  }

  /* 优化分享按钮触摸体验 */
  .smi .share_btn_wrap {
    min-height: 44px;
    padding: 10px 8px;
  }

  /* 优化全屏按钮 */
  .fullscreen_btn {
    min-height: 44px;
    padding: 8px 16px;
  }

  /* 移除悬停效果，使用点击反馈 */
  .game-item:active,
  .category-card:active,
  button:active {
    opacity: 0.7;
    transform: scale(0.98);
  }
}

/* === 工具类 === */
.hidden {
  display: none !important;
}

.d-flex {
  display: flex !important;
}

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

.align-items-center {
  align-items: center !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.flex-fill {
  flex: 1 1 auto;
}

/* === 平滑滚动 === */
html {
  scroll-behavior: smooth;
}

/* === 优化移动端字体渲染 === */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* === 防止移动端文本选择和长按问题 === */
@media (max-width: 768px) {
  button,
  .game-item,
  .category-card {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    -webkit-touch-callout: none;
  }

  /* 允许文本内容选择 */
  .game-description,
  .comment-content,
  p,
  li {
    -webkit-user-select: text;
    user-select: text;
  }
}
