/* ============================================
   Spaceship 主题 v1.1 - 深色太空风格导航起始页
   灵感来自 spaceship.com
   增强动态动画效果
   ============================================ */

/* === CSS 变量 === */
:root {
    --bg-primary: #0B0D17;
    --bg-secondary: #111827;
    --bg-card: #151823;
    --bg-card-hover: #1A1F2E;
    --bg-input: #1A1F2E;
    --bg-input-focus: #1E2538;
    --accent-primary: #4F7CFF;
    --accent-secondary: #6366F1;
    --accent-tertiary: #818CF8;
    --gradient-accent: linear-gradient(135deg, #4F7CFF, #6366F1);
    --gradient-hero: radial-gradient(ellipse at 50% 40%, #1A3A6C 0%, #0B0D17 70%);
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-medium: rgba(255, 255, 255, 0.15);
    --shadow-glow: 0 4px 24px rgba(79, 124, 255, 0.25);
    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease;
    --sidebar-width: 220px;
    --header-height: 64px;
}

/* === 全局重置 === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

body {
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-primary); }
img { max-width: 100%; height: auto; }

/* ==============================
   背景层
   ============================== */
.sp-bg-layer {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
}

.sp-bg-layer img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.sp-bg-gradient {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--gradient-hero);
    z-index: 1;
}

.sp-bg-stars {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 2;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 30% 60%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 50% 10%, rgba(255,255,255,0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 40%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 20% 90%, rgba(255,255,255,0.35) 0%, transparent 100%),
        radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.25) 0%, transparent 100%),
        radial-gradient(1px 1px at 80% 15%, rgba(255,255,255,0.4) 0%, transparent 100%),
        radial-gradient(1px 1px at 40% 45%, rgba(255,255,255,0.3) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 15% 55%, rgba(255,255,255,0.45) 0%, transparent 100%);
    animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* === 鼠标跟随光效 === */
.sp-cursor-glow {
    position: fixed;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 124, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 3;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.sp-cursor-glow.active {
    opacity: 1;
}

/* ==============================
   侧边栏
   ============================== */
.sp-sidebar {
    position: fixed;
    left: 0; top: 0;
    height: 100vh;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
}

.sp-sidebar-toggle {
    position: absolute;
    top: 18px; left: 16px;
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 10;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.sp-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: scale(1.05);
}

.sp-sidebar-nav {
    width: 0;
    height: 100vh;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: width var(--transition-normal);
    padding-top: 64px;
}

.sp-sidebar-nav.open {
    width: var(--sidebar-width);
}

.sp-sidebar-nav ul {
    list-style: none;
    padding: 12px 0;
}

.sp-sidebar-nav li { position: relative; }

.sp-sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: var(--transition-fast);
    border-left: 3px solid transparent;
}

.sp-sidebar-nav li a svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.sp-sidebar-nav li a span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sp-sidebar-nav li:hover a,
.sp-sidebar-nav li.active a {
    color: var(--text-primary);
    background: rgba(79, 124, 255, 0.08);
    border-left-color: var(--accent-primary);
}

.sp-sidebar-nav li:hover a svg,
.sp-sidebar-nav li.active a svg {
    opacity: 1;
    color: var(--accent-primary);
}

.sp-sidebar-nav li.active a {
    color: var(--accent-primary);
}

/* ==============================
   顶部导航栏
   ============================== */
.sp-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    z-index: 900;
    background: rgba(11, 13, 23, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-normal);
}

.sp-header.scrolled {
    background: rgba(11, 13, 23, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.sp-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    padding-left: 72px;
}

.sp-header-left {
    display: flex;
    align-items: center;
}

/* === Logo 样式（左移 + 文字） === */
.sp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
    position: relative;
}

.sp-logo:hover { color: var(--text-primary); }

.sp-logo img {
    height: 32px;
    border-radius: var(--radius-sm);
}

.sp-logo-icon {
    color: var(--accent-primary);
    filter: drop-shadow(0 0 8px rgba(79, 124, 255, 0.4));
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(79, 124, 255, 0.4)); }
    50% { filter: drop-shadow(0 0 16px rgba(79, 124, 255, 0.6)); }
}

