/* assets/css/custom.css */
/* 自定义样式 - 包含Logo变色功能 */
:root {
    --logo-filter-light: invert(0%) brightness(100%);
    --logo-filter-dark: invert(100%) brightness(200%);
}

.sf-logo {
    height: 32px;
    margin-right: 12px;
    transition: all 0.3s ease;
    filter: var(--logo-filter-dark);
}

.sf-theme-dark .sf-logo {
    filter: var(--logo-filter-light);
}

.sf-home-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    transition: background-image 1s ease;
    opacity: 0.9;
}

.home-bg main {
    position: relative;
    z-index: 1;
    background: transparent;
}

.sf-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1rem;
    flex-direction: column;
}

.sf-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--sf-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    width: 100%;
}

.sf-theme-dark .sf-hero-content {
    background: rgba(30, 30, 30, 0.85);
}

/* 主页Logo和标题样式 */
.sf-logo-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.sf-main-logo {
    height: 80px;
    margin-bottom: 1rem;
    filter: var(--logo-filter-dark);
}

.sf-theme-dark .sf-main-logo {
    filter: var(--logo-filter-light);
}

.sf-logo-title h1 {
    font-size: 3.5rem;
    background: linear-gradient(to right, #4361ee, #06d6a0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}

.sf-tagline {
    font-size: 1.2rem;
    color: var(--sf-text-secondary);
    margin-bottom: 2rem;
}

.sf-search-title {
    color: var(--sf-primary);
    text-decoration: none;
    font-size: 1.25rem;
    transition: color 0.2s;
    display: block;
    margin-bottom: 0.5rem;
}

.sf-search-title:hover {
    color: var(--sf-primary-dark);
    text-decoration: underline;
}

.sf-search-content {
    color: var(--sf-text);
    line-height: 1.7;
    margin: 1rem 0;
}

.sf-search-url {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sf-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--sf-border);
}

.sf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.sf-tag {
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
}

/* 搜索框样式 - 长方形 */
.sf-search-input {
    border-radius: var(--sf-radius-md) !important;
    height: 50px;
    padding: 0 20px;
    font-size: 1.1rem;
    flex-grow: 1;
}

.sf-search-btn {
    border-radius: var(--sf-radius-md) !important;
    height: 50px;
    padding: 0 25px;
    font-size: 1.1rem;
}

/* 主页加长搜索框 */
.sf-long-input {
    width: 600px;
    max-width: 90%;
}

.sf-long-btn {
    min-width: 160px;
}

/* 深色模式优化 */
.sf-theme-dark {
    --sf-bg: #121212;
    --sf-text: #e8e8e8;
    --sf-text-secondary: #b0b0b0;
    --sf-border: #333333;
    --sf-surface: #1e1e1e;
    --sf-card-bg: #1e1e1e;
    --sf-shadow-color: rgba(0, 0, 0, 0.4);
    --sf-navbar-bg: rgba(30, 30, 30, 0.95);
    --sf-modal-bg: rgba(30, 30, 30, 0.9);
    --sf-toast-bg: rgba(30, 30, 30, 0.95);
}

.sf-theme-dark .sf-card {
    background-color: #252525;
}

.sf-theme-dark .sf-tag {
    background-color: rgba(255, 255, 255, 0.1);
}

.sf-theme-dark .sf-alert {
    background-color: rgba(255, 255, 255, 0.05);
}

/* 弹窗容器定位 */
.sf-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
    width: 100%;
}

/* 页脚固定定位 */
.sf-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--sf-surface);
    border-top: 1px solid var(--sf-border);
    z-index: 100;
    padding: 0.5rem 0;
}

body.home-bg .sf-footer {
    position: fixed;
    bottom: 0;
}

@media (max-width: 768px) {
    .sf-hero h1 {
        font-size: 2.5rem;
    }
    
    .sf-navbar-brand span {
        display: none;
    }
    
    .sf-hero-content {
        padding: 1.5rem;
    }
    
    .sf-d-flex.sf-justify-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .sf-navbar-nav {
        display: flex;
        flex-wrap: wrap;
    }
    
    .sf-search-input {
        height: 45px;
        font-size: 1rem;
    }
    
    .sf-search-btn {
        height: 45px;
        padding: 0 15px;
    }
    
    .sf-long-input {
        width: 100%;
    }
    
    .sf-main-logo {
        height: 60px;
    }
}
.sf-a {
  color: var(--sf-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--sf-transition);
  position: relative;
  display: inline-block;
  padding: 0.1rem 0;
}

/* 下划线动画效果 */
.sf-a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--sf-primary);
  transition: width 0.3s ease;
}

.sf-a:hover::after {
  width: 100%;
}

/* 悬停状态 */
.sf-a:hover {
  color: var(--sf-primary-dark);
  transform: translateY(-1px);
}

/* 活动状态 */
.sf-a:active {
  transform: translateY(0);
}

