.top-clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.top-pull-right {
    float: right !important;
}

/* 垂直内边距控制 */
.top-section-padding {
    padding-top: 30px;
    padding-bottom: 30px;
}

/* 文本截断工具 */
.top-ellipsis-1,
.top-ellipsis-2,
.top-ellipsis-3 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    word-break: break-all;
}

.top-ellipsis-1 {
    -webkit-line-clamp: 1;
}

.top-ellipsis-2 {
    -webkit-line-clamp: 2;
}

.top-ellipsis-3 {
    -webkit-line-clamp: 3;
}

/* =========================================
   轮播图 (Carousel), 动画效果由 JS 实现
   ========================================= */
/* 外层容器：负责全宽和居中 */
.top-carousel {
    position: relative;
    overflow: hidden; /* 隐藏移出屏幕的图片 */
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

/* 内层容器：使用 Grid 布局强制图片重叠 */
.top-carousel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    /* 核心布局逻辑：Grid 让所有子元素叠在一起 */
    display: grid; 
    grid-template-areas: "slide";
    overflow: hidden;
}

/* 图片项：初始状态放在右侧等待 */
.top-item {
    grid-area: slide; /* 放入同一个 grid 区域 */
    position: relative;
    display: block !important; /* 覆盖 Bootstrap 默认隐藏 */
    width: 100%;
    
    /* 初始状态：位于右侧屏幕外 */
    transform: translateX(100%); 
    z-index: 0;
}

.top-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* 指示器样式 (保持不变) */
.top-carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    z-index: 15;
    width: 60%;
    padding-left: 0;
    margin-left: -30%;
    text-align: center;
    list-style: none;
    pointer-events: none;
}

.top-carousel-indicators li {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 1px;
    background-color: rgba(0, 0, 0, 0);
    border: 1px solid #fff;
    border-radius: 10px;
}

.top-carousel-indicators li:first-child {
    background-color: #fff;
}

/* =========================================
   产品与内容卡片 (Product Items)
   ========================================= */

.top-product-item {
    padding-top: 1px; /* 原 outer 样式 */
    text-align: left; /* 强制左对齐 */
    height: 100%;     /* 确保卡片等高 */
    display: flex;
    flex-direction: column;
}

.top-product-item .top-product-title {
    font-size: 18px;
    margin-left: 0;
    margin-right: 0;
    margin-top: 5px;
    margin-bottom: 10px;
    font-weight: normal;
    font-size: var(--font-size-h3);
    transition: color 0.3s ease;
    white-space: nowrap;      /* 强制不换行 */
    overflow: hidden;         /* 超出隐藏 */
    text-overflow: ellipsis;  /* 超出显示省略号 */
    width: 100%;              /* 确保占满容器宽度以便触发截断 */
    display: block;           /* 确保是块级元素 */
}

