    /* 基础重置与变量定义 */
    :root {
      /* 暗黑模式默认变量 */
      --bg-primary: #000000;
      --bg-secondary: #111111;
      --bg-tertiary: #1a1a1a;
	  --bg-single: #202020;
      --text-primary: #ffffff;
      --text-secondary: #cccccc;
      --text-tertiary: #999999;
      --accent-bg: #222222;
	  --accent-hover: #2a2a2a; /* 新增：统一hover背景 */
	  --border-color: #2d2d2d;  /* 新增：统一边框色 */
	  --danger-accent: #ff3b30; /* 新增：危险/提醒色 */
	  --warning-accent: #ffcc00;/* 新增：警告/评分色 */
      --overlay-bg: rgba(0, 0, 0, 0.7);
      --shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
      --blue-accent: #0071e3;
      --transition-speed: 0.3s;
    }

    .light-mode {
      /* 亮色模式变量 - 更贴近苹果官方亮色风格 */
      --bg-primary: #f5f5f7;
      --bg-secondary: #ffffff;
      --bg-tertiary: #f8f8fa;
	  --bg-single: #f8f9fa;
      --text-primary: #1d1d1f;
      --text-secondary: #6e6e73;
      --text-tertiary: #86868b;
      --accent-bg: #eeeeee;
	  --accent-hover: #e0e0e0; /* 新增：亮色模式hover背景 */
	  --border-color: #e5e5e7;  /* 新增：亮色模式边框色 */
      --overlay-bg: rgba(255, 255, 255, 0.7);
      --shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
    }





    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      /* 统一过渡动画，让模式切换更丝滑 */
      transition: 
        background-color var(--transition-speed) ease, 
        color var(--transition-speed) ease, 
        border-color var(--transition-speed) ease,
        box-shadow var(--transition-speed) ease;
    }

	/* 全局 a 标签去除下划线，保留默认文字颜色 */
	a {
	  text-decoration: none; /* 移除下划线（核心属性） */
	  color: inherit; /* 继承父元素的默认文字颜色，而非浏览器默认的蓝色 */
	}

	/* 可选：修复点击/聚焦后的下划线（部分浏览器默认行为） */
	a:link, 
	a:visited, 
	a:hover, 
	a:active {
	  text-decoration: none;
	}
    ul{list-style: none;}
	div {caret-color: transparent !important;
    outline: none;}
	.mr-1 {margin-right: 10px;}
	.mt-1 {margin-top: 10px;}
	.mt-2 {margin-top: 20px;}
	.mb-1 {margin-bottom: 10px;}
	.mb-2 {margin-bottom: 20px;}
	input {
		background-color: var(--accent-bg);
		caret-color: var(--text-primary)!important;
		border: 0!important;
	}
	textarea{
		background-color: var(--accent-bg);
	    caret-color: var(--text-primary)!important;
	    border: 0!important;
		color: var(--text-primary)!important;
	}

	select {
	  background: var(--accent-bg);
	  color: var(--text-primary);
	  border: 0!important;
	}

    body {
      background-color: var(--bg-primary);
      color: var(--text-primary);
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* 移动端导航栏 */
    .mobile-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 20px;
      background-color: var(--bg-secondary);
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .mobile-header .logo {
      font-size: 20px;
      font-weight: 700;
	  caret-color: transparent !important;
	  outline: none;
	  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
	  letter-spacing: 0.5px;
    }

    .header-actions {
      display: flex;
      gap: 15px;
      align-items: center;
    }

    /* 新增：用户信息样式 */
    .user-profile {
      display: flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      position: relative;
	  caret-color: transparent !important;
	  outline: none;
    }

    .user-avatar {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background-color: var(--accent-bg);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .user-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .user-avatar.placeholder::after {
      content: "U";
      font-size: 14px;
      font-weight: 600;
      color: var(--text-primary);
    }

    .user-name {
      font-size: 14px;
      font-weight: 500;
      display: none; /* 移动端默认隐藏用户名，只显示头像 */
    }

    /* 用户下拉菜单 */
    .user-dropdown {
      position: absolute;
      top: 100%;
      right: 0;
      background-color: var(--bg-secondary);
      border-radius: 8px;
      box-shadow: var(--shadow);
      width: 200px;
      padding: 10px 0;
      z-index: 1000;
      display: none;
      margin-top: 5px;
    }

    .user-dropdown.show {
      display: block;
    }

    .user-dropdown-item {
      padding: 10px 15px;
      font-size: 14px;
      cursor: pointer;
      transition: background-color 0.2s ease;
    }

    .user-dropdown-item:hover {
      background-color: var(--accent-bg);
    }

	/* 核心：把a标签设为块状元素并铺满容器 */
	.user-dropdown-item a {
		display: block; /* 转为块状元素 */
		width: 100%;    /* 宽度100%铺满容器 */
		height: 100%;   /* 高度100%铺满容器（容器需有明确高度，或靠内边距撑开） */
		/*padding: 8px 12px; /* 用内边距替代容器的padding，保证文字位置 */
		text-decoration: none; /* 可选：去掉下划线 */
		color: inherit; /* 继承容器文字颜色 */
		box-sizing: border-box; /* 关键：让padding包含在宽高内，避免超出容器 */
	}

    .user-dropdown-divider {
      height: 1px;
      background-color: var(--accent-bg);
      margin: 5px 0;
    }

    /* 搜索框样式 */
    .search-container {
      position: relative;
      flex: 1;
      margin: 0 15px;
    }

    .search-input {
      width: 100%;
      padding: 8px 12px 8px 35px;
      background-color: var(--accent-bg);
      border: none;
      border-radius: 8px;
      color: var(--text-primary);
      font-size: 14px;
      outline: none;
    }

    .search-input::placeholder {
      color: var(--text-tertiary);
    }

    .search-icon {
      position: absolute;
      left: 10px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-tertiary);
      font-size: 16px;
    }
	
	.search-icon svg path {
	  stroke: var(--text-primary); 
	}
	.search-icon:hover svg path {
	  stroke: var(--text-primary); 
	}	

    /* 搜索结果弹窗 */
    .search-results {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background-color: var(--bg-secondary);
      border-radius: 8px;
      margin-top: 5px;
      box-shadow: var(--shadow);
      z-index: 1000;
      max-height: 300px;
      overflow-y: auto;
      display: none;
    }

    .search-results.show {
      display: block;
    }

    .search-result-item {
      padding: 10px 15px;
      cursor: pointer;
      border-bottom: 1px solid var(--accent-bg);
    }

    .search-result-item:last-child {
      border-bottom: none;
    }

    .search-result-item:hover {
      background-color: var(--accent-bg);
    }

    .search-result-title {
      font-size: 14px;
      font-weight: 500;
      color: var(--text-primary);
    }

    .search-result-subtitle {
      font-size: 12px;
      color: var(--text-secondary);
    }

    /* 主题切换按钮优化 - 增加点击反馈 */
    .menu-toggle, .theme-toggle {
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      background-color: var(--accent-bg);
      cursor: pointer;
      /* 增加点击反馈动画 */
      transition: all 0.2s ease;
	  caret-color: transparent !important;
	  outline: none;
    }

    .menu-toggle:active, .theme-toggle:active,
    .desktop-theme-toggle:active {
      transform: scale(0.95);
      background-color: rgba(0, 113, 227, 0.1);
    }

    .menu-toggle::after {
      content: "☰";
      font-size: 20px;
    }

    /* 主题切换图标优化 - 更贴合苹果风格 */
    .theme-toggle::after {
      content: "🌙";
      font-size: 18px;
    }

    .light-mode .theme-toggle::after {
      content: "☀️";
    }

    /* 侧边栏 - 移动端适配 */
    .sidebar {
      position: fixed;
      top: 0;
      left: -280px;
      width: 280px;
      height: 100vh;
      background-color: var(--bg-secondary);
      padding: 20px 15px;
      display: flex;
      flex-direction: column;
      gap: 30px;
      overflow-y: auto;
      z-index: 200;
      transition: left var(--transition-speed) ease;
      padding-top: 70px;
	  border-right: 1px solid var(--border-color); /* 新增：统一边框 */
    }

    .sidebar.open {
      left: 0;
    }

    .sidebar .logo {
      font-size: 20px;
      font-weight: 600;
      margin-bottom: 10px;
    }

    .sidebar nav ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    /* 新增：侧边栏菜单项图标样式 */
    .sidebar nav ul li a {
      color: var(--text-tertiary);
      text-decoration: none;
      font-size: 14px;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 8px 10px;
      border-radius: 6px;
    }

    .sidebar nav ul li a .nav-icon {
      font-size: 16px;
      width: 20px;
      text-align: center;
    }

    .sidebar nav ul li.active a {
      color: var(--text-primary);
      font-weight: 500;
      background-color: var(--accent-bg);
    }

    .sidebar nav ul li a:hover {
      color: var(--text-primary);
      background-color: var(--accent-bg);
    }

    /* 遮罩层 */
    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: var(--overlay-bg);
      z-index: 150;
      display: none;
      opacity: 0;
      transition: opacity var(--transition-speed) ease;
    }

    .overlay.show {
      display: block;
      opacity: 1;
    }

    /* 主内容区 - 响应式调整 */
    .main-content {
      padding: 15px;
      max-width: 1200px;
      margin: 0 auto;
      width: 100%;
    }

    /* 全屏轮播样式 */
    .carousel-container {
      position: relative;
      width: 100%;
      height: 60vh;
      min-height: 300px;
      border-radius: 16px;
      overflow: hidden;
      margin-bottom: 30px;
    }

    .carousel-slider {
      width: 100%;
      height: 100%;
      position: relative;
    }

    .carousel-slide {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      opacity: 0;
      transition: opacity 0.5s ease, transform 0.5s ease;
      transform: translateX(100%);
    }

    .carousel-slide.active {
      opacity: 1;
      transform: translateX(0);
    }

    .carousel-slide.prev {
      transform: translateX(-100%);
    }

    .carousel-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .carousel-caption {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 30px;
      background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
      color: white;
    }

    .light-mode .carousel-caption {
      background: linear-gradient(to top, rgba(255,255,255,0.8), transparent);
      color: var(--text-primary);
    }

    .carousel-title {
      font-size: 24px;
      font-weight: 600;
      margin-bottom: 8px;
    }

    .carousel-subtitle {
      font-size: 16px;
      margin-bottom: 16px;
    }

    .carousel-button {
      padding: 8px 20px;
      background-color: var(--blue-accent);
      color: white;
      border: none;
      border-radius: 20px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: background-color 0.2s ease;
    }

    .carousel-button:hover {
      background-color: #0077ed;
    }

    /* 轮播控制按钮 */
    .carousel-control {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 24px;
      height: 44px;
      border-radius: 8%;
      background-color: rgba(0,0,0,0.3);
      color: white;
      border: none;
      font-size: 24px;
      cursor: pointer;
      z-index: 10;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background-color 0.2s ease;
	  caret-color: transparent !important;
	  outline: none;
    }

    .light-mode .carousel-control {
      background-color: rgba(255,255,255,0.5);
      color: var(--text-primary);
    }

    .carousel-control:hover {
      background-color: rgba(0,0,0,0.5);
    }

    .light-mode .carousel-control:hover {
      background-color: rgba(255,255,255,0.7);
    }

    .carousel-control.prev {
      left: 15px;
    }

    .carousel-control.next {
      right: 15px;
    }

    /* 轮播指示器 */
    .carousel-indicators {
      position: absolute;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 8px;
      z-index: 10;
    }

    .indicator {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background-color: rgba(255,255,255,0.5);
      border: none;
      cursor: pointer;
      transition: background-color 0.2s ease, width 0.2s ease;
    }

    .indicator.active {
      background-color: white;
      width: 24px;
      border-radius: 4px;
    }

    .light-mode .indicator {
      background-color: rgba(0,0,0,0.3);
    }

    .light-mode .indicator.active {
      background-color: var(--text-primary);
    }

    .section-title {
      font-size: 12px;
      font-weight: 600;
      color: var(--text-tertiary);
      margin: 20px 0 10px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      opacity: 0;
      transform: translateY(10px);
      transition: all 0.5s ease;
    }

    .section-title.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* 今日活动版块样式优化 */
    .today-events-grid {
      gap: 15px;
      margin-bottom: 30px;
    }

    .event-card {
      position: relative;
    }

    .event-badge {
      position: absolute;
      top: 15px;
      right: 15px;
      padding: 4px 10px;
      background-color: #ff3b30;
      color: white;
      font-size: 12px;
      font-weight: 600;
      border-radius: 12px;
      z-index: 1;
    }

    /* 编辑精选版块样式 */
    .editor-picks-container {
      display: grid;
      grid-template-columns: 2fr 1fr;
      gap: 15px;
      margin-bottom: 30px;
    }

    .editor-card.main-pick {
      aspect-ratio: 6/1;
    }

    .editor-card.side-pick {
      aspect-ratio: 3/1;
    }

    /* 独立游戏筛选标签 */
    .filter-tags {
      display: flex;
      gap: 10px;
      margin-bottom: 15px;
      flex-wrap: wrap;
    }

    .tag {
      padding: 6px 16px;
      background-color: var(--accent-bg);
      color: var(--text-secondary);
      border: none;
      border-radius: 20px;
      font-size: 14px;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .tag.active {
      background-color: var(--blue-accent);
      color: white;
    }

    .tag:hover:not(.active) {
      background-color: rgba(0, 113, 227, 0.1);
      color: var(--text-primary);
    }

    /* 独立游戏卡片优化 */
    .indie-games-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 15px;
      margin-bottom: 30px;
    }

    .game-card {
      aspect-ratio: 3/2;
    }

    .game-rating {
      position: absolute;
      top: 15px;
      left: 15px;
      color: #ffcc00;
      font-size: 12px;
      font-weight: 600;
      z-index: 1;
    }

    /* 加载更多按钮 */
    .load-more {
      display: block;
      width: 100%;
      max-width: 200px;
      margin: 30px auto;
      padding: 10px 20px;
      background-color: var(--blue-accent);
      color: white;
      border: none;
      border-radius: 20px;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: background-color 0.2s ease;
	  caret-color: transparent !important;
	  outline: none;
    }

    .load-more:hover {
      background-color: #0077ed;
    }

    .load-more:disabled {
      background-color: var(--accent-bg);
      color: var(--text-tertiary);
      cursor: not-allowed;
    }

    /* 卡片网格 - 响应式布局核心 */
    .card-grid {
      display: grid;
      /* 默认移动端单列 */
      grid-template-columns: 1fr;
      gap: 12px;
      margin-bottom: 20px;
    }

    .card {
      background-color: var(--bg-tertiary);
      border-radius: 12px;
      overflow: hidden;
      position: relative;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
      opacity: 0;
      transform: translateY(20px);
      aspect-ratio: 16/9; /* 保持卡片比例 */
    }

    .card.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow);
    }

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

    .card:hover img {
      transform: scale(1.03);
    }

    .card .card-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 15px;
      background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
      opacity: 0;
      transform: translateY(20px);
      transition: all var(--transition-speed) ease;
    }

    .light-mode .card .card-overlay {
      background: linear-gradient(to top, rgba(255,255,255,0.8), transparent);
    }

    .card:hover .card-overlay {
      opacity: 1;
      transform: translateY(0);
    }

    .card .card-title {
      font-size: 15px;
      font-weight: 600;
      margin-bottom: 3px;
      color: var(--text-primary);
    }

    .card .card-subtitle {
      font-size: 12px;
      color: var(--text-secondary);
    }

    /* 横幅卡片 */
    .banner-card {
      aspect-ratio: 6/1;
    }

    /* 卡片详情弹窗 */
    .card-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.8);
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      visibility: hidden;
      transition: all var(--transition-speed) ease;
      padding: 20px;
    }

    .light-mode .card-modal {
      background-color: rgba(255, 255, 255, 0.8);
    }

    .card-modal.show {
      opacity: 1;
      visibility: visible;
    }

    .modal-content {
      background-color: var(--bg-secondary);
      border-radius: 16px;
      max-width: 800px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      transform: translateY(20px);
      transition: transform var(--transition-speed) ease;
    }

    .card-modal.show .modal-content {
      transform: translateY(0);
    }

    .modal-header {
      position: relative;
    }

    .modal-header img {
      width: 100%;
      height: 300px;
      object-fit: cover;
      border-top-left-radius: 16px;
      border-top-right-radius: 16px;
    }

    .modal-close {
      position: absolute;
      top: 15px;
      right: 15px;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background-color: rgba(0, 0, 0, 0.5);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 20px;
	  caret-color: transparent !important;
	  outline: none;
    }

    .light-mode .modal-close {
      background-color: rgba(255, 255, 255, 0.5);
      color: var(--text-primary);
    }

    .modal-body {
      padding: 20px;
    }

    .modal-title {
      font-size: 24px;
      font-weight: 600;
      margin-bottom: 10px;
    }

    .modal-subtitle {
      font-size: 16px;
      color: var(--text-secondary);
      margin-bottom: 20px;
    }

    .modal-description {
      font-size: 14px;
      line-height: 1.6;
      color: var(--text-primary);
      margin-bottom: 20px;
    }

    .modal-button {
      display: inline-block;
      padding: 10px 20px;
      background-color: var(--blue-accent);
      color: white;
      border-radius: 20px;
      text-decoration: none;
      font-weight: 500;
      font-size: 14px;
    }

    /* 返回顶部按钮 */
    .back-to-top {
      position: fixed;
      bottom: 20px;
      right: 20px;
      width: 45px;
      height: 45px;
      background-color: rgba(255, 255, 255, 0.1);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      opacity: 0;
      visibility: hidden;
      transition: all var(--transition-speed) ease;
      z-index: 100;
    }

    .light-mode .back-to-top {
      background-color: rgba(0, 0, 0, 0.1);
    }

    .back-to-top.visible {
      opacity: 1;
      visibility: visible;
    }

    .back-to-top:hover {
      background-color: rgba(255, 255, 255, 0.2);
    }

    .light-mode .back-to-top:hover {
      background-color: rgba(0, 0, 0, 0.2);
    }

    .back-to-top::after {
      content: "⮝";
      font-size: 18px;
      color: var(--text-primary);
    }

    /* 平板适配 (768px以上) */
    @media (min-width: 768px) {
      .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
      }
      
      .card-grid:not(.full-width) {
        grid-template-columns: 1fr 1fr;
      }
      
      .card .card-title {
        font-size: 16px;
      }
      
      .card .card-subtitle {
        font-size: 13px;
      }

      /* 平板端显示用户名 */
      .user-name {
        display: block;
      }

      /* 轮播适配平板 */
      .carousel-container {
        height: 40vh;
        min-height: 250px;
      }
      
      .carousel-title {
        font-size: 18px;
      }
      
      .carousel-subtitle {
        font-size: 14px;
      }
      
      .editor-picks-container {
        grid-template-columns: 1fr;
      }
      
      .indie-games-grid {
        grid-template-columns: 1fr;
      }
    }

    /* 桌面端适配 (1024px以上) */
    @media (min-width: 1024px) {
      /* 隐藏移动端头部 */
      .mobile-header {
        display: none;
      }
      
      /* 桌面端顶部栏 - 修复显示问题 */
      .desktop-header {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 15px 30px;
        background-color: var(--bg-secondary);
        position: sticky;
        top: 0;
        z-index: 90;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
      }
      .desktop-header .logo{
        font-size: 24px;
        font-weight: 700;
		caret-color: transparent !important;
		outline: none;
		font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
		letter-spacing: 0.5px;
		}
      .desktop-search {
        width: 400px;
        position: relative;
      }

      /* 桌面端用户信息样式 */
      .desktop-user-profile {
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        position: relative;
      }

      .desktop-user-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background-color: var(--accent-bg);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
      }

      .desktop-user-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      .desktop-user-avatar.placeholder::after {
        content: "U";
        font-size: 16px;
        font-weight: 600;
        color: var(--text-primary);
      }

      .desktop-user-name {
        font-size: 15px;
        font-weight: 500;
		caret-color: transparent !important;
		outline: none;
      }
      
      /* 显示侧边栏 */
      .sidebar {
        position: sticky;
        left: 0;
        top: 0;
        width: 240px;
        height: 100vh;
        padding-top: 20px;
        float: left;
        z-index: 10;
      }
      
      /* 主内容区布局调整 */
      .main-content {
        margin-left: 240px;
        padding: 20px;
      }
      
      .card-grid {
        gap: 16px;
      }
      
      .section-title {
        margin: 30px 0 15px;
      }

      /* 桌面端主题切换按钮 - 优化样式和交互 */
      .desktop-theme-toggle {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background-color: var(--accent-bg);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
        margin-right: 15px;
		caret-color: transparent !important;
		outline: none;
      }

      .desktop-theme-toggle::after {
        content: "🌙";
        font-size: 18px;
      }

      .light-mode .desktop-theme-toggle::after {
        content: "☀️";
      }

      /* 桌面端轮播适配 */
      .carousel-container {
        height: 60vh;
        min-height: 400px;
      }
      
      .editor-picks-container {
        grid-template-columns: 2fr 1fr;
      }
      
      .indie-games-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      }
    }

    /* 大屏幕适配 (1200px以上) */
    @media (min-width: 1200px) {
      .main-content {
        padding: 20px 0;
        margin-left: 260px;
      }
    }