.sp-logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #FFFFFF 0%, #94A3B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sp-header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sp-nav-link {
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.sp-nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 1px;
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

.sp-nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.sp-nav-link:hover::after {
    width: 20px;
}

.sp-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sp-datetime { text-align: right; }

.sp-time {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.sp-date {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.2;
}

.sp-mobile-menu-btn {
    display: none;
    width: 36px; height: 36px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.sp-mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* ==============================
   主内容区
   ============================== */
.sp-main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding-top: var(--header-height);
}

/* ==============================
   Hero 搜索区
   ============================== */
.sp-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height));
    padding: 80px 24px 60px;
    text-align: center;
}

.sp-hero-glow {
    position: absolute;
    top: 10%; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, rgba(79, 124, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

/* === Hero 粒子容器 === */
.sp-hero-particles {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.sp-hero-particle {
    position: absolute;
    width: 2px; height: 2px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    10% {
        opacity: 0.8;
        transform: scale(1);
    }
    90% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: translateY(-300px) scale(0.5);
    }
}

.sp-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 680px;
}

.sp-hero h1,
.sp-hero .home-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #FFFFFF 0%, #CBD5E1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sp-hero-quote {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    font-weight: 400;
    line-height: 1.6;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.3s forwards;
}

/* ==============================
   搜索引擎切换
   ============================== */
.sp-search-engines {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
}

.sp-engine-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
    font-family: var(--font-family);
    position: relative;
    overflow: hidden;
}

.sp-engine-btn::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(79, 124, 255, 0.1);
    border-radius: 50%;
    transition: width 0.4s ease, height 0.4s ease;
    transform: translate(-50%, -50%);
}

.sp-engine-btn:hover::before {
    width: 200px; height: 200px;
}

.sp-engine-btn:hover {
    border-color: var(--border-light);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.sp-engine-btn.active {
    background: rgba(79, 124, 255, 0.12);
    border-color: rgba(79, 124, 255, 0.3);
    color: var(--text-primary);
    box-shadow: 0 0 16px rgba(79, 124, 255, 0.1);
}

.sp-engine-btn.active::before {
    width: 200px; height: 200px;
}

.sp-engine-btn img, .sp-engine-btn svg {
    width: 16px; height: 16px;
    position: relative;
    z-index: 1;
}

.sp-engine-btn span { position: relative; z-index: 1; }

/* ==============================
   搜索框 - 带旋转边框动画
   ============================== */
.sp-search-box {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

.sp-search-border-glow {
    position: absolute;
    top: -20px; left: -20px;
    right: -20px; bottom: -20px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(79, 124, 255, 0) 0%, transparent 70%);
    pointer-events: none;
    transition: background 0.5s ease;
    z-index: 0;
}

.sp-search-box:hover .sp-search-border-glow,
.sp-search-input-wrap:focus-within ~ .sp-search-border-glow {
    background: radial-gradient(ellipse, rgba(79, 124, 255, 0.08) 0%, transparent 70%);
}

.sp-search-form { position: relative; }

.sp-search-input-wrap {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 4px 4px 4px 20px;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: visible;
}

/* === 旋转边框动画 === */
.sp-search-rotate-border {
    position: absolute;
    top: -3px; left: -3px;
    right: -3px; bottom: -3px;
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 10;
}

.sp-search-rotate-border svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sp-search-rotate-border svg rect {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 0.8s ease;
}

.sp-search-input-wrap:hover .sp-search-rotate-border,
.sp-search-input-wrap:focus-within .sp-search-rotate-border {
    opacity: 1;
    animation: rotateBorder 3s linear infinite;
}

.sp-search-input-wrap:hover .sp-search-rotate-border svg rect,
.sp-search-input-wrap:focus-within .sp-search-rotate-border svg rect {
    stroke-dashoffset: 0;
}

@keyframes rotateBorder {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 搜索框聚焦态 */
.sp-search-input-wrap:focus-within {
    border-color: rgba(79, 124, 255, 0.5);
    background: var(--bg-input-focus);
    box-shadow:
        0 4px 32px rgba(79, 124, 255, 0.15),
        0 0 0 3px rgba(79, 124, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: scale(1.01);
}

.sp-search-input-wrap:hover:not(:focus-within) {
    border-color: rgba(79, 124, 255, 0.25);
    box-shadow:
        0 4px 28px rgba(0, 0, 0, 0.25),
        0 0 0 2px rgba(79, 124, 255, 0.04);
}

.sp-search-icon {
    flex-shrink: 0;
    color: var(--text-muted);
    margin-right: 12px;
    transition: var(--transition-fast);
    position: relative;
    z-index: 5;
}

.sp-search-input-wrap:focus-within .sp-search-icon {
    color: var(--accent-primary);
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.15); }
    60% { transform: scale(0.95); }
}

#search-text {
    flex: 1;
    height: 48px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 400;
    font-family: var(--font-family);
    letter-spacing: 0.01em;
    position: relative;
    z-index: 5;
}

