/* 博客文章专用：文末搜索卡 + 右侧浮动按钮。
   共用文章壳（.guide-article、目录、FAQ、表格）仍在 ../assets/css/theme.css，指南页也要用。 */

.guide-find {
  margin: 36px 0 0;
  padding: 22px 20px 18px;
  background: #121410;
  color: #f4f2eb;
  border-radius: 8px;
}

.guide-find .tiny {
  margin: 0 0 4px;
  color: #d6f25c;
}

.guide-find > h2 {
  font-family: var(--display);
  font-size: clamp(1.28rem, 2.2vw, 1.6rem);
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 8px;
  color: #f4f2eb;
}

.guide-find > p:not(.guide-find-jump) {
  margin: 0 0 16px;
  max-width: 36rem;
  color: #c8c6bc;
  font-size: 0.95rem;
  line-height: 1.5;
}

.guide-find .search-card {
  margin: 0;
  padding: 0;
  background: #1c2018;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #f4f2eb;
}

.guide-find .search-field {
  background: transparent;
  border-radius: 0;
  border-right: 1px solid rgba(244, 242, 235, 0.16);
  padding: 12px 16px 10px;
  box-shadow: none;
}

.guide-find .search-field:focus-within,
.guide-find .search-field.is-open {
  background: #24281e;
  box-shadow: inset 0 -3px 0 #d6f25c;
}

.guide-find .search-field label {
  color: #d6f25c;
  letter-spacing: 0.12em;
}

.guide-find .search-field input {
  color: #f4f2eb;
  font-size: 1rem;
}

.guide-find .search-field input::placeholder {
  color: rgba(244, 242, 235, 0.38);
}

.guide-find .search-go {
  min-width: 120px;
  min-height: 64px;
  border-radius: 0;
}

.guide-find .search-suggest {
  border-radius: 0;
  color: var(--ink);
}

.guide-find .search-popular {
  margin-top: 14px;
}

.guide-find .search-popular > span {
  color: rgba(244, 242, 235, 0.45);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.guide-find .search-popular button {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(244, 242, 235, 0.35);
  border-radius: 0;
  padding: 2px 0 3px;
  color: #f4f2eb;
  font-size: 0.88rem;
}

.guide-find .search-popular button:hover {
  color: #d6f25c;
  border-bottom-color: #d6f25c;
  background: transparent;
}

.guide-find-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(244, 242, 235, 0.12);
}

.guide-find-jump a {
  color: #d6f25c;
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
}

.guide-find-jump a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guide-rail {
  position: fixed;
  top: 34%;
  left: calc(50% + 22rem + 20px);
  right: auto;
  z-index: 45;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  pointer-events: none;
  animation: guide-rail-in 0.55s ease 0.35s both;
}

.guide-rail a { pointer-events: auto; }

.guide-rail-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  padding: 0;
  background: transparent;
  color: #f4f2eb;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, padding 0.22s ease, gap 0.22s ease;
}

.guide-rail-btn:hover,
.guide-rail-btn:focus-visible {
  background: #121410;
  gap: 10px;
  padding: 4px 14px 4px 4px;
}

.guide-rail-copy {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  text-align: left;
  white-space: nowrap;
  transition: max-width 0.28s ease, opacity 0.18s ease;
}

.guide-rail-btn:hover .guide-rail-copy,
.guide-rail-btn:focus-visible .guide-rail-copy {
  max-width: 12rem;
  opacity: 1;
}

.guide-rail-copy em {
  display: block;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d6f25c;
}

.guide-rail-copy strong {
  display: block;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.guide-rail-dot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  background: #121410;
  color: #d6f25c;
  box-shadow: 0 10px 24px rgba(18, 20, 16, 0.18);
}

.guide-rail-dot svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guide-rail-btn.is-main .guide-rail-dot {
  background: var(--sun);
  color: #121410;
  animation: guide-rail-pulse 2.2s ease-out infinite;
}

@keyframes guide-rail-in {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes guide-rail-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(214, 242, 92, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(214, 242, 92, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .guide-rail,
  .guide-rail-btn.is-main .guide-rail-dot { animation: none; }
  .guide-rail-btn,
  .guide-rail-copy { transition: none; }
}

@media (max-width: 1319px) {
  .guide-rail { display: none; }
}

@media (max-width: 980px) {
  .guide-find .search-field {
    border-right: 0;
    border-bottom: 1px solid rgba(244, 242, 235, 0.16);
  }
}