/* 适配32寸大屏幕 (1920px以上，2K/4K屏幕) */
@media (min-width: 1920px) {
  /* 基础布局优化 */
  :root {
    --transition-speed: 0.4s; /* 稍慢的过渡更适配大屏视觉 */
  }

  /* 侧边栏加宽，提升层级感 */
  .sidebar {
    width: 280px;
    padding: 30px 20px;
  }

  /* 主内容区优化 */
  .main-content {
    max-width: 1600px; /* 限制最大宽度，避免内容过度拉伸 */
    margin-left: 290px; /* 适配加宽的侧边栏 */
    padding: 20px 0;
  }

  /* 轮播区域优化 - 适配宽屏 */
  .carousel-container {
    height: 70vh;
    min-height: 500px;
    border-radius: 20px; /* 更大的圆角提升质感 */
  }

  .carousel-title {
    font-size: 32px; /* 加大标题字体 */
  }

  .carousel-subtitle {
    font-size: 18px;
  }

  .carousel-button {
    padding: 10px 24px;
    font-size: 16px;
    border-radius: 24px;
  }

  /* 轮播控制按钮放大，提升可点击性 */
  .carousel-control {
    width: 28px;
    height: 50px;
    font-size: 28px;
  }

  /* 卡片布局优化 - 增加列数，加大间距 */
  .card-grid {
    gap: 20px;
  }

  /* 独立游戏/资源卡片 - 大屏下显示更多列 */
  .indie-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }

  /* 今日活动版块 - 大屏下3列布局 */
  .today-events-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* 卡片尺寸和字体优化 */
  .card {
    border-radius: 16px; /* 更大的圆角 */
  }

  .card .card-title {
    font-size: 18px;
  }

  .card .card-subtitle {
    font-size: 14px;
  }

  /* 版块标题优化 */
  .section-title {
    font-size: 14px;
    margin: 40px 0 20px;
    letter-spacing: 1px;
  }

  /* 筛选标签放大 */
  .tag {
    padding: 8px 20px;
    font-size: 15px;
  }

  /* 加载更多按钮优化 */
  .load-more {
    max-width: 240px;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 24px;
  }

  /* 弹窗优化 - 大屏下更大的弹窗 */
  .modal-content {
    max-width: 1000px;
    border-radius: 20px;
  }

  .modal-header img {
    height: 400px;
  }

  .modal-title {
    font-size: 28px;
  }

  .modal-subtitle {
    font-size: 18px;
  }

  .modal-description {
    font-size: 16px;
    line-height: 1.8;
  }

  /* 返回顶部按钮放大 */
  .back-to-top {
    width: 50px;
    height: 50px;
    bottom: 30px;
    right: 30px;
  }

  /* 桌面端头部优化 */
  .desktop-header {
    padding: 20px 40px;
	border-bottom: 1px solid var(--border-color); /* 新增：统一边框 */
  }

  .desktop-search {
    width: 500px;
	margin-left: 125px;
  }

  .search-input {
    padding: 10px 15px 10px 40px;
    font-size: 16px;
    border-radius: 10px;
  }
}

