/* 文档首页：全宽介绍页 */

.home-page {
  max-width: 100vw;
  margin: -1.5rem -1.5rem 0;
  padding: 0 0 4rem;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.home-page .home-hero {
  text-align: center;
  padding: 72px 24px 56px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(34, 197, 94, 0.12), transparent 55%),
    linear-gradient(180deg, #0a0a0a 0%, #121212 100%);
  color: #f5f5f5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.home-page .home-hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 28px;
}

.home-page .home-hero-brand img {
  width: 72px;
  height: 72px;
}

.home-page .home-hero-brand span {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.home-page .home-hero h1 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 650;
  margin: 0 0 16px;
  line-height: 1.35;
  color: #fff;
}

.home-page .home-hero .home-lead {
  max-width: 720px;
  margin: 0 auto 28px;
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}

.home-page .home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}

.home-page .home-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.home-page .home-cta a:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.home-page .home-cta .primary {
  background: #fff;
  color: #111 !important;
}

.home-page .home-cta .secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.home-page .home-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 820px;
  margin: 0 auto;
}

.home-page .home-tags span {
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.04);
}

.home-page .home-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px 0;
}

.home-page .home-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.home-page .home-section > .home-section-desc {
  margin: 0 0 28px;
  color: var(--nextra-text-secondary, #666);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 720px;
}

:is(html[class~="dark"]) .home-page .home-section > .home-section-desc {
  color: rgba(255, 255, 255, 0.55);
}

.home-page .home-shot {
  margin: 0 auto 28px;
  max-width: 1024px; /* 不超过截图原始宽度，避免放大发虚 */
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fafafa;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

:is(html[class~="dark"]) .home-page .home-shot {
  border-color: rgba(255, 255, 255, 0.1);
  background: #141414;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.home-page .home-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.home-page .home-shot figcaption {
  padding: 12px 16px 14px;
  font-size: 0.875rem;
  color: var(--nextra-text-secondary, #666);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

:is(html[class~="dark"]) .home-page .home-shot figcaption {
  color: rgba(255, 255, 255, 0.5);
  border-top-color: rgba(255, 255, 255, 0.08);
}

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

@media (max-width: 900px) {
  .home-page .home-grid {
    grid-template-columns: 1fr;
  }
}

.home-page .home-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 20px 18px;
  background: rgba(0, 0, 0, 0.02);
}

:is(html[class~="dark"]) .home-page .home-card {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.home-page .home-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 650;
}

.home-page .home-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--nextra-text-secondary, #666);
}

:is(html[class~="dark"]) .home-page .home-card p {
  color: rgba(255, 255, 255, 0.55);
}

.home-page .home-faq .faq-item {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.015);
}

:is(html[class~="dark"]) .home-page .home-faq .faq-item {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.home-page .home-faq .faq-item strong {
  display: block;
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 8px;
}

.home-page .home-faq .faq-body {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--nextra-text-secondary, #666);
}

:is(html[class~="dark"]) .home-page .home-faq .faq-body {
  color: rgba(255, 255, 255, 0.55);
}

.home-page .home-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

:is(html[class~="dark"]) .home-page .home-table-wrap {
  border-color: rgba(255, 255, 255, 0.1);
}

.home-page .home-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.home-page .home-table-wrap th,
.home-page .home-table-wrap td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  vertical-align: top;
}

:is(html[class~="dark"]) .home-page .home-table-wrap th,
:is(html[class~="dark"]) .home-page .home-table-wrap td {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.home-page .home-table-wrap th {
  font-weight: 650;
  background: rgba(0, 0, 0, 0.03);
}

:is(html[class~="dark"]) .home-page .home-table-wrap th {
  background: rgba(255, 255, 255, 0.04);
}

.home-page .home-table-wrap tr:last-child td {
  border-bottom: none;
}
