/* 设计师导航 - 自定义样式 */

/* 全局样式 */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --accent-color: #28a745;
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
    --sidebar-width: 280px;
    --card-border-radius: 8px;
    --card-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --card-transition: all 0.3s ease;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    line-height: 1.6;
}

/* 防止移动端菜单打开时body滚动 */
body.overflow-hidden {
    overflow: hidden;
}

/* 侧边栏样式 */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    width: var(--sidebar-width);
    background: linear-gradient(135deg, var(--gradient-start, #667eea) 0%, var(--gradient-end, #764ba2) 100%);
    color: white;
    transition: width 0.3s ease;
    overflow-x: hidden;
}

/* PC端侧边栏折叠状态 */
.sidebar-collapsed .sidebar {
    width: 60px;
}

/* 侧边栏展开状态的过渡效果 */
main {
    margin-left: var(--sidebar-width);
    padding: 2rem;
    transition: margin-left 0.3s ease, width 0.3s ease;
    width: calc(100% - var(--sidebar-width));
}

/* PC端侧边栏折叠状态 */
.sidebar-collapsed .sidebar {
    width: 60px;
}

.sidebar-collapsed main {
    margin-left: 60px !important;
    width: calc(100% - 60px) !important;
}

/* 确保body级别的折叠状态生效 */
body.sidebar-collapsed main {
    margin-left: 60px !important;
    width: calc(100% - 60px) !important;
}

/* 侧边栏折叠按钮容器 */
.sidebar-toggle-container {
    position: absolute;
    top: 40px;
    right: 10px;
    z-index: 10;
}

/* 侧边栏折叠按钮 */
.sidebar-toggle-btn {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: scale(1.05);
}

.sidebar-toggle-btn:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
    outline: none;
}

/* 折叠状态下的按钮容器调整 */
.sidebar-collapsed .sidebar-toggle-container {
    right: 16px;
}

/* Logo区域样式 */
.sidebar .logo-section {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 折叠状态下的样式调整 */
.sidebar-collapsed .logo-section {
    padding: 0.5rem;
    text-align: center;
}

.sidebar-collapsed .logo-img {
    max-width: 30px;
}

.sidebar-collapsed .logo-text {
    display: none;
}

.sidebar-collapsed .nav-link {
    padding: 0.75rem 0;
    margin: 0.25rem 0;
    text-align: center;
    justify-content: center;
}

.sidebar-collapsed .nav-link span,
.sidebar-collapsed .nav-link .ms-auto,
.sidebar-collapsed .badge-hot {
    display: none;
}

.sidebar-collapsed .nav-link i {
    margin-right: 0;
    font-size: 1.1rem;
}

.sidebar-collapsed .submenu {
    display: none;
}

/* 折叠状态下的工具提示 */
.sidebar-collapsed .nav-link {
    position: relative;
}

.sidebar-collapsed .nav-link:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 0.875rem;
    z-index: 1000;
    margin-left: 10px;
    pointer-events: none;
}

.sidebar-collapsed .nav-link:hover::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: rgba(0, 0, 0, 0.8);
    margin-left: 5px;
    z-index: 1000;
    pointer-events: none;
}