/* 适配4K超高清屏幕 (3840px以上) */
@media (min-width: 3840px) {
  /* 全局字体缩放，保证可读性 */
  html {
    font-size: 110%;
  }

  .main-content {
    max-width: 2000px;
  }

  .carousel-container {
    min-height: 600px;
  }

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

    /* 移动端轮播适配 */
    @media (max-width: 480px) {
      .carousel-control {
        width: 18px;
        height: 36px;
        font-size: 20px;
      }
      
      .event-badge {
        padding: 2px 8px;
        font-size: 10px;
      }
    }

    /* 初始隐藏桌面端元素 - 但在媒体查询中用 !important 覆盖 */
    .desktop-header {
      display: none;
    }

    /* 新增：系统主题检测 - 自动适配用户系统偏好 */
    @media (prefers-color-scheme: light) {
      :root:not(.light-mode) {
        --bg-primary: #f5f5f7;
        --bg-secondary: #ffffff;
        --bg-tertiary: #f8f8fa;
        --text-primary: #1d1d1f;
        --text-secondary: #6e6e73;
        --text-tertiary: #86868b;
        --accent-bg: #eeeeee;
        --overlay-bg: rgba(255, 255, 255, 0.7);
        --shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
      }
      :root:not(.light-mode) .theme-toggle::after,
      :root:not(.light-mode) .desktop-theme-toggle::after {
        content: "☀️";
      }
    }
	
	/* 归档页样式 */
	.archive-header {
		margin-bottom: 2rem;
		padding-bottom: 1rem;
		border-bottom: 1px solid var(--border-color);
	}
	.archive-title {
		font-size: 1rem;
		color: #333;
		margin-bottom: 0.5rem;
	}
	.archive-description {
		font-size: 1rem;
		color: #666;
		line-height: 1.6;
	}
	.wp-store-archive-item {
		background: var(--bg-secondary);
		padding: 1.5rem;
		margin-bottom: 15px;
		border-radius: 8px;
		box-shadow: 0 2px 8px rgba(0,0,0,0.06);
		transition: box-shadow 0.3s ease;
		position: relative;
	}
	.wp-store-archive-item:hover {
		box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	}
	.archive-thumbnail {
		margin-bottom: 1rem;
	}
	.archive-thumbnail img {
		width: 100%;
		height: auto;
		object-fit: cover;
	}
	.archive-entry-title {
		font-size: 1.2rem;
		margin-bottom: 0.8rem;
		line-height: 1.4;
		word-break: break-all;
		overflow-wrap: break-word;
		white-space: normal;
	}
	.archive-entry-title a {
		text-decoration: none;
	}
	.archive-entry-title a:hover {
	}
	.archive-entry-meta {
		font-size: 0.85rem;
		color: #777;
		margin-bottom: 0.8rem;
		display: flex;
		flex-wrap: wrap;
		gap: 0.8rem;
	}
	.archive-entry-meta span {
		display: inline-flex;
		align-items: center;
		gap: 0.4rem;
	}
	.archive-entry-meta a {
		text-decoration: none;
	}
	.archive-entry-meta a:hover {
		text-decoration: underline;
	}
	.archive-entry-excerpt {
		font-size: 0.95rem;
		color: #555;
		line-height: 1.6;
		margin-bottom: 1rem;
		word-break: break-all;
		overflow-wrap: break-word;
		white-space: normal;
	}
	.archive-read-more {
		background: var(--blue-accent);
		border-color: var(--blue-accent);
		color: white;
		padding: 0.4rem 1rem;
		font-size: 0.9rem;
		border-radius: 4px;
	}
	.archive-read-more:hover {
		background: var(--blue-accent);
		border-color: var(--blue-accent);
	}
	.pagination-wrap {
		margin-top: 2rem;
		text-align: center;
	}
	.page-numbers {
		display: inline-block;
		padding: 0.5rem 1rem;
		margin: 0 0.2rem;
		border: 1px solid #ddd;
		border-radius: 4px;
		color: #666;
		text-decoration: none;
	}
	.page-numbers.current {
		background: var(--blue-accent);
		color: #fff;
		border-color: var(--blue-accent);
	}
	.page-numbers:hover {
		background: var(--blue-accent);
		color: #fff;
	}
	.no-posts-found {
		text-align: center;
		padding: 3rem 1rem;
		background: var(--bg-secondary);
		border-radius: 8px;
		margin-bottom: 2rem;
	}
	.no-posts-found h3 {
		font-size: 1.5rem;
		color: #333;
		margin-bottom: 1rem;
	}
	.no-posts-found p {
		color: #666;
		margin-bottom: 1.5rem;
	}
	/* 移动端适配 */
	@media (max-width: 768px) {
		.archive-title {
			font-size: 1rem;
		}
		.archive-entry-meta {
			flex-direction: column;
			gap: 0.5rem;
		}
		.wp-store-archive-item {
			padding: 1rem;
		}
		.archive-thumbnail {
			margin-bottom: 1rem;
		}
		.page-numbers {
			padding: 0.4rem 0.8rem;
			font-size: 0.85rem;
		}
	}

	
	/* 文章详情页样式 */
	.wp-store-single-article {
	    background: var(--bg-secondary);
	    padding: 2rem;
	    margin-bottom: 2rem;
	    border-radius: 8px;
	    box-shadow: var(--shadow);
	}
	.entry-header .entry-title {
	    font-size: 2rem;
	    margin-bottom: 1rem;
	    color: var(--text-primary);
	    line-height: 1.4;
		word-break: break-all;
		overflow-wrap: break-word;
		white-space: normal;
	}
	.entry-meta {
	    font-size: 0.9rem;
	    color: var(--text-tertiary);
	    margin-bottom: 1.5rem;
		padding-bottom: 1rem;
		border-bottom: 1px solid var(--border-color);
	    display: flex;
	    flex-wrap: wrap;
	    gap: 1rem;
	}
	.entry-meta span {
	    display: inline-flex;
	    align-items: center;
	    gap: 0.5rem;
	}
	.entry-meta a {
	    text-decoration: none;
	}
	.entry-meta a:hover {
	    text-decoration: underline;
	}
	.entry-thumbnail {
	    margin-bottom: 2rem;
	    border-radius: 4px;
	    overflow: hidden;
	}
	.entry-content {
	    font-size: 1.05rem;
	    line-height: 1.8;
	    color: var(--text-secondary);
		word-break: break-all;
		overflow-wrap: break-word;
		white-space: normal;
	}
	.entry-content p {
	    margin-bottom: 1.5rem;
	}
	.entry-content img {
	    max-width: 100%;
	    height: auto;
	}
	.entry-footer .tag-links {
	    margin-top: 2rem;
	    padding-top: 1rem;
	    border-top: 1px solid var(--border-color);
	    font-size: 0.9rem;
	}
	.entry-footer .tag-links a {
	    display: inline-block;
	    background: var(--accent-bg);
	    padding: 0.3rem 0.8rem;
	    border-radius: 4px;
	    margin-right: 0.5rem;
	    margin-bottom: 0.5rem;
	    color: var(--text-secondary);
	    text-decoration: none;
	}
	.entry-footer .tag-links a:hover {
	    background: var(--blue-accent);
	    color: #fff;
	}
	.post-navigation {
	    margin-top: 2rem;
	    padding: 1rem;
	    background: var(--bg-tertiary);
	    border-radius: 4px;
	    display: flex;
	    justify-content: space-between;
	}
	.nav-previous, .nav-next {
	    flex: 1;
	}
	.nav-links {
	  width: 100%;
	}
	.nav-previous {
	    float: left;
	}
	.nav-next {
	    float: right;
	}
	.post-navigation a {
	    text-decoration: none;
	}
	.post-navigation a:hover {
	    text-decoration: underline;
	}
	/* 移动端适配 */
	@media (max-width: 768px) {
	    .wp-store-single-article {
	        padding: 1rem;
	    }
	    .entry-header .entry-title {
	        font-size: 1.5rem;
	    }
	    .entry-meta {
	        flex-direction: column;
	        gap: 0.5rem;
	    }
	    .post-navigation {
	        flex-direction: column;
	    }
	    .nav-previous, .nav-next {
	        text-align: center;
	        padding: 0;
	    }
	}

	/* 个人资料页样式 - 适配wp-store主题 */
	.wp-store-profile-card {
		background: var(--bg-secondary);
		padding: 1.5rem;
		margin-bottom: 15px;
		border-radius: 8px;
	    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
		transition: box-shadow 0.3s ease;
	}
	.profile-section-title {
	    border-bottom: 1px solid var(--border-color);
	    padding-bottom: 0.5rem;
	    margin-bottom: 1rem;
	}
	.profile-tabs .nav-link {
	    color: #495057;
	}
	.profile-tabs .nav-link.active {
	    color: #0d6efd;
	    border-color: #dee2e6 #dee2e6 #fff;
	}
	.text-truncate-2 {
	    display: -webkit-box;
	    -webkit-line-clamp: 2;
	    -webkit-box-orient: vertical;
	    overflow: hidden;
	}

	#profileContentTabs {
	  padding-bottom: 15px;
	  display: inline-block;
	}
	#profileContentTabs li {
	  float: left;
	  margin-right: 8px;
	}
	#profileContentTabs li button {
	  background: var(--blue-accent);
	  border: 0;
	  color: white;
	  padding: 0.4rem 1rem;
	  font-size: 0.9rem;
	  border-radius: 4px;
	}

    /* 注册登录样式 - 适配wp-store主题 */
	input {
		color: var(--text-primary);
	}
	.mb-4 {
	  margin-bottom: 20px;
	}
	.mb-5 {
	  margin-bottom: 25px;
	}
	
	
	/* 收藏按钮样式 */
	.wp-store-favorite-btn {
		border: none;
		padding: 6px 12px;
		cursor: pointer;
		transition: background 0.3s;
		padding: 0.4rem 1rem;
		font-size: 0.9rem;
	}
	.wp-store-favorite-btn.active {
		background: #ccc;
		color: #fff;
	}
	.wp-store-favorite-btn.login-required {
        background: var(--blue-accent);
        border-color: var(--blue-accent);
        color: white;
		text-decoration: none;
	}

	/* 收藏列表样式 */
	.wp-store-favorite-list .products {
		margin: 20px 0;
	}
	.wp-store-favorite-list .product {
		margin-bottom: 20px;
		padding: 10px;
		border: 1px solid var(--border-color);
	}
	.favorite-list-empty {
		padding: 40px;
		text-align: center;
		color: #666;
	}



