/**
 * JL1111 Theme Stylesheet
 * Prefix: g637
 * Color Palette: #6A5ACD | #1C2833 | #9932CC | #E9ECEF | #DA70D6
 */

:root {
  --g637-primary: #6A5ACD;
  --g637-secondary: #9932CC;
  --g637-accent: #DA70D6;
  --g637-dark: #1C2833;
  --g637-light: #E9ECEF;
  --g637-success: #28a745;
  --g637-warning: #ffc107;
  --g637-danger: #dc3545;
  --g637-text: #ffffff;
  --g637-text-muted: #adb5bd;
  --g637-border: #495057;
  --g637-header-bg: #1C2833;
  --g637-nav-bg: #6A5ACD;
  --g637-footer-bg: #1C2833;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--g637-text);
  background-color: var(--g637-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

.g637-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}

.g637-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.g637-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--g637-header-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  height: 56px;
}

.g637-header-container {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 100%;
}

.g637-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--g637-text);
  font-weight: 600;
  font-size: 1.4rem;
}

.g637-logo img {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.g637-logo-icon {
  width: 24px;
  height: 24px;
}

.g637-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.g637-btn {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.g637-btn-primary {
  background-color: var(--g637-primary);
  color: white;
}

.g637-btn-primary:hover {
  background-color: #5a4cb3;
  transform: translateY(-1px);
}

.g637-btn-secondary {
  background-color: var(--g637-secondary);
  color: white;
}

.g637-btn-secondary:hover {
  background-color: #7b2bb8;
  transform: translateY(-1px);
}

.g637-hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}

.g637-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--g637-text);
  transition: all 0.3s ease;
}

.g637-hamburger-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.g637-hamburger-active span:nth-child(2) {
  opacity: 0;
}

.g637-hamburger-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.g637-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.g637-overlay-visible {
  opacity: 1;
  visibility: visible;
}

.g637-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background-color: var(--g637-header-bg);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 1rem 0;
}

.g637-menu-open {
  right: 0;
}

.g637-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem 1rem;
  border-bottom: 1px solid var(--g637-border);
  margin-bottom: 1rem;
}

.g637-menu-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--g637-text);
}

.g637-menu-close {
  background: none;
  border: none;
  color: var(--g637-text);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

.g637-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.g637-menu-item {
  border-bottom: 1px solid var(--g637-border);
}

.g637-menu-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  color: var(--g637-text);
  text-decoration: none;
  font-size: 1.4rem;
  transition: background-color 0.2s ease;
  min-height: 48px;
}

.g637-menu-link:hover {
  background-color: rgba(106, 90, 205, 0.2);
}

.g637-menu-icon {
  width: 20px;
  height: 20px;
}

.g637-main {
  margin-top: 56px;
  padding-bottom: 80px;
  flex: 1;
}

@media (min-width: 769px) {
  .g637-main {
    padding-bottom: 0;
  }
}

.g637-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.g637-carousel-slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.g637-carousel-slide {
  min-width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.g637-slide-active {
  opacity: 1;
}

.g637-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.g637-carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.g637-carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.g637-indicator-active {
  background-color: var(--g637-primary);
  width: 24px;
  border-radius: 4px;
}

.g637-hero-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--g637-text);
  padding: 0 1rem;
}

.g637-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.g637-section-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--g637-accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.g637-section-icon {
  width: 20px;
  height: 20px;
}

.g637-game-category {
  margin-bottom: 1.5rem;
}

.g637-category-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--g637-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.g637-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.g637-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
  color: var(--g637-text);
  transition: transform 0.2s ease;
}

.g637-game-item:hover {
  transform: scale(1.05);
}

.g637-game-icon {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
}

.g637-game-name {
  font-size: 1rem;
  text-align: center;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.g637-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.g637-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--g637-accent);
}

.g637-card-content {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--g637-light);
}

.g637-link {
  color: var(--g637-primary);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--g637-primary);
  transition: all 0.2s ease;
}

.g637-link:hover {
  color: var(--g637-accent);
  border-bottom-color: var(--g637-accent);
}

.g637-footer {
  background-color: var(--g637-footer-bg);
  padding: 2rem 0 80px 0;
  margin-top: auto;
}

@media (min-width: 769px) {
  .g637-footer {
    padding-bottom: 2rem;
  }
}

.g637-footer-section {
  margin-bottom: 1.5rem;
}

.g637-footer-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--g637-accent);
}

.g637-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.g637-footer-link {
  color: var(--g637-text-muted);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.2s ease;
}

.g637-footer-link:hover {
  color: var(--g637-primary);
}

.g637-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.g637-partner-logo {
  height: 30px;
  width: auto;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.g637-partner-logo:hover {
  opacity: 1;
}

.g637-copyright {
  text-align: center;
  color: var(--g637-text-muted);
  font-size: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--g637-border);
}

.g637-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--g637-nav-bg);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
}

@media (min-width: 769px) {
  .g637-bottom-nav {
    display: none;
  }
}

.g637-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  min-width: 60px;
  min-height: 60px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.g637-nav-item:hover {
  color: white;
  transform: scale(1.1);
}

.g637-nav-item.g637-active {
  color: var(--g637-accent);
}

.g637-nav-icon {
  font-size: 24px;
  margin-bottom: 2px;
}

.g637-nav-text {
  font-size: 10px;
  font-weight: 500;
}

.g637-faq-item {
  margin-bottom: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
}

.g637-faq-question {
  padding: 1rem;
  font-weight: 600;
  color: var(--g637-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.g637-faq-answer {
  padding: 0 1rem 1rem;
  color: var(--g637-light);
  line-height: 1.6;
}

.g637-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.g637-list-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.g637-list-item:last-child {
  border-bottom: none;
}

.g637-list-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.g637-list-text {
  flex: 1;
  color: var(--g637-light);
}

.g637-highlight {
  color: var(--g637-accent);
  font-weight: 600;
}

.g637-text-center {
  text-align: center;
}

.g637-mt-1 { margin-top: 0.5rem; }
.g637-mt-2 { margin-top: 1rem; }
.g637-mt-3 { margin-top: 1.5rem; }
.g637-mb-1 { margin-bottom: 0.5rem; }
.g637-mb-2 { margin-bottom: 1rem; }
.g637-mb-3 { margin-bottom: 1.5rem; }