/* 禁用状态 */
.sf-a.disabled {
  color: var(--sf-secondary);
  cursor: not-allowed;
  pointer-events: none;
}

/* 无下划线变体 */
.sf-a.sf-a-no-underline::after {
  display: none;
}

/* 颜色变体 */
.sf-a.sf-a-success {
  color: var(--sf-success);
}
.sf-a.sf-a-success::after {
  background-color: var(--sf-success);
}
.sf-a.sf-a-success:hover {
  color: var(--sf-success);
}

.sf-a.sf-a-danger {
  color: var(--sf-danger);
}
.sf-a.sf-a-danger::after {
  background-color: var(--sf-danger);
}
.sf-a.sf-a-danger:hover {
  color: var(--sf-danger-dark);
}

.sf-a.sf-a-warning {
  color: var(--sf-warning);
}
.sf-a.sf-a-warning::after {
  background-color: var(--sf-warning);
}
.sf-a.sf-a-warning:hover {
  color: var(--sf-warning-dark);
}

/* 按钮式链接 */
.sf-a.sf-a-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--sf-radius-sm);
  background-color: var(--sf-primary);
  color: white;
}
.sf-a.sf-a-btn::after {
  display: none;
}
.sf-a.sf-a-btn:hover {
  background-color: var(--sf-primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 暗色主题适配 */
.sf-theme-dark .sf-a {
  color: var(--sf-primary-light);
}
.sf-theme-dark .sf-a:hover {
  color: var(--sf-primary);
}
/* 移动端英雄区域 - 默认隐藏 */
.sf-mobile-hero {
    display: none;
}

/* 桌面端英雄区域 - 默认显示 */
.sf-desktop-hero {
    display: block;
}

/* 移动端样式 */
@media (max-width: 768px) {
    .sf-desktop-hero {
        display: none;
    }
    
    .sf-mobile-hero {
        display: flex;
        min-height: 60vh;
        padding: 1rem;
    }
    
    .sf-mobile-hero .sf-hero-content {
        padding: 1.5rem;
        width: 100%;
    }
    
    .sf-mobile-hero .sf-logo-title h1 {
        font-size: 2rem;
    }
    
    .sf-mobile-hero .sf-tagline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .sf-mobile-hero .sf-search-input {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .sf-mobile-hero .sf-search-btn {
        width: 100%;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .sf-mobile-hero {
        min-height: 50vh;
    }
    
    .sf-mobile-hero .sf-logo-title h1 {
        font-size: 1.8rem;
    }
    
    .sf-mobile-hero .sf-main-logo {
        height: 50px;
    }
}
/* 图片搜索结果样式 */
.sf-image-link {
    display: block;
    overflow: hidden;
    border-radius: var(--sf-radius-md);
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.sf-image-link:hover {
    transform: scale(1.02);
}

.sf-image-link img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sf-image-link:hover img {
    transform: scale(1.05);
}

.sf-text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sf-text-sm {
    font-size: 0.875rem;
}

/* 图片网格布局 */
.sf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

/* 加载动画 */
.sf-loader {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 0.25rem solid rgba(var(--sf-primary), 0.2);
    border-top: 0.25rem solid var(--sf-primary);
    border-radius: 50%;
    animation: sf-spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes sf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* 图片网格布局 */
.sf-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.sf-image-item {
    display: block;
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #f5f5f5;
}

.sf-image-item:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.sf-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 图片加载状态 */
.sf-image-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.sf-image-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b6b;
    background: #fff;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .sf-image-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .sf-image-item {
        height: 150px;
    }
}
/* ===== 图片搜索专用样式 ===== */

/* 主内容区域 */
.sf-main-content {
    min-height: calc(100vh - 400px);
    position: relative;
    padding-bottom: 80px;
}

/* 图片网格布局 */
.sf-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* 图片卡片 */
.sf-image-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #f8f9fa;
    aspect-ratio: 4/3; /* 保持4:3比例 */
}

.sf-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

/* 图片链接 */
.sf-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

/* 图片容器 */
.sf-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #f5f5f5;
    overflow: hidden;
}

/* 图片样式 */
.sf-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* 图片加载状态 */
.sf-image-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

/* 图片错误状态 */
.sf-image-card .sf-image-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: #e74c3c;
    font-size: 14px;
    text-align: center;
    padding: 10px;
    z-index: 3;
}

.sf-image-card .sf-image-error i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #e74c3c;
}