/* 网盘下载信息面板美化 - 适配移动端 */
.netdisk-download {
    margin: 20px 0;
    padding: 20px;
    background: var(--bg-single);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.netdisk-download h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
}



.netdisk-download ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.netdisk-download li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
	color: #333;
}

.netdisk-download li:last-child {
    border-bottom: none;
}

.netdisk-download li strong {
    min-width: 80px;
    color: #555;
    font-weight: 500;
}

/* 下载链接样式 */
.netdisk-download a {
    color: #007bff;
    text-decoration: none;
    flex: 1;
    word-break: break-all;
    margin: 0 8px;
}

.netdisk-download a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 提取码/解压密码样式 */
.netdisk-download .code-box {
    display: inline-block;
    padding: 4px 10px;
    background: #e9ecef;
    border-radius: 4px;
    color: #212529;
    font-family: "Courier New", monospace;
    font-weight: 600;
    margin-left: 8px;
}

/* 复制按钮样式 */
.netdisk-download .copy-btn {
    padding: 4px 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 8px;
    transition: background 0.2s;
}

.netdisk-download .copy-btn:hover {
    background: #0056b3;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .netdisk-download {
        padding: 15px;
    }
    
    .netdisk-download h3 {
        font-size: 16px;
    }
    
    .netdisk-download li {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .netdisk-download li strong {
        margin-bottom: 4px;
    }
    
    .netdisk-download a {
        margin: 0 0 8px 0;
    }
}