.sidebar .logo-img {
    max-width: 80px;
    height: auto;
    filter: brightness(0) invert(1);
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    margin: 0.25rem 0.5rem;
    border-radius: var(--card-border-radius, var(--border-radius));
    transition: var(--card-transition, var(--transition));
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

/* 子菜单样式 */
.sidebar .submenu {
    padding-left: 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.sidebar .submenu.show {
    max-height: 500px;
}

.sidebar .submenu .nav-link {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}



/* 网站卡片样式 */
.site-card {
    background: white;
    border-radius: var(--card-border-radius, var(--border-radius));
    box-shadow: var(--card-box-shadow, var(--box-shadow));
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--card-transition, var(--transition));
    cursor: pointer;
    border: 1px solid #e9ecef;
}

/* 自定义5列布局 */
@media (min-width: 992px) {
    .col-lg-custom-5 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* 确保5列布局在较小屏幕上正常显示 */
@media (max-width: 991.98px) {
    .col-lg-custom-5 {
        flex: 0 0 50%; /* 平板端回退到2列 */
        max-width: 50%;
    }
}

@media (max-width: 575.98px) {
    .col-lg-custom-5 {
        flex: 0 0 100%; /* 移动端回退到1列 */
        max-width: 100%;
    }
}

.site-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.site-card .site-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.site-card .site-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-card .site-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分类标题样式 */
.category-title {
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
}

.category-title i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    main {
        margin-left: 0 !important;
        padding: 1rem;
        width: 100% !important;
    }
    
    /* 移动端下禁用PC端的折叠状态样式 */
    .sidebar-collapsed main,
    body.sidebar-collapsed main {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    .site-card {
        padding: 1rem;
    }
    
    /* 移动端点击遮罩层关闭侧边栏 */
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 99;
        display: none;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
}

@media (max-width: 576px) {
    .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* 加载动画 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 工具提示样式 */
.tooltip {
    font-size: 0.8rem;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 标签样式 */
.badge-hot {
    background-color: #ff4757;
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    margin-left: 0.5rem;
}

/* 分类区域样式 */
.category-section {
    scroll-margin-top: 100px; /* 为固定导航栏留出空间 */
    padding-top: 1rem;
}

.category-title .site-count {
    font-size: 0.9rem;
    color: #666;
    font-weight: normal;
    margin-left: 0.5rem;
}

/* 推荐标识 */
.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.site-card {
    position: relative; /* 为推荐标识提供定位上下文 */
}

/* 水平布局卡片 */
.site-card-horizontal {
    padding: 1rem 1.5rem;
}

.site-card-horizontal .site-card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-card-horizontal .site-logo-container {
    flex-shrink: 0;
}

.site-card-horizontal .site-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 0;
}

.site-card-horizontal .site-info {
    flex: 1;
    min-width: 0;
}

.site-card-horizontal .site-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-card-horizontal .site-description {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.3;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 垂直布局卡片（默认） */
.site-card-vertical .site-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.site-card-vertical .site-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-card-vertical .site-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 推荐标识调整 */
.site-card-horizontal .featured-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .site-card-horizontal {
        padding: 0.75rem 1rem;
    }
    
    .site-card-horizontal .site-card-content {
        gap: 0.75rem;
    }
    
    .site-card-horizontal .site-logo {
        width: 40px;
        height: 40px;
    }
    
    .site-card-horizontal .site-name {
        font-size: 0.95rem;
    }
    
    .site-card-horizontal .site-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
}

/* ========== 页脚样式 ========== */

.site-footer {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: 3rem;
    padding: 2.5rem 0 1.5rem 0;
    color: #6c757d;
}

.footer-content {
    max-width: 100%;
}

/* 上半部分 */
.footer-upper {
    margin-bottom: 2rem;
}

/* 品牌区域 */
.footer-brand-section {
    text-align: left;
}

.footer-brand-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.footer-brand-text {
    flex: 1;
}

.footer-site-name {
    color: #495057;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-slogan {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* 导航区域 */
.footer-nav-section {
    text-align: left;
}

.footer-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: flex-start;
    align-items: center;
}

.footer-nav-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.footer-nav-link:hover {
    color: #007bff;
    transform: translateY(-1px);
}

.footer-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #007bff;
    transition: width 0.3s ease;
}

.footer-nav-link:hover::after {
    width: 100%;
}

/* 友情链接区域 */
.footer-friend-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.friend-links-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.friend-links-title span {
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    padding-right: 1rem;
    background: #f8f9fa;
    z-index: 2;
}

.friend-links-title::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, #dee2e6, transparent);
    z-index: 1;
}

.friend-links-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem 2rem;
}

.friend-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    background: white;
    display: inline-block;
}

.friend-link:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    border-color: rgba(0, 123, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

/* 分割线 */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #dee2e6, transparent);
    margin: 2rem 0 1.5rem 0;
}

/* 下半部分 */
.footer-lower {
    padding-top: 1rem;
}

.footer-copyright-section {
    text-align: left;
}

.footer-copyright {
    color: #6c757d;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.footer-extra-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
}

.footer-powered {
    color: #6c757d;
    font-size: 0.85rem;
}

.footer-powered strong {
    color: #495057;
}

/* 社交链接 */
.footer-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #e9ecef;
    color: #6c757d;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-btn i {
    font-size: 1rem;
    line-height: 1;
}

.social-btn:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* 底部信息一行布局 */
.footer-bottom-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright-inline {
    color: #6c757d;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-powered-inline {
    color: #6c757d;
    font-size: 0.85rem;
}

.footer-powered-inline strong {
    color: #495057;
}

