* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #ff6b35;
  --secondary-color: #f7931e;
  --dark-color: #1a1a1a;
  --light-color: #f5f5f5;
  --text-color: #333;
  --white: #ffffff;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  padding: 1rem 0;
  position: relative;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.nav-brand .logo {
  height: 50px;
  width: auto;
}

/* Mobile Menu Toggle Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  margin-left: auto;
}

.menu-toggle:hover {
  opacity: 0.8;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-menu a {
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #ffffff !important;
  opacity: 0.9;
  text-decoration: underline;
}

/* Navigation Actions (Login/Register Buttons) */
.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-login,
.btn-register {
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.btn-login {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-login:hover {
  background: var(--white);
  color: var(--primary-color);
}

.btn-register {
  background: var(--white);
  color: var(--primary-color);
}

.btn-register:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--white);
  margin: auto;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus {
  color: var(--primary-color);
}

.modal-content h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.modal-content p {
  font-size: 1.3rem;
  text-align: center;
  color: var(--text-color);
  font-weight: 600;
  margin: 1rem 0;
  padding: 1rem;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  border-radius: 8px;
  color: var(--white);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(247, 147, 30, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #ff6b35 50%, #f7931e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 2rem 1.5rem;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-5px);
  border-color: rgba(255, 107, 53, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  color: var(--primary-color);
}

.feature-card p {
  opacity: 0.85;
  font-size: 0.95rem;
  line-height: 1.5;
}

.hero .btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.hero .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

.hero p a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s;
}

.hero p a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Content Section */
.content-section {
  padding: 4rem 0;
}

.content-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.content-section p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.content-section ul,
.container ul {
  margin: 1.5rem 0;
  padding-left: 2rem;
  line-height: 1.8;
}

.content-section ul li,
.container ul li {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  color: var(--text-color);
}

.content-section ul li strong,
.container ul li strong {
  color: var(--primary-color);
  font-weight: 600;
}

.content-section ul li a,
.container ul li a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.content-section ul li a:hover,
.container ul li a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.content-section ol,
.container ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
  line-height: 1.8;
}

.content-section ol li,
.container ol li {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  color: var(--text-color);
}

.content-section ol li strong,
.container ol li strong {
  color: var(--primary-color);
  font-weight: 600;
}

.content-section ol li a,
.container ol li a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.content-section ol li a:hover,
.container ol li a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.benefits-list {
  list-style: none;
  padding-left: 0;
}

.benefits-list li {
  padding: 0.8rem 0;
  padding-left: 2rem;
  position: relative;
  font-size: 1.1rem;
}

.benefits-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.3rem;
}

/* Games Grid */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.game-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.2);
  border-color: var(--primary-color);
}

.game-card h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.game-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  margin: 0;
}

.games-note {
  margin-top: 2rem;
  padding: 1rem;
  background: #f8f9fa;
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
  font-size: 1rem;
}

.games-note a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.games-note a:hover {
  text-decoration: underline;
}

/* Guides Grid */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.guide-card {
  background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.15);
  border-color: var(--primary-color);
}

.guide-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.guide-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

.guide-card h3 a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.guide-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

/* More Guides CTA */
.more-guides-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--primary-color);
  padding: 0.9rem 2rem;
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: #fff;
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-secondary svg {
  transition: transform 0.3s ease;
}

.btn-secondary:hover svg {
  transform: translateX(5px);
}

/* FAQ Section */
.faq-section {
  background-color: var(--light-color);
  padding: 4rem 0;
}

.faq-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s;
}

.faq-question:hover {
  background-color: var(--light-color);
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: bold;
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease-out,
    opacity 0.3s ease-out,
    padding 0.3s ease-out;
  padding: 0 1.5rem;
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 1.5rem;
  opacity: 1;
}

.faq-answer p {
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.faq-answer a {
  color: var(--primary-color);
  text-decoration: none;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* Page Content */
.page-content {
  padding: 3rem 0;
}

.page-content h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.page-content h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.page-content h3 {
  font-size: 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--dark-color);
}

.page-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 1.05rem;
}

.page-content ul,
.page-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.page-content li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

.page-content a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-content a:hover {
  text-decoration: underline;
}

/* Guide Section */
.guide-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.guide-section h2 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 3px solid var(--primary-color);
}

.guide-section h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255, 107, 53, 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guide-section h3::before {
  content: "▸";
  color: var(--primary-color);
  font-size: 1rem;
}

.guide-section ul {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 1rem 1rem 1rem 2rem;
  margin: 1rem 0;
}

.guide-section ul li {
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

.guide-section p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* FAQ Item with Details/Summary (Accordion) */
.guide-section details.faq-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.guide-section details.faq-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 3px 10px rgba(255, 107, 53, 0.1);
}

