/* 自定义样式美化 */

/* 全局样式 */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    line-height: 1.6;
}

/* 导航栏美化 */
.header-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.header-blue::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 搜索框美化 */
.search-container {
    position: relative;
}

.search-container input {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid transparent;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-container input:focus {
    background: white;
    border-color: #667eea;
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* 导航项美化 */
.nav-item {
    position: relative;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-item.on {
    background: rgba(255, 183, 0, 0.2);
    color: #ffb700 !important;
    box-shadow: 0 2px 10px rgba(255, 183, 0, 0.3);
}

/* 分类导航美化 */
.category-nav {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-nav .nav-item {
    color: #495057;
    margin: 5px 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.category-nav .nav-item:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.category-nav .nav-item.on {
       background: linear-gradient(135deg, #4540ff 0%, #2637ff 100%);
    color: #ffffff !important;
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 模型卡片美化 */
.feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* 载入状态样式 - 无动画 */
.feature-card.loading {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    border-color: rgba(229, 231, 235, 0.5);
}

.feature-card.loading .card-content {
    
}

.feature-card.loading img {
    background: #e5e7eb;
    opacity: 0.3;
}

.feature-card.loading .skeleton-text {
    background: #e5e7eb;
    border-radius: 4px;
    height: 16px;
    margin: 8px 0;
}

.feature-card.loading .skeleton-title {
    background: #e5e7eb;
    border-radius: 4px;
    height: 20px;
    width: 70%;
    margin: 12px 0;
}

.feature-card.loading .skeleton-price {
    background: #e5e7eb;
    border-radius: 4px;
    height: 14px;
    width: 40%;
    margin: 8px 0;
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 8px 25px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card img {
    transition: transform 0.4s ease;
}

.feature-card:hover img {
    transform: scale(1.1);
}

/* 标签美化 */
.model-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    position: relative;
    z-index: 2;
}

.free-tag {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
}

.paid-tag {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa8a8 100%);
}

/* 价格标签美化 */
.price-tag {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    color: #333;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 12px;
}

.free-price {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #2d5016;
}

/* 页脚美化 */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #667eea, transparent);
}

/* 社交图标美化 */
.social-icon {
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.social-icon:hover::before {
    width: 100%;
    height: 100%;
}

.social-icon:hover {
    background: #667eea;
    transform: translateY(-2px);
}

/* 响应式优化 */
@media (max-width: 768px) {
    .feature-card {
        margin-bottom: 20px;
    }
    
    .search-container input {
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .nav-item {
        margin: 3px 5px;
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* 加载动画已移除 - 无闪动效果 */

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* 文本选择美化 */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: #333;
}

/* 焦点样式美化 */
*:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* 按钮悬停效果 */
.btn-primary {
    background: linear-gradient(135deg, #4a90e2 0%, #5a6fd8 100%);
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* 内容区域美化 */
.content-wrapper {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 20px 0;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 网格布局优化 */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

@media (max-width: 640px) {
    .model-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }
}

/* 微交互效果 */
.interactive-element {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-element:hover {
    transform: translateY(-2px);
}

.interactive-element:active {
    transform: scale(0.98);
}

/* 分页样式美化 */
.model-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    padding: 20px;
}

.model-pagination .pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.model-pagination .pagination li {
    margin: 0;
}

.model-pagination .pagination a,
.model-pagination .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* 普通页码按钮 */
.model-pagination .pagination a {
    background: rgba(255, 255, 255, 0.9);
    color: #6b7280;
    border: 1px solid rgba(229, 231, 235, 0.8);
    backdrop-filter: blur(10px);
}

.model-pagination .pagination a:hover {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

/* 当前页码 */
.model-pagination .pagination .current,
.model-pagination .pagination .active {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    color: white !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    font-weight: 600;
}

/* 禁用状态 */
.model-pagination .pagination .disabled span {
    background: rgba(243, 244, 246, 0.8);
    color: #d1d5db;
    border: 1px solid rgba(229, 231, 235, 0.5);
    cursor: not-allowed;
}

/* 上一页/下一页按钮 */
.model-pagination .pagination .prev a,
.model-pagination .pagination .next a {
    padding: 8px 16px;
    font-weight: 600;
}

.model-pagination .pagination .prev a:hover,
.model-pagination .pagination .next a:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: #10b981;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* 省略号 */
.model-pagination .pagination .dots span {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: default;
    font-weight: bold;
}

/* 光泽效果 */
.model-pagination .pagination a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.model-pagination .pagination a:hover::before {
    left: 100%;
}

/* 响应式设计 */
@media (max-width: 640px) {
    .model-pagination .pagination a,
    .model-pagination .pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 6px 10px;
    }
    
    .model-pagination .pagination {
        gap: 4px;
    }
}

/* 渐变文字效果 */
.gradient-text {
    color: #ffffff;
    
    background-clip: text;
    font-weight: 700;
}

/* 毛玻璃效果 */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* 标题美化 */
.title {
    font-weight: 600;
    color: #2d3748;
    line-height: 1.4;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.title:hover {
    color: #667eea;
    transform: translateY(-1px);
}

.feature-card:hover .title {
    color: #4a5568;
    text-shadow: 0 2px 4px rgba(102, 126, 234, 0.1);
}