/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #334155;
  background-color: #ffffff;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ===== Layout ===== */
.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 32px;
  }
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e2e8f0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #0f172a;
  font-size: 16px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #1a4b8c, #0f3460);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  transition: color 0.2s;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: #1a4b8c;
  border-bottom-color: #1a4b8c;
}

.nav-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #475569;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.nav-mobile {
  display: none;
  background-color: rgba(255,255,255,0.98);
  border-top: 1px solid #e2e8f0;
  padding: 16px 24px;
}

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

.nav-mobile a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  border-bottom: 1px solid #f1f5f9;
}

.nav-mobile a.active {
  color: #1a4b8c;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #1a4b8c 0%, #0f3460 50%, #16213e 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
}

.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  padding-top: 128px;
  padding-bottom: 96px;
}

.hero-subtitle {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  color: #93c5fd;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 16px;
}

.hero p {
  font-size: 15px;
  color: #bfdbfe;
  line-height: 1.8;
  margin-bottom: 12px;
  max-width: 560px;
}

.hero p:last-of-type {
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .hero h1 { font-size: 48px; }
  .hero p { font-size: 16px; }
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background-color: #f59e0b;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(245,158,11,0.35);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,158,11,0.45);
}

/* ===== Section ===== */
.section {
  padding: 80px 0;
}

.section-gray {
  background-color: #f8fafc;
}

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.section-title .line {
  width: 48px;
  height: 3px;
  background-color: #1a4b8c;
  border-radius: 2px;
  margin: 0 auto 16px;
}

.section-title p {
  font-size: 15px;
  color: #64748b;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .section { padding: 96px 0; }
  .section-title h2 { font-size: 32px; }
}

/* ===== Cards ===== */
.card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

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

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: rgba(26,75,140,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
  color: #1a4b8c;
}

.card h3 {
  font-size: 17px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
}

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

/* ===== Grid ===== */
.grid-2 {
  display: grid;
  gap: 32px;
}

.grid-3 {
  display: grid;
  gap: 24px;
}

.grid-4 {
  display: grid;
  gap: 24px;
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ===== Stat Box ===== */
.stat-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.stat-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.stat-box .num {
  font-size: 30px;
  font-weight: 700;
  color: #1a4b8c;
  margin-bottom: 4px;
}

.stat-box .label {
  font-size: 13px;
  color: #64748b;
}

/* ===== Tag ===== */
.tag-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  transition: all 0.2s;
}

.tag-item:hover {
  border-color: #cbd5e1;
  background-color: #f1f5f9;
}

.tag-item svg {
  width: 18px;
  height: 18px;
  color: #1a4b8c;
  flex-shrink: 0;
}

/* ===== Game Card ===== */
.game-card {
  padding: 20px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.2s;
}

.game-card:hover {
  border-color: #cbd5e1;
}

.game-card .name {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 4px;
}

.game-card .category {
  font-size: 12px;
  color: #94a3b8;
}

/* ===== Info List ===== */
.info-list {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  max-width: 640px;
  margin: 0 auto;
}

.info-row {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 4px;
  min-width: 100px;
}

.info-value {
  font-size: 14px;
  color: #334155;
}

@media (min-width: 640px) {
  .info-row {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
  .info-label {
    margin-bottom: 0;
  }
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: linear-gradient(135deg, #1a4b8c 0%, #0f3460 100%);
  border-radius: 16px;
  padding: 48px 32px;
}

.cta-banner h3 {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 15px;
  color: #bfdbfe;
  margin-bottom: 28px;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 56px 48px;
  }
  .cta-banner h3 { font-size: 28px; }
  .cta-banner p { margin-bottom: 0; max-width: 480px; }
}

/* ===== Footer ===== */
.footer {
  background-color: #0f172a;
  color: #94a3b8;
}

.footer-grid {
  display: grid;
  gap: 40px;
  padding: 64px 0 48px;
}

.footer h3 {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer h4 {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.footer p,
.footer a {
  font-size: 13px;
  line-height: 1.8;
  color: #94a3b8;
}

.footer a:hover {
  color: #ffffff;
}

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

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 24px 0;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ===== Page Header for Biniao ===== */
.page-header {
  background: linear-gradient(135deg, #0f3460 0%, #1a4b8c 50%, #16213e 100%);
  position: relative;
  overflow: hidden;
}

.page-header-content {
  position: relative;
  padding-top: 128px;
  padding-bottom: 80px;
}

.page-header h1 {
  font-size: 40px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.page-header .website {
  font-size: 18px;
  color: #bfdbfe;
  margin-bottom: 16px;
  font-weight: 500;
}

@media (min-width: 768px) {
  .page-header h1 { font-size: 52px; }
}

/* ===== Culture ===== */
.culture-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.culture-section h3 svg {
  width: 22px;
  height: 22px;
  color: #1a4b8c;
}

.culture-section p {
  font-size: 14px;
  color: #475569;
  line-height: 1.85;
  margin-bottom: 14px;
}

.quote-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 20px;
}

.quote-box .quote {
  font-size: 18px;
  font-weight: 600;
  color: #1a4b8c;
  margin-bottom: 8px;
}

/* ===== Main Content Margin for fixed navbar ===== */
main {
  margin-top: 0;
}

/* ===== Spacing utilities ===== */
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mt-8 { margin-top: 32px; }

/* ===== Two column layout ===== */
.two-col {
  display: grid;
  gap: 48px;
}

@media (min-width: 1024px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* ===== Section heading inline ===== */
.section-heading h2 {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.section-heading .line {
  width: 48px;
  height: 3px;
  background-color: #1a4b8c;
  border-radius: 2px;
  margin-bottom: 20px;
}

.section-heading p {
  font-size: 15px;
  color: #475569;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .section-heading h2 { font-size: 32px; }
}