.beian-link-inline {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.beian-link-inline:hover {
    color: #007bff;
}

.beian-link-inline i {
    margin-right: 0.25rem;
    font-size: 0.75rem;
}

/* 备案信息 */
.beian-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.beian-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.beian-link:hover {
    color: #007bff;
}

.beian-link i {
    margin-right: 0.25rem;
    font-size: 0.75rem;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .footer-nav-section {
        text-align: left;
        margin-top: 1rem;
    }
    
    .footer-nav-links {
        justify-content: flex-start;
    }
    
    .footer-extra-section {
        justify-content: flex-start;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 2rem 0 1rem 0;
        text-align: center;
    }
    
    .footer-brand-section,
    .footer-nav-section,
    .footer-copyright-section,
    .footer-extra-section {
        text-align: center;
    }
    
    .footer-brand-info {
        justify-content: center;
        text-align: center;
    }
    
    .footer-nav-links {
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-extra-section {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }
    
    .beian-links {
        justify-content: center;
    }
    
    .friend-links-list {
        gap: 0.75rem 1.5rem;
        justify-content: center; /* 移动端居中显示 */
    }
    
    .friend-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* 友情链接标题在移动端居中 */
    .friend-links-title {
        text-align: center;
    }
    
    .friend-links-title span {
        padding: 0 1rem;
    }
    
    .friend-links-title::before {
        background: linear-gradient(90deg, transparent, #dee2e6, transparent);
    }
    
    /* 底部信息响应式 */
    .footer-bottom-info {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .footer-copyright-inline {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .site-footer {
        padding: 1.5rem 0 1rem 0;
    }
    
    .footer-brand-info {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .footer-nav-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-nav-link {
        font-size: 0.85rem;
    }
    
    .social-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .beian-links {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .friend-links-list {
        gap: 0.5rem 1rem;
        justify-content: center; /* 小屏幕居中显示 */
    }
    
    .friend-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* 底部信息小屏幕响应式 */
    .footer-copyright-inline {
        flex-direction: column;
        gap: 0.25rem;
        font-size: 0.8rem;
    }
    
    .footer-powered-inline {
        font-size: 0.8rem;
    }
}

/* 导航链接激活状态优化 */
.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 平滑滚动优化 */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* 为固定元素留出空间 */
}

/* 响应式优化 */
@media (max-width: 768px) {
    .category-section {
        scroll-margin-top: 80px;
    }
    
    html {
        scroll-padding-top: 80px;
    }
}

/* 网站状态检测样式 */
.site-status-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-status-container .badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.site-status-container .badge i {
    margin-right: 0.3rem;
}

.site-status-container small {
    font-size: 0.7rem;
    opacity: 0.8;
}

.site-status-container .btn-sm {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    border-radius: 0.25rem;
}

/* 状态动画 */
@keyframes statusPulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.site-status-container .badge.bg-secondary {
    animation: statusPulse 1.5s infinite;
}

/* 状态提示 */
.site-status-container [title] {
    cursor: help;
}

/* ========== 轮播图样式 ========== */

/* 轮播图容器 */
#bannerCarousel {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* 轮播图高度调整 */
#bannerCarousel .bd-placeholder-img,
#bannerCarousel img {
    height: 200px;
    object-fit: cover;
}

/* 响应式高度调整 */
@media (min-width: 768px) {
    #bannerCarousel .bd-placeholder-img,
    #bannerCarousel img {
        height: 250px;
    }
}

@media (min-width: 992px) {
    #bannerCarousel .bd-placeholder-img,
    #bannerCarousel img {
        height: 560px;
    }
}
/* 轮播图文字美化 */
.carousel-caption {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    bottom: 3rem;
    left: 3rem;
    right: 3rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.carousel-caption h5 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

/* 轮播图指示器美化 */
.carousel-indicators {
    bottom: 1.5rem;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background-color: transparent;
    opacity: 0.7;
    transition: all 0.3s ease;
    margin: 0 6px;
}

.carousel-indicators [data-bs-target].active {
    opacity: 1;
    background-color: #ffffff;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.carousel-indicators [data-bs-target]:hover {
    opacity: 0.9;
    transform: scale(1.1);
}

/* 轮播图控制按钮美化 */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.carousel-control-prev {
    left: 2rem;
}

.carousel-control-next {
    right: 2rem;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
}

/* 响应式调整 */
@media (max-width: 768px) {
    .carousel-caption {
        padding: 1.5rem 2rem;
        bottom: 2rem;
        left: 1.5rem;
        right: 1.5rem;
        border-radius: 12px;
    }
    
    .carousel-caption h5 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
    }
    
    .carousel-control-prev {
        left: 1rem;
    }
    
    .carousel-control-next {
        right: 1rem;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 576px) {
    .carousel-caption {
        padding: 1rem 1.5rem;
        bottom: 1.5rem;
        left: 1rem;
        right: 1rem;
        border-radius: 10px;
    }
    
    .carousel-caption h5 {
        font-size: 1.4rem;
        margin-bottom: 0.6rem;
    }
    
    .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }
    
    .carousel-control-prev {
        left: 0.5rem;
    }
    
    .carousel-control-next {
        right: 0.5rem;
    }
}

/* 轮播图动画效果 */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-caption {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 轮播图悬停效果 */
#bannerCarousel:hover .carousel-control-prev,
#bannerCarousel:hover .carousel-control-next {
    opacity: 1;
}

#bannerCarousel .carousel-control-prev,
#bannerCarousel .carousel-control-next {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}
/* 轮播图按钮样式 */
.carousel-btn {
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.carousel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.carousel-btn:active {
    transform: translateY(0);
}

/* 按钮发光效果 */
.carousel-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.carousel-btn:hover::before {
    left: 100%;
}

/* 不同颜色按钮的特殊样式 */
.carousel-btn.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.carousel-btn.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    color: white;
}

.carousel-btn.btn-success {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
}

.carousel-btn.btn-success:hover {
    background: linear-gradient(135deg, #1e7e34, #155724);
    color: white;
}

.carousel-btn.btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #212529;
}

.carousel-btn.btn-warning:hover {
    background: linear-gradient(135deg, #e0a800, #d39e00);
    color: #212529;
}

.carousel-btn.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

.carousel-btn.btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    color: white;
}

.carousel-btn.btn-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.carousel-btn.btn-info:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
    color: white;
}

/* 响应式按钮调整 */
@media (max-width: 768px) {
    .carousel-btn {
        margin-top: 1rem;
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .carousel-btn {
        margin-top: 0.8rem;
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
        border-radius: 25px;
    }
}

/* 按钮动画 */
.carousel-item.active .carousel-btn {
    animation: slideInUp 0.8s ease-out 0.6s both;
}

/* 按钮图标支持 */
.carousel-btn i {
    margin-right: 0.5rem;
}

.carousel-btn i:last-child {
    margin-right: 0;
    margin-left: 0.5rem;
}
/* ========== 搜索功能样式 ========== */

/* 搜索区域 */
.search-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2.5rem 0;
    position: relative;
    margin: 0 -15px;
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

/* 搜索分类标签 - 主分类 */
.search-categories {
    margin-bottom: 1.8rem;
}

.category-tab {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    margin: 0 0.2rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}

.category-tab:hover {
    color: #495057;
    border-bottom-color: #007bff;
}

.category-tab.active {
    color: #007bff;
    border-bottom-color: #007bff;
    font-weight: 600;
}

/* 主搜索框 */
.main-search-box {
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
}

.search-input-wrapper {
    position: relative;
    background: white;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.main-search-input {
    width: 100%;
    height: 44px;
    border: none;
    outline: none;
    padding: 0 50px 0 18px;
    font-size: 0.9rem;
    background: transparent;
}

.main-search-input::placeholder {
    color: #999;
}

.main-search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #FF6B6B;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.main-search-btn:hover {
    background: #FF5252;
    transform: scale(1.05);
}

/* 搜索引擎列表 - 子分类 */
.search-engines-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.search-engine {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.75rem;
    font-weight: 400;
    border-radius: 10px;
    background: rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.search-engine:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.15);
    border-color: rgba(0, 123, 255, 0.3);
}

.search-engine.active {
    color: white;
    background: #007bff;
    border-color: #007bff;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-section {
        display: none;
    }
}

@media (max-width: 576px) {
    .search-section {
        display: none;
    }
}

/* 站内搜索高亮效果 */
.site-card.highlight-search {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 123, 255, 0.3);
    border-color: #007bff;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    transition: all 0.3s ease;
}