/* 分页容器 */
.sf-pagination-container {
    position: relative;
    width: 100%;
    padding: 40px 0 30px;
    margin-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* 分页样式 */
.sf-pagination {
    display: flex;
    list-style: none;
    padding: 0;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
}

.sf-page-item {
    display: inline-block;
}

.sf-page-link {
    display: block;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
    background: #fff;
}

.sf-page-link:hover {
    background-color: #f0f5ff;
    color: #3a6eff;
    border-color: #3a6eff;
}

.sf-page-item.active .sf-page-link {
    background-color: #3a6eff;
    color: white;
    border-color: #3a6eff;
    font-weight: 500;
}

/* 加载动画 */
@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 响应式调整 */
@media (max-width: 992px) {
    .sf-image-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .sf-main-content {
        min-height: calc(100vh - 350px);
        padding-bottom: 60px;
    }
    
    .sf-image-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .sf-image-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .sf-pagination-container {
        padding: 30px 0 20px;
    }
}

@media (max-width: 480px) {
    .sf-image-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .sf-page-link {
        padding: 6px 12px;
        font-size: 14px;
    }
}
.sf-image-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #f8f9fa;
    aspect-ratio: 4/3; /* 保持4:3比例 */
}

.sf-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.sf-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #f5f5f5;
    overflow: hidden;
}

.sf-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0; /* 初始透明 */
    transition: opacity 0.5s ease; /* 添加淡入效果 */
}

/* 图片加载状态 */
.sf-image-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    color: #999;
    font-size: 14px;
    z-index: 1;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 图片错误状态 */
.sf-image-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: #e74c3c;
    font-size: 14px;
    text-align: center;
    padding: 10px;
    z-index: 3;
}

.sf-image-error i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #e74c3c;
}
/* 无限滚动加载样式 */
#loadingIndicator {
    margin: 20px 0;
    padding: 20px;
    background-color: var(--sf-surface);
    border-radius: var(--sf-radius-md);
}

#noMoreResults {
    margin: 20px 0;
    padding: 20px;
    color: var(--sf-text-secondary);
}

/* 图片网格布局 */
.sf-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* 图片卡片 */
.sf-image-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #f8f9fa;
    aspect-ratio: 4/3;
}

.sf-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.sf-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.sf-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    background-color: #f5f5f5;
    overflow: hidden;
}

.sf-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* 图片加载状态 */
.sf-image-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    color: #999;
    font-size: 14px;
    z-index: 1;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 图片错误状态 */
.sf-image-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: #e74c3c;
    font-size: 14px;
    text-align: center;
    padding: 10px;
    z-index: 3;
}

.sf-image-error i {
    font-size: 24px;
    margin-bottom: 8px;
    color: #e74c3c;
}
/* 联想词样式 */
.sf-suggestions-container {
    position: relative;
    margin-top: 5px;
}

.sf-suggestions-list {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--sf-card-bg);
    border: 1px solid var(--sf-border);
    border-radius: var(--sf-radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 100;
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.sf-suggestions-list li {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid var(--sf-border);
}

.sf-suggestions-list li:last-child {
    border-bottom: none;
}

.sf-suggestions-list li:hover {
    background-color: rgba(var(--sf-primary), 0.1);
}

/* 热门图片标题 */
.sf-hot-content {
    margin-bottom: 2rem;
}

/* 图片标题 */
.sf-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sf-badge {
    display: inline-block;
    background: var(--sf-danger);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    margin-right: 8px;
}
/* 热搜样式 */
.sf-hot-topics {
    margin-top: 2rem;
    text-align: center;
}

.sf-hot-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.sf-hot-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: rgba(var(--sf-primary), 0.1);
    color: var(--sf-text);
    border-radius: var(--sf-radius-pill);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    border: 1px solid rgba(var(--sf-primary), 0.2);
}

.sf-hot-tag:hover {
    background-color: var(--sf-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.sf-hot-rank {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background-color: var(--sf-primary);
    color: white;
    border-radius: 50%;
    margin-right: 0.5rem;
    font-weight: bold;
    font-size: 0.8rem;
}

/* 联想词样式 */
.sf-search-container {
    position: relative;
    flex-grow: 1;
}

.sf-suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: var(--sf-card-bg);
    border: 1px solid var(--sf-border);
    border-top: none;
    border-radius: 0 0 var(--sf-radius-md) var(--sf-radius-md);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.sf-suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sf-suggestions-list li {
    padding: 8px 12px;
    cursor: default;
    transition: background 0.2s;
}

.sf-suggestions-list li:hover {
    background: rgba(var(--sf-primary), 0.1);
}

.sf-search-input:focus + .sf-suggestions-container {
    display: block;
}
.sf-search-container {
    position: relative;
    width: 100%;
}

/* 联想词容器 */
.sf-suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background: var(--sf-card-bg);
    border: 1px solid var(--sf-border);
    border-top: none;
    border-radius: 0 0 var(--sf-radius-md) var(--sf-radius-md);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

/* 联想词列表 */
.sf-suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 联想词项 */
.sf-suggestions-list li {
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.sf-suggestions-list li:hover {
    background: rgba(var(--sf-primary), 0.1);
}

/* 搜索输入框获得焦点时显示联想框 */
.sf-search-input:focus + .sf-suggestions-container {
    display: block;
}