/* © qiqicto.com 其其网文档中心 · 未经许可禁止复制分发 */
.home-hero {
  background:
    radial-gradient(84% 130% at 6% -14%, var(--hero-glow) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(64% 96% at 102% -6%, var(--hero-glow-2) 0%, rgba(255, 255, 255, 0) 56%),
    linear-gradient(180deg, var(--hero-bg-a) 0%, var(--hero-bg-b) 100%);
  border-bottom: 1px solid var(--tool-line);
  color: var(--theme-black-color);
  overflow: hidden;
  padding: 56px 0 50px;
  position: relative;
}

.home-hero::before {
  background-image:
    linear-gradient(to right, var(--hero-deco) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hero-deco) 1px, transparent 1px);
  background-size: 46px 46px;
  content: "";
  height: 100%;
  left: 0;
  -webkit-mask-image: radial-gradient(58% 90% at 86% 10%, #000 0%, transparent 74%);
  mask-image: radial-gradient(58% 90% at 86% 10%, #000 0%, transparent 74%);
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 100%;
}
.home-hero-main {
  margin: 0 auto;
  max-width: 780px;
  position: relative;
  text-align: center;
  z-index: 1;
}
.home-hero h1 {
  color: var(--theme-black-color);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -.5px;
  line-height: 1.22;
  margin: 0;
}

.home-hero-accent {
  background-image: linear-gradient(135deg, var(--hero-grad-a), var(--hero-grad-c));
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--hero-grad-c);
  -webkit-text-fill-color: transparent;
}
.home-hero p {
  color: var(--theme-gray-color);
  font-size: 16px;
  line-height: 1.8;
  margin: 14px auto 0;
  max-width: 620px;
}

.home-hero-badge {
  background: var(--hero-chip-bg);
  border: 1px solid var(--hero-chip-line);
  border-radius: 999px;
  color: var(--hero-chip-fg);
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .5px;
  margin-bottom: 18px;
  padding: 6px 15px;
}
.home-hero-badge i { margin-right: 5px; }

.home-search {
  align-items: center;
  background: var(--hero-box-bg);
  border: 1px solid var(--hero-box-line);
  border-radius: 14px;
  box-sizing: border-box;
  box-shadow: var(--hero-box-shadow);
  display: flex;
  gap: 10px;
  margin: 28px auto 0;
  max-width: 620px;
  padding: 6px 6px 6px 18px;
  transition: border-color .2s, box-shadow .2s;
}
.home-search:focus-within {
  border-color: var(--hero-box-line-on);
  box-shadow: var(--hero-box-shadow-on), 0 0 0 4px var(--hero-focus-ring);
}
.home-search-icon {
  color: var(--theme-light-color);
  flex: none;
  font-size: 16px;
  transition: color .2s;
}
.home-search:focus-within .home-search-icon { color: var(--theme-color); }
.home-search-input {
  background: transparent;
  border: 0;
  caret-color: var(--theme-color);
  color: var(--theme-black-color);
  flex: 1 1 auto;
  font-family: inherit;
  font-size: 16px;
  height: 48px;
  min-width: 0;
  outline: 0;
  padding: 0;
}
.home-search-input::placeholder { color: var(--hero-box-ph); }
.home-search-btn {
  background: linear-gradient(135deg, var(--hero-grad-a), var(--hero-grad-b));
  border: 0;
  border-radius: 9px;
  color: #fff;
  cursor: pointer;
  flex: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  height: 42px;
  padding: 0 24px;
  transition: filter .2s, transform .15s, box-shadow .2s;
}
.home-search-btn:hover {
  filter: brightness(1.07);
  box-shadow: 0 6px 16px rgba(3, 54, 74, .28);
}
.home-search-btn:active { transform: translateY(1px); }
.home-search-kbd {
  border: 1px solid var(--tool-line-strong);
  border-radius: 5px;
  color: var(--theme-light-color);
  flex: none;
  font-family: inherit;
  font-size: 11px;
  line-height: 1;
  padding: 5px 7px;
  transition: opacity .15s;
}
.home-search:focus-within .home-search-kbd { opacity: 0; }

.home-hot {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: center;
  margin: 16px auto 0;
  max-width: 640px;
}
.home-hot-label { color: var(--theme-light-color); font-size: 13px; }
.home-hot-chip {
  background: none;
  border: 0;
  color: var(--theme-gray-color);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.7;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color .2s, text-decoration-color .2s;
}
.home-hot-chip:hover,
.home-hot-chip:focus-visible {
  color: var(--theme-color);
  text-decoration-color: currentColor;
}

.home-scenes {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.home-scene-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--tool-line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 10px 16px;
  text-align: center;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.home-scene-ico {
  align-items: center;
  background: var(--tool-accent-weak);
  border-radius: 10px;
  color: var(--theme-color);
  display: flex;
  flex: none;
  font-size: 16px;
  height: 38px;
  justify-content: center;
  transition: background .2s, color .2s;
  width: 38px;
}
.home-scene-txt {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.home-scene-txt b {
  color: var(--theme-black-color);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.home-scene-txt em {
  color: var(--theme-light-color);
  font-size: 12px;
  font-style: normal;
  line-height: 1.55;
}
.home-scene-card:hover,
.home-scene-card:focus-visible {
  border-color: var(--tool-accent-line);
  box-shadow: var(--tool-shadow-hover);
  transform: translateY(-2px);
}
.home-scene-card:hover .home-scene-ico,
.home-scene-card:focus-visible .home-scene-ico { background: var(--theme-color); color: #fff; }
.home-scene-card:hover .home-scene-txt b { color: var(--theme-color); }

.doc-toc {
  background: var(--tool-surface);
  border: 1px solid var(--tool-line);
  border-radius: var(--tool-radius-l);
  column-gap: 44px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 22px;
}
.doc-toc-row {
  align-items: center;
  border-top: 1px solid var(--tool-line);
  display: flex;
  gap: 10px;
  padding: 12px 2px;
  text-decoration: none;
}
.doc-toc-row:nth-child(-n+2) { border-top: 0; }
.doc-toc-name {
  color: var(--theme-black-color);
  font-size: 14.5px;
  font-weight: 600;
  transition: color .18s;
}
.doc-toc-dom {
  background: var(--tool-accent-weak);
  border-radius: var(--tool-radius-s);
  color: var(--theme-color);
  flex: none;
  font-size: 11.5px;
  line-height: 1;
  padding: 3px 7px;
}
.doc-toc-cnt {
  color: var(--theme-light-color);
  font-size: 12px;
  margin-left: auto;
  white-space: nowrap;
}
.doc-toc-arrow {
  color: var(--theme-light-color);
  flex: none;
  font-size: 13px;
  opacity: .55;
  transition: color .18s, opacity .18s, transform .18s;
}
.doc-toc-row:hover .doc-toc-name { color: var(--theme-color); }
.doc-toc-row:hover .doc-toc-arrow {
  color: var(--theme-color);
  opacity: 1;
  transform: translateX(3px);
}

.sec > h3 .cat-ico { color: var(--theme-color); font-size: 16px; }
.card h4 { color: var(--theme-black-color); }

.home-about-links {
  align-items: center;
  border-top: 1px dashed var(--tool-line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding-top: 16px;
}
.home-about-links span { color: var(--theme-light-color); font-size: 12.5px; margin-right: 2px; }
.home-about-links a {
  background: var(--tool-surface);
  border: 1px solid var(--tool-line);
  border-radius: 999px;
  color: var(--theme-gray-color);
  font-size: 12.5px;
  line-height: 1;
  padding: 6px 12px;
  text-decoration: none;
  transition: background .18s, border-color .18s, color .18s;
}
.home-about-links a:hover {
  background: var(--tool-accent-weak);
  border-color: var(--tool-accent-line);
  color: var(--theme-color);
}

@media (max-width: 1023px) {
  .home-hero { padding: 44px 0 40px; }
  .home-hero h1 { font-size: 33px; }
  .home-scenes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .home-hero { padding: 32px 0 28px; }
  .home-hero h1 { font-size: 27px; }
  .home-hero p { font-size: 14px; }
  .home-search { gap: 8px; margin-top: 20px; padding: 5px 5px 5px 14px; }
  .home-search-icon { font-size: 14px; }
  .home-search-input { font-size: 16px; height: 42px; }
  .home-search-btn { font-size: 13px; height: 38px; padding: 0 16px; }
  .home-search-kbd { display: none; }
  .home-hot { gap: 5px 13px; margin-top: 12px; }
  .home-hot-chip { font-size: 12px; }
  .home-scenes { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-scene-card { padding: 14px 8px 12px; }
  .home-scene-txt em { display: none; }
  .doc-toc { padding: 0 16px; grid-template-columns: minmax(0, 1fr); }
  .doc-toc-row { padding: 11px 2px; }
  .doc-toc-row:nth-child(2) { border-top: 1px solid var(--tool-line); }
}
@media (max-width: 420px) {
  .home-hero h1 { font-size: 24px; }
  .doc-toc-dom { display: none; }
}
