/* Page Index Entrance 组件样式 */

/* Canvas 图表容器 */
canvas[id$="Chart"] {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* 步骤卡片容器 - 保持高度一致 */
.page-index-entrance .flex.flex-col.items-center.text-center {
    height: 100%;
}

.page-index-entrance .flex.flex-col.items-center.text-center .bg-dark.rounded-xl {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* 步骤卡片描述文字 - 限制2行 */
.page-index-entrance .text-text-gray {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: calc(1.5em * 2);
}

/* 文章标题限制最多2行 */
.article-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    max-height: calc(1.4em * 2);
}

/* 文章描述文字限制最多3行 */
.article-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
    max-height: calc(1.6em * 3);
}

/* 加密货币表格 - 防止内容换行 */
.page-index-entrance table {
    table-layout: fixed;
    width: 100%;
}

.page-index-entrance table th,
.page-index-entrance table td {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 确保表格内所有元素都不换行 */
.page-index-entrance table td * {
    white-space: nowrap !important;
}

/* 名称列 flex 容器不换行 */
.page-index-entrance table td .flex.items-center {
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

.page-index-entrance table td .flex.items-center > div {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-index-entrance table td .flex.items-center > div > div {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 设置各列宽度 */
.page-index-entrance table th:nth-child(1),
.page-index-entrance table td:nth-child(1) {
    width: 60px;
}

.page-index-entrance table th:nth-child(2),
.page-index-entrance table td:nth-child(2) {
    width: auto;
}

.page-index-entrance table th:nth-child(3),
.page-index-entrance table td:nth-child(3) {
    width: 120px;
}

.page-index-entrance table th:nth-child(4),
.page-index-entrance table td:nth-child(4) {
    width: 100px;
}

.page-index-entrance table th:nth-child(5),
.page-index-entrance table td:nth-child(5) {
    width: 120px;
}

.page-index-entrance table th:nth-child(6),
.page-index-entrance table td:nth-child(6) {
    width: 80px;
}

/* 表格横向滚动 */
.page-index-entrance .overflow-x-auto {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 移动端表格适配 */
@media (max-width: 768px) {
    .page-index-entrance table {
        min-width: 600px;
    }
}