.data-table {
    border-collapse: collapse;
    font-size: 0.9rem;
    width: max-content;
    min-width: 100%;
}

.data-table thead th {
    background-color: #f9fafb;
    color: #374151;
    font-weight: 600;
    text-align: center;
    border-bottom: 2px solid #e5e7eb;
}

.data-table tbody td {
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
}

.data-table tbody tr:hover {
    background-color: #f7faff;
    transition: background-color 0.2s ease-in-out;
}

.data-table .item-col {
    text-align: left;
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
}

.data-table .item-col i {
    margin-right: 0.5rem;
    color: #9ca3af;
    width: 1.25em;
    text-align: center;
}

.data-table .highlight-col {
    background: #f0f9ff;
}

.data-table thead .highlight-col {
    color: #1d4ed8;
}

.data-table thead th a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.data-table thead th a:hover {
    color: #1d4ed8;
}

.external-link-icon {
    font-size: 0.8em;
    margin-left: 5px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

a:hover .external-link-icon {
    opacity: 1;
}

.action-link {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    background-color: #eef2ff;
    color: #4338ca;
    border: 1px solid transparent;
    white-space: nowrap;
}

.action-link:hover {
    background-color: #e0e7ff;
    color: #3730a3;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.action-link i {
    margin-right: 0.3rem;
}

.org-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    vertical-align: middle;
}

.related-links a {
    color: #4b5563;
    font-size: 1.2rem;
    margin-left: 0.75rem;
    transition: color 0.2s;
}

.related-links a:hover {
    color: #1f2937;
}

.huggingface-icon {
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
    vertical-align: middle;
}

body {
    background-color: #f9fafb;
}

.model-comparison-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.25rem;
    width: 100%;
    min-width: fit-content;
}

.model-card {
    background-color: #ffffff;
    border-radius: 1rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    flex: 1 1 clamp(280px, 32vw, 600px);
}

.model-header-name {
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    text-align: left;
}

.model-banner {
    position: relative;
    min-height: 120px;
    padding: 1rem 1.25rem;
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: white;
}
.model-card:nth-child(3n+1) .model-banner {
    background: linear-gradient(135deg, #F06D58, #D97A4E); /* 深粉橙渐变 */
}

.model-card:nth-child(3n+2) .model-banner {
    background: linear-gradient(135deg, #6A8DFF, #4178D4); /* 深蓝渐变，呈现冷静感 */
}

.model-card:nth-child(3n) .model-banner {
    background: linear-gradient(135deg, #F6A16B, #E49444); /* 深黄色渐变，温暖且充满活力 */
}

.model-card:nth-child(5n+1) .model-banner {
    background: linear-gradient(135deg, #A6C9E2, #7A88A6); /* 深蓝灰色渐变，沉稳且优雅 */
}

.model-card:nth-child(5n+2) .model-banner {
    background: linear-gradient(135deg, #D78D9C, #B86D86); /* 深粉色渐变，甜美且具有深度 */
}



.model-description {
    color: #4b5563;
    font-size: 0.9rem;
    min-height: 40px;
}

.model-actions {
    display: flex;
    gap: 1rem;
}

.btn-action {
    flex-grow: 1;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.btn-learn-more {
    background-color: #ffffff;
    color: #1f2937;
    border: 1px solid #d1d5db;
}

.btn-learn-more:hover {
    background-color: #f3f4f6;
}

.btn-playground {
    background-color: #1f2937;
    color: #ffffff;
    border: 1px solid #1f2937;
}

.btn-playground:hover {
    background-color: #374151;
    color: white;
}

.btn-learn-more:hover{
    color: black;
}

.btn-playground.disabled {
    background-color: #6b7280;
    border-color: #6b7280;
    cursor: not-allowed;
}

.comparison-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
}

.feature-group-title {
    font-size: 1.05rem;
    font-weight: 350;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-bottom: 0.75rem;
    margin-top: 2.5rem;
}

.feature-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 0.9rem;
}

.feature-row:last-child {
    border-bottom: none;
}

.feature-name {
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-value {
    color: #1f2937;
    font-weight: 500;
    text-align: right;
}

.feature-value a {
    color: #1f2937;
    text-decoration: none;
}

.feature-value a:hover {
    text-decoration: underline;
}

.speed-bolts .fa-bolt {
    color: #d1d5db;
}

.speed-bolts .fa-bolt.active {
    color: #111827;
}

.check-icon {
    color: #10B981;
    font-size: 1.2rem;
}

.cross-icon {
    color: #EF4444;
    font-size: 1.2rem;
}

.positive-text {
    color: #111827;
    font-weight: 500;
}

.negative-text {
    color: #6b7280;
}

.org-logo-small {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.modality-icons {
    display: flex;
    /*gap: 0.6rem;*/
    font-size: 1.2rem;
    justify-content: flex-end;
}

.modality-icon {
    position: relative;
    color: #d1d5db;
    width: 1.2em;
    height: 1.2em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modality-icon.active {
    color: #1f2937;
}

/*.modality-icon:not(.active)::after {*/
/*    content: '';*/
/*    position: absolute;*/
/*    display: block;*/
/*    width: 110%;*/
/*    height: 1.5px;*/
/*    background: #d1d5db;*/
/*    left: -5%;*/
/*    top: 50%;*/
/*    transform: translateY(-50%) rotate(45deg);*/
/*    transform-origin: center;*/
/*}*/

.model-banner > span {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-all;
    font-weight: 700;
    line-height: 1.25;
    font-size: clamp(1rem, 5vw + .25rem, 2.2rem);
    text-shadow: 1px 1px 3px rgba(0,0,0,.1);
}

.model-banner.long-text > span {
    font-size: clamp(1rem, 5vw + .25rem, 1.8rem);
}

.data-table th,
.data-table td {
    white-space: nowrap;
    padding: .5rem .75rem;
    vertical-align: middle;
}

.data-table th .text-xs {
    display: inline-block;
    margin-left: .25rem;
    vertical-align: middle;
}

.model-comparison-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .5rem;
    display: flex;
    justify-content: center;
}

.model-comparison-scroll::-webkit-scrollbar {
    height: 8px;
}

.model-comparison-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.model-comparison-scroll::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.model-comparison-scroll:hover::-webkit-scrollbar-thumb {
    background: #9ca3af;
}
/* 可横向滚动的外层容器 —— 去掉居中，让内容从最左开始 */
.model-comparison-scroll{
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 1rem .5rem;      /* 两侧留一点内边距，阴影不被裁剪 */
}

/* 内层容器：单行网格，每列最小 300 px，剩余空间均分 */
.model-comparison-container{
    display: grid;
    grid-auto-flow: column;                 /* 横向自动排布 */
    grid-auto-columns: minmax(300px, 1fr);  /* ≤300px 时撑满，>300px 均分 */
    gap: 1.25rem;
    min-width: 100%;                        /* 只有 1-2 张卡片时也能占满整行 */
}

/* 卡片本身不再声明 Flex 宽度，交给网格控制 */
.model-card{
    flex: unset;
}
.model-comparison-scroll{
    scroll-snap-type: x mandatory;
}

.model-card{
    scroll-snap-align: start;
}