.guide-section details.faq-item summary {
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  font-size: 1.05rem;
  color: var(--text-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  transition: background 0.3s;
}

.guide-section details.faq-item summary::-webkit-details-marker {
  display: none;
}

.guide-section details.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.guide-section details.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.guide-section details.faq-item summary:hover {
  background: #f8f9fa;
}

.guide-section details.faq-item summary strong {
  font-weight: 600;
}

.guide-section details.faq-item > p,
.guide-section details.faq-item > ul {
  padding: 0 1.5rem 1.2rem 1.5rem;
  margin: 0;
  animation: fadeIn 0.3s ease;
}

.guide-section details.faq-item > ul {
  padding-left: 2.5rem;
  background: transparent;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Guide Images */
.guide-image {
  margin: 1.5rem 0;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.guide-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border: 1px solid #e0e0e0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.btn {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: var(--white);
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

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

/* Footer */
footer {
  background: var(--dark-color);
  color: var(--white);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-section p {
  opacity: 0.8;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.footer-section ul li a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 0 15px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .page-content h1 {
    font-size: 2.2rem;
  }

  .page-content h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .navbar {
    position: relative;
  }

  .navbar .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
    order: 3;
  }

  .nav-brand {
    width: auto;
    margin-bottom: 0;
    order: 1;
  }

  .nav-brand .logo {
    height: 40px;
  }

  .nav-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    order: 2;
    margin-left: auto;
    margin-right: 0.5rem;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(
      135deg,
      var(--primary-color),
      var(--secondary-color)
    );
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 1rem 15px;
    z-index: 1000;
    order: 4;
    margin-top: 0;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 0.8rem 0;
    font-size: 1rem;
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-menu a:last-child {
    border-bottom: none;
  }

  .btn-login,
  .btn-register {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .hero {
    padding: 2.5rem 0;
  }

  .hero h1 {
    font-size: 1.8rem;
    line-height: 1.3;
    padding: 0 10px;
  }

  .hero-subtitle {
    font-size: 1rem;
    padding: 0 10px;
  }

  .hero-features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 0 10px;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .feature-card h3 {
    font-size: 1.3rem;
  }

  .content-section {
    padding: 2.5rem 0;
  }

  .content-section h2,
  .faq-section h2 {
    font-size: 1.6rem;
    padding: 0 10px;
  }

  .content-section p {
    font-size: 1rem;
    padding: 0 5px;
  }

  .benefits-list li {
    font-size: 1rem;
    padding-left: 1.5rem;
  }

  .content-section ul,
  .container ul,
  .content-section ol,
  .container ol {
    margin: 1.2rem 0;
    padding-left: 1.5rem;
  }

  .content-section ul li,
  .container ul li,
  .content-section ol li,
  .container ol li {
    margin-bottom: 0.6rem;
    font-size: 1rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
  }

  .game-card {
    padding: 1.2rem;
  }

  .game-card h3 {
    font-size: 1.2rem;
  }

  .game-card p {
    font-size: 0.95rem;
  }

  .games-note {
    margin-top: 1.5rem;
    padding: 0.8rem;
    font-size: 0.95rem;
  }

  .faq-section {
    padding: 2.5rem 0;
  }

  .faq-question {
    padding: 1rem;
    font-size: 1rem;
  }

  .faq-answer {
    padding: 0 1rem !important;
    max-height: 0 !important;
    opacity: 0 !important;
  }

  .faq-item.active .faq-answer {
    max-height: 500px !important;
    padding: 1rem !important;
    opacity: 1 !important;
  }

  .faq-answer p {
    font-size: 0.95rem;
  }

  .page-content {
    padding: 2rem 0;
  }

  .page-content h1 {
    font-size: 1.8rem;
    padding: 0 10px;
  }

  .page-content h2 {
    font-size: 1.5rem;
    padding: 0 10px;
  }

  .page-content h3 {
    font-size: 1.2rem;
    padding: 0 10px;
  }

  .page-content p {
    font-size: 1rem;
    padding: 0 10px;
  }

  .page-content ul,
  .page-content ol {
    padding-left: 1.5rem;
    padding-right: 10px;
  }

  .guide-image {
    margin: 1.5rem 0;
    padding: 0 10px;
  }

  .contact-form {
    padding: 0 10px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-section {
    margin-bottom: 1rem;
  }

  .footer-bottom {
    padding-top: 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .nav-brand .logo {
    height: 35px;
  }

  .nav-actions {
    gap: 0.4rem;
    margin-right: 0.3rem;
  }

  .btn-login,
  .btn-register {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero h1 {
    font-size: 1.5rem;
    padding: 0 5px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    padding: 0 5px;
  }

  .feature-card {
    padding: 1.2rem;
  }

  .feature-card h3 {
    font-size: 1.1rem;
  }

  .feature-card p {
    font-size: 0.9rem;
  }

  .content-section,
  .faq-section,
  .page-content {
    padding: 1.5rem 0;
  }

  .content-section h2,
  .faq-section h2,
  .page-content h1 {
    font-size: 1.4rem;
  }

  .page-content h2 {
    font-size: 1.3rem;
  }

  .page-content h3,
  .guide-section h3 {
    font-size: 1.1rem;
  }

  .page-content p,
  .guide-section p {
    font-size: 0.95rem;
  }

  .guide-image {
    margin: 1rem 0;
    padding: 0;
  }

  .guide-image img {
    border-radius: 4px;
  }

  .faq-question {
    padding: 0.9rem;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 0.9rem !important;
    max-height: 0 !important;
    opacity: 0 !important;
  }

  .faq-item.active .faq-answer {
    max-height: 500px !important;
    padding: 0.9rem !important;
    opacity: 1 !important;
  }

  .faq-answer p {
    font-size: 0.9rem;
  }

  .content-section ul,
  .container ul,
  .content-section ol,
  .container ol {
    margin: 1rem 0;
    padding-left: 1.2rem;
  }

  .content-section ul li,
  .container ul li,
  .content-section ol li,
  .container ol li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
  }
}

/* BDG Game APK section */
.safety-banner {
  background: #fff1f2;
  border: 1px solid #fda4af;
  border-left: 5px solid #e11d48;
  padding: 15px;
  margin-bottom: 25px;
  border-radius: 8px;
  color: #9f1239;
  font-size: 14px;
}

.security-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.tag {
  background: #065f46;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.apk-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 16px;
  padding: 32px;
  margin: 28px 0;
  color: #f8fafc;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}

.apk-card-icon {
  width: 72px;
  height: 72px;
  background: #22c55e;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.apk-android-icon {
  width: 40px;
  height: 40px;
  display: block;
}

.apk-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.apk-meta-item {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
}

.apk-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #22c55e;
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s;
}

/* 移动端apk下载按钮居中 */
@media (max-width: 768px) {
  .apk-download-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
  }
}

.apk-download-btn:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

.apk-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.apk-detail-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  background: #f8fafc;
}

.apk-detail-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.apk-detail-card ul {
  margin: 0;
  padding-left: 18px;
}

.apk-detail-card li {
  margin-bottom: 8px;
}

.apk-note {
  font-size: 13px;
  color: #475569;
  margin-top: 10px;
}

.breadcrumb-nav {
  margin-bottom: 10px;
  font-size: 14px;
  color: #64748b;
}

.breadcrumb-nav a {
  color: #0b5ed7;
  text-decoration: none;
}

.breadcrumb-nav span {
  margin: 0 4px;
}

.top-download-cta,
.bottom-download-cta {
  margin: 14px 0 18px;
}

.top-download-cta .apk-download-btn,
.bottom-download-cta .apk-download-btn {
  color: #fff !important;
}

.apk-card-info h3 {
  color: #fff;
}

.rating-display {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 6px 0 10px;
}

.stars {
  color: #f59e0b;
  letter-spacing: 2px;
}

.rating-value {
  font-weight: 700;
  color: #0f172a;
}

.rating-count {
  color: #475569;
}

.compat-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.compat-table th,
.compat-table td {
  border: 1px solid #cbd5e1;
  padding: 8px;
  text-align: left;
  font-size: 14px;
}

.compat-table th {
  background: #e2e8f0;
}

.checksum-block {
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.trust-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.trust-badge {
  background: #ecfeff;
  color: #155e75;
  border: 1px solid #a5f3fc;
  border-radius: 999px;
  font-size: 12px;
  padding: 6px 12px;
  font-weight: 600;
}

.report-issue {
  margin-top: 8px;
  font-size: 14px;
}

.install-section,
.version-timeline,
.spaced-section {
  margin-top: 40px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.resource-card {
  border: 1px solid #e2e8f0;
  padding: 20px;
  border-radius: 12px;
}

.faq-inline .faq-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}

.sticky-download {
  display: none;
}

.apk-meta-label {
  font-size: 11px;
  color: #64748b;
}

.apk-meta-value {
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 768px) {
  .sticky-download {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1200;
    background: #1e293b;
    padding: 12px;
    text-align: center;
  }

  .sticky-download a {
    background: #22c55e;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    display: inline-block;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 14px;
  }

  .bottom-download-cta {
    margin-bottom: 72px;
  }
}
