        @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
        
        body {
            font-family: 'Poppins', sans-serif;
            background-color: #f9fafb;
        }
        
        /* 修复加载器居中问题 */
        #preloader {
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        #preloader .loader {
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        #preloader .loader-container {
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        #preloader .loader-icon {
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        #preloader .loader-icon img {
            width: 50px;
            height: 50px;
        }
        
        /* 页面内容外边距微调 */
        main .container {
            padding-top: 2rem;
        }
        
        /* 模型卡片样式修复 */
        .model-card {
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: visible; /* Allow elements to be visible outside the card */
            height: 100%; /* Ensure cards take full height of grid cell */
        }
        
        .model-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        
        .model-card > .p-4 {
            display: flex;
            flex-direction: column;
            height: 100%; /* Take full height of parent */
            overflow: hidden; /* Keep card shape clean */
            flex: 1; /* Allow content to expand */
            padding: 0.75rem !important; /* Override padding */
        }
        
        .model-header {
            display: flex;
            align-items: center;
            margin-bottom: 0.5rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid #f3f4f6;
        }
        
        .card-footer {
            margin-top: auto; /* This pushes the footer to the bottom */
            padding-top: 0.5rem;
            border-top: 1px solid #f3f4f6;
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 0.7rem;
            color: #6b7280;
        }
        
        .badge {
            position: relative;
            transform: none;
            transform-origin: unset;
            z-index: 1;
            width: auto;
            height: 20px;
            pointer-events: auto;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-left: auto;
            padding: 0 6px;
            border-radius: 4px;
            font-weight: 600;
        }
        
        /* 浏览器选项卡风格 */
        .tab-item {
            position: relative;
            margin-right: 4px;
            margin-bottom: -1px;
            padding: 8px 16px;
            border-radius: 8px 8px 0 0;
            background-color: #f0f0f0;
            transition: all 0.2s ease;
            cursor: pointer;
        }
        
        .tab-active {
            background-color: white;
            border: 1px solid #e5e7eb;
            border-bottom: none;
            box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
            z-index: 1;
        }
        
        /* 选项卡悬停效果 */
        .tab-item:not(.tab-active):hover {
            background-color: #e5e7eb;
        }
        
        /* 分组名称动画 */
        .group-name {
            white-space: nowrap;
            overflow: hidden;
            transition: all 0.3s ease-in-out;
        }
        
        /* 下拉菜单样式 */
        .dropdown {
            position: relative;
        }
        
        .dropdown:hover .dropdown-menu {
            display: block;
        }
        
        .dropdown-item {
            display: block;
            padding: 8px 12px;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .dropdown-item:hover {
            background-color: #f3f4f6;
        }
        
        .truncate-2-lines {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            max-height: 2.4em; /* 2 lines × 1.2 line height */
            position: relative;
            z-index: 1;
        }

        /* Ensure model description container has proper position and z-index */
        .model-description-container {
            position: relative;
            z-index: 1;
            width: 100%;
            margin-bottom: 0;
        }

        /* 自定义滚动条 */
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        
        ::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 8px;
        }
        
        ::-webkit-scrollbar-thumb {
            background: #c5c5c5;
            border-radius: 8px;
        }
        
        ::-webkit-scrollbar-thumb:hover {
            background: #a0a0a0;
        }

        /* 响应式调整 */
        @media (max-width: 768px) {
            .filter-section {
                height: auto;
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.5s ease;
                position: relative; /* Reset sticky for mobile */
                top: 0;
            }
            
            .filter-section.expanded {
                max-height: 100vh;
            }
        }

        /* 样式模型卡片宽度 */
        @media (min-width: 1024px) {
            .model-card {
                max-width: 100%;
            }
        }

        /* 防止超长模型名称导致布局问题 */
        .model-name-container {
            width: calc(100% - 35px); /* 减去复制按钮的宽度和间距 */
            overflow: hidden;
            position: relative;
            min-width: 0; /* Important for flex item to properly shrink */
            flex-shrink: 1;
        }

        .model-name {
            max-width: 100%;
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
            display: block;
            line-height: 1.2;
            font-size: 0.9rem;
        }

        /* 模型名称悬停效果 */
        .model-name-container:hover .model-name {
            text-decoration: underline;
            cursor: default;
        }

        /* 确保复制按钮固定位置 */
        .model-header-row {
            display: flex;
            width: 100%;
            align-items: center;
            min-width: 0; /* Important for proper flexbox behavior */
        }

        .copy-btn {
            flex-shrink: 0;
            width: 24px;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-left: 8px;
        }

        /* 分组圆点悬停效果 */
        .model-group-dot {
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            display: flex;
            align-items: center;
            min-width: 1.1rem; /* Smaller size */
            height: 1.1rem; /* Smaller size */
            border-radius: 9999px;
            padding: 0;
            overflow: hidden;
            margin-right: 0.3rem;
            margin-bottom: 0.3rem;
        }

        .model-group-dot:hover {
            min-width: auto;
            padding: 0 12px 0 0;
            border-radius: 20px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        .model-group-dot .dot-icon {
            min-width: 1.25rem;
            height: 1.25rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .model-group-dot .dot-name {
            max-width: 0;
            overflow: hidden;
            white-space: nowrap;
            margin-left: 0;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            opacity: 0;
            font-size: 0.75rem;
            color: white;
            transform: translateX(-10px);
        }

        .model-group-dot:hover .dot-name {
            max-width: 150px;
            margin-left: 4px;
            opacity: 1;
            transform: translateX(0);
        }

        /* 分组信息图标样式 */
        .group-info-icon {
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-left: 5px;
            width: 16px;
            height: 16px;
            background-color: #e5e7eb;
            border-radius: 50%;
            font-size: 10px;
            color: #6b7280;
            cursor: help;
            z-index: 10;
        }

        .group-info-icon:hover {
            background-color: #d1d5db;
        }

        .group-info-icon:hover .group-info-tooltip {
            opacity: 1;
            transform: translateX(-50%) translateY(-100%);
        }

        .group-info-tooltip {
            position: fixed;
            bottom: auto;
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 8px 12px;
            border-radius: 4px;
            font-size: 12px;
            width: max-content;
            max-width: 250px;
            white-space: normal;
            z-index: 50;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.2s ease, transform 0.2s ease;
            transform: translateX(-50%) translateY(5px);
        }

        .filter-sticky {
            position: sticky;
            top: 1rem;
            max-height: calc(100vh - 2rem);
            overflow-y: auto;
        }

        .tabs-container {
            overflow-x: auto;
            white-space: nowrap;
            scrollbar-width: thin;
            -ms-overflow-style: none;
            display: flex;
        }

        .tabs-container::-webkit-scrollbar {
            height: 4px;
        }

        .tabs-container::-webkit-scrollbar-thumb {
            background-color: rgba(156, 163, 175, 0.5);
            border-radius: 4px;
        }

        /* Ensure the card content has overflow hidden to maintain the card's shape */
        .model-card > .p-4 {
            overflow: hidden;
        }

        /* Add section styles for card content blocks */
        .card-section {
            padding: 0.5rem;
            margin-bottom: 0.5rem;
            background-color: #f9fafb;
            border-radius: 0.375rem;
            border: 1px solid #f3f4f6;
        }

        .card-section-title {
            font-size: 0.7rem;
            font-weight: 500;
            color: #6b7280;
            margin-bottom: 0.25rem;
            display: flex;
            align-items: center;
        }

        .card-section-title i {
            margin-right: 0.25rem;
        }

        .model-provider {
            font-size: 0.7rem;
        }

        /* Make the tags smaller and more compact */
        .model-tags .inline-block.text-xs, 
        .model-abilities .inline-block.text-xs {
            padding: 0.125rem 0.375rem;
            margin-right: 0.25rem;
            margin-bottom: 0.25rem;
        }

        /* Add this class to make the footer stick to the bottom */
        .card-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            min-height: 0; /* Important for nested flex containers */
        }

        /* Make card clickable */
        .model-card {
            cursor: pointer;
        }

        /* Modal styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 100;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease;
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .modal-content {
            background: white;
            border-radius: 12px;
            width: 90%;
            max-width: 800px;
            max-height: 90vh;
            overflow-y: auto;
            padding: 1.5rem;
            position: relative;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            transform: translateY(20px);
            transition: transform 0.3s ease;
        }

        .modal-overlay.active .modal-content {
            transform: translateY(0);
        }

        .modal-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: #f3f4f6;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: #6b7280;
            font-size: 14px;
        }

        .modal-close:hover {
            background: #e5e7eb;
            color: #374151;
        }

        .modal-header {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid #f3f4f6;
        }

        .modal-logo {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            overflow: hidden;
            margin-right: 1rem;
        }

        .modal-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 0.25rem;
        }

        .modal-provider {
            font-size: 0.875rem;
            color: #6b7280;
        }

        .modal-badge {
            margin-left: auto;
            font-weight: 600;
            font-size: 0.75rem;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            background-color: #8B5CF6;
            color: white;
        }

        .modal-section {
            margin-bottom: 1.25rem;
            background-color: #f9fafb;
            border-radius: 0.5rem;
            border: 1px solid #f3f4f6;
            padding: 1rem;
        }

        .modal-section-title {
            font-size: 0.875rem;
            font-weight: 600;
            color: #4B5563;
            margin-bottom: 0.75rem;
            display: flex;
            align-items: center;
            border-bottom: 1px solid #f3f4f6;
            padding-bottom: 0.5rem;
        }

        .modal-section-title i {
            margin-right: 0.5rem;
        }

        .modal-description {
            font-size: 0.875rem;
            line-height: 1.5;
            color: #4B5563;
        }

        .modal-description h1,
        .modal-description h2,
        .modal-description h3,
        .modal-description h4,
        .modal-description h5,
        .modal-description h6 {
            margin-top: 1.5rem;
            margin-bottom: 0.75rem;
            font-weight: 600;
            line-height: 1.25;
            color: #1F2937;
        }

        .modal-description h1 {
            font-size: 1.5rem;
            border-bottom: 1px solid #E5E7EB;
            padding-bottom: 0.5rem;
        }

        .modal-description h2 {
            font-size: 1.25rem;
            border-bottom: 1px solid #E5E7EB;
            padding-bottom: 0.375rem;
        }

        .modal-description h3 {
            font-size: 1.125rem;
        }

        .modal-description h4 {
            font-size: 1rem;
        }

        .modal-description h5, .modal-description h6 {
            font-size: 0.875rem;
        }

        .modal-description p {
            margin-bottom: 1rem;
        }

        .modal-description strong {
            font-weight: 600;
        }

        .modal-description em {
            font-style: italic;
        }

        .modal-description ul,
        .modal-description ol {
            margin-left: 1.5rem;
            margin-bottom: 1rem;
            margin-top: 0.5rem;
        }

        .modal-description ul {
            list-style-type: disc;
        }

        .modal-description ol {
            list-style-type: decimal;
        }

        .modal-description li {
            margin-bottom: 0.375rem;
        }

        .modal-description li > ul,
        .modal-description li > ol {
            margin-top: 0.375rem;
            margin-bottom: 0.375rem;
        }

        .modal-description blockquote {
            border-left: 4px solid #E5E7EB;
            padding: 0.5rem 1rem;
            color: #6B7280;
            font-style: italic;
            margin: 1rem 0;
            background-color: #F9FAFB;
            border-radius: 0.25rem;
        }

        .modal-description blockquote p {
            margin-bottom: 0;
        }

        .modal-description pre {
            background-color: #F3F4F6;
            border-radius: 0.375rem;
            padding: 1rem;
            overflow-x: auto;
            margin: 1rem 0;
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
            font-size: 0.875rem;
        }

        .modal-description code {
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
            font-size: 0.875rem;
            background-color: #F3F4F6;
            padding: 0.125rem 0.25rem;
            border-radius: 0.25rem;
        }

        .modal-description pre code {
            background-color: transparent;
            padding: 0;
            border-radius: 0;
            color: inherit;
            font-size: inherit;
            display: block;
        }

        .modal-description a {
            color: #3B82F6;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.15s ease;
        }

        .modal-description a:hover {
            text-decoration: underline;
            color: #2563EB;
        }

        .modal-description img {
            max-width: 100%;
            height: auto;
            border-radius: 0.375rem;
            margin: 1rem 0;
            display: block;
        }

        .modal-description hr {
            border: 0;
            border-top: 1px solid #E5E7EB;
            margin: 1.5rem 0;
        }

        .modal-description table {
            border-collapse: collapse;
            width: 100%;
            margin: 1rem 0;
            font-size: 0.875rem;
            border: 1px solid #E5E7EB;
            border-radius: 0.375rem;
            overflow: hidden;
        }

        .modal-description thead {
            background-color: #F9FAFB;
        }

        .modal-description th {
            font-weight: 600;
            text-align: left;
            padding: 0.5rem 0.75rem;
            border-bottom: 1px solid #E5E7EB;
            border-right: 1px solid #E5E7EB;
        }

        .modal-description td {
            padding: 0.5rem 0.75rem;
            border-bottom: 1px solid #E5E7EB;
            border-right: 1px solid #E5E7EB;
        }

        .modal-description th:last-child,
        .modal-description td:last-child {
            border-right: none;
        }

        .modal-description tr:last-child td {
            border-bottom: none;
        }

        .modal-description abbr {
            cursor: help;
            border-bottom: 1px dotted #6B7280;
        }

        .modal-description dl {
            margin: 1rem 0;
        }

        .modal-description dt {
            font-weight: 600;
        }

        .modal-description dd {
            margin-left: 1.5rem;
            margin-bottom: 0.5rem;
        }

        /* 根据主题样式修改模型页面的一些间距和样式 */
        .container.mx-auto {
            padding-top: 2rem;
            padding-bottom: 2rem;
        }

        /* 筛选器标题样式 */
        .filter-section h3 {
            font-size: 1rem;
            color: #333;
            margin-bottom: 0.75rem;
        }

        /* 标签样式调整 */
        .filter-pill {
            display: inline-flex;
            align-items: center;
            padding: 0.25rem 0.75rem;
            border-radius: 1rem;
            cursor: pointer;
            font-size: 0.75rem;
            margin-right: 0.5rem;
            margin-bottom: 0.5rem;
            transition: all 0.2s ease;
            background-color: #f3f4f6;
            color: #4b5563;
        }
        
        .filter-pill.active {
            background-color: #3B82F6;
            color: white;
        }
        
        .filter-pill:hover:not(.active) {
            background-color: #e5e7eb;
        }
        
        /* 修正模型页面加载动画边距 */
        main > .container {
            margin-top: 2rem;
        }
