/* Terra 知识首页专属样式：参考 Finder Validator 的 light 毛玻璃风格，减少持续动画以提升滚动性能 */
.terra-knowledge-page {
  position: relative;
  margin: -0.25rem auto 0;
  padding-bottom: 1.5rem;
  color: #0f172a;
}

.terra-knowledge-page.is-paused .terra-orb-core .terra-orb-surface::before,
.terra-knowledge-page.is-nav-interacting .terra-orb-core .terra-orb-surface::before,
.terra-knowledge-page.is-nav-cloud-stopped .terra-orb-core .terra-orb-surface::before {
  animation-play-state: paused;
  will-change: auto;
}

.terra-knowledge-hero {
  position: relative;
  overflow: hidden;
  contain: layout paint;
  min-height: 360px;
  padding: 2.6rem clamp(1rem, 4vw, 3.2rem);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  background:
    radial-gradient(circle at 10% 0%, rgba(59, 130, 246, 0.14), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(16, 185, 129, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.9) 54%, rgba(241, 248, 255, 0.92));
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
  isolation: isolate;
}

.terra-knowledge-hero::before,
.terra-knowledge-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.terra-knowledge-hero::before {
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.55;
}

.terra-knowledge-hero::after {
  width: 360px;
  height: 360px;
  right: -120px;
  bottom: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.02) 62%, transparent 70%);
}

.terra-knowledge-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.78rem;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 999px;
  color: #2563eb;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.terra-knowledge-title {
  max-width: 760px;
  margin: 1.08rem 0 0;
  color: #111827;
  font-size: clamp(2rem, 4.6vw, 4.45rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.052em;
}

.terra-knowledge-lead {
  max-width: 650px;
  margin: 1.05rem 0 0;
  color: #64748b;
  font-size: clamp(0.98rem, 1.6vw, 1.14rem);
  line-height: 1.78;
}

.terra-knowledge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.55rem;
}

.terra-knowledge-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
  min-height: 44px;
  padding: 0.7rem 1.02rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.terra-knowledge-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.terra-knowledge-btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.terra-knowledge-btn-primary:hover {
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.24);
}

.terra-knowledge-btn-ghost {
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
}

.terra-knowledge-btn-ghost:hover {
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.28);
  background: rgba(239, 246, 255, 0.96);
}

.terra-core-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.68rem;
  max-width: 760px;
  margin-top: 1.35rem;
  padding: 0.55rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
}

.terra-core-nav-item {
  display: flex;
  align-items: center;
  gap: 0.66rem;
  min-height: 70px;
  padding: 0.72rem;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 16px;
  color: #475569;
  background: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.terra-core-nav-item:hover {
  color: #1e293b;
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.24);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  text-decoration: none;
}

.terra-core-nav-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #2563eb;
  background: #eef3ff;
}

.terra-core-nav-item strong,
.terra-core-nav-item small {
  display: block;
}

.terra-core-nav-item strong {
  color: #111827;
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1.2;
}

.terra-core-nav-item small {
  margin-top: 0.2rem;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 650;
  line-height: 1.35;
}

.terra-knowledge-orb {
  position: relative;
  min-height: 292px;
}

.terra-orb-core {
  position: absolute;
  right: 5%;
  top: 50%;
  width: min(320px, 76vw);
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translateY(-50%);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 23%, rgba(255, 255, 255, 0.96) 0 2.2%, transparent 3.4%),
    radial-gradient(circle at 52% 39%, rgba(224, 242, 254, 0.82) 0 1.4%, transparent 2.2%),
    radial-gradient(circle at 35% 30%, #bfdbfe 0%, #60a5fa 34%, #2563eb 68%, #1e3a8a 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    inset -26px -32px 62px rgba(15, 23, 42, 0.34),
    inset 18px 16px 42px rgba(255, 255, 255, 0.28),
    0 18px 46px rgba(15, 23, 42, 0.09);
}

.terra-orb-core::before,
.terra-orb-core::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.terra-orb-core::before {
  inset: -6%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  transform: rotate(-22deg) scaleY(0.42);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.14);
}

.terra-orb-core::after {
  inset: 11%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.1);
  opacity: 0.72;
}

.terra-orb-core .terra-orb-surface {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  overflow: hidden;
  border-radius: inherit;
}

.terra-orb-core .terra-orb-surface::before {
  content: "";
  position: absolute;
  top: 8%;
  left: 0;
  width: 240%;
  height: 84%;
  background:
    radial-gradient(ellipse at 8% 32%, rgba(240, 249, 255, 0.9) 0 4.5%, transparent 5.4%),
    radial-gradient(ellipse at 17% 58%, rgba(219, 234, 254, 0.82) 0 5.2%, transparent 6.1%),
    radial-gradient(ellipse at 29% 42%, rgba(186, 230, 253, 0.72) 0 4.8%, transparent 5.7%),
    radial-gradient(ellipse at 42% 66%, rgba(224, 242, 254, 0.76) 0 4.4%, transparent 5.3%),
    radial-gradient(ellipse at 56% 34%, rgba(240, 249, 255, 0.9) 0 4.5%, transparent 5.4%),
    radial-gradient(ellipse at 65% 58%, rgba(219, 234, 254, 0.82) 0 5.2%, transparent 6.1%),
    radial-gradient(ellipse at 77% 42%, rgba(186, 230, 253, 0.72) 0 4.8%, transparent 5.7%),
    radial-gradient(ellipse at 90% 66%, rgba(224, 242, 254, 0.76) 0 4.4%, transparent 5.3%);
  opacity: 0.92;
  animation: terraSurfaceMove 8s linear infinite;
  will-change: transform;
}