#search-text::placeholder {
    color: var(--text-muted);
    font-weight: 400;
    transition: color var(--transition-fast);
}

.sp-search-input-wrap:focus-within #search-text::placeholder {
    color: rgba(100, 116, 139, 0.5);
}

.sp-search-btn {
    flex-shrink: 0;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-glow);
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.sp-search-btn::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: width 0.4s ease, height 0.4s ease;
    transform: translate(-50%, -50%);
}

.sp-search-btn:hover::before {
    width: 60px; height: 60px;
}

.sp-search-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 32px rgba(79, 124, 255, 0.4);
}

.sp-search-btn:active {
    transform: scale(0.95);
}

.sp-search-btn svg { position: relative; z-index: 1; }

/* === 搜索建议 === */
.sp-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0; right: 0;
    list-style: none;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 8px;
    z-index: 2000;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
}

.sp-suggestions.show {
    display: block;
    animation: fadeInDown 0.25s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.sp-suggestions li {
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sp-suggestions li::before {
    content: '';
    width: 4px; height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.sp-suggestions li:hover,
.sp-suggestions li.selected {
    background: rgba(79, 124, 255, 0.08);
    color: var(--text-primary);
    transform: translateX(4px);
}

.sp-suggestions li:hover::before,
.sp-suggestions li.selected::before {
    background: var(--accent-primary);
    box-shadow: 0 0 6px rgba(79, 124, 255, 0.5);
}

/* === 搜索选项 === */
.sp-search-options {
    display: flex;
    justify-content: center;
}

.sp-option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.sp-option-checkbox { display: none; }

.sp-option-switch {
    position: relative;
    width: 36px; height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: var(--transition-fast);
}

.sp-option-switch::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 16px; height: 16px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.sp-option-checkbox:checked + .sp-option-switch {
    background: rgba(79, 124, 255, 0.3);
}

.sp-option-checkbox:checked + .sp-option-switch::after {
    transform: translateX(16px);
    background: var(--accent-primary);
    box-shadow: 0 0 8px rgba(79, 124, 255, 0.4);
}

/* ==============================
   链接列表区
   ============================== */
.sp-links-section {
    padding: 40px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.sp-links-container {
    background: rgba(21, 24, 35, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 32px;
    transition: var(--transition-normal);
}

.sp-links-container:hover {
    border-color: var(--border-light);
}

.sp-links-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.sp-links-header svg,
.sp-links-header img {
    width: 24px; height: 24px;
    color: var(--accent-primary);
}

.sp-links-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.sp-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

/* === 链接卡片 === */
.sp-link-card {
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.sp-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 卡片扫光效果 */
.sp-link-item::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 124, 255, 0.06), transparent);
    transition: left 0.5s ease;
}

.sp-link-item:hover::before {
    left: 100%;
}

.sp-link-item:hover {
    background: rgba(79, 124, 255, 0.06);
    border-color: rgba(79, 124, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 16px rgba(79, 124, 255, 0.06);
    color: var(--text-primary);
}

.sp-link-icon {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.sp-link-item:hover .sp-link-icon {
    background: rgba(79, 124, 255, 0.1);
    border-color: rgba(79, 124, 255, 0.2);
    box-shadow: 0 0 16px rgba(79, 124, 255, 0.1);
    transform: scale(1.08);
}

.sp-link-icon img {
    width: 28px; height: 28px;
    object-fit: contain;
    border-radius: 4px;
    transition: transform var(--transition-fast);
}

.sp-link-item:hover .sp-link-icon img {
    transform: scale(1.1);
}

.sp-link-icon svg {
    width: 24px; height: 24px;
    color: var(--text-secondary);
}

.sp-link-item:hover .sp-link-icon svg {
    color: var(--accent-primary);
}

.sp-link-info { width: 100%; overflow: hidden; }

.sp-link-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--transition-fast);
}

.sp-link-item:hover .sp-link-name {
    color: var(--text-primary);
}

/* === 今日热榜区 === */
.sp-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px;
}

/* ==============================
   页脚
   ============================== */
.sp-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-subtle);
    padding: 32px 24px;
    margin-top: 40px;
}

