/* 天心传奇 - 精简静态样式（替代 Tailwind 3.4.17 运行时） */

:root {
  --color-primary: #D42323;
  --color-secondary: #9D2933;
  --color-accent: #F9A826;
  --color-dark: #0F0A0A;
  --color-gray-400: #9ca3af;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
}

button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* 布局 */
.fixed { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

.flex { display: flex; }
.inline-block { display: inline-block; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.w-full { width: 100%; }
.min-h-screen { min-height: 100vh; }
.overflow-x-hidden { overflow-x: hidden; }

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  max-width: 1280px;
}

.mx-auto { margin-left: auto; margin-right: auto; }

/* 间距 */
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pt-16 { padding-top: 4rem; }

.mt-4 { margin-top: 1rem; }
.mt-12 { margin-top: 3rem; }
.mb-8 { margin-bottom: 2rem; }

.gap-4 { gap: 1rem; }

.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }

/* 字体 */
.font-game {
  font-family: "Ma Shan Zheng", cursive, sans-serif;
}

.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-center { text-align: center; }
.text-white { color: #fff; }
.text-accent { color: var(--color-accent); }
.text-gray-400 { color: var(--color-gray-400); }
.font-bold { font-weight: 700; }

/* 颜色与背景 */
.bg-dark { background-color: var(--color-dark); }
.bg-primary { background-color: var(--color-primary); }
.bg-dark\/80 { background-color: rgba(15, 10, 10, 0.8); }
.bg-primary\/80 { background-color: rgba(212, 35, 35, 0.8); }

.bg-game-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* 边框 */
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-primary\/30 { border-color: rgba(212, 35, 35, 0.3); }
.border-primary\/20 { border-color: rgba(212, 35, 35, 0.2); }

/* 圆角 */
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }

/* 特效 */
.backdrop-blur-md {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.transform { transform: translateZ(0); }

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.duration-300 { transition-duration: 300ms; }

.btn-glow {
  box-shadow: 0 0 15px rgba(212, 35, 35, 0.7), 0 0 30px rgba(212, 35, 35, 0.5);
}

.hover\:bg-secondary:hover { background-color: var(--color-secondary); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:text-accent:hover { color: var(--color-accent); }

.btn-glow:hover {
  box-shadow: 0 0 20px rgba(212, 35, 35, 0.9), 0 0 40px rgba(212, 35, 35, 0.7), 0 0 60px rgba(212, 35, 35, 0.5);
}

/* 英雄区背景 */
#home .absolute img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 10, 10, 0.7),
    rgba(15, 10, 10, 0.4),
    var(--color-dark)
  );
}

/* 响应式 */
@media (min-width: 768px) {
  .md\:gap-6 { gap: 1.5rem; }
  .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
}
