/* 右侧边栏布局样式 */
.right-sidebar {
    width: 150px;
    padding: 8px;
    position: fixed;
    top: 160px;
    right: 8px;
    height: auto;
    z-index: 100;
}

@media (min-width: 993px) {
    .container {
        display: flex;
    }
    
    .content {
        flex: 1;
        padding: 20px 20px 20px 30px;
        max-width: 100%;
    }
    
    .sidebar {
        min-width: 220px;
    }
}

@media (max-width: 992px) {
    .right-sidebar {
        position: static;
        width: 100%;
        padding: 0;
        margin: 20px auto;
    }
}

/* AI工具专区快捷通道样式 */
.ai-tools-shortcut {
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0.95;
}

.ai-tools-shortcut:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

.shortcut-header {
    background: linear-gradient(135deg, var(--primary-color), #2a6fc7);
    color: white;
    padding: 8px 10px;
    text-align: center;
}

.shortcut-header h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.shortcut-content {
    padding: 10px;
}

.featured-tools {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.tool-item {
    display: flex;
    align-items: center;
    padding: 6px;
    border-radius: 5px;
    transition: background-color 0.2s;
    color: var(--text-color);
    text-decoration: none;
}

.tool-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--link-hover-color);
    text-decoration: none;
}

.dark-mode .tool-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.tool-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border: 1px solid var(--border-color);
}

.tool-icon img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.tool-name {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.view-all-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 5px;
    background: linear-gradient(135deg, #f0f4f9, #e6eef7);
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 12px;
}

.view-all-tools:hover {
    background: linear-gradient(135deg, #e6eef7, #d8e6f3);
    color: var(--link-hover-color);
    text-decoration: none;
}

.view-all-tools i {
    font-size: 10px;
}

.dark-mode .ai-tools-shortcut {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.dark-mode .tool-icon {
    background-color: #1e2f4a;
    border-color: #36465f;
}

.dark-mode .view-all-tools {
    background: linear-gradient(135deg, #15243b, #1a2c47);
    color: #64b5f6;
}

.dark-mode .view-all-tools:hover {
    background: linear-gradient(135deg, #1a2c47, #1e3557);
    color: #90caf9;
}

/* 添加动画让快捷通道看起来更易于发现 */
@keyframes subtle-pulse {
    0% { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); }
    50% { box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15); }
    100% { box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); }
}

.ai-tools-shortcut {
    animation: subtle-pulse 3s infinite ease-in-out;
} 