/* 价格字段专属样式 */
.netdisk-download .free-price {
    background: #28a745;
    color: white;
    font-weight: 600;
}

.netdisk-download .price-tag {
    background: #dc3545;
    color: white;
    font-weight: 600;
    font-size: 16px;
    padding: 6px 12px;
}
.mini-form .btn.blue {
  background: var(--blue-accent);	
  padding: 6px;
  border: 1px solid var(--blue-accent);
  margin-left: 8px;
  color: #fff;
  border-radius: 4px;
}
/* 移动端价格适配 */
@media (max-width: 768px) {
    .netdisk-download .price-tag {
        font-size: 14px;
        padding: 4px 10px;
    }
}

/* 工单样式 */
.content-card {
  background: var(--bg-secondary);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}


/* 设置 */
.mobile-set-container {
    max-width: 600px; 
    margin: 50px auto; 
    padding: 20px; 
    background: #fff; 
    border-radius: 8px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.mobile-set-container .alert-success {
    padding: 12px; 
    margin-bottom: 20px; 
    border-radius: 4px;
    background: #d4edda; 
    color: #155724;
}
.mobile-set-container .alert-error {
    padding: 12px; 
    margin-bottom: 20px; 
    border-radius: 4px;
    background: #f8d7da; 
    color: #721c24;
}


/* 评论区基础样式 - 无Bootstrap/FontAwesome依赖 */
.wp-store-comments {
    margin: 20px 0;
    padding: 0;
}
.wp-store-comments-title {
    font-size: 1.4em;
    margin-bottom: 20px;
    font-weight: 600;
}
.wp-store-comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}
.wp-store-comment-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}
.wp-store-comment-wrap {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.wp-store-comment-avatar img {
    border-radius: 50%;
    width: 64px;
    height: 64px;
    object-fit: cover;
}
.wp-store-comment-content {
    flex: 1;
    min-width: 280px;
}
.wp-store-comment-author {
    margin: 0 0 8px;
    font-size: 1.1em;
}
.wp-store-comment-meta-info {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}
.wp-store-comment-pending {
    color: #ff9800;
    margin-left: 8px;
}
.wp-store-comment-text {
    line-height: 1.6;
    margin-bottom: 12px;
}
.wp-store-comment-empty {
    color: #999;
    font-style: italic;
}
.wp-store-comment-reply-btn {
    padding: 4px 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    color: #333;
}
.wp-store-comment-reply-btn:hover {
    background: #eee;
}
.wp-store-comment-pagination {
    margin: 20px 0;
}
.wp-store-comment-pagination ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 8px;
}
.wp-store-comment-pagination a {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}
.wp-store-comment-pagination .current a {
    background: #333;
    color: #fff;
    border-color: #333;
}
.wp-store-no-comments, .wp-store-comments-closed {
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}
.wp-store-comment-form {
    margin-top: 30px;
}
.wp-store-form-group {
    margin-bottom: 15px;
}
.wp-store-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}
.wp-store-required {
    color: #f00;
}
.wp-store-form-group input,
.wp-store-form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
.wp-store-form-note {
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
    display: block;
}
.wp-store-comment-submit {
    padding: 8px 20px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}
.wp-store-comment-submit:hover {
    background: #555;
}

/* 移动端适配 */
.wp-store-comments-mobile .wp-store-comment-wrap {
    flex-direction: column;
    gap: 10px;
}
.wp-store-comments-mobile .wp-store-comment-avatar {
    margin-bottom: 5px;
}
/* 评论区基础样式END */