/* 搜索结果显示 */
.search-results-display {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    position: relative;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.search-results-header h6 {
    margin: 0;
    font-weight: 600;
    color: #495057;
}

.search-results-list {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.search-result-item:hover {
    background: rgba(0, 123, 255, 0.05);
    border-radius: 4px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.search-result-item:last-child {
    border-bottom: none;
}

/* 排名徽章 */
.search-result-rank {
    flex-shrink: 0;
    align-self: flex-start;
}

.rank-badge {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.rank-gold {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.rank-silver {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.3);
}

.rank-bronze {
    background: linear-gradient(135deg, #cd7f32, #b8860b);
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.3);
}

.rank-normal {
    background: linear-gradient(135deg, #6c757d, #5a6268);
}

/* 搜索结果内容 */
.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-main {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
}

.search-result-type {
    font-size: 0.875rem;
    color: #6c757d;
    margin-right: 0.5rem;
}

.search-result-main strong {
    color: #333;
    margin-right: 0.5rem;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* 匹配类型和分数徽章 */
.match-type-badge,
.score-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 12px;
    font-weight: 500;
}

.match-type-badge {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

.score-badge {
    background: #f3e5f5;
    color: #7b1fa2;
    border: 1px solid #e1bee7;
}

.search-result-meta small {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .search-result-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0;
        gap: 0.5rem;
    }
    
    .search-result-rank {
        align-self: flex-start;
    }
    
    .search-result-content {
        width: 100%;
    }
    
    .search-result-main {
        flex-wrap: wrap;
    }
    
    .search-result-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .search-result-meta small {
        white-space: normal;
        margin-left: 0;
        margin-top: 0.25rem;
        font-size: 0.8rem;
    }
}