.top-product-item .top-product-detail {
    color: var(--body-font-color, #333); /* #848486; */
    height: auto; /* TBD: 固定高度 50px 确保排版整齐 */
    min-height: 42px;
    line-height: 1.5;
    font-size: var(--font-size-p);
    transition: color 0.3s ease;
}

.top-product-item .top-pic-wrap {
    width: 100%;
    height: 160px;
    line-height: 160px;
    margin-bottom: 10px;
    overflow: hidden;
    text-align: center;
}

.top-product-item .top-pic-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* =========================================
   悬停效果 (Hover Effects)
   ========================================= */

.product-card a {
    text-decoration: none;
    color: var(--body-font-color, #333); /* #848486; */
    transition: color 0.3s ease;
}

.product-card a:hover {
    text-decoration: none;
}

/* 鼠标悬停在卡片链接上时的效果 */
.product-card .top-product-title:hover,
.product-card .top-product-detail:hover {
    color: var(--top-link-color) !important;
}

.product-card .top-product-title.no-link:hover {
    color: #333 !important;
    text-decoration: none;
    cursor: default;
}

/* 图片悬停放大 */
.product-card a:hover .top-pic-wrap img {
    transform: scale(1.05);
}

/* =========================================
   生态系统
   ========================================= */

/* 生态系统单项样式 */
.top-ecosystem-item {
    text-align: center;
    padding: 10px 0;
    transition: all 0.3s ease;
}

/* 圆形图片容器 */
.top-ecosystem-img {
    width: 90px;  /* 保持与竞品相似的大小 */
    height: 90px;
    margin: 0 auto 15px auto; /* 居中并与文字保持间距 */
    border-radius: 50%;       /* 圆形 */
    overflow: hidden;
    border: 3px solid transparent; /* 预留边框位置，避免hover时抖动 */
    transition: all 0.3s ease;
    background-color: transparent;
}

.top-ecosystem-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.top-ecosystem-text {
    font-size: var(--font-size-h3);
    color: var(--body-font-color, #333);
    margin: 0;
    font-weight: normal;
    transition: color 0.3s ease;
}

/* 悬停时，图片出现蓝色边框 + 阴影 */
.product-card a:hover .top-ecosystem-img {
    border-color: rgba(60, 180, 230, 0.6); /* 浅蓝色边框 */
    box-shadow: 0 0 8px rgba(60, 180, 230, 0.4); /* 发光效果 */
    transform: scale(1.05); /* 微微放大 */
}

/* 悬停时，文字变蓝 */
.product-card a:hover .top-ecosystem-text {
    color: var(--top-link-color);
    text-decoration: underline; /* 添加下划线 */
    text-underline-offset: 4px; /* 让下划线向下偏移 4px，避免紧贴文字，更美观 */
}

/* =========================================
   资源列表 (Resource List)
   ========================================= */

/* 列表容器：去除默认样式 */
.top-resource-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0; /* 顶部留白，与标题拉开距离 */
    width: 100%;
}

/* 列表单项 */
.top-resource-item {
    list-style: none !important;
    margin-left: 0 !important;
    margin-bottom: 12px; /* 每个项目之间的间距 */
    /* border-bottom: 1px solid #eee; */
    /* padding-bottom: 8px; */
}

.top-resource-item:last-child {
    border-bottom: none; /* 最后一项不要分隔线 */
    margin-bottom: 0;
}

/* 链接容器：Flexbox 布局实现水平居中对齐 */
.top-resource-link {
    display: flex;
    align-items: center; /* 垂直居中核心代码 */
    text-decoration: none;
    color: #333; /* 默认文字颜色 */
    transition: all 0.2s ease-in-out;
    padding: 4px 0; /* 增加点击区域高度 */
}

/* 图标容器 */
.top-resource-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;   /* 限制图标区域宽度 */
    height: 24px;
    margin-right: 12px; /* 图标与文字的间距 */
    flex-shrink: 0; /* 防止图标被压缩 */
}

/* 如果使用 SVG，控制 SVG 大小 */
.top-resource-img svg {
    width: 20px;
    height: 20px;
}

/* 如果使用 img 标签 */
.top-resource-img img {
    width: 100%;
    height: auto;
}

/* 文字部分 */
.top-resource-text {
    flex: 1; /* 占据剩余空间 */
    font-size: var(--font-size-p);
    line-height: 1.4;
    font-weight: 500;
}

/* =========================================
   Hover 交互效果
   ========================================= */

/* 鼠标悬停在链接上时 */
.top-resource-link:hover {
    text-decoration: none;
    background-color: rgba(0, 0, 0, 0.02); /* 可选：极淡的背景色变化 */
}

/* 悬停时：文字变色 (使用你现有的蓝色变量或直接指定) */
.top-resource-link:hover .top-resource-text {
    color: var(--top-link-color);
    text-decoration: underline; /* 增加下划线强调 */
    text-underline-offset: 4px; /* 让下划线向下偏移 4px，避免紧贴文字，更美观 */
}

/* 悬停时：图标变色 */
.top-resource-link:hover .top-resource-img {
    color: var(--top-link-color);
    transform: scale(1.1); /* 图标轻微放大 */
    transition: transform 0.2s ease;
}
