/* 智能体页面特定样式 */
.agent-header {
    padding: 20px 0 30px;
    text-align: center;
}

.agent-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #17171d;
    font-weight: 700;
}

.agent-header p {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
}

/* 搜索栏样式 */
.search-container {
    max-width: 700px;
    margin: 0 auto 30px;
}

.search-container .input-group {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.search-container input {
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 12px 2px;
    font-size: 16px;
}

.search-container button {
    padding-left: 20px;
    padding-right: 20px;
    background-color: #7B61FF;
    border-color: #7B61FF;
}

/* 分类和标签筛选样式 */
.filter-container {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.filter-section {
    margin-bottom: 15px;
}

.filter-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #17171d;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag, .filter-tag-new {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tag {
    background-color: #eaebef;
    color: #17171d;
}

.filter-tag:hover {
    background-color: #d5d7df;
}

.filter-tag.active, .filter-tag.selected {
    background-color: #7B61FF;
    color: white;
}

.filter-tag-new {
    color: white;
    opacity: 0.7;
}

.filter-tag-new:hover {
    opacity: 0.9;
}

.filter-tag-new.selected {
    opacity: 1;
    box-shadow: 0 0 0 2px white, 0 0 0 4px currentColor;
}

/* 已选标签区域 */
.selected-tags-container {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.selected-tags-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.selected-tags-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.clear-tags-btn {
    background: none;
    border: none;
    color: #7B61FF;
    font-size: 14px;
    cursor: pointer;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.selected-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 30px;
    background-color: #eef1f8;
    font-size: 14px;
}

.remove-tag {
    margin-left: 8px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
}

/* 智能体部分样式 */
.agent-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #17171d;
    margin: 0;
}

.view-all {
    color: #7B61FF;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
}

.view-all:hover {
    text-decoration: underline;
}

.agent-count {
    color: #6c757d;
    font-size: 14px;
}

/* 卡片容器 */
.card-container {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* 更新的卡片样式 - 垂直布局和居中内容 */
.card-container .card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    padding-top: 80px;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    width: calc(25% - 18px);
    transition: all 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
    overflow: visible;
    position: relative;
    margin-top: 60px;
}

.card-container .card:hover {
    box-shadow: 0 8px 24px 0px rgba(23, 23, 29, 0.08);
    transform: translateY(-5px);
}

.card-container .card-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-clip: padding-box;
    overflow: hidden;
    border: 2px solid #fff;
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.card-container .card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-container .card-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.card-container .card-content {
    width: 100%;
    text-align: center;
}

.card-container .card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #17171d;
}

.card-container .card-desc {
    font-size: 14px;
    color: #8d8d99;
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px;
}

.card-container .card-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.card-container .agent-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: white;
    background-color: #7B61FF;
}

.card-container .stats-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 8px;
    color: #606066;
    border-top: 1px solid #f0f0f4;
    padding-top: 12px;
    width: 100%;
}

.card-container .stat-item {
    display: flex;
    align-items: center;
    font-size: 13px;
}

.card-container .stat-item i {
    margin-right: 6px;
    color: #7B61FF;
    font-size: 14px;
}

/* 卡片通用样式（用于页面内其他位置的卡片） */
.card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #17171d;
}

.card-text {
    color: #6c757d;
    margin-bottom: 15px;
    line-height: 1.5;
}

.card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.5em;
}

.agent-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.agent-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 12px;
    color: white;
}

/* 智能体统计信息 */
.agent-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.agent-stat {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #6c757d;
}

.agent-stat i {
    margin-right: 5px;
    color: #7B61FF;
}

/* 按钮样式 */
.btn-primary {
    background-color: #7B61FF;
    border-color: #7B61FF;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #6247d9;
    border-color: #6247d9;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(123, 97, 255, 0.2);
}

/* 加载更多按钮 */
#load-more-btn {
    padding: 10px 25px;
    background-color: white;
    color: #7B61FF;
    border: 1px solid #7B61FF;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s;
}

#load-more-btn:hover {
    background-color: #7B61FF;
    color: white;
    transform: translateY(-2px);
}

/* 没有更多数据提示 */
.no-more-data {
    text-align: center;
    padding: 20px;
    color: #8d8d99;
    font-style: italic;
}

.agent-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

.agent-modal {
    background-color: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: scaleIn 0.3s ease-in-out;
}

.agent-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.agent-modal-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #17171d;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #8d8d99;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #17171d;
}

.agent-modal-body {
    padding: 24px;
}

.agent-modal-content {
    display: flex;
    gap: 24px;
}

.agent-modal-image {
    flex-shrink: 0;
}

.agent-modal-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    background-clip: content-box, border-box;
    background-image: linear-gradient(#fff, #fff), linear-gradient(139deg, rgba(165, 86, 255, 0.6) 7%, rgba(116, 89, 255, 0.6) 41%, rgba(68, 177, 255, 0.6) 82%);
    border: 3px solid transparent;
    background-origin: border-box;
    background-clip: content-box, border-box;
}

.agent-modal-info {
    flex: 1;
}

.agent-modal-desc {
    margin-bottom: 20px;
    color: #17171d;
    line-height: 1.6;
    font-size: 16px;
}

.agent-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.agent-modal-tags .agent-tag {
    padding: 4px 10px;
    font-size: 13px;
}

.agent-modal-stats {
    display: flex;
    gap: 20px;
}

.agent-modal-stat {
    display: flex;
    align-items: center;
    color: #8d8d99;
    font-size: 14px;
}

.agent-modal-stat i {
    margin-right: 8px;
    color: #7B61FF;
}

.agent-modal-footer {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    justify-content: flex-end;
}

.modal-try-btn, .modal-customize-btn {
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.modal-try-btn {
    background-color: #7B61FF;
    color: white;
}

.modal-try-btn:hover {
    background-color: #6247d9;
    transform: translateY(-2px);
}

.modal-customize-btn {
    background-color: rgba(123, 97, 255, 0.1);
    color: #7B61FF;
}

.modal-customize-btn:hover {
    background-color: rgba(123, 97, 255, 0.2);
    transform: translateY(-2px);
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .card-container .card {
        width: calc(33.333% - 16px);
    }
}

@media (max-width: 991px) {
    .card-img-top {
        height: 160px;
    }
    
    .card-container .card {
        width: calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .agent-modal-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .agent-modal-stats {
        justify-content: center;
    }
    
    .agent-modal-footer {
        flex-direction: column;
    }
    
    .modal-try-btn, .modal-customize-btn {
        width: 100%;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .card-container .card {
        width: 100%;
    }
}  