/* 全局样式 */
:root {
    --primary-color: #515c6b;       /* 主要文本颜色 */
    --secondary-color: #282a2d;     /* 次要文本颜色 */
    --accent-color: #3b82f6;        /* 强调色/按钮色 */
    --bg-color: #f9f9f9;            /* 主背景色 */
    --card-bg: #ffffff;             /* 卡片背景色 */
    --sidebar-bg: #f0f2f4;          /* 侧边栏背景色 */
    --border-color: #e5e7eb;        /* 边框颜色 */
    --hover-color: #f3f4f6;         /* 悬停颜色 */
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* 阴影效果 */
}

/* 搜索结果样式 */
.search-results {
    display: none;
    margin-top: 0;
    padding-top: 0; /* 移除顶部内边距 */
    animation: fadeInDown 0.4s ease forwards;
    position: relative;
}

.search-results.active {
    display: block;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px); /* 减小动画位移距离 */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-results-header {
    margin-top: 10px; /* 添加适当的顶部外边距 */
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, var(--accent-color), #6366f1);
    color: white;
    border-radius: 10px;
    text-align: center;
}

.search-results-count {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.search-results-query {
    font-size: 14px;
    opacity: 0.9;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--secondary-color);
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.no-results-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.no-results-suggestions {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--hover-color);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.no-results-suggestions h4 {
    margin-bottom: 10px;
    color: var(--accent-color);
}

.no-results-suggestions ul {
    list-style: none;
    padding: 0;
}

.no-results-suggestions li {
    padding: 5px 0;
    color: var(--secondary-color);
}

/* 加载动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.col-md-4 {
    animation: fadeIn 0.5s ease forwards;
}

.col-md-4:nth-child(1) { animation-delay: 0.1s; }
.col-md-4:nth-child(2) { animation-delay: 0.2s; }
.col-md-4:nth-child(3) { animation-delay: 0.3s; }
.col-md-4:nth-child(4) { animation-delay: 0.4s; }
.col-md-4:nth-child(5) { animation-delay: 0.5s; }
.col-md-4:nth-child(6) { animation-delay: 0.6s; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--primary-color);
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* 侧边栏样式 */
.sidebar {
    width: 180px;
    background-color: var(--card-bg);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    z-index: 1000;
    transition: all 0.3s ease;
    border-right: 1px solid var(--border-color);
    /* 自定义滚动条样式 */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--sidebar-bg);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

/* 为Webkit浏览器（Chrome、Safari等）自定义滚动条 */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--sidebar-bg);
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 6px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background-color: var(--accent-color);
}

.sidebar-header {
    padding: 10px 12px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background-color: var(--card-bg);
    z-index: 1001;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.sidebar-header-spacer {
    height: 20px;
}

.logo-header {
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    color: var(--accent-color);
    transition: all 0.3s ease;
    padding: 5px 8px;
    border-radius: 8px;
}

.logo-header:hover {
    transform: scale(1.05);
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
}

.logo-header img {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 123, 255, 0.2));
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.logo-header:hover img {
    transform: rotate(5deg) scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 123, 255, 0.4));
    animation: pulse 1.5s infinite;
}

/* .logo-link 样式已删除，因为AIAppTool和Logo已迁移到搜索栏区域 */

/* .logo 相关样式已删除，因为AIAppTool和Logo已迁移到搜索栏区域 */

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.sidebar-menu {
    padding: 6px 0;
}

.sidebar-category {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    padding: 8px 12px 4px 18px;
    letter-spacing: 0.05em;
    text-align: left;
}
.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin-bottom: 8px;
}

.sidebar-item {
    margin: 2px 0;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 10px 8px 36px;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 4px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    font-size: 13px;
    text-align: left;
}

.sidebar-item a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 3px 3px 0;
}

.sidebar-item a.active {
    background-color: rgba(59, 130, 246, 0.08);
    color: var(--accent-color);
}

.sidebar-item a.active::before {
    transform: scaleY(1);
}

