.alg-intro * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.alg-intro img {
  display: block;
  max-width: 100%;
}
.alg-intro a {
  text-decoration: none;
  color: inherit;
}
body {
  margin: 0;
}

:root {
  --ink: #163a78;
  --ink-2: #5a6577;
  --line: #e7edf6;
  --surface: #ffffff;
  --surface-2: #f5f8fd;
  --primary: #1759b5;
  --primary-soft: #eaf2ff;
  --fontCN:
    "Noto Sans SC", -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --shadow-sm: 0 10px 24px -16px rgba(23, 50, 105, 0.22);
  --shadow-md: 0 18px 44px -20px rgba(23, 50, 105, 0.25);
}

.alg-intro {
  font-family: var(--fontCN);
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}
.alg-intro .wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

.hero {
  position: relative;
  width: 100%;
  padding: 0 0 34px;
  overflow: hidden;
}
.hero-banner {
  position: relative;
  min-height: 320px;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.1),
      rgba(255, 255, 255, 0.08)
    ),
    url("../images/banner_algorithm.png") center/cover no-repeat;
  box-shadow: 0 18px 46px -28px rgba(35, 82, 155, 0.35);
}
.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.14)
  );
}
.hero-copy {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%);
  width: min(760px, calc(100% - 64px));
  text-align: center;
  z-index: 1;
}
.hero-copy h1 {
  font-size: 42px;
  line-height: 1.14;
  color: #1558b5;
  font-weight: 800;
  margin-bottom: 16px;
}
.hero-copy p {
  font-size: 16px;
  line-height: 1.9;
  color: #41536c;
}
.hero-copy .hero-highlight {
  color: #1558b5;
  font-weight: 700;
}

.section {
  padding: 44px 0 18px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title h2 {
  font-size: 28px;
  line-height: 1.1;
  color: #1558b5;
  font-weight: 800;
}
.section-title .pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #4d7cc8;
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(65, 117, 194, 0.08);
}
.section-subtitle {
  font-size: 14px;
  color: #515f73;
  margin-top: 10px;
}
.algo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 18px;
}
.algo-card {
  min-height: 168px;
  border: 1px solid #dce4ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}
.algo-card:hover {
  transform: translateY(-4px);
  border-color: #bfd4f4;
  box-shadow: 0 18px 38px -24px rgba(23, 50, 105, 0.28);
}
.algo-thumb {
  position: relative;
  margin: 8px;
  border-radius: 6px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(226, 238, 255, 0.92), rgba(245, 249, 255, 0.98));
}
.algo-thumb::before {
  content: "";
  display: block;
  padding-top: 62%;
}
.algo-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.algo-thumb.is-empty::after {
  content: "\6682\65E0\7F29\7565\56FE";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7e91ab;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.algo-name {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 10px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #273243;
}
.algo-card--pending {
  justify-content: center;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96));
}
.algo-pending {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 24px;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
  color: #2a67c0;
  text-align: center;
}

.knowledge {
  margin-top: 28px;
  padding: 52px 0 56px;
  background: #f6f9ff;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.feature {
  min-height: 152px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 36px -24px rgba(35, 82, 155, 0.24);
  padding: 32px 36px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f3f6fb;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
}
.feature-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.feature-copy {
  padding-top: 2px;
}
.feature h3 {
  font-size: 20px;
  color: #1558b5;
  margin-bottom: 12px;
  font-weight: 800;
}
.feature p {
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-2);
}
.feature p strong {
  color: #1e4f9e;
  font-weight: 800;
  font-size: 1.16em;
}

@media (max-width: 1200px) {
  .algo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero-copy h1 {
    font-size: 34px;
  }
  .hero-copy p {
    font-size: 15px;
  }
  .section-title h2 {
    font-size: 24px;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .algo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .alg-intro .wrap {
    padding: 0 18px;
  }
  .hero {
    padding-bottom: 24px;
  }
  .hero-banner {
    min-height: 260px;
    border-radius: 0 0 10px 10px;
  }
  .hero-copy {
    width: calc(100% - 36px);
  }
  .hero-copy h1 {
    font-size: 28px;
    margin-bottom: 12px;
  }
  .hero-copy p {
    font-size: 13px;
    line-height: 1.8;
  }
  .section {
    padding: 34px 0 12px;
  }
  .section-subtitle {
    font-size: 13px;
  }
  .algo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .algo-card {
    min-height: 146px;
    border-radius: 8px;
  }
  .algo-thumb {
    margin: 6px;
  }
  .algo-name {
    font-size: 12px;
    padding: 0 8px 10px;
  }
  .algo-pending {
    font-size: 16px;
    padding: 18px;
  }
  .knowledge {
    margin-top: 22px;
    padding: 34px 0 40px;
  }
  .feature {
    padding: 20px 18px;
    border-radius: 16px;
    min-height: 132px;
  }
  .feature h3 {
    font-size: 16px;
  }
}