.sp-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.sp-footer-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.sp-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 12px;
    transition: var(--transition-fast);
}

.sp-footer-link:hover { color: var(--text-secondary); }
.sp-footer-link svg { opacity: 0.6; }

.sp-footer-bottom p {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.8;
}

/* === 返回顶部 === */
.sp-back-top {
    position: fixed;
    bottom: 32px; right: 32px;
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.sp-back-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sp-back-top:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px);
}

.sp-back-top:hover svg {
    animation: arrowUp 0.6s ease infinite;
}

@keyframes arrowUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* ==============================
   全局动画
   ============================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* === 滚动触发动画 === */
.sp-animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.sp-animate-in.sp-visible {
    opacity: 1;
    transform: translateY(0);
}

.sp-animate-in.sp-visible.sp-animate-delay-1 {
    transition-delay: 0.1s;
}

.sp-animate-in.sp-visible.sp-animate-delay-2 {
    transition-delay: 0.2s;
}

.sp-animate-in.sp-visible.sp-animate-delay-3 {
    transition-delay: 0.3s;
}

/* 链接区域滚动动画 */
.sp-links-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.sp-links-section.sp-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 链接卡片逐个出现 */
.sp-link-card {
    opacity: 0;
    transform: translateY(16px) scale(0.95);
    transition: opacity 0.4s ease, transform 0.4s ease, background var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-normal);
}

.sp-links-section.sp-visible .sp-link-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 页脚动画 */
.sp-footer {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.sp-footer.sp-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================
   响应式
   ============================== */
@media screen and (max-width: 992px) {
    .sp-header-nav { display: none; }
    .sp-mobile-menu-btn { display: flex; }
    .sp-header-inner { padding-left: 24px; }
    .sp-sidebar-toggle { top: 14px; left: 14px; }

    .sp-hero h1, .sp-hero .home-title { font-size: 32px; }

    .sp-links-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 8px;
    }

    .sp-links-container { padding: 20px; }
    .sp-link-item { padding: 12px 6px; }
    .sp-link-icon { width: 38px; height: 38px; }
    .sp-link-icon img { width: 24px; height: 24px; }
    .sp-link-name { font-size: 12px; }
}

@media screen and (max-width: 767px) {
    .sp-hero {
        min-height: auto;
        padding: 48px 16px 32px;
    }

    .sp-hero h1, .sp-hero .home-title { font-size: 26px; }
    .sp-hero-quote { font-size: 13px; margin-bottom: 24px; }

    .sp-search-engines { gap: 4px; margin-bottom: 16px; }
    .sp-engine-btn { padding: 6px 12px; font-size: 12px; }

    .sp-search-input-wrap { padding: 3px 3px 3px 16px; }
    #search-text { height: 42px; font-size: 14px; }
    .sp-search-icon { margin-right: 8px; }
    .sp-search-btn { width: 38px; height: 38px; }

    /* 移动端隐藏旋转边框 */
    .sp-search-rotate-border { display: none; }

    .sp-links-section { padding: 24px 16px; }
    .sp-links-container { padding: 16px; border-radius: var(--radius-lg); }
    .sp-links-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 6px;
    }
    .sp-link-item { padding: 10px 4px; gap: 6px; }
    .sp-link-icon { width: 34px; height: 34px; }
    .sp-link-icon img { width: 20px; height: 20px; }
    .sp-link-name { font-size: 11px; }
    .sp-links-title { font-size: 16px; }

    .sp-back-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
    .sp-datetime { display: none; }

    .sp-cursor-glow { display: none; }
}

