/* 文档页：搜索 + 卡片列表（参考截图布局） */

.docs-wrap {
  background: #f7f8fa;
}

/* 本页导航栏白底黑字 */
.docs-wrap .home-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.docs-wrap .home-logo,
.docs-wrap .home-nav,
.docs-wrap .home-nav-item,
.docs-wrap .home-nav-link,
.docs-wrap .home-lang-btn {
  color: rgba(17, 24, 39, 0.92);
}

.docs-wrap .home-nav-item:hover,
.docs-wrap .home-nav-link:hover,
.docs-wrap .home-lang-btn:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #111827;
}

.docs-wrap .home-nav-item-active::after {
  background: #111827;
}

.docs-wrap .home-auth-avatar {
  background: rgba(15, 23, 42, 0.06);
  color: #111827;
}

.docs-wrap .home-auth-avatar:hover {
  background: rgba(15, 23, 42, 0.10);
}

.docs-main {
  padding: 92px 0 56px;
  box-sizing: border-box;
  min-height: 100vh;
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
}

.docs-hero {
  background: #eaf6ec;
  border-radius: 0;
  padding: 72px 0 56px;
  margin: 0 0 18px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.docs-hero-inner {
  display: grid;
  width: min(1200px, calc(100% - 64px));
  margin: 0 auto;
  grid-template-columns: 520px 1fr;
  align-items: center;
  gap: 60px;
}

.docs-hero-cover {
  width: 100%;
  height: 290px;
  object-fit: cover;
  border-radius: 28px;
  display: block;
}

.docs-hero-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 950;
  color: #111827;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.docs-hero-desc {
  font-size: 13px;
  color: rgba(17, 24, 39, 0.56);
  line-height: 1.75;
  margin: 0 0 16px;
}

.docs-hero-link {
  font-size: 12px;
  color: #16a34a;
  text-decoration: none;
  font-weight: 850;
}

.docs-hero-link:hover {
  color: #15803d;
}

.docs-search {
  max-width: none;
  width: 100%;
  margin: 0 0 18px;
  background: rgba(17, 24, 39, 0.06);
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 999px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: none;
}

.docs-search-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  position: relative;
}

.docs-search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  background: rgba(15, 23, 42, 0.26);
  right: 2px;
  bottom: 3px;
  transform: rotate(45deg);
  border-radius: 999px;
}

.docs-search-icon::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid rgba(15, 23, 42, 0.26);
  border-radius: 999px;
  background: transparent;
}

.docs-search-input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 14px;
  background: transparent;
}

.docs-grid {
  display: grid;
  grid-template-columns: 320px 1fr 1fr 1fr;
  grid-auto-rows: auto;
  gap: 18px;
  align-items: start;
}

.docs-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.docs-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
}

.docs-card-cover {
  height: 140px;
  display: flex;
  align-items: flex-end;
  padding: 12px 14px;
  font-weight: 900;
  box-sizing: border-box;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.docs-card-cover-img {
  background-color: #0b1220;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.docs-card-cover-robot { background-image: url("../img/courses/robot.png"); background-color: #ffffff; background-position: center; background-size: cover; }
.docs-card-cover-cover2 { background-image: url("../img/courses/cover2.png"); }
.docs-card-cover-cover3 { background-image: url("../img/courses/cover3.png"); }
.docs-card-cover-cover4 { background-image: url("../img/courses/cover4.png"); }

.docs-card-body {
  padding: 14px 16px 16px;
}

.docs-card-title {
  font-size: 14px;
  font-weight: 900;
  color: #111827;
  margin-bottom: 6px;
}

.docs-card-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.7;
  margin-bottom: 10px;
}

.docs-card-link {
  font-size: 12px;
  color: #16a34a;
  text-decoration: none;
  font-weight: 800;
}

.docs-card-link:hover {
  color: #15803d;
}

.docs-card-feature {
  grid-column: 1;
}

.docs-card-feature-top {
  grid-row: 1;
}

.docs-card-feature-bottom {
  grid-row: 2;
}

.docs-card-hero {
  grid-column: 2;
  grid-row: 1;
}

.docs-card-small {
  grid-row: 2;
}

.docs-card-cover-feature {
  height: 220px;
}

.docs-card-cover-hero {
  height: 140px;
}

@media (max-width: 1200px) {
  .docs-hero {
    padding: 46px 0 34px;
  }
  .docs-hero-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .docs-hero-cover {
    height: 240px;
  }
  .docs-grid {
    grid-template-columns: 1fr 1fr;
  }
  .docs-card-feature,
  .docs-card-hero,
  .docs-card-small {
    grid-column: auto;
    grid-row: auto;
  }
  .docs-card-cover-feature {
    height: 180px;
  }
}

@media (max-width: 640px) {
  .docs-main {
    width: calc(100% - 32px);
    padding: 92px 0 56px;
  }
  .docs-grid {
    grid-template-columns: 1fr;
  }
}