.sidebar-item a:hover {
    background-color: rgba(59, 130, 246, 0.08);
    color: var(--accent-color);
    transform: translateX(3px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.sidebar-item a:active {
    background-color: rgba(59, 130, 246, 0.12);
    transform: translateX(2px);
}

.icon-fw {
    width: 18px;
    margin-right: 8px;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 0.95em;
}

/* 彩虹色图标样式 */
.sidebar-item:nth-child(1) .icon-fw { /* AI写作工具 */
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.sidebar-item:nth-child(2) .icon-fw { /* AI图像工具 */
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.sidebar-item:nth-child(3) .icon-fw { /* AI视频工具 */
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.sidebar-item:nth-child(4) .icon-fw { /* AI办公工具 */
    background: linear-gradient(45deg, #f093fb, #f5576c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.sidebar-item:nth-child(5) .icon-fw { /* AI智能体 */
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.sidebar-item:nth-child(6) .icon-fw { /* AI聊天助手 */
    background: linear-gradient(45deg, #43e97b, #38f9d7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.sidebar-item:nth-child(7) .icon-fw { /* AI编程工具 */
    background: linear-gradient(45deg, #fa709a, #fee140);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.sidebar-item:nth-child(8) .icon-fw { /* AI设计工具 */
    background: linear-gradient(45deg, #a8edea, #fed6e3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.sidebar-item:nth-child(9) .icon-fw { /* AI音频工具 */
    background: linear-gradient(45deg, #d299c2, #fef9d7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.sidebar-item:nth-child(10) .icon-fw { /* AI搜索引擎 */
    background: linear-gradient(45deg, #89f7fe, #66a6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.sidebar-item:nth-child(11) .icon-fw { /* AI开发平台 */
    background: linear-gradient(45deg, #fdbb2d, #22c1c3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.sidebar-item:nth-child(12) .icon-fw { /* AI学习网站 */
    background: linear-gradient(45deg, #ff9a9e, #fecfef);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.sidebar-item:nth-child(13) .icon-fw { /* AI训练模型 */
    background: linear-gradient(45deg, #a18cd1, #fbc2eb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.sidebar-item:nth-child(14) .icon-fw { /* AI模型评测 */
    background: linear-gradient(45deg, #ffecd2, #fcb69f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.sidebar-item:nth-child(15) .icon-fw { /* AI内容检测 */
    background: linear-gradient(45deg, #ff8a80, #ff80ab);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.sidebar-item:nth-child(16) .icon-fw { /* AI提示指令 */
    background: linear-gradient(45deg, #84fab0, #8fd3f4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* 悬停效果 */
.sidebar-item a:hover .icon-fw {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    background: linear-gradient(45deg, #4f46e5, #3b82f6, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

/* 侧边栏底部样式 */
.sidebar-footer {
    position: sticky;
    bottom: 0;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 8px;
    text-align: center;
    font-size: 10px;
    color: var(--secondary-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
}

.sidebar-footer-links {
    display: flex;
    justify-content: space-around;
    margin-bottom: 6px;
}

.sidebar-footer-links a {
    color: var(--primary-color);
    font-size: 12px;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
}

.sidebar-footer-links a:hover {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.sidebar-footer-text {
    opacity: 0.7;
    font-size: 11px;
}

/* 主内容区样式 */
.main-content {
    flex: 1;
    margin-left: 180px;
    width: calc(100% - 180px);
    transition: all 0.3s ease;
}

.header {
    background-color: var(--card-bg);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 900;
    margin-bottom: 0; /* 确保header底部没有外边距 */
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

/* 搜索加载动画 */
.search-loading {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 0.8s linear infinite;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-loading.active {
    opacity: 1;
    visibility: visible;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-box {
        max-width: 100%;
    }
    
    .search-box input {
        font-size: 13px;
        padding: 8px 40px 8px 15px;
    }
    
    .search-box:focus-within input {
        padding-left: 36px;
    }
    
    .search-box::before {
        left: 15px;
        font-size: 12px;
    }
    
    .search-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

.search-box::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
    z-index: 1;
    opacity: 0;
    transition: all 0.3s ease;
}

.search-box input {
    padding: 10px 45px 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    font-size: 14px;
    background-color: var(--bg-color);
    color: var(--primary-color);
}

.search-box:focus-within input {
    padding-left: 42px;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.search-box:focus-within::before {
    opacity: 1;
}

.search-box:hover input {
    border-color: #b0b7c3;
}

.search-box input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    outline: none;
}

.search-box input::placeholder {
    color: #9ca3af;
    opacity: 0.8;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 16px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
}

.search-btn:hover {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
}

.search-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.search-box:focus-within .search-btn {
    background-color: var(--accent-color);
    color: white;
}

.search-box:focus-within .search-btn:hover {
    background-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

/* 搜索下拉菜单样式 */
.search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s ease;
}

.search-dropdown.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.search-dropdown-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item:hover {
    background-color: var(--hover-color);
}

.search-dropdown-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--hover-color);
}

.search-dropdown-content {
    flex: 1;
}

.search-dropdown-title {
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 2px;
}

.search-dropdown-desc {
    font-size: 12px;
    color: #6b7280;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.content-wrapper {
    padding: 0;
}

/* 工具卡片样式 */
.section {
    margin-bottom: 10px; /* 进一步减小section之间的间距，从20px减少到10px */
    padding: 15px 0; /* 进一步减小section内部的上下padding，从20px减少到15px */
    position: relative;
}

/* 热门工具下方的第一个section减少上方间距 */
#ai-writing.section {
    padding-top: 10px; /* 进一步减少与热门工具的间距，从20px减少到10px */
}

.section-header {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 10px 0;
    border-bottom: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.section-header:hover {
    border-bottom-color: var(--accent-color);
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
    position: relative;
    padding-left: 15px;
    display: flex;
    align-items: center;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* 为不同分类添加特定的颜色 */
#ai-writing .section-header h2::before {
    background-color: #ff6b6b;
}

#ai-image .section-header h2::before {
    background-color: #4ecdc4;
}

#ai-video .section-header h2::before {
    background-color: #667eea;
}

#ai-office .section-header h2::before {
    background-color: #f093fb;
}

#ai-agent .section-header h2::before {
    background-color: #4facfe;
}

#ai-chat .section-header h2::before {
    background-color: #43e97b;
}

#ai-coding .section-header h2::before {
    background-color: #fa709a;
}

#ai-design .section-header h2::before {
    background-color: #a8edea;
}

#ai-audio .section-header h2::before {
    background-color: #d299c2;
}

/* 热门工具网格样式 */
.section-subtitle {
    font-size: 16px;
    color: #6c757d;
    margin: 8px 0 15px 0; /* 从32px减少到15px，缩短标题与内容的距离 */
    text-align: center;
}

/* 热门工具展示区域 */
.featured-tools-container {
    margin-top: 15px; /* 从30px减少到15px，缩短标题与内容的距离 */
    position: relative;
    overflow: visible;
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: -15px; /* 从-10px调整到-15px，进一步减小与下方内容的间距 */
}

.featured-tools-scroll {
    display: flex;
    gap: 20px;
    padding: 15px 0; /* 从20px减少到15px，减小内部上下间距 */
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    background: transparent;
}

.featured-tools-scroll::-webkit-scrollbar {
    display: none;
}

.featured-tool-item {
    flex: 0 0 auto;
    width: 140px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.featured-tool-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(80, 200, 120, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.featured-tool-item:hover::before {
    opacity: 1;
}

.featured-tool-item:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 1);
    border: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 6px 16px rgba(0, 0, 0, 0.08);
}

.tool-icon-compact {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border-radius: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.featured-tool-item:hover .tool-icon-compact {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.tool-icon-compact img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tool-name {
    color: #2c3e50;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    text-shadow: none;
}

.tool-tag {
    color: #495057;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 0;
    background: rgba(248, 249, 250, 0.8);
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
    text-shadow: none;
}

/* 详情页面相关渐变边框动画样式已删除 */

.tool-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    border: 1px solid rgba(229, 231, 235, 0.5);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.2);
}

.tool-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.tool-card-link:hover {
    color: inherit;
}

.tool-card-body {
    padding: 20px;
    display: flex;
    height: 100%;
}

.tool-icon {
    width: 64px;
    height: 64px;
    margin-right: 15px;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--hover-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.tool-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-icon img {
    transform: scale(1.1);
}

.tool-info {
    flex: 1;
    transition: all 0.3s ease;
}

.tool-card:hover .tool-info {
    transform: translateX(5px);
}

.tool-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.tool-card:hover .tool-title {
    color: var(--accent-color);
}

.tool-desc {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.tool-card:hover .tool-desc {
    color: var(--secondary-color);
}

/* 页脚样式 */
.footer {
    background-color: var(--sidebar-bg);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.footer h3, .footer h4 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.footer p {
    color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--hover-color);
    border-radius: 50%;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: white;
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.9rem;
}

/* 更多按钮样式 */
.more-card {
    border: 2px dashed #e0e0e0 !important;
    background: #fafafa !important;
    transition: all 0.3s ease;
}

.more-card:hover {
    border-color: #007bff !important;
    background: #f8f9ff !important;
    transform: translateY(-5px);
}

.more-card .tool-icon {
    background: transparent !important;
    border: none !important;
}

.more-card .tool-title {
    color: #007bff !important;
    font-weight: 600;
}

.more-card .tool-desc {
    color: #666 !important;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .sidebar {
        width: 150px;
    }
    .main-content {
        margin-left: 150px;
        width: calc(100% - 150px);
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1050;
        width: 250px;
        box-shadow: none;
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }
    
    .tool-card-body {
        flex-direction: row;
        align-items: center;
    }
    .tool-icon {
        margin-right: 15px;
        margin-bottom: 0;
        width: 48px;
        height: 48px;
    }
    .section .container {
        padding: 0 15px;
    }
    .tool-card:hover .tool-info {
        transform: translateX(0);
    }
    .tool-title {
        font-size: 1rem;
        margin-bottom: 4px;
    }
    .tool-desc {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 576px) {
    .tool-card-body {
        padding: 15px;
    }
    .tool-icon {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
}

/* 热门工具响应式设计 */
@media (max-width: 768px) {
    .featured-tools-container {
        padding: 16px;
        margin-top: 30px;
    }
    
    .featured-tools-scroll {
        gap: 16px;
        padding: 12px 0;
    }
    
    .featured-tool-item {
        width: 120px;
        padding: 16px 12px;
    }
    
    .tool-icon-compact {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }
    
    .tool-icon-compact img {
        width: 32px;
        height: 32px;
    }
    
    .tool-name {
        font-size: 13px;
        color: #2c3e50;
    }
    
    .tool-tag {
         font-size: 10px;
         padding: 3px 8px;
         margin-bottom: 0;
         color: #495057;
         background: rgba(248, 249, 250, 0.8);
         border: 1px solid rgba(0, 0, 0, 0.1);
     }
}

/* 工具提交按钮 */
.btn-outline-primary {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-outline-primary:hover {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

/* 联系我们按钮 */
.contact-us-btn {
    display: inline-flex;
    align-items: center;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: linear-gradient(90deg, var(--accent-color), #6366f1);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
    white-space: nowrap;
}

.contact-us-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.35);
    background: linear-gradient(90deg, #2563eb, #4f46e5);
    color: white;
}

/* 联系我们弹窗 */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.contact-modal-content {
    background: white;
    margin: 15% auto;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideDown 0.4s ease;
}

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

.contact-modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-modal-close:hover {
    color: var(--accent-color);
}

.contact-modal h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.5rem;
}

.contact-modal p {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1rem;
}

.contact-email {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.1));
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}

.contact-email i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-right: 10px;
}

.contact-email span {
    color: var(--secondary-color);
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .contact-modal-content {
        margin: 30% auto;
        padding: 25px;
    }
    
    .contact-email {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contact-email i {
        margin-bottom: 10px;
    }
}

/* 侧边栏切换按钮 */
#sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--primary-color);
    cursor: pointer;
}

.logo-mobile {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}
