/*! Tailwind CSS v3.0 - 精简版，包含页面必需的所有类 */

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

/* 高度类 */
.h-48 { height: 12rem; }
.h-6 { height: 1.5rem; }

/* 宽度类 */
.w-full { width: 100%; }
.w-6 { width: 1.5rem; }

/* 间距类 */
.p-6 { padding: 1.5rem; }
.p-2 { padding: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-4 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }
.gap-8 { gap: 2rem; }
.gap-4 { gap: 1rem; }

/* 网格类 */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.md\:grid-cols-2 { @media (min-width: 768px) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lg\:grid-cols-3 { @media (min-width: 1024px) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 背景颜色 */
.bg-horror-dark { background-color: #0a0a0a; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-900 { background-color: #111827; }
.bg-white { background-color: #ffffff; }
.bg-transparent { background-color: transparent; }
.bg-red-600 { background-color: #dc2626; }
.bg-gray-800 { background-color: #1f2937; }

/* 文本颜色 */
.text-white { color: #ffffff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-900 { color: #111827; }
.text-red-600 { color: #dc2626; }
.text-horror-red { color: #8B0000; }

/* 文本大小 */
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

/* 字体粗细 */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* 文本对齐 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* 圆角 */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-md { border-radius: 0.375rem; }

/* 边框 */
.border { border-width: 1px; }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }

/* 悬停效果 */
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:text-red-700:hover { color: #b91c1c; }

/* 焦点 */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }

/* 响应式 */
.max-w-6xl { max-width: 72rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-4xl { max-width: 56rem; }

/* 对象适配 */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* 显示 */
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }
.flex { display: flex; }

/* 定位 */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

/* 定位方向 */
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }

/* 层级 */
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* 过渡 */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* 变换 */
.transform { transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.scale-75 { --tw-scale-x: 0.75; --tw-scale-y: 0.75; }

/* 媒体查询 */
@media (min-width: 640px) { .sm\:block { display: block; } .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; } }
@media (min-width: 768px) { .md\:block { display: block; } .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; } .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .lg\:block { display: block; } .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 移动端菜单样式 */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 50;
  display: none;
  color: #d1d5db;
}

.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1rem 0 1rem;
}

.mobile-menu-close-btn {
  color: #d1d5db;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-content {
  padding: 1.5rem 1rem 3rem 1rem;
  margin-top: 1.5rem;
}

.mobile-menu-play-section {
  text-align: center;
}

.play-btn {
  display: inline-block;
  background: linear-gradient(135deg, #8B0000 0%, #DC2626 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: bold;
  margin: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.mobile-menu-section {
  padding: 0 1rem;
}

.mobile-menu-section-with-top {
  padding: 0 1rem;
  margin-top: 2rem;
}

.mobile-menu-title {
  color: #8B0000;
  font-weight: bold;
  margin-bottom: 0.75rem;
}

.mobile-menu-category-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu-category {
  margin-bottom: 1rem;
}

.mobile-menu-category-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.mobile-menu-link {
  display: block;
  color: #d1d5db;
  text-decoration: none;
  padding: 0.5rem 0;
}

.mobile-menu-link-horror {
  color: #a855f7;
}

.mobile-menu-link-puzzle {
  color: #60a5fa;
}

.mobile-menu-link-casual {
  color: #fbbf24;
}

.mobile-menu-link-strategy {
  color: #4ade80;
}

.mobile-menu-sitelist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* 导航样式 */
.main-nav {
  background: rgba(0, 0, 0, 0.95);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-left, .nav-center, .nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.25rem;
}

.nav-link {
  color: #d1d5db;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  transition: background-color 0.2s;
}

.nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-separator {
  color: #4b5563;
  margin: 0 0.5rem;
}

.tool-btn {
  background: transparent;
  border: none;
  color: #d1d5db;
  padding: 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.tool-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  color: #d1d5db;
  padding: 0.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .hamburger-btn {
    display: block;
  }
  .nav-center {
    display: none;
  }
}

/* 游戏卡片 */
.horror-card {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.horror-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* 按钮样式 */
.btn-primary {
  background: linear-gradient(135deg, #8B0000 0%, #DC2626 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
