/* 首页专用CSS - index.css */

/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f8f9fa;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* 背景装饰元素 */
.bg-decoration {
    position: fixed;
    z-index: -1;
    opacity: 0.8;
    pointer-events: none;
}

/* 圆形装饰 */
.bg-circle-1 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    top: -100px;
    right: -100px;
    animation: floatRotate 20s infinite linear;
}

.bg-circle-2 {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(251, 191, 36, 0.12));
    bottom: -90px;
    left: -90px;
    animation: pulse 15s infinite ease-in-out;
}

/* 三角形装饰 */
.bg-triangle-1 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 80px solid rgba(236, 72, 153, 0.1);
    top: 15%;
    left: -40px;
    animation: swing 25s infinite ease-in-out;
}

.bg-triangle-2 {
    width: 0;
    height: 0;
    border-left: 45px solid transparent;
    border-right: 45px solid transparent;
    border-top: 70px solid rgba(168, 85, 247, 0.1);
    bottom: 20%;
    right: -35px;
    animation: bounce 18s infinite ease-in-out;
}

/* 菱形装饰 */
.bg-diamond-1 {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(239, 68, 68, 0.08), rgba(245, 101, 101, 0.08));
    transform: rotate(45deg);
    top: 40%;
    right: 5%;
    animation: diamondSpin 30s infinite linear;
    border-radius: 8px;
}

.bg-diamond-2 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(99, 102, 241, 0.08));
    transform: rotate(45deg);
    bottom: 55%;
    left: 5%;
    animation: float 22s infinite ease-in-out;
    border-radius: 6px;
}

/* 五角星装饰 - 简单版本 */
.bg-star-simple {
    width: 60px;
    height: 60px;
    color: rgba(239, 68, 68, 0.08); /* 红色，透明度和其他元素一致 */
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 75%;
    left: 35px;
    animation: wave 20s infinite ease-in-out;
}

.bg-star-simple::before {
    content: '★';
}

.bg-wave-2 {
    width: 100px;
    height: 50px;
    background: rgba(245, 158, 11, 0.08);
    border-radius: 40% 60% 60% 40% / 70% 30% 70% 30%;
    top: 30%;
    right: -30px;
    animation: waveReverse 24s infinite ease-in-out;
}

/* 星形装饰 */
.bg-star-1 {
    width: 50px;
    height: 50px;
    background: rgba(219, 39, 119, 0.08);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    top: 85%;
    right: 25%;
    animation: starTwinkle 16s infinite ease-in-out;
}

/* 点状装饰 */
.bg-dots-1 {
    position: fixed;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(rgba(34, 197, 94, 0.25) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    bottom: 30%;
    left: 10%;
    opacity: 0.5;
    z-index: -1;
    animation: float 30s infinite reverse ease-in-out;
}

/* 动画定义 */
@keyframes floatRotate {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(15px, -15px) rotate(90deg); }
    50% { transform: translate(0, -30px) rotate(180deg); }
    75% { transform: translate(-15px, -15px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes swing {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(20px) rotate(3deg); }
    75% { transform: translateX(-20px) rotate(-3deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-25px); }
}

@keyframes diamondSpin {
    0% { transform: rotate(45deg); }
    100% { transform: rotate(405deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes hexFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(120deg); }
    66% { transform: translateY(8px) rotate(240deg); }
}

@keyframes wave {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
        border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    }
    50% { 
        transform: translateY(-20px) rotate(6deg);
        border-radius: 40% 60% 40% 60% / 50% 70% 30% 50%;
    }
}

@keyframes waveReverse {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
        border-radius: 40% 60% 60% 40% / 70% 30% 70% 30%;
    }
    50% { 
        transform: translateY(15px) rotate(-5deg);
        border-radius: 60% 40% 40% 60% / 30% 70% 30% 70%;
    }
}

@keyframes starTwinkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    25% { transform: scale(1.2) rotate(90deg); opacity: 1; }
    50% { transform: scale(0.8) rotate(180deg); opacity: 0.6; }
    75% { transform: scale(1.1) rotate(270deg); opacity: 0.9; }
}

/* 适配导航栏遮挡 */
.main-fullwidth {
  padding-top: 0;
}

/* 首页容器 */
.home-wrapper {
  padding: 0 50px 30px;
  max-width: 1600px; /* 添加最大宽度 */
  margin: 0 auto;
}


