* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.75;
  color: #1f2937;
  background: #f5f7fb;
}

a {
  color: #0b57d0;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 10px 14px;
  z-index: 999;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

header {
  background: #0b1220;
  color: #fff;
}

.topbar {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
}

.brand span {
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle:focus-visible {
  outline: 2px solid #7aa5f7;
  outline-offset: 2px;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  color: #dbe7ff;
  font-size: 14px;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus {
  color: #fff;
  text-decoration: underline;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0;
  padding: 0;
}

nav a {
  color: #dbe7ff;
  font-size: 14px;
}

.hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: 30px 16px 26px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}

.hero-card {
  background: linear-gradient(135deg, #10203d, #0b57d0);
  color: #fff;
  border-radius: 16px;
  padding: 26px;
}

.hero-card h1 {
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.35;
}

.hero-card p {
  margin: 0;
  color: #e7efff;
}

.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  border-radius: 16px;
  object-fit: cover;
}

main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 16px 34px;
}

.section {
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 18px;
}

.section h2 {
  margin-top: 0;
  margin-bottom: 8px;
  line-height: 1.4;
}

.section h3 {
  margin-top: 16px;
  margin-bottom: 6px;
}

.section p {
  margin: 0 0 10px;
}

.section ul {
  padding-left: 18px;
  margin: 8px 0 10px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid #0b57d0;
}

.btn.primary {
  background: #0b57d0;
  color: #fff;
}

.btn.secondary {
  background: #fff;
  color: #0b57d0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  background: #f8fbff;
  border: 1px solid #dbe7ff;
  border-radius: 12px;
  padding: 14px;
}

.form-wrap {
  max-width: 560px;
}

form {
  display: grid;
  gap: 10px;
}

label {
  font-weight: 600;
}

input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cfd7e6;
  border-radius: 10px;
  font-size: 15px;
}

input:focus {
  outline: 2px solid #7aa5f7;
  outline-offset: 1px;
}

footer {
  background: #0a1220;
  color: #c8d1e1;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 16px;
  display: grid;
  gap: 10px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.footer-nav a {
  color: #d5e3ff;
}

.notice {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff7df;
  border: 1px solid #f3d57a;
  color: #6c4f00;
}

.banner-full {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin: 14px 0;
}

.banner-full img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.media-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
  margin: 16px 0;
}

.media-row.reverse {
  direction: rtl;
}

.media-row.reverse > * {
  direction: ltr;
}

.media-row img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  min-height: 200px;
}

.img-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.img-card {
  background: #f8fbff;
  border: 1px solid #dbe7ff;
  border-radius: 12px;
  overflow: hidden;
}

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

.img-card .img-card-body {
  padding: 12px 14px;
}

.img-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.img-card p {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.partner-item {
  background: #fff;
  border: 1px solid #e6ebf3;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

.partner-item img {
  width: 100%;
  height: 80px;
  object-fit: contain;
}

.partner-item figcaption {
  margin-top: 6px;
  font-size: 12px;
  color: #6b7280;
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 16px;
  background: #f8fbff;
  border-radius: 12px;
  border: 1px solid #dbe7ff;
}

.logo-strip img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.page-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.page-layout img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.stat-box {
  background: linear-gradient(135deg, #10203d, #0b57d0);
  color: #fff;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.stat-box strong {
  display: block;
  font-size: 22px;
  margin-bottom: 4px;
}

.stat-box span {
  font-size: 13px;
  color: #dbe7ff;
}

.showcase-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.showcase-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e6ebf3;
}

.showcase-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.showcase-item .showcase-caption {
  padding: 14px 16px;
  background: #f8fbff;
}

.showcase-item h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.showcase-item p {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
}

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}

.anchor-nav a {
  display: inline-block;
  padding: 6px 12px;
  background: #eef4ff;
  border: 1px solid #c7d9ff;
  border-radius: 20px;
  font-size: 13px;
  color: #0b57d0;
}

.anchor-nav a:hover {
  background: #dbe7ff;
  text-decoration: none;
}

.ads-widget {
  background: linear-gradient(135deg, #fff 0%, #f0f6ff 100%);
  border: 1px solid #c7d9ff;
  border-radius: 14px;
  padding: 14px 16px 12px;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(11, 87, 208, 0.08);
}

header .ads-widget {
  max-width: 1160px;
  margin: 0 auto 12px;
  padding: 12px 16px 10px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(199, 217, 255, 0.9);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

header .ads-widget .applist-title {
  color: #0b57d0;
}

#applist {
  text-align: center;
}

#applist .applist-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: #0b57d0;
  letter-spacing: 0.02em;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px 14px;
  background: transparent;
}

#ads .ads-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: 2px solid #fff;
  background: #fff;
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 16px;
  padding: 2px;
}

#ads a:hover img,
#ads a:focus img {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 10px 24px rgba(11, 87, 208, 0.22);
}

#ads figcaption,
#ads .caption {
  margin-top: 6px;
  height: auto;
  min-height: 15px;
  font-size: 11px;
  color: #4b5563;
  text-align: center;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

@media (max-width: 900px) {
  header .ads-widget {
    margin: 0 12px 10px;
    padding: 10px 10px 8px;
  }

  .ads-widget {
    padding: 12px 12px 10px;
    margin-bottom: 14px;
  }

  #ads {
    gap: 8px 10px;
  }

  #ads .ads-item {
    width: 72px;
  }

  #ads img {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 900px) {
  .topbar {
    position: relative;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .primary-nav {
    display: none;
    width: 100%;
    order: 3;
    padding-top: 8px;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
  }

  .primary-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .primary-nav li:last-child {
    border-bottom: none;
  }

  .primary-nav a {
    display: block;
    padding: 14px 16px;
    font-size: 15px;
    color: #e8f0ff;
  }

  body.nav-open {
    overflow: hidden;
  }

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

  .grid-2,
  .cards,
  .media-row,
  .img-grid,
  .partner-grid,
  .page-layout,
  .stats-row,
  .showcase-mosaic {
    grid-template-columns: 1fr;
  }

  .media-row.reverse {
    direction: ltr;
  }
}
