/* ===== hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #4e8fd2 0%, #2980d4 50%, #5fa6e0 100%);
  color: #ffffff;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 400px at 80% 50%, rgba(255, 255, 255, 0.08), transparent 70%),
    linear-gradient(105deg, transparent 60%, rgba(255, 255, 255, 0.06) 60%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
}
.hero-inner .img-box {
  padding-bottom: 13%;
}
.banner-content {
  z-index: 2;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
}
.hero-words {
  max-width: 1280px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0 24px;
  z-index: 2;
}
.hero-words  {
  font-size: 60px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  text-align: right;
}
.hero-portrait {
  position: absolute;
  right: 0;
  top: 0;
  width: 56%;
  height: 100%;
  background-image: linear-gradient(90deg, transparent 25%, rgba(35, 90, 142, 0.05) 50%, transparent 75%), url('mqqrw1ny-image.png');
  background-size: cover, cover;
  background-position:
    left center,
    center right;
  background-repeat: no-repeat;
  z-index: 1;
}

/* ===== batch grid ===== */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  align-items: stretch;
  min-height: 120px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #ffffff;
  overflow: hidden;
  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(8, 50, 92, 0.1);
  transform: translateY(-1px);
}
.card-thumb {
  background: #f3f4f6;
  display: grid;
  place-items: center;
  color: #9ca3af;
}
.card-thumb svg {
  opacity: 0.45;
}
.card-body {
  padding: 18px 22px 18px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.card-title {
  font-size: 16px;
  font-weight: 500;
  color: #1c1b1a;
  line-height: 1.4;
}
.card-meta {
  font-size: 13px;
  color: #6b7280;
}
.card-go {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  background: var(--accent);
  color: #ffffff;
  border-radius: 4px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease;
}
.card-go:hover {
  background: var(--accent-hover);
}
.card-go:focus-visible {
  outline: 2px solid #235a8e;
  outline-offset: 2px;
}

/* ===== footer ===== */
footer {
  background: var(--footer);
  color: rgba(255, 255, 255, 0.72);
  padding: 32px 24px 24px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.footer-nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.15s ease;
}
.footer-nav a:hover {
  color: #ffffff;
}
.footer-qr {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.footer-qr .img {
  /*width: 96px;*/
  /*height: 96px;*/
  background: #ffffff;
  border-radius: 4px;
  padding: 8px;
  /*display: grid;*/
  /*place-items: center;*/
  /*grid-template-columns: repeat(6, 1fr);*/
  /*gap: 1px;*/
}
.footer-qr .img img {
  width: 96px;
  height: 96px;
  object-fit: cover;
}
.footer-qr .img i {
  width: 100%;
  aspect-ratio: 1;
  background: #15171c;
}
.footer-qr .img i:nth-child(3n + 1) {
  background: #1a4670;
}
.footer-qr .img i:nth-child(7n + 2) {
  background: #c8392b;
}
.footer-qr .img i:nth-child(11n + 4) {
  background: #ffffff;
}
.footer-qr small {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-meta {
  max-width: 1280px;
  margin: 24px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
.footer-meta .icon-beian {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #c8392b;
  flex-shrink: 0;
  display: inline-block;
}
.footer-meta a {
  color: inherit;
}
.footer-badges {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.footer-badge {
  background: linear-gradient(90deg, #2a7a3f 0%, #41a35a 100%);
  color: #ffffff;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-badge.b2 {
  background: linear-gradient(90deg, #1f6dba 0%, #4a8cd8 100%);
}
.footer-badge.b3 {
  background: linear-gradient(90deg, #d96b1f 0%, #e7a85b 100%);
}

/* ===== modal ===== */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.modal-mask.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  background: #ffffff;
  border-radius: 6px;
  width: min(560px, 92vw);
  padding: 28px 36px 32px;
  transform: translateY(8px);
  transition: transform 0.18s ease;
}
.modal-mask.is-open .modal-card {
  transform: translateY(0);
}
.modal-title {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #1c1b1a;
  margin: 0 0 18px;
}
.modal-body {
  background: #f3f7fb;
  border-radius: 4px;
  padding: 18px 22px 22px;
}
.modal-body h3 {
  font-size: 14px;
  font-weight: 600;
  color: #1c1b1a;
  margin: 0 0 12px;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.checklist li {
  font-size: 13px;
  line-height: 1.6;
  color: var(--accent);
  padding-left: 22px;
  position: relative;
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22c55e;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 10px 10px;
  background-repeat: no-repeat;
  background-position: center;
}
.modal-foot {
  text-align: center;
  margin-top: 24px;
}
.modal-btn {
  min-width: 160px;
  padding: 10px 24px;
  background: #9ca3af;
  color: #ffffff;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.06em;
  cursor: not-allowed;
  transition: background 0.15s ease;
}
.modal-btn.is-ready {
  background: var(--accent);
  cursor: pointer;
}
.modal-btn.is-ready:hover {
  background: var(--accent-hover);
}
.modal-btn:focus-visible {
  outline: 2px solid #235a8e;
  outline-offset: 2px;
}

.pro-card .meta {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.pro-card .meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pro-card .meta-row .ic {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--muted-2);
}
.pro-card .meta-row b {
  font-weight: 500;
  color: var(--fg);
  margin-right: 6px;
}
.pill {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 26px;
  padding: 0 12px;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  border: 1px solid;
  align-self: start;
  justify-self: end;
}
.pill.is-active {
  color: var(--ok);
  background: var(--ok-bg);
  border-color: var(--ok-border);
}
.pill.is-upcoming {
  color: var(--info);
  background: var(--info-bg);
  border-color: var(--info-border);
}
/* ===== responsive ===== */
@media (max-width: 960px) {
  .hero-words {
    gap: 28px;
  }
  .hero-words .w {
    font-size: 36px;
    letter-spacing: 0.12em;
  }
  .hero-portrait {
    position: relative;
    width: 100%;
    height: 200px;
    margin-top: 24px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .nav {
    display: none;
  }
}
@media (max-width: 560px) {
  .header-inner {
    padding: 12px 16px;
  }
  .brand-text .zh {
    font-size: 18px;
  }
  .hero-words {
    flex-wrap: wrap;
    gap: 16px;
  }
  .hero-words .w {
    font-size: 30px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