@media screen and (max-width: 480px) {
    .sp-hero h1, .sp-hero .home-title { font-size: 22px; }
    .sp-links-grid { grid-template-columns: repeat(3, 1fr); }
    .sp-logo-text { font-size: 16px; }
}

/* === 隐藏原始 bootstrap 冲突样式 === */
.navbar { display: none !important; }
.banner-video { display: none !important; }
.box { display: none !important; }
.bottom-cover { display: none !important; }

/* ==============================
   额外动画效果
   ============================== */

/* 导航栏 Logo 悬停旋转 */
.sp-logo:hover .sp-logo-icon {
    animation: logoSpin 0.6s ease;
}
@keyframes logoSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 搜索引擎按钮点击波纹 */
.sp-engine-btn:active {
    transform: scale(0.95);
}

/* 链接卡片悬停发光边框动画 */
.sp-link-item::after {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(79,124,255,0.3), rgba(99,102,241,0.1), rgba(129,140,248,0.3));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sp-link-item:hover::after {
    opacity: 1;
}

/* 搜索框聚焦时外圈脉冲 */
.sp-search-box::before {
    content: '';
    position: absolute;
    top: -8px; left: -8px; right: -8px; bottom: -8px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(79, 124, 255, 0);
    transition: all 0.4s ease;
    pointer-events: none;
}
.sp-search-input-wrap:focus-within ~ .sp-search-border-glow::before,
.sp-search-box:focus-within::before {
    border-color: rgba(79, 124, 255, 0.15);
    top: -12px; left: -12px; right: -12px; bottom: -12px;
}

/* 链接区域标题装饰线动画 */
.sp-links-header::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 40px; height: 2px;
    background: var(--gradient-accent);
    border-radius: 1px;
    transition: width 0.4s ease;
}
.sp-links-container:hover .sp-links-header::after {
    width: 80px;
}
.sp-links-header { position: relative; }

/* 页脚链接悬停下划线 */
.sp-footer-link {
    position: relative;
}
.sp-footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}
.sp-footer-link:hover::after {
    width: 100%;
}

/* 侧边栏导航项悬停滑动指示器 */
.sp-sidebar-nav li a::after {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(79,124,255,0.08), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sp-sidebar-nav li:hover a::after,
.sp-sidebar-nav li.active a::after {
    opacity: 1;
}

/* 返回顶部按钮呼吸发光 */
.sp-back-top.visible {
    animation: backTopBreathe 2s ease-in-out infinite;
}
@keyframes backTopBreathe {
    0%, 100% { box-shadow: var(--shadow-card); }
    50% { box-shadow: 0 4px 20px rgba(79, 124, 255, 0.15); }
}
.sp-back-top:hover {
    animation: none;
}

/* 时间冒号闪烁 */
.sp-time {
    position: relative;
}

/* 搜索建议项交错入场 */
.sp-suggestions.show li {
    animation: suggestIn 0.2s ease forwards;
    opacity: 0;
}
@keyframes suggestIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}
.sp-suggestions.show li:nth-child(1) { animation-delay: 0s; }
.sp-suggestions.show li:nth-child(2) { animation-delay: 0.03s; }
.sp-suggestions.show li:nth-child(3) { animation-delay: 0.06s; }
.sp-suggestions.show li:nth-child(4) { animation-delay: 0.09s; }
.sp-suggestions.show li:nth-child(5) { animation-delay: 0.12s; }
.sp-suggestions.show li:nth-child(6) { animation-delay: 0.15s; }
.sp-suggestions.show li:nth-child(7) { animation-delay: 0.18s; }
.sp-suggestions.show li:nth-child(8) { animation-delay: 0.21s; }
.sp-suggestions.show li:nth-child(9) { animation-delay: 0.24s; }
.sp-suggestions.show li:nth-child(10) { animation-delay: 0.27s; }