/* 头部网格布局 */
.header-grid {
  display: grid;
  grid-template-columns: 1fr; /* 默认为单列布局 */
  gap: 25px;
  margin:20px 0 30px 0;
}

/* 当存在轮播图时，切换为两列布局 */
.header-grid.has-carousel {
  grid-template-columns: 1fr 1fr;
}

/* 左侧欢迎区域 - 新增 */
.hero-welcome {
  position: relative;
  background: #3b82f6;
  color: #fff;
  border-radius: 20px;
  padding: 40px 30px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 400px;
}

/* 使用伪元素添加背景图片 */
.hero-welcome::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
  z-index: 1;
}

/* 保留原有的 ::after 伪元素 */
.hero-welcome::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  z-index: 1;
}

/* 为 .hero-content 添加伪元素来显示图片 */
.hero-welcome .hero-content::before {
  content: '';
  position: absolute;
  right: 10px;
  bottom: 70px;
  width: 300px;
  height: 130px;
  background-image: url('/assets/images/yxcz.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.8;
  z-index: 2;
  pointer-events: none;
}

.hero-welcome .circle-decoration {
  position: absolute;
  bottom: -30px;
  left: 10%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  z-index: 1;
}

/* 右侧轮播图容器 */
.hero-carousel {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  position: relative;
  width: 100%;
  height: 400px;
}

/* 轮播图片样式 */
.hero-carousel .carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 保证图片覆盖整个区域 */
}

/* 轮播图幻灯片 */
.hero-carousel .carousel-slide {
  height: 100%; /* 保持高度100% */
}

.hero-carousel .carousel-wrapper {
  height: 100%;
  position: relative;
}

.hero-carousel .carousel-slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.hero-carousel .carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
}

.hero-carousel .carousel-link {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-carousel .carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 15px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
}

.hero-carousel .carousel-caption h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-carousel .carousel-controls {
  position: absolute;
  bottom: 15px;
  right: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.hero-carousel .carousel-prev,
.hero-carousel .carousel-next {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(3px);
}

.hero-carousel .carousel-prev:hover,
.hero-carousel .carousel-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

.hero-carousel .carousel-indicators {
  display: flex;
  gap: 8px;
  margin: 0 10px;
}

.hero-carousel .carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s;
}

.hero-carousel .carousel-indicator.active {
  background: #fff;
  transform: scale(1.2);
}

.default-banner {
  max-width: 80%;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
}

/* 保留的原有头部横幅样式（用于hero-welcome内的元素） */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 25px;
  max-width: 600px;
}

/* 主页搜索容器样式 */
.search-container {
  position: relative;
  display: flex;
  max-width: 500px;
  width: 100%;
  margin: 15px auto;
  z-index: 3;
}

.search-container form {
  display: flex;
  width: 100%;
  position: relative;
}

/* 搜索类型选择器样式 */
.search-type-selector {
  position: relative;
  margin-right: -1px;
}

.search-type-selector select {
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-right: none;
  border-radius: 25px 0 0 25px;
  padding: 0 15px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.95rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  min-width: 90px;
  backdrop-filter: blur(8px);
}

.search-type-selector::after {
  content: '\f0d7';
  font-family: 'FontAwesome';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: white;
}

/* 确保选项在Windows上正常显示 */
.search-type-selector select option {
    background-color: #ffffff;
    color: #333333;
    padding: 8px;
}

/* 搜索输入框调整 */
.search-container .search-input {
  flex: 1;
  height: 50px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: none;
  border-radius: 0 25px 25px 0;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  outline: none;
  backdrop-filter: blur(8px);
}

.search-container .search-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.search-container .search-button {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: #ff6b6b;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-container .search-button:hover {
  background-color: #0c7cd5;
}

/* 快速链接样式 */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  justify-content: center;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0; /* 防止链接被压缩 */
  white-space: nowrap; /* 文字不换行 */
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  gap: 6px;
  transition: all 0.2s;
}

.quick-link:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}


/* 内容区域 - 四列布局 */
.categories-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 25px;
}

/* 内容区块通用样式 */
.content-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
  transition: all 0.3s;
  height: 100%;  /* 确保相同高度 */
  display: flex;
  flex-direction: column;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* 斜线装饰元素 */
