/* AI Tab卡片切换组件样式 */
/* 引用主题变量定义文件 */
@import 'theme-variables.css';
@import 'ai-market.css';

/* 卡片基础样式 */
.card{
    padding: 0px;
    border-radius: 15px;
    overflow: hidden;
}

/* 卡片项容器样式 - 设置较小边距 */
.ai-card-item {
    padding-left: 5px;
    padding-right: 5px;
    margin-bottom: 10px;
}

/* 卡片图片区域样式 */
.card-img-top {
    position: relative;
    height: auto;
    overflow: hidden;
}

/* 卡片图片容器 - 基础样式 */
.ai-category-icon {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* 卡片图片容器 - 长图比例样式 */
.ai-category-icon-long {
    aspect-ratio: 8 / 4; /* 控制长图比例，长高比例8：4 */
}

/* 卡片图片样式 */
.ai-category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例并覆盖整个容器 */
    transition: transform 0.3s ease;
}
.card-title{
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color, #2c3e50);
    text-align: center;
    padding: 3px 0;
}
.card-text{
    font-size: 14px;
    color: var(--text-secondary, #6c757d);
    text-align: left;
    /** 只显示三行，固定三行的高度，根据字体设置支撑适配 */
    line-height: 1.3rem;
    height: 1.3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ai-tab-cards {
    padding: 30px 0;
    background-color: var(--bg-secondary, #f9f9fa);
}



/* 标题区域 */
.ai-section-header {
    margin-bottom: 30px;
}

.ai-section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ai-section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark-color, #2c3e50);
    margin: 0;
}

.ai-view-more {
    display: inline-block;
    font-size: 14px;
    color: #1890ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ai-view-more:hover {
    color: #40a9ff;
    text-decoration: underline;
}

/* Tab容器 */
.ai-tab-container {
    margin-bottom: 5px;
}

.ai-tabs-wrapper {
    position: relative;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.ai-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.ai-tab {
    flex: 0 0 auto;
    padding: 12px 24px;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-tab:hover {
    color: #1890ff;
    background-color: #e6f7ff;
    border-color: #91d5ff;
}

.ai-tab.active {
    color: #1890ff;
    background-color: #e6f7ff;
    border-color: #1890ff;
}

.ai-tab-indicator {
    position: absolute;
    bottom: 10px;
    height: 36px;
    background-color: #e6f7ff;
    border-radius: 6px;
    transition: all 0.3s ease;
    z-index: 0;
    border: 1px solid #1890ff;
}

/* Tab内容区域 */
.ai-tab-contents {
    position: relative;
    min-height: 300px;
}

.ai-tab-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 10px 0;
}

.ai-tab-content.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 卡片网格 */
.ai-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

/* 卡片样式 */
.ai-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.ai-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* 卡片图片区域 */
.ai-card-img {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.ai-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ai-card:hover .ai-card-img img {
    transform: scale(1.05);
}

/* 卡片标签 */
.ai-card-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ai-card-tag {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.ai-card-tag.default {
    background-color: var(--bg-secondary, #f0f0f0);
    color: var(--text-secondary, #666);
}

.ai-card-tag.primary {
    background-color: var(--primary-color, #1890ff);
    color: var(--text-light, #fff);
}

.ai-card-tag.success {
    background-color: #52c41a;
    color: var(--text-light, #fff);
}

.ai-card-tag.warning {
    background-color: var(--warning-color, #faad14);
    color: var(--text-light, #fff);
}

.ai-card-tag.danger {
    background-color: var(--danger-color, #f5222d);
    color: var(--text-light, #fff);
}

/* 卡片信息区域 */
.ai-card-info {
    padding: 15px;
}

.ai-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-color, #2c3e50);
    margin: 0 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ai-card-desc {
    font-size: 14px;
    color: var(--text-secondary, #666);
    line-height: 1.6;
    margin: 0 0 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* 卡片统计信息 */
.ai-card-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.ai-card-stat {
    font-size: 14px;
    color: var(--text-muted, #999);
}

.ai-card-stat .ai-card-stat-unit {
    font-size: 12px;
    color: var(--text-muted-light, #bbb);
    margin-left: 2px;
}

/* 服务卡片样式 */
.service-card {
    background-color: var(--bg-primary, white);
    border-radius: 8px;
    padding: 10px;
    box-shadow: var(--shadow-light, rgba(0, 0, 0, 0.05));
    transition: all 0.3s ease;
    text-align: center;
    margin-bottom: 30px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium, rgba(0, 0, 0, 0.1));
}

.service-card-icon {
    font-size: 48px;
    color: var(--primary-color, #f9a826);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color, #2c3e50);
}

.service-card p {
    color: var(--text-secondary, #6c757d);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* 案例卡片样式 */
.case-card {
    background-color: var(--bg-primary, white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light, rgba(0, 0, 0, 0.05));
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium, rgba(0, 0, 0, 0.1));
}

.case-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.case-card-content {
    padding: 20px;
}

.case-card-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color, #2c3e50);
}

.case-card-content p {
    color: var(--text-secondary, #6c757d);
    margin-bottom: 15px;
    line-height: 1.6;
}

/* 新闻卡片样式 */
.news-card {
    background-color: var(--bg-primary, white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light, rgba(0, 0, 0, 0.05));
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

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

.news-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-card-content {
    padding: 20px;
}

.news-card-date {
    color: var(--primary-color, #f9a826);
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.news-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color, #2c3e50);
}

.news-card p {
    color: var(--text-secondary, #6c757d);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* 解决方案卡片样式 */
.solution-card {
    background-color: var(--bg-primary, white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light, rgba(0, 0, 0, 0.05));
    transition: all 0.3s ease;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium, rgba(0, 0, 0, 0.1));
}

.solution-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.solution-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.solution-card-overlay h3 {
    color: var(--text-light, white);
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

/* 卡片底部 */
.ai-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ai-card-footer .btn,
.card-footer .btn{
    color: white !important;
    padding: 6px 12px;
    width: 80%;
    display: block;
    border-radius: 20px;
    margin: 0 auto;
}

.ai-card-price {
    font-size: 18px;
    font-weight: 600;
    color: #f5222d;
}

.ai-card-price .ai-card-price-unit {
    font-size: 14px;
    font-weight: normal;
    color: #999;
    margin-left: 2px;
}

.ai-card-button {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ai-card-button.primary {
    background-color: var(--primary-color, #1890ff);
    color: var(--text-light, #fff);
    border: 1px solid var(--primary-color, #1890ff);
}

.ai-card-button.primary:hover {
    background-color: var(--primary-dark, #40a9ff);
    border-color: var(--primary-dark, #40a9ff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

.ai-card-button.secondary {
    background-color: var(--bg-primary, #fff);
    color: var(--primary-color, #1890ff);
    border: 1px solid var(--primary-color, #1890ff);
}

.ai-card-button.secondary:hover {
    background-color: rgba(24, 144, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.2);
}

.ai-card-button.dashed {
    background-color: var(--bg-primary, #fff);
    color: var(--primary-color, #1890ff);
    border: 1px dashed var(--primary-color, #1890ff);
}

.ai-card-button.dashed:hover {
    background-color: rgba(24, 144, 255, 0.1);
    border-style: solid;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.2);
}

/* 空状态 */
.ai-tab-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background-color: var(--bg-secondary, #fafafa);
    border-radius: 8px;
    color: var(--text-secondary, #999);
}

.ai-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #d9d9d9;
}

.ai-empty-text {
    font-size: 14px;
    margin: 0;
    color: var(--text-secondary, #999);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .ai-section-title {
        font-size: 20px;
    }
    
    .ai-section-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ai-tabs {
        justify-content: center;
    }
    
    .ai-tab {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .ai-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-card-img {
        height: 150px;
    }
    
    .ai-card-info {
        padding: 15px;
    }
    
    .ai-card-title {
        font-size: 16px;
    }
    
    .ai-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}