/* 基础容器 */
.content-types {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* 标题系统 */
.section-title {
    font-size: 28px;
    color: #222;
    text-align: center;
    margin: 0 auto 12px; /* 增强水平居中稳定性 */
    display: block; /* 确保元素宽度不继承异常值 */
    width: fit-content; /* 内容自适应宽度 */
}

.section-subtitle {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin: 0 auto 40px; /* 增强水平居中稳定性 */
    display: block; /* 确保作为块元素生效 */
    width: fit-content; /* 防止父容器限制导致的错位 */
}


/* 卡片容器 */
.cards-container {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* 卡片主体 */
.enhanced-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
    aspect-ratio: 1/1;
}

/* 悬停效果 */
.enhanced-card:hover {
    transform: translateY(-5px);
}

/* 动态红线 */
.enhanced-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff4d4f 0%, #ff7875 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.enhanced-card:hover::after {
    width: 100%;
}

/* 图片区域 */
.card-image {
    height: 60%;
    background: #f5f5f5;
    overflow: hidden;
    position: relative;
}

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

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

/* 文字区域 */
.card-body {
    padding: 24px;
    height: 40%;
}

.card-title {
    font-size: 20px;
    color: #222;
    margin-bottom: 12px;
    position: relative;
    padding-left: 28px;
}

.card-title::before {
    content: "•";
    color: #ff4d4f;
    position: absolute;
    left: 0;
    font-size: 24px;
    line-height: 1;
}

.card-content {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
/* 添加链接样式 */
.enhanced-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

/* 保持原有悬浮效果 */
.enhanced-card:hover {
    transform: translateY(-5px);
    cursor: pointer;
}
/* 核心解决方案 */
.enhanced-card {
    text-decoration: none !important; /* 强制去除下划线 */
    color: inherit !important; /* 继承原始文字颜色 */
}

/* 彻底禁用所有状态下的下划线 */
.enhanced-card:hover,
.enhanced-card:active,
.enhanced-card:visited {
    text-decoration: none !important;
    color: inherit !important;
}

/* 保持原有悬浮动效 */
.enhanced-card:hover {
    transform: translateY(-5px);
    cursor: pointer;
}

/* 响应式布局 */
@media (min-width: 768px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cards-container {
        grid-template-columns: repeat(3, 1fr);
    }
}