/*
Theme Name: Nav5
Author: Gemini
Description: A minimalist Bootstrap 5 navigation theme.
Version: 1.0
*/
:root { --bs-body-bg: #f8f9fa; }
body { padding-top: 60px; }
.site-card { transition: transform 0.2s; cursor: pointer; text-decoration: none !important; color: inherit; }
.site-card:hover { transform: translateY(-3px); box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1); }
.sticky-tabs { position: sticky; top: 58px; z-index: 1020; background: rgba(248, 249, 250, 0.9); backdrop-filter: blur(10px); }
/*背景*/
body { margin: 0; min-height: 100vh; background: url('https://t.alcy.cc/ycy') no-repeat center center; background-size: cover; background-attachment: fixed; position: relative; }
body::before { content: ""; position: fixed; inset: 0; background: rgba(255, 255, 255, 0.6); z-index: -1; }
.navbar, .card, .site-card, .sticky-tabs, .form-control { opacity: 0.8; transition: opacity 0.3s ease, transform 0.2s ease; backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); }
/* 保持横向滚动但隐藏条 */
.hide-scrollbar { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }
#cat-nav .nav-link.active { color: #fff !important; background-color: #0d6efd; white-space: nowrap; }
/* 搜索分类 Tab 样式 */
#search-tabs .nav-link.active { color: #0d6efd !important; position: relative; }
#search-tabs .nav-link.active::after { content: ''; position: absolute; bottom: 0; left: 25%; width: 50%; height: 3px; background: #0d6efd; border-radius: 3px; }
/* 搜索目标标签样式 */
.target-item { cursor: pointer; padding: 2px 8px; color: #6c757d; transition: all 0.2s; border-radius: 4px; font-weight: bold; }
.target-item:hover { color: #0d6efd; background: rgba(13, 110, 253, 0.1); }
.active-target { color: #0d6efd !important; }

.xf-cta{position:fixed;left:0;right:0;bottom:10px;z-index:9999;display:flex;justify-content:center;pointer-events:none;padding:0 12px}
.xf-cta a{pointer-events:auto;display:inline-flex;align-items:center;gap:8px;max-width:min(420px,92vw);height:42px;padding:0 14px;
color:#fff;font-weight:700;font-size:13px;line-height:1.25;text-decoration:none;text-align:center;
background:linear-gradient(90deg,#ff4d8d,#ff7a45,#ffb347);border-radius:999px;
box-shadow:0 4px 18px #ff4d8d66;animation:xf-glow 2.4s ease-in-out infinite;position:relative;overflow:hidden}
.xf-cta a span.txt{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.xf-cta a::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.45),transparent);transform:translateX(-120%);animation:xf-shine 2.8s linear infinite}
.xf-cta .xf-btn{flex:0 0 auto;background:#fff;color:#ff4d8d;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:700;animation:xf-bounce 1.6s ease-in-out infinite;position:relative;z-index:1}
@keyframes xf-glow{0%,100%{filter:brightness(1)}50%{filter:brightness(1.12)}}
@keyframes xf-shine{to{transform:translateX(120%)}}
@keyframes xf-bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
@media (prefers-reduced-motion:reduce){.xf-cta a,.xf-cta a::after,.xf-cta .xf-btn{animation:none!important}}
body{padding-bottom:72px}
.hide-scrollbar::-webkit-scrollbar{display:none}
.site-card .badge{font-size:10px;vertical-align:middle}
