/* CSS Variables replaced with hardcoded values for compatibility */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
  color: #333344;
  background: #f5f7fa;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul, ol {
  list-style: none;
}

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

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

/* ========== HEADER ========== */
.site-header {
  background: #ffffff;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.header-main {
  display: flex;
  align-items: center;
  gap: 40px;
  flex: 1;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #1a2a6c, #2d4a9e);
  color: #fff;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 900;
}

.logo-text {
  font-size: 22px;
  color: #1a2a6c;
  letter-spacing: 1px;
}

.main-nav ul {
  display: flex;
  gap: 6px;
}

.main-nav a {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  color: #333344;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.main-nav a:hover,
.main-nav .nav-active {
  color: #1a2a6c;
  background: rgba(26,42,108,0.06);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: #1a2a6c;
  cursor: pointer;
  padding: 6px;
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, #0f1b4d 0%, #1a2a6c 50%, #2d4a9e 100%);
  padding: 60px 0;
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 30px;
  align-items: start;
}

.hero-center {
  text-align: center;
  padding: 20px 10px;
}

.hero-center h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
  letter-spacing: 1px;
}

.hero-center p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 28px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, #c0392b, #962d22);
  color: #fff;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(192,57,43,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(192,57,43,0.4);
}

.btn-outline {
  display: inline-block;
  padding: 14px 36px;
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.hero-side {
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 24px 20px;
  backdrop-filter: blur(4px);
}

.hero-side h2 {
  font-size: 17px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.hero-features ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-features li {
  font-size: 14px;
  padding-left: 18px;
  position: relative;
  opacity: 0.9;
}

.hero-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #f0c040;
  font-weight: 700;
}

.hero-recommend ol {
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: rec;
}

.hero-recommend li {
  counter-increment: rec;
  font-size: 14px;
  padding-left: 28px;
  position: relative;
}

.hero-recommend li::before {
  content: counter(rec);
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  background: #d4a017;
  color: #0f1b4d;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-recommend a:hover {
  color: #f0c040;
}

/* ========== SECTIONS ========== */
.section {
  padding: 60px 0;
}

.section-alt {
  background: #ffffff;
}

.section h2 {
  font-size: 28px;
  color: #1a1a2e;
  text-align: center;
  margin-bottom: 10px;
  font-weight: 700;
}

.section-desc {
  text-align: center;
  color: #666680;
  font-size: 15px;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== GRID LAYOUTS ========== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ========== CARDS ========== */
.card {
  background: #ffffff;
  border-radius: 8px;
  padding: 30px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid #e0e4ea;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.card-icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: block;
}

.card h3 {
  font-size: 18px;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  color: #666680;
  line-height: 1.7;
  margin-bottom: 14px;
}

.card-link {
  font-size: 14px;
  color: #1a2a6c;
  font-weight: 600;
  transition: color 0.3s ease;
}

.card-link:hover {
  color: #c0392b;
}

/* ========== GAME CARDS ========== */
.game-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid #e0e4ea;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.game-thumb {
  height: 130px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

.game-thumb-1 { background: linear-gradient(135deg, #1a2a6c, #2d4a9e); }
.game-thumb-2 { background: linear-gradient(135deg, #0f4c3a, #1a8c5a); }
.game-thumb-3 { background: linear-gradient(135deg, #6b1a6b, #a832a8); }
.game-thumb-4 { background: linear-gradient(135deg, #8b4513, #cd853f); }
.game-thumb-5 { background: linear-gradient(135deg, #1a4c8c, #3498db); }
.game-thumb-6 { background: linear-gradient(135deg, #8c1a1a, #c0392b); }
.game-thumb-7 { background: linear-gradient(135deg, #2c3e50, #34495e); }
.game-thumb-8 { background: linear-gradient(135deg, #1a6b4a, #27ae60); }

.game-tag {
  background: #d4a017;
  color: #0f1b4d;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.game-info {
  padding: 16px;
}

.game-info h3 {
  font-size: 16px;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.game-info p {
  font-size: 13px;
  color: #666680;
  margin-bottom: 10px;
  line-height: 1.6;
}

.game-link {
  font-size: 13px;
  color: #1a2a6c;
  font-weight: 600;
}

.game-link:hover {
  color: #c0392b;
}

/* ========== ADVANTAGE CARDS ========== */
.adv-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border: 1px solid #e0e4ea;
}

.adv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.adv-icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
}

.adv-card h3 {
  font-size: 17px;
  color: #1a1a2e;
  margin-bottom: 10px;
}

.adv-card p {
  font-size: 14px;
  color: #666680;
  line-height: 1.7;
}

/* ========== NEWS CARDS ========== */
.news-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  border: 1px solid #e0e4ea;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.news-date {
  background: linear-gradient(135deg, #1a2a6c, #2d4a9e);
  color: #fff;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.news-day {
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.news-month {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 4px;
}

.news-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-body h3 {
  font-size: 16px;
  color: #1a1a2e;
  margin-bottom: 10px;
  line-height: 1.5;
}

.news-body h3 a:hover {
  color: #1a2a6c;
}

.news-body p {
  font-size: 14px;
  color: #666680;
  line-height: 1.7;
  margin-bottom: 12px;
  flex: 1;
}

.news-link {
  font-size: 14px;
  color: #1a2a6c;
  font-weight: 600;
}

.news-link:hover {
  color: #c0392b;
}

/* ========== FAQ ========== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid #e0e4ea;
}

.faq-item h3 {
  font-size: 16px;
  color: #1a1a2e;
  margin-bottom: 10px;
  padding-left: 16px;
  border-left: 3px solid #1a2a6c;
}

.faq-item p {
  font-size: 14px;
  color: #333344;
  line-height: 1.8;
}

/* ========== ABOUT BRIEF ========== */
.about-text {
  max-width: 900px;
  margin: 0 auto;
}

.about-text p {
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 16px;
  text-indent: 2em;
  color: #333344;
}

/* ========== FOOTER ========== */
.site-footer {
  background: #0f1b4d;
  color: rgba(255,255,255,0.8);
  padding: 50px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: #f0c040;
}

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

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}

/* ========== FLOATING BUTTONS ========== */
.site-float {
  position: fixed;
  top: 82px;
  left: 12px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-float-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  border-radius: 8px;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 2px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  transition: all 0.3s ease;
  min-width: 170px;
}

.site-float-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(0,0,0,0.45);
}

.site-float-btn-1 {
  background: linear-gradient(135deg, #8B0000, #CC0000, #8B0000);
}

.site-float-btn-2 {
  background: linear-gradient(135deg, #0D0D5E, #1A1A8C, #0D0D5E);
}

.promo-float {
  position: fixed;
  top: 228px;
  left: 12px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.promo-btn {
  display: block;
  padding: 10px 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.promo-btn:hover {
  transform: scale(1.05);
}

.promo-btn-1 {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.promo-btn-2 {
  background: linear-gradient(135deg, #e67e22, #d35400);
}

.promo-btn-3 {
  background: linear-gradient(135deg, #f39c12, #d4a017);
}

.util-float {
  position: fixed;
  top: 100px;
  right: 12px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.util-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #ffffff;
  color: #1a2a6c;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.util-btn:hover {
  background: #1a2a6c;
  color: #fff;
  transform: scale(1.1);
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  background: #ffffff;
  border-bottom: 1px solid #e0e4ea;
  padding: 12px 0;
  font-size: 14px;
  color: #666680;
}

.breadcrumb a {
  color: #1a2a6c;
}

.breadcrumb a:hover {
  color: #c0392b;
}

/* ========== SUBPAGE H1 ========== */
.section h1 {
  font-size: 28px;
  color: #1a1a2e;
  text-align: center;
  margin-bottom: 10px;
  font-weight: 700;
}

/* ========== CONTACT PAGE ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid #e0e4ea;
}

.contact-info-card h3 {
  font-size: 17px;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.contact-info-card p {
  font-size: 14px;
  color: #333344;
  line-height: 1.8;
  margin-bottom: 8px;
}

/* ========== LEGAL PAGE ========== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h3 {
  font-size: 18px;
  color: #1a1a2e;
  margin: 30px 0 12px;
}

.legal-content p {
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 14px;
  color: #333344;
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 14px;
}

.legal-content li {
  font-size: 15px;
  line-height: 1.8;
  color: #333344;
  margin-bottom: 6px;
  list-style: disc;
}

/* ========== RESPONSIVE - TABLET ========== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-side {
    display: none;
  }

  .hero-center h1 {
    font-size: 28px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== RESPONSIVE - MOBILE ========== */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .header-inner {
    height: 60px;
  }

  .header-main {
    gap: 0;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 12px 16px;
  }

  .main-nav.nav-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e4ea;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 40px 0;
  }

  .hero-center h1 {
    font-size: 22px;
  }

  .hero-center p {
    font-size: 14px;
  }

  .hero-btns {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .btn-primary,
  .btn-outline {
    padding: 12px 30px;
    font-size: 15px;
    width: 80%;
    text-align: center;
  }

  .section {
    padding: 40px 0;
  }

  .section h2 {
    font-size: 22px;
  }

  .section-desc {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .site-float {
    top: auto;
    bottom: 140px;
    left: 8px;
    gap: 8px;
  }

  .site-float-btn {
    padding: 10px 18px;
    font-size: 13px;
    min-width: 130px;
    letter-spacing: 1px;
  }

  .promo-float {
    top: auto;
    bottom: 80px;
    left: 8px;
  }

  .promo-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .util-float {
    top: auto;
    bottom: 80px;
    right: 8px;
  }

  .util-btn {
    width: 38px;
    height: 38px;
    font-size: 12px;
  }

  .about-text p {
    font-size: 14px;
  }

  .logo-text {
    font-size: 18px;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-center h1 {
    font-size: 20px;
  }

  .promo-float {
    left: 4px;
  }

  .util-float {
    right: 4px;
  }
}
