.ico { width: 16px; height: 16px; flex-shrink: 0; } #search-trigger { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: rgba(0, 0, 0, 0.05); width: min(440px, 40vw); height: 36px; padding: 0 12px; border: none; border-radius: 100px; color: var(--muted-light); font: inherit; font-size: 14px; cursor: pointer; } html.dark #search-trigger { background: rgba(50, 50, 50, 0.1); } #search-trigger kbd { margin-left: auto; font: 600 11px var(--font); color: inherit; } #search-modal { position: fixed; inset: 0; z-index: 100; display: none; } #search-modal.open { display: block; } .search-panel { position: relative; width: min(640px, calc(100vw - 24px)); margin: 52px auto 0; border-radius: 20px; overflow: hidden; background: rgb(210, 210, 210, 0.1) !important; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); } html.dark .search-panel { background: rgb(10, 10, 10, 0.2) !important; backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); } .search-input-row { display: flex; align-items: center; gap: 12px; padding: 18px 20px; } .search-input-row .ico { width: 18px; height: 18px; color: var(--muted-light); } #search-input { flex: 1; border: none; outline: none; background: transparent; color: inherit; font: inherit; font-size: 18px; } #search-results { max-height: 40vh; overflow-y: auto; padding: 0 6px 8px; } .search-label { padding: 8px 14px; font-size: 12px; color: var(--muted-light); } html.dark .search-label { color: var(--muted-dark); } .sr { display: flex; align-items: flex-start; gap: 12px; padding: 8px 12px; border-radius: 12px; } .sr>.ico { margin-top: 3px; } .sr.on { background: rgba(0, 0, 0, 0.06); } .sr-body { min-width: 0; } .sr .t { font-size: 14px; font-weight: 600; line-height: 1.35; } .sr .s { display: -webkit-box; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: var(--muted-light); overflow: hidden; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; } .sr .p { margin-top: 2px; font-size: 12px; line-height: 1.35; color: var(--muted-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } html.dark .sr .s, html.dark .sr .p { color: var(--muted-dark); } .sr .sep { margin: 0 6px; opacity: 0.7; } .sr .hit { font-weight: 700; color: var(--text-light); } html.dark .sr .hit { color: var(--text-dark); } .search-footer { display: flex; gap: 18px; padding: 12px 20px; font-size: 12px; color: var(--muted-light); } html.dark .search-footer { color: var(--muted-dark); } .search-footer .close-hint { margin-left: auto; } .search-footer kbd { margin-right: 4px; padding: 1px 5px; border-radius: 4px; font: 11px var(--font); } .code-wrap { position: relative; } .code-wrap .copy-btn { position: absolute; top: 12px; right: 12px; display: flex; padding: 6px; border: none; border-radius: 8px; background: none; color: var(--muted-light); cursor: pointer; } .code-wrap .copy-btn:hover { background: rgba(0, 0, 0, 0.06); } html.dark .code-wrap .copy-btn { color: var(--muted-dark); } html.dark .code-wrap .copy-btn:hover { background: rgba(255, 255, 255, 0.1); } .code-group { position: relative; margin: 16px 0; border-radius: 20px; background: #f4f4f5; padding: 6px 4px 4px; } html.dark .code-group { background: #0d0d0d; } .code-group-tabs { display: flex; align-items: center; gap: 16px; padding: 4px 6px 6px; } .code-group-tab { position: relative; padding: 6px 2px 8px; font-family: var(--font); font-size: 13px; font-weight: 600; line-height: 16px; border: none; background: none; cursor: pointer; color: #71717a; } .code-group-tab.active { color: var(--text-light); } html.dark .code-group-tab.active { color: #ffffff; } .code-group-tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--text-light); border-radius: 2px; } html.dark .code-group-tab.active::after { background: #ffffff; } .code-group-panels { background: #ffffff; border-radius: 14px; overflow: hidden; } html.dark .code-group-panels { background: #000000; border-color: rgba(255, 255, 255, 0.06); } .cg-copy-btn { position: absolute; top: 10px; right: 14px; display: flex; align-items: center; justify-content: center; padding: 4px; border: none; border-radius: 6px; background: none; color: #71717a; cursor: pointer; } .cg-copy-btn:hover { color: var(--text-light); } html.dark .cg-copy-btn:hover { color: #ffffff; } .code-group-panel { display: none; } .code-group-panel.active { display: block; } main.prose .code-group pre { margin: 0; padding: 16px 20px; border: none; border-radius: 0; background: transparent; color: #e6edf3; } main.prose .code-group pre code { color: inherit; } main.prose blockquote { margin: 16px 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--border-light); color: var(--muted-light); } html.dark main.prose blockquote { border-left-color: var(--border-dark); color: var(--muted-dark); } main.prose blockquote p { margin: 0; color: inherit; } .skeleton-wrap { width: 100%; } .skeleton-line, .skeleton-media { background: linear-gradient(90deg, rgba(0, 0, 0, 0.05) 25%, rgba(0, 0, 0, 0.12) 37%, rgba(0, 0, 0, 0.05) 63%); background-size: 400% 100%; animation: skeletonPulse 1.3s cubic-bezier(0.4, 0, 0.6, 1) infinite; border-radius: 8px; } html.dark .skeleton-line, html.dark .skeleton-media { background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.12) 37%, rgba(255, 255, 255, 0.05) 63%); background-size: 400% 100%; } @keyframes skeletonPulse { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } } .skeleton-eyebrow { width: 90px; height: 16px; margin-bottom: 12px; } .skeleton-title { width: 65%; height: 38px; margin-bottom: 18px; border-radius: 10px; } .skeleton-desc { width: 85%; height: 22px; margin-bottom: 24px; } .skeleton-media { width: 100%; height: 320px; border-radius: 24px; margin: 24px 0; } .skeleton-text { height: 16px; margin: 12px 0; } .w-100 { width: 100%; } .w-90 { width: 90%; } .w-85 { width: 85%; } .w-75 { width: 75%; } .content-animate>* { animation: smoothBlurReveal 0.44s cubic-bezier(0.22, 1, 0.36, 1) both; will-change: filter, opacity, transform; } .content-animate>*:nth-child(1) { animation-delay: 0ms; } .content-animate>*:nth-child(2) { animation-delay: 35ms; } .content-animate>*:nth-child(3) { animation-delay: 70ms; } .content-animate>*:nth-child(4) { animation-delay: 105ms; } .content-animate>*:nth-child(5) { animation-delay: 140ms; } .content-animate>*:nth-child(6) { animation-delay: 175ms; } .content-animate>*:nth-child(7) { animation-delay: 210ms; } .content-animate>*:nth-child(8) { animation-delay: 245ms; } .content-animate>*:nth-child(9) { animation-delay: 280ms; } .content-animate>*:nth-child(n+10) { animation-delay: 315ms; } .content-animate.caught-up>* { animation: none !important; opacity: 1 !important; filter: none !important; transform: none !important; } @keyframes smoothBlurReveal { 0% { opacity: 0; filter: blur(8px); transform: translateY(6px); } 100% { opacity: 1; filter: blur(0px); transform: translateY(0); } } @media (prefers-reduced-motion: reduce) { .content-animate>* { animation: none !important; } .skeleton-line, .skeleton-media { animation: none !important; } } @media (max-width: 900px) { #search-trigger { order: 2; position: static; transform: none; width: auto; padding: 8px; background: transparent; } #search-trigger .ico { font-weight: 900; width: 1.53rem; height: 1.3rem; } html.dark #search-trigger { background: transparent; } #search-trigger span, #search-trigger kbd { display: none; } .search-panel { margin-top: 50px; border-radius: 30px; } .search-footer { display: none; } }