.terra-orb-core .terra-orb-surface::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 26% 20%, rgba(255, 255, 255, 0.34), transparent 24%),
    linear-gradient(104deg, rgba(255, 255, 255, 0.1), transparent 43%, rgba(15, 23, 42, 0.28) 82%);
  pointer-events: none;
}

.terra-orb-lunc-mark,
.terra-orb-classic-mark {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.terra-orb-lunc-mark {
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  color: #1d4ed8;
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.12);
}

.terra-orb-lunc-mark::before,
.terra-orb-lunc-mark::after {
  content: "";
  position: absolute;
}

.terra-orb-lunc-mark::before {
  inset: -9px;
  border-radius: 50%;
  border: 2px solid rgba(250, 204, 21, 0.34);
  border-left-color: transparent;
  transform: rotate(-28deg) scaleY(0.58);
}

.terra-orb-lunc-mark::after {
  width: 9px;
  height: 9px;
  right: 5px;
  top: 13px;
  border-radius: 50%;
  background: #f59e0b;
}

.terra-orb-classic-mark {
  right: 10%;
  bottom: 18%;
  padding: 0.34rem 0.58rem;
  border-radius: 999px;
  color: #d97706;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.12);
}

.terra-orb-core .terra-orb-glow {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background: radial-gradient(circle at 27% 20%, rgba(255, 255, 255, 0.34), transparent 25%);
  pointer-events: none;
}

@keyframes terraSurfaceMove {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.terra-floating-card {
  position: absolute;
  left: 0;
  bottom: 10%;
  max-width: 255px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 18px;
  color: #64748b;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.terra-floating-card strong {
  display: block;
  color: #111827;
  font-size: 1.02rem;
}

.terra-section-heading {
  margin: clamp(2rem, 4.5vw, 3.5rem) 0 1.2rem;
}

.terra-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #2563eb;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.terra-section-title {
  margin: 0.45rem 0 0;
  color: #111827;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.035em;
}

.terra-section-desc {
  max-width: 760px;
  margin: 0.68rem auto 0;
  color: #64748b;
  line-height: 1.76;
}

.terra-topic-card {
  position: relative;
  display: flex;
  content-visibility: auto;
  contain-intrinsic-size: 380px;
  contain: layout paint style;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 22px;
  color: inherit;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.045);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.terra-topic-card:hover {
  color: inherit;
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.26);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  text-decoration: none;
}

.terra-topic-cover {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #eef3ff;
}

.terra-topic-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  content-visibility: auto;
  transform: translateZ(0);
  transition: transform 0.2s ease;
}

.terra-topic-card:hover .terra-topic-cover img {
  transform: scale(1.025);
}

.terra-topic-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 28%, rgba(15, 23, 42, 0.56) 100%);
}

.terra-topic-index {
  position: absolute;
  left: 1rem;
  bottom: 0.86rem;
  z-index: 1;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.terra-topic-body {
  padding: 1.12rem;
}

.terra-topic-body h3 {
  margin: 0;
  color: #111827;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -0.018em;
}

.terra-topic-body p {
  margin: 0.66rem 0 0;
  color: #64748b;
  line-height: 1.68;
  font-size: 0.92rem;
}

.terra-topic-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  color: #2563eb;
  font-weight: 850;
}

.terra-topic-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 13px;
  color: #2563eb;
  background: #eef3ff;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.terra-topic-card:hover .terra-topic-icon {
  transform: translateX(2px);
  background: #dbeafe;
}

@media (prefers-reduced-motion: reduce) {
  .terra-knowledge-btn,
  .terra-core-nav-item,
  .terra-topic-card,
  .terra-topic-cover img,
  .terra-topic-icon {
    transition: none;
  }


  .terra-knowledge-btn:hover,
  .terra-core-nav-item:hover,
  .terra-topic-card:hover,
  .terra-topic-card:hover .terra-topic-cover img,
  .terra-topic-card:hover .terra-topic-icon {
    transform: none;
  }
}

@media (max-width: 991.98px) {
  .terra-knowledge-hero {
    min-height: auto;
  }

  .terra-core-nav {
    max-width: none;
  }

  .terra-knowledge-orb {
    min-height: 245px;
    margin-top: 1.1rem;
  }

  .terra-orb-core {
    right: 50%;
    transform: translate(50%, -50%);
    width: min(260px, 72vw);
  }

  .terra-floating-card {
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(280px, 88vw);
  }
}

@media (max-width: 575.98px) {
  .terra-knowledge-page {
    margin-top: -0.65rem;
  }

  .terra-knowledge-hero {
    padding: 1.8rem 1rem 1.55rem;
    border-radius: 22px;
  }

  .terra-knowledge-actions {
    flex-direction: column;
  }

  .terra-knowledge-btn {
    width: 100%;
  }

  .terra-core-nav {
    grid-template-columns: 1fr;
    gap: 0.58rem;
    margin-top: 1.08rem;
    padding: 0.45rem;
  }

  .terra-core-nav-item {
    min-height: 62px;
  }

  .terra-topic-cover {
    height: 168px;
  }

  .terra-topic-body {
    padding: 1rem;
  }
}
