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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    padding-bottom: 70px; /* 为底部导航栏留出空间 */
}

/* 头部导航 */
.header {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.icon-btn:hover {
    background-color: #f0f0f0;
}

.icon-more::before {
    content: "⋯";
    font-size: 20px;
    font-weight: bold;
}

.icon-minus::before {
    content: "−";
    font-size: 20px;
}

.icon-close::before {
    content: "✕";
    font-size: 18px;
}

/* 自定义模型横幅 */
.custom-banner {
    margin: 15px;
    border-radius: 20px;
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 50%, #c4b5fd 100%);
    padding: 30px 20px;
    position: relative;
    overflow: hidden;
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.banner-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.bubble-1 {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 20px;
}

.bubble-2 {
    width: 80px;
    height: 80px;
    bottom: 15px;
    left: 40%;
}

.bubble-3 {
    width: 50px;
    height: 50px;
    top: 30px;
    right: 30px;
}

.banner-title {
    font-size: 16px;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 500;
}

.contact-btn {
    background-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 10px 30px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.contact-btn:hover {
    background-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

/* 分类标签栏 */
.category-tabs {
    display: flex;
    gap: 10px;
    padding: 15px 15px 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border: none;
    background-color: #f0f0f0;
    color: #666;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab-btn:hover {
    background-color: #e0e0e0;
}

.tab-btn.active {
    background-color: #8b5cf6;
    color: #fff;
}

/* 模型展示网格 */
.model-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
}

.model-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s;
}

.model-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.model-image {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.model-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.model-image-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.model-info {
    padding: 12px;
}

.model-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.model-description {
    font-size: 13px;
    color: #999;
}

/* 底部导航栏 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background-color: #fff;
    padding: 8px 0 8px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 5px;
    color: #999;
    transition: color 0.3s;
}

.nav-item:hover {
    color: #666;
}

.nav-item.active {
    color: #8b5cf6;
}

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

/* 底部导航图标 */
.icon-create::before {
    content: "✚";
    font-weight: bold;
}

.icon-works::before {
    content: "📁";
}

.icon-select::before {
    content: "👗";
}

.icon-analysis::before {
    content: "🔍";
}

.icon-profile::before {
    content: "👤";
}

.nav-label {
    font-size: 11px;
}

/* 响应式设计 */
@media (min-width: 768px) {
    .model-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .model-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1200px;
        margin: 0 auto;
    }

    .custom-banner {
        max-width: 1200px;
        margin: 15px auto;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.model-card {
    animation: fadeIn 0.5s ease-out;
}
