* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f6f6f6;
  color: #222;
  line-height: 1.6;
}

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

a {
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 100;
}

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


.logo img {
  height: 40px;
  width: auto;
}




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

.main-nav a {
  color: #333;
  font-weight: 600;
}

.main-nav a:hover {
  color: #1f3c88;
}

.hero {
  background: linear-gradient(180deg, #eef4ff 0%, #f6f6f6 100%);
  padding: 56px 0;
  border-bottom: 1px solid #e8e8e8;
}

.hero-inner {
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: 46px;
  line-height: 1.1;
  color: #162447;
}

.hero p {
  margin: 0 0 24px;
  font-size: 18px;
  color: #444;
}

.btn-primary {
  display: inline-block;
  background: #2d6cdf;
  color: white;
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 700;
}

.btn-primary:hover {
  background: #1f57bb;
}

.intro-section {
  background: #ffffff;
  margin: 32px 0;
  padding: 28px;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
}

.intro-section h2 {
  margin-top: 0;
  font-size: 30px;
}

.category-section,
.popular-section {
  margin: 44px 0;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0;
  font-size: 32px;
  color: #1b1b1b;
}

.section-link {
  color: #2d6cdf;
  font-weight: 700;
}

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

.card {
  background: #ffffff;
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
}

.card-body p {
  margin: 0 0 16px;
  font-size: 15px;
  color: #555;
}

.card-button {
  display: inline-block;
  background: #2d6cdf;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
}

.card-button:hover {
  background: #1f57bb;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mini-card {
  background: white;
  border: 1px solid #e7e7e7;
  border-radius: 10px;
  padding: 18px;
  color: #222;
  font-weight: 700;
}

.mini-card:hover {
  border-color: #2d6cdf;
  color: #2d6cdf;
}

.site-footer {
  background: #18253d;
  color: #ffffff;
  margin-top: 60px;
  padding: 48px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}

.site-footer h3,
.site-footer h4 {
  margin-top: 0;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: rgba(255, 255, 255, 0.9);
}

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

.site-footer li {
  margin-bottom: 10px;
}

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

@media (max-width: 980px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    justify-content: center;
    padding: 16px 0;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 34px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }
}
