/* Modelverse Specific Styles */

/* Main Content Area - Light Theme */
.modelverse-content {
    flex: 1;
    background: #ffffff;
    color: #374151;
    overflow-y: auto;
    padding: 0;
}

.modelverse-content.full-width {
    width: 100%;
    margin: 0;
}

/* Override main-layout for full-width content */
.main-layout {
    display: flex;
}

/* When content is full-width, use block layout */
body:has(.modelverse-content.full-width) .main-layout,
.main-layout.full-width-layout {
    display: block;
}

.modelverse-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px;
}

/* Header Section */
.modelverse-header {
    margin-bottom: 32px;
}

.modelverse-title {
    font-size: 32px;
    font-weight: 700;
    color: #8b7cf6;
    margin-bottom: 16px;
    text-align: center;
}

/* Search Section Styles */
.search-section {
    margin-bottom: 24px;
}

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.search-input {
    width: 400px;
    max-width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    background: #ffffff;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #8b7cf6;
    box-shadow: 0 0 0 3px rgba(139, 124, 246, 0.1);
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-btn, .clear-btn {
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn {
    background: #8b7cf6;
    color: white;
}

.search-btn:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

.clear-btn {
    background: #f3f4f6;
    color: #6b7280;
}

.clear-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.search-results-info {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.search-results-info.highlight {
    color: #8b7cf6;
    font-weight: 600;
}

/* No results message */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
    font-size: 16px;
}

.no-results h3 {
    color: #374151;
    margin-bottom: 8px;
}

/* Highlight search terms in results */
.search-highlight {
    background: #fef3c7;
    color: #92400e;
    padding: 1px 2px;
    border-radius: 2px;
    font-weight: 600;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.category-tab {
    padding: 8px 16px;
    border: 1px solid #374151;
    background: transparent;
    color: #9ca3af;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-tab:hover {
    border-color: #8b7cf6;
    color: #ffffff;
}

.category-tab.active {
    background: #8b7cf6;
    color: #ffffff;
    border-color: #8b7cf6;
}

/* Table Container */
.models-table-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Table Styles */
.models-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.models-table thead {
    background: #f9fafb;
}

.models-table th {
    padding: 16px 12px;
    text-align: center;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.models-table th:first-child {
    text-align: left;
}

.models-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
}

.models-table tbody tr:hover {
    background: #f9fafb;
}

.models-table tbody tr:last-child {
    border-bottom: none;
}

.models-table td {
    padding: 16px 12px;
    vertical-align: middle;
    text-align: center;
}

.models-table td:first-child {
    text-align: left;
}

/* Model Name */
.model-name {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
}

/* Paper Link */
.paper-link a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.paper-link a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.paper-link .no-link {
    color: #9ca3af;
    font-style: italic;
    font-weight: 400;
}

/* Model Card Button */
.model-card-btn {
    padding: 4px 12px;
    background: #8b7cf6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.model-card-btn:hover {
    background: #7c3aed;
}

/* API Price */
.api-price {
    font-weight: 600;
    color: #8b7cf6;
    font-family: 'Courier New', monospace;
    text-align: center;
    padding: 8px 12px;
    white-space: nowrap;
}

/* Daily Delta */
.daily-delta {
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.daily-delta.positive {
    color: #10b981;
}

.daily-delta.negative {
    color: #ef4444;
}

/* Value */
.value {
    font-weight: 700;
    color: #fbbf24;
    font-size: 14px;
}

/* Trend Chart */
.trend-chart {
    text-align: center;
}

.trend-chart svg {
    display: block;
    margin: 0 auto;
}

/* Action Buttons Container */
.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Try Me Button */
.try-me-btn {
    padding: 6px 12px;
    background: #8b7cf6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.try-me-btn:hover {
    background: #7c3aed;
    transform: translateY(-1px);
}

/* Invest Column Buttons */
.invest {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 8px;
}

/* Try Button */
.try-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
    min-width: 50px;
    white-space: nowrap;
}

.try-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.try-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Add to Cart Button */
.add-cart-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
    min-width: 80px;
    white-space: nowrap;
}

.add-cart-btn:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.add-cart-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .modelverse-container {
        padding: 20px;
    }
    
    .models-table {
        font-size: 12px;
    }
    
    .models-table th,
    .models-table td {
        padding: 12px 8px;
    }
    
    .category-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .category-tab {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 768px) {
    .modelverse-title {
        font-size: 24px;
    }
    
    .models-table-container {
        overflow-x: auto;
    }
    
    .models-table {
        min-width: 800px;
    }
    
    .category-tab {
        font-size: 11px;
        padding: 5px 10px;
    }
}

/* Scrollbar Styling for Light Theme */
.modelverse-content::-webkit-scrollbar {
    width: 8px;
}

.modelverse-content::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.modelverse-content::-webkit-scrollbar-thumb {
    background: #8b7cf6;
    border-radius: 4px;
}

.modelverse-content::-webkit-scrollbar-thumb:hover {
    background: #7c3aed;
}

.models-table-container::-webkit-scrollbar {
    height: 8px;
}

.models-table-container::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.models-table-container::-webkit-scrollbar-thumb {
    background: #8b7cf6;
    border-radius: 4px;
}

.models-table-container::-webkit-scrollbar-thumb:hover {
    background: #7c3aed;
}

/* Token Logo Styles */
.token-logo {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

/* Token Logo in Modal */
.token-logo-modal {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    opacity: 0.8;
    flex-shrink: 0;
}

/* Price with Token Container */
.price-with-token {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Model Card Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay.active {
    display: flex !important;
}

.model-card-modal {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 900px;
    width: 100%;
    max-height: 95vh; /* 改为95vh，原来可能是90vh */
    overflow: hidden;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    display: flex; /* 添加这行 */
    flex-direction: column; /* 添加这行 */
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.model-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #e5e7eb;
    background: linear-gradient(135deg, #8b7cf6 0%, #7c3aed 100%);
    color: white;
}

.model-card-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: white;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: scale(1.05);
}

.model-card-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    padding: 32px;
    max-height: 50vh; /* 强制限制内容区域高度 */
    overflow-y: auto; /* 让内容区域可滚动 */
}

.model-card-main {
    flex: 1;
    overflow-y: auto; /* 添加这行 */
    padding-right: 8px; /* 添加这行 */
}

.model-info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    border-left: 4px solid #8b7cf6;
}

.info-icon {
    font-size: 20px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-content {
    flex: 1;
}

.info-label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.info-value {
    font-weight: 500;
    color: #1f2937;
    font-size: 16px;
}

.info-description {
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
    font-size: 14px;
}

.price-value {
    font-size: 18px;
    font-weight: 700;
    color: #059669;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #fbbf24;
    font-size: 16px;
}

.star.empty {
    color: #d1d5db;
}

.rating-text {
    font-size: 14px;
    color: #6b7280;
}

/* Category and Industry Tags */
.category-tag,
.industry-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-tag {
    background: linear-gradient(135deg, #8b7cf6 0%, #7c3aed 100%);
    color: white;
}

.industry-tag {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.model-card-sidebar {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
}

.share-chart-section {
    text-align: center;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 20px;
}

.chart-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#shareChart {
    max-width: 160px;
    margin-bottom: 16px;
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.purchased {
    background: #8b7cf6;
}

.legend-color.remaining {
    background: #10b981;
}

.legend-label {
    color: #4b5563;
}

.model-card-actions {
    display: flex;
    gap: 12px;
    padding: 24px 32px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    justify-content: flex-end;
    flex-shrink: 0; /* 添加这行 */
    position: sticky; /* 添加这行 */
    bottom: 0; /* 添加这行 */
    z-index: 10; /* 添加这行 */
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.try-btn {
    background: linear-gradient(135deg, #8b7cf6 0%, #7c3aed 100%);
    color: white;
}

.try-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 124, 246, 0.4);
}

.cart-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.cart-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.api-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.api-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

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

.close-btn:hover {
    background: #d1d5db;
}

.btn-icon {
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .model-card-modal {
        max-width: 95%;
        margin: 10px;
    }
    
    .model-card-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .model-card-sidebar {
        order: -1;
    }
    
    .model-card-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .action-btn {
        justify-content: center;
    }
}

/* Invest Column Buttons */
.invest {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 8px;
}

/* Try Button */
.try-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
    min-width: 50px;
    white-space: nowrap;
}

.try-btn:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.try-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Update Add to Cart Button */
.add-cart-btn {
    padding: 6px 12px;
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
    min-width: 80px;
    white-space: nowrap;
}

.add-cart-btn:hover {
    background: linear-gradient(135deg, #059669, #047857) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.add-cart-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Model Cart Modal Styles */
.model-cart-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.model-cart-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
}

.model-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 15px 15px 0 0;
}

.model-cart-header h2 {
    color: #1e293b;
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}

.close-modal {
    color: #64748b;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #475569;
    transform: scale(1.1);
}

.model-cart-body {
    padding: 30px;
}

.model-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.model-info-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.info-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.info-icon {
    font-size: 20px;
    min-width: 24px;
    margin-top: 2px;
}

.info-label {
    color: #64748b;
    font-weight: 500;
    min-width: 100px;
    font-size: 14px;
}

.info-value {
    color: #1e293b;
    font-weight: 400;
    line-height: 1.5;
    flex: 1;
    font-size: 14px;
}

.model-info-right {
    text-align: center;
}

.model-info-right h3 {
    color: #1e293b;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.model-cart-footer {
    display: flex;
    gap: 15px;
    padding: 20px 30px;
    border-top: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0 0 15px 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    min-width: 100px;
}

.try-btn {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    border: 1px solid #6b7280;
}

.try-btn:hover {
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.add-cart-btn {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    color: white;
    border: 1px solid #9ca3af;
}

.add-cart-btn:hover {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(156, 163, 175, 0.3);
}

.api-btn {
    background: linear-gradient(135deg, #d1d5db 0%, #9ca3af 100%);
    color: #374151;
    border: 1px solid #d1d5db;
}

.api-btn:hover {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(209, 213, 219, 0.3);
}

.close-btn {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.close-btn:hover {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    color: #374151;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 244, 246, 0.3);
}

/* Model Card Button Styles */
.model-card-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.model-card-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .model-cart-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .model-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .model-cart-footer {
        flex-direction: column;
        align-items: center;
    }
    
    .action-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* 支持HTML格式的文本显示 */
.info-description strong {
    font-weight: 600;
    color: #1f2937;
}

.info-description em {
    font-style: italic;
    color: #6b7280;
}

/* 改善滚动条样式 */
.model-card-main::-webkit-scrollbar {
    width: 6px;
}

.model-card-main::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.model-card-main::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.model-card-main::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 强制文本换行 - 修复模态框被撑开的问题 */
.info-description,
.mvpro-text,
#modelPurpose,
#modelUseCase {
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
    hyphens: auto;
}

/* 确保内容区域不会无限展开 */
.model-card-content,
.mvpro-body {
    max-width: 100%;
    overflow: hidden;
}

/* 左侧内容列的宽度限制 */
.model-info-left,
.mvpro-info {
    max-width: 600px;
    min-width: 0;
}

/* 修复模态框最大宽度 */
.model-card-modal {
    max-width: 900px !important;
    width: 90% !important;
}

/* Grid布局修复 */
.model-card-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px !important;
    gap: 32px;
    padding: 32px;
    max-height: 50vh;
    overflow-y: auto;
}

/* 最高优先级修复 - 解决模态框宽度问题 */
.mvpro-card,
.model-card-modal {
    max-width: 900px !important;
    width: 90% !important;
}

.mvpro-body,
.model-card-content {
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    grid-template-columns: minmax(300px, 1fr) 300px !important;
}

#modelPurpose,
#modelUseCase,
.mvpro-text,
.info-description {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100% !important;
}

/* 全屏内容弹窗样式 */
.full-content-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.full-content-overlay {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.full-content-container {
  background: white;
  border-radius: 16px;
  max-width: 800px;
  max-height: 80vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.full-content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 16px 16px 0 0;
}

.full-content-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.close-full-content {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 8px;
  color: #6b7280;
  transition: all 0.2s ease;
}

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

.full-content-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  line-height: 1.6;
  color: #374151;
  font-size: 14px;
}

.full-content-body strong {
  font-weight: 600;
  color: #1f2937;
}

.full-content-body em {
  font-style: italic;
  color: #6b7280;
}

/* 查看完整内容链接样式 */
.view-full-content {
  color: #3b82f6 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin-top: 8px !important;
}

.view-full-content:hover {
  color: #2563eb !important;
  text-decoration: underline !important;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;   /* 控制两个按钮之间的间距 */
}
