/* 顶部栏样式 */
.top-bar {
    background: #f8f9fa;
    padding: 8px 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.top-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

/* 通知图标样式 */
.notification {
    position: relative;
}

.notification-icon {
    font-size: 20px;
    color: #666;
    position: relative;
    display: block;
}

.notification-icon:hover {
    color: #18bc9c;
}

.notification .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4d4f;
    color: #fff;
    border-radius: 10px;
    padding: 0 6px;
    font-size: 12px;
    line-height: 16px;
    min-width: 16px;
    text-align: center;
}

/* 标题样式 */
.title-section {
    margin-bottom: 40px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.title-section h1 {
    font-size: 32px;
    color: #333;
    margin: 0;
    font-weight: 500;
    line-height: 1.4;
}

/* 用户信息样式 */
.user-info {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background: rgba(255, 255, 255, .1);
    border-radius: 30px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin-right: 10px;
}

.user-name {
    margin-right: 15px;
    font-size: 16px;
    color: #FFFFFF;
}

.user-score {
    background: rgba(255, 255, 255, .15);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: #FFD700;
}

/* 用户菜单 */
.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 4px 0;
    min-width: 160px;
    display: none;
    z-index: 1000;
}

.user-menu.show {
    display: block;
}

.user-menu a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.user-menu a:hover {
    background: #f5f5f5;
    color: #18bc9c;
}

.user-menu .divider {
    height: 1px;
    background: #eee;
    margin: 4px 0;
}

.user-menu i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

/* 主要内容区域 */
.main-content {
    text-align: center;
    margin-bottom: 40px;
}

.search-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    flex: 1;
    position: relative;
}

.search-box input {
    width: 100%;
    height: 48px;
    padding: 0 20px;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s;
}

.search-box input:focus {
    border-color: #18bc9c;
    box-shadow: 0 0 0 2px rgba(24, 188, 156, 0.2);
}

/* 登录按钮样式 */
.login-btn {
    height: 36px;
    padding: 0 20px;
    border-radius: 18px;
    font-size: 14px;
    color: #18bc9c;
    border: 1px solid #18bc9c;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.login-btn:hover {
    color: #fff;
    background: #18bc9c;
}

/* 创建按钮样式 */
.create-btn {
    height: 48px;
    padding: 0 30px;
    border-radius: 24px;
    font-size: 16px;
    background: #18bc9c;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.create-btn:hover {
    background: #15a589;
}

/* 分类导航样式 */
.category-nav {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.category-item {
    font-size: 16px;
    color: #666;
    text-decoration: none;
    padding: 5px 0;
    position: relative;
}

.category-item:hover {
    color: #18bc9c;
}

.category-item.active {
    color: #18bc9c;
}

.category-item.active:after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #18bc9c;
}

/* 智能体列表样式 */
.agent-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.agent-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.agent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.agent-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.agent-icon img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.agent-info h3 {
    font-size: 18px;
    color: #333;
    margin: 0 0 10px;
}

.agent-info .description {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.agent-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #999;
}

/* 分页样式 */
.pagination {
    text-align: center;
    margin-top: 30px;
}

.pagination .pagination {
    display: inline-flex;
    gap: 5px;
}

.pagination .pagination li {
    display: inline-block;
}

.pagination .pagination li a,
.pagination .pagination li span {
    display: block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination .pagination li.active span,
.pagination .pagination li a:hover {
    background: #18bc9c;
    color: #fff;
    border-color: #18bc9c;
}

/* 分类导航按钮样式 */
.category-toggle {
    position: fixed;
    left: 0;
    top: 140px;
    background: linear-gradient(135deg, #8c52ff 0%, #5e3fd4 100%);
    border: none;
    border-radius: 0 8px 8px 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    cursor: pointer;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    transition: all 0.3s ease;
}

.category-toggle:hover {
    transform: translateX(3px);
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.4);
}

/* 分类导航标题样式 */
.nav-title {
    color: #FFFFFF;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 智能体图标样式 */
.agent-icon img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.agent-icon i {
    font-size: 32px;
    color: #FFFFFF;
}

/* 积分样式 */
.agent-points {
    font-size: 14px;
    color: #8c52ff;
    padding: 5px 10px;
    background: rgba(140, 82, 255, 0.1);
    border-radius: 15px;
    display: inline-block;
}

/* 导航图标样式 */
.nav-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* 确保背景色 */
.container {
    background-color: transparent;
}

.agent-grid {
    background-color: transparent;
}