.diagonal-decor {
  position: absolute;
  top: 0;
  right: -40px;
  width: 80px;
  height: 100%;
  background: rgba(0, 0, 0, 0.03);
  transform: skewX(-15deg);
  pointer-events: none;
}

/* 区块标题 */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.card-title i {
  font-size: 20px;
}

.title-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  margin-left: 8px;
  vertical-align: middle;
}

.title-badge.blue {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.title-badge.red {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.title-badge.orange {
  background: rgba(255, 153, 102, 0.1);
  color: #ff9966;
}


.title-badge.green {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.title-badge.purple {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

/* 游戏标签徽章 */
.title-badge.game-badge {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
}



.card-action {
  font-size: 14px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
  text-decoration: none;  /* 这行去除下划线 */
}

.card-action:hover {
  color: #2563eb;
}

/* 分类网格 */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 15px;
  padding: 20px;
  flex: 1;  /* 让网格占据剩余空间 */
}

.category-item {
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 5px;
  border-radius: 8px;
}

.category-item:hover {
  transform: translateY(-5px);
  background-color: rgba(0, 0, 0, 0.02);
}

/* 特定分类项目悬停颜色 */
.categories-row .content-card:nth-child(1) .category-item:hover {
  background-color: rgba(59, 130, 246, 0.05);
}

.categories-row .content-card:nth-child(2) .category-item:hover {
  background-color: rgba(34, 197, 94, 0.05);
}

.categories-row .content-card:nth-child(3) .category-item:hover {
  background-color: rgba(139, 92, 246, 0.05);
}

.categories-row .content-card:nth-child(4) .category-item:hover {
  background-color: rgba(239, 68, 68, 0.05);
}

.category-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.category-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.category-name {
  font-size: 13px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  margin-bottom: 3px;
}

.category-count {
  font-size: 11px;
  color: #888;
  background-color: #f1f5f9;
  padding: 2px 6px;
  border-radius: 10px;
}

/* ========== 游戏专区样式 ========== */

/* 游戏专区卡片样式 */
.game-zone-card {
  border: 1px solid rgba(34, 197, 94, 0.1);
  position: relative;
  overflow: hidden;
}

.game-zone-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* 游戏展示区域 */
.game-showcase {
  padding: 0;
}

/* 让游戏标签容器支持水平滚动 */
.game-tabs {
  display: flex;
  padding: 0 20px;
  margin-top: 8px;
  overflow-x: auto; /* 允许水平滚动 */
  white-space: nowrap; /* 防止标签换行 */
  -webkit-overflow-scrolling: touch; /* 为iOS设备提供平滑滚动 */
  scrollbar-width: none; /* Firefox 隐藏滚动条 */
  -ms-overflow-style: none; /* IE/Edge 隐藏滚动条 */
}

/* 隐藏 WebKit 浏览器的滚动条 */
.game-tabs::-webkit-scrollbar {
  display: none;
}

/* 调整游戏标签样式以适应滚动 */
.game-tab {
  padding: 15px 25px;
  font-size: 15px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
  border-radius: 8px 8px 0 0;
  margin: 1px;
  flex-shrink: 0; /* 防止标签被压缩 */
}

.game-tab.active {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.game-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #22c55e;
  border-radius: 3px;
}

/* 游戏内容区域 */
.game-content-wrapper {
  padding: 0 20px;
}

.game-content {
  display: none;
  padding: 20px 0;
}

.game-content.active {
  display: block;
}

/* 游戏网格布局 */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* 游戏卡片样式 */
.game-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.game-card:hover {
  transform: translateY(-5px);
}

/* 游戏封面样式 */
.game-cover {
  position: relative;
  height: 150px;
  overflow: hidden;
  background: #f3f4f6;
}

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

.game-card:hover .game-cover img {
  transform: scale(1.1);
}

/* 游戏详细信息覆盖层样式 */
.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s;
  padding: 15px;
}

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

.game-detail-info {
  text-align: center;
  color: #fff;
  width: 100%;
}

.game-detail-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 游戏简介 - 两行显示自动截断 */
.game-detail-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.5;
  max-height: 3em; /* 2 × 1.5em = 3em */
  font-size: 12px;
  color: #ccc;
  margin: 0;
  margin-bottom: 12px;
  word-break: break-word;
  text-overflow: ellipsis;
}

.game-detail-specs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-item {
  font-size: 11px;
  color: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.spec-item i {
  width: 12px;
  font-size: 10px;
}

/* 游戏信息区域 */
.game-info {
  padding: 15px;
}

.game-info-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.game-icon {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #e5e7eb;
}

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

.game-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.game-category {
  padding: 2px 6px;
  background-color: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border-radius: 4px;
}

.game-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
}

.game-rating.hot {
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.game-rating.new {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.game-rating.recommend {
  background-color: rgba(78, 205, 196, 0.1);
  color: #4ecdc4;
}

.game-rating i {
  font-size: 11px;
}

/* 空游戏内容样式 */
.empty-game-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #999;
  text-align: center;
}

.empty-game-content i {
  font-size: 3rem;
  color: #ddd;
  margin-bottom: 15px;
}

.empty-game-content p {
  font-size: 16px;
  margin: 0;
}

/* 工具列表 */
.tools-wrapper {
  padding: 5px 20px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.tool-intro {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  padding: 5px 0 15px;
  border-bottom: 1px dashed #eee;
  margin-bottom: 15px;
}

.tool-item {
  position: relative;
  padding: 15px;
  border-radius: 10px;
  transition: all 0.2s;
  border: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.tool-item:hover {
  background: #f9fafb;
  border-color: #e5e7eb;
  transform: translateX(5px);
}

.tool-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.tool-info {
  flex: 1;
  min-width: 0;
}

.tool-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin: 0 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-category {
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 5px;
}

.tool-category i {
  font-size: 11px;
  color: #999;
}

.tool-badge {
  position: absolute;
  top: -6px;
  right: 10px;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  color: #fff;
  z-index: 2;
}

.tool-badge.new {
  background: #10b981;
}

.tool-badge.hot {
  background: #ef4444;
}

/* 应用网格 */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  padding: 20px;
}

.app-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
  transition: all 0.3s;
  background: #fff;
  height: 100%;
}

.app-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border-color: #e5e7eb;
}

.app-header {
  position: relative;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-icon {
  width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

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

.app-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin: 0 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-name a {
  color: inherit;
  text-decoration: none;
}

.app-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #666;
}

.app-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.app-desc {
  padding: 15px;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-category {
  font-size: 12px;
  color: #666;
  background: #f5f7fa;
  padding: 4px 8px;
  border-radius: 4px;
}

.app-button {
  padding: 6px 12px;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.app-button:hover {
  background: #2563eb;
}

/* 全宽区块 */
.full-width-section {
  grid-column: 1 / -1;
  margin-bottom: 25px;
}

.featured-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}

.featured-app {
  flex: 1;
  min-width: 250px;
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s;
}

.featured-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f7fa;
}

.featured-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.featured-info {
  flex: 1;
  padding: 15px;
  min-width: 0;
}

.featured-name {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  margin: 0 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.featured-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.featured-category {
  font-size: 12px;
  color: #666;
  background: rgba(0, 0, 0, 0.05);
  padding: 3px 8px;
  border-radius: 4px;
}

.featured-button {
  font-size: 12px;
  color: #3b82f6;
  text-decoration: none;
}

/* 论坛卡片样式 */
.forum-card {
  grid-column: 1 / -1;
  margin-top: 15px;
}

.forum-tabs {
  display: flex;
  padding: 0 20px;
  overflow-x: auto; /* 允许水平滚动 */
  white-space: nowrap; /* 防止标签换行 */
  -webkit-overflow-scrolling: touch; /* 为iOS设备提供平滑滚动 */
  scrollbar-width: none; /* Firefox 隐藏滚动条 */
  -ms-overflow-style: none; /* IE/Edge 隐藏滚动条 */
}

/* 隐藏 WebKit 浏览器的滚动条 */
.forum-tabs::-webkit-scrollbar {
  display: none;
}

/* 确保标签有足够的宽度和内边距 */
.forum-tab {
  padding: 12px 20px;
  font-size: 15px;
  color: #666;
  cursor: pointer;
  position: relative;
  font-weight: 500;
  transition: all 0.2s;
  flex-shrink: 0; /* 防止标签被压缩 */
  text-align: center; /* 文字居中 */
}

.forum-tab.active {
  color: #8b5cf6;
}

.forum-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #7c3aed; /* 加深后的紫色 */
}

.forum-content-wrapper {
  padding: 0 20px;
}

.forum-content {
  display: none;
  padding: 15px 0;
}

.forum-content.active {
  display: block;
}

.forum-post-list {
  display: flex;
  flex-direction: column;
}

.forum-post-item {
  display: flex;
  padding: 12px;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.forum-post-item:last-child {
  border-bottom: none;
}

.forum-post-item:hover {
  background-color: #f9fafb;
  transform: translateX(5px);
}

.forum-post-info {
  flex: 1;
  min-width: 0;
}

.forum-post-title {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin: 0 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.forum-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #777;
}

.forum-post-meta i {
  margin-right: 2px;
}

.plate-tag {
  padding: 2px 6px;
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
  border-radius: 4px;
  font-size: 11px;
}

.forum-post-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 12px;
  color: #999;
  white-space: nowrap;
}

.forum-post-view {
  padding: 2px 8px;
  background-color: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-radius: 4px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.empty-forum-posts {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  color: #999;
  text-align: center;
}

.empty-forum-posts i {
  font-size: 2.5rem;
  color: #ddd;
  margin-bottom: 10px;
}

/* 平台介绍专区 */
.platform-intro-section {
  background: #3b82f6;
  color: #fff;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 10px 25px rgba(79, 172, 254, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.platform-intro-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: 150px;
  opacity: 0.1;
}

.platform-intro-header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.platform-intro-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.platform-intro-subtitle {
  font-size: 16px;
  opacity: 0.9;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.platform-intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  position: relative;
}

.platform-intro-feature {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(5px);
  transition: all 0.3s;
}

.platform-intro-feature:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.platform-intro-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 15px;
}

.platform-intro-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.platform-intro-desc {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

.platform-intro-action {
  text-align: center;
  margin-top: 30px;
  position: relative;
}

.platform-action-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 25px;
  background: #fff;
  color: #3b82f6;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.platform-action-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}


/* 工具专区 */
.tool-intro-section {
  background: linear-gradient(135deg, #ff9966, #ff5e62); /* 改为橙色渐变 */
  color: #fff;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 10px 25px rgba(255, 153, 102, 0.2); /* 阴影也改为橙色 */
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.tool-intro-section:hover {
  background: linear-gradient(135deg, #ff5e62, #ff9966); /* 悬停时反向渐变 */
  box-shadow: 0 15px 30px rgba(255, 94, 98, 0.3); /* 悬停阴影 */
}

.tool-intro-title, .tool-intro-subtitle {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tool-intro-feature {
  transition: transform 0.3s;
}

.tool-intro-feature:hover {
  transform: translateY(-5px);
}

.tool-intro-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: 150px;
  opacity: 0.1;
}

.tool-intro-header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

.tool-intro-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.tool-intro-subtitle {
  font-size: 16px;
  opacity: 0.9;
}

.tool-intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  position: relative;
}

.tool-intro-feature {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(5px);
  transition: all 0.3s;
}

.tool-intro-feature:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.tool-intro-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 15px;
}

.tool-intro-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.tool-intro-desc {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

.tool-intro-action {
  text-align: center;
  margin-top: 30px;
  position: relative;
}

.intro-action-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 25px;
  background: #fff;
  color: #3b82f6;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.intro-action-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* 网站介绍 */
.site-info {
  grid-column: 1 / -1;
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.site-info-inner {
  position: relative;
  z-index: 2;
}

.site-info-title {
  font-size: 20px;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.site-info-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 3px;
  background: #3b82f6;
  border-radius: 3px;
}

.site-info-content {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

.site-info-content p {
  margin-bottom: 12px;
}

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

/* 网站统计区域响应式修复 */
.site-info-stats {
  display: flex;
  justify-content: space-around;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px dashed #eee;
  flex-wrap: wrap; /* 允许换行 */
  gap: 15px; /* 添加间距 */
}

.stats-item {
  text-align: center;
  flex: 1; /* 平均分配空间 */
  min-width: 80px; /* 设置最小宽度 */
}

.stats-num {
  font-size: 24px;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 5px;
}

.stats-label {
  font-size: 14px;
  color: #666;
  word-break: keep-all; /* 防止文字换行 */
  white-space: nowrap; /* 保持单行显示 */
}

/* 四列显示区域 */
.apps-tools-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 25px;
}

/* 确保卡片内容高度一致 */
.tools-wrapper{
    display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  padding: 20px;
}



/* 工具介绍文字调整 */
.tool-intro {
  font-size: 12px;
  margin-bottom: 8px;
  padding-bottom: 8px;
}

/* 减小app描述字体和内间距 */
.app-desc {
  font-size: 12px;
  padding: 10px 15px;
  -webkit-line-clamp: 2;
}


/* 四个卡片滚动内容 */
.compact-scroll {
  overflow-y: auto;
}

.compact-scroll::-webkit-scrollbar {
  width: 5px;
}

.compact-scroll::-webkit-scrollbar-thumb {
  background: #ddd;
}

/* 页脚样式 - 符合index.css风格 */
.site-footer {
    
}

.footer-container {
    max-width: 1600px; /* 添加最大宽度 */
    margin: 0 auto;
    padding: 0 50px; /* 添加左右内边距，与 home-wrapper 一致 */
}


/* 主要内容区 */
.footer-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

/* 页脚卡片样式 */
.footer-info-card,
.footer-nav-card,
.footer-contact-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.footer-info-card:hover,
.footer-nav-card:hover,
.footer-contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.footer-content-body {
    padding: 20px;
    flex: 1;
}

/* 联系方式列表 */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-list .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.3s;
}

.contact-list .contact-item:hover {
    background: #f1f5f9;
    transform: translateX(5px);
}

.contact-list .contact-item i {
    width: 20px;
    color: #3b82f6;
    font-size: 16px;
}

.contact-list .contact-item span {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    word-break: break-word;       /* 只在单词边界换行 */
    overflow-wrap: break-word;    /* 只有在必要时才强制换行 */
}

/* 导航链接 */
.nav-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.nav-links a:hover {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    padding-left: 10px;
}

.nav-links a i {
    width: 16px;
    color: #999;
}

/* 友情链接网格 */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.footer-link-item {
    display: block;
    padding: 6px 10px;
    background: #f8fafc;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
    /* 添加以下三行实现单行截断 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.footer-link-item:hover {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
    transform: translateY(-1px);
}

/* 申请友链按钮 */
.links-apply {
    text-align: center;
}

.apply-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #10b981;
    color: #fff;
    text-decoration: none;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s;
}

.apply-link-btn:hover {
    background: #059669;
    transform: translateY(-1px);
    color: #fff;
}

/* 无友情链接时的样式 */
.no-links {
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 20px 0;
}

/* ========== 重新设计的底部区域 ========== */
.footer-bottom {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
}

/* 底部主要内容区 */
.footer-bottom-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 30px;
}

/* 左侧版权信息 */
.footer-copyright {
    flex: 1;
    min-width: 280px;
}

.footer-copyright p {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
}

/* 右侧法律链接区域 */
.footer-legal-section {
    flex: 2;
    min-width: 350px;
    text-align: right;
}

.footer-legal-links {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.footer-legal-links a {
    color: #666;
    text-decoration: none;
    margin: 0 3px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-legal-links a:hover {
    color: #3b82f6;
}

/* 标语样式 */
.footer-slogan {
    font-size: 12px !important;
    color: #999 !important;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
}

.footer-copyright .footer-slogan {
    justify-content: flex-start;
}

.footer-legal-section .footer-slogan {
    justify-content: flex-end;
}

/* ========== 爱心跳动动画 ========== */
.footer-slogan .fa-heart {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.2);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.2);
    }
    70% {
        transform: scale(1);
    }
    100% {
        transform: scale(1);
    }
}

/* 认证链接区域 */
.footer-certifications {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.cert-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    background: #f8fafc;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    font-size: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
    white-space: nowrap;
}

.cert-link img {
    width: 16px;
    height: 16px;
}

.cert-link:hover {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* 更漂亮的运行时间样式 */
.footer-runtime {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 15px 0;
    color: #64748b;
    font-size: 13px;
    transition: all 0.3s ease;
}


.footer-runtime .fa-clock-o {
    color: #3b82f6;
    animation: pulse 2s infinite;
    font-size: 14px;
}

#app-runtime {
    color: #10b981; /* 绿色数字 */
    text-shadow: 0 1px 2px rgba(16, 185, 129, 0.1);
}

/* 数字跳动动画 */
#app-runtime .number {
    display: inline-block;
    animation: numberJump 0.6s ease-out;
    color: #059669; /* 更深的绿色 */
    font-weight: 700;
}

@keyframes numberJump {
    0% {
        transform: translateY(0) scale(1);
    }
    30% {
        transform: translateY(-3px) scale(1.05);
    }
    70% {
        transform: translateY(0) scale(1);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

/* 脉冲动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.08);
    }
}
/* 移动端响应式设计 */
@media (max-width: 768px) {
    /* 头部网格布局调整 */
    .header-grid.has-carousel {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* hero-welcome区域优化 */
    .home-wrapper {
        height: auto;
        min-height: 250px;
        padding: 15px 20px;
    }
    
    .hero-title {
        font-size: 20px;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 13px;
        margin-bottom: 15px;
        line-height: 1.4;
    }
    
    /* 搜索容器优化 */
    .search-container {
        max-width: 100%;
        margin: 10px auto 15px;
        padding: 0 10px;
    }
    
    .search-container .search-input,
    .search-type-selector select {
        height: 40px;
    }
    
    .search-type-selector select {
        min-width: 70px;
        padding: 0 8px;
        font-size: 14px;
    }
    
    .search-container .search-input {
        font-size: 14px;
        padding: 0 15px;
    }
    
    .search-container .search-button {
        width: 32px;
        height: 32px;
        right: 4px;
        top: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* 快速链接调整 */
    .quick-link {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* 隐藏移动端背景装饰 */
    .hero-welcome .hero-content::before {
        display: none;
    }
    
    /* 轮播图区域 */
    .hero-carousel {
        height: 250px;
        min-height: 250px;
    }
    
    .hero-carousel .carousel-slide {
        height: 100%;
    }
    
    .hero-carousel .carousel-image {
        height: 100%;
        object-fit: cover;
    }
    
    .hero-carousel .carousel-caption h3 {
        font-size: 16px;
    }
    
    /* 分类区域布局 - 两列 */
    .categories-row {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 10px;
        padding: 15px;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
    }
    
    .category-icon img {
        width: 24px;
        height: 24px;
    }
    
    .category-name {
        font-size: 12px;
    }
    
    .category-count {
        font-size: 10px;
    }
    
    /* 应用工具区域 */
    .apps-tools-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 15px;
    }
    
    /* 游戏区域优化 */
    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .game-cover {
        height: 120px;
    }
    
    .game-info {
        padding: 12px;
    }
    
    .game-title {
        font-size: 14px;
    }
    
    .game-meta {
        font-size: 11px;
    }
    
    .game-tab {
        padding: 12px 15px;
        font-size: 14px;
        flex: 1;
        text-align: center;
        min-width: 80px;
    }
    
    .game-content-wrapper {
        padding: 0 15px;
    }
    
    .game-content {
        padding: 15px 0;
    }
    
    /* 卡片区域调整 */
    .forum-card, .full-width-section, .game-zone-card {
        margin-bottom: 15px;
    }
    
    .forum-post-meta {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    /* 页脚响应式 */
    .footer-main {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-bottom-main {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-legal-section {
        text-align: center;
        min-width: auto;
    }
    
    .footer-copyright {
        min-width: auto;
    }
    
    .footer-legal-links {
        line-height: 2;
    }
    
    .footer-legal-links a {
        display: inline-block;
        margin: 2px 5px;
    }
    
    .footer-slogan {
        justify-content: center !important;
        flex-wrap: wrap;
    }
    
    .footer-certifications {
        justify-content: center;
        gap: 10px;
    }
    
    .cert-link {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .footer-runtime {
        font-size: 13px;
        justify-content: center;
    }
    
    /* 统计数据移动端优化 */
    .site-info-stats {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .stats-item {
        flex: none;
        width: 100%;
        max-width: 200px;
    }
    
    .stats-num {
        font-size: 28px;
    }
    
    .stats-label {
        font-size: 15px;
    }
    
    /* 工具介绍区域 */
    .tool-intro-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tool-intro-title {
        font-size: 20px;
        flex-direction: column;
        gap: 5px;
    }
    
    .tool-intro-subtitle {
        font-size: 14px;
    }
    
    /* 精选应用区域 */
    .featured-apps {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .featured-app {
        min-width: auto;
    }
    
    .featured-icon {
        width: 60px;
        height: 60px;
    }
    
    .featured-icon img {
        width: 45px;
        height: 45px;
    }
    
    .featured-info {
        width: 100px;
        padding: 10px;
        overflow: hidden;
        flex-shrink: 0;
    }
}
