/* 全局样式 */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 高亮动画（用于刚上传的模型） */
@keyframes highlight {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
    50% {
        box-shadow: 0 0 30px 10px rgba(16, 185, 129, 0.6);
    }
}

/* 防止滚动条消失导致的页面抖动 */
html {
    overflow-y: scroll;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 导航栏 */
.header {
    background-color: var(--bg-primary);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.navbar {
    padding: 14px 0;
}

.nav-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    padding: 4px 0;
}

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

.logo i {
    font-size: 28px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.2));
}

.nav-search {
    flex: 1;
    max-width: 580px;
    display: flex;
    align-items: center;
    background-color: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 10px 16px;
    gap: 10px;
    transition: all 0.3s ease;
}

.nav-search:focus-within {
    border-color: var(--primary-color);
    background-color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.nav-search i {
    color: var(--text-secondary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.nav-search:focus-within i {
    color: var(--primary-color);
}

.nav-search input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: var(--text-primary);
}

.nav-search input::placeholder {
    color: var(--text-light);
}

.search-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.search-btn:active {
    transform: translateY(0);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 8px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.05);
}

.nav-links a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.auth-required-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-primary,
.btn-secondary,
.btn-outline {
    padding: 9px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-primary:disabled,
.btn-secondary:disabled,
.btn-outline:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

/* 收藏图标 */
.favorites-icon {
    position: relative;
    cursor: pointer;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: rgba(239, 68, 68, 0.08);
}

.favorites-icon:hover {
    background-color: rgba(239, 68, 68, 0.15);
    transform: translateY(-2px);
}

.favorites-icon i {
    font-size: 20px;
    color: #ef4444;
    transition: all 0.3s ease;
}

.favorites-icon:hover i {
    transform: scale(1.15);
}

/* 购物车图标 */
.cart-icon {
    position: relative;
    cursor: pointer;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: rgba(99, 102, 241, 0.08);
}

.cart-icon:hover {
    background-color: rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.cart-icon i {
    font-size: 20px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.cart-icon:hover i {
    transform: scale(1.15);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    border-radius: 10px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    padding: 0 5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
    border: 2px solid white;
}

/* 消息图标 */
.messages-icon {
    position: relative;
    cursor: pointer;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: rgba(239, 68, 68, 0.08);
}

.messages-icon:hover {
    background-color: rgba(239, 68, 68, 0.15);
    transform: translateY(-2px);
}

.messages-icon.active {
    background-color: rgba(239, 68, 68, 0.2);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.messages-icon i {
    font-size: 20px;
    color: #ef4444;
    transition: all 0.3s ease;
}

.messages-icon:hover i {
    transform: scale(1.15);
    animation: bell-ring 0.5s ease-in-out;
}

@keyframes bell-ring {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    50% { transform: rotate(-15deg); }
    75% { transform: rotate(10deg); }
}

.messages-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border-radius: 10px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    padding: 0 5px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    border: 2px solid white;
}

/* Hero 区域 - 紧凑版 */
.hero {
    position: relative;
    padding: 40px 0 50px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.05;
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

/* 分类区域 - 紧凑版 */
.categories {
    padding: 30px 0;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.category-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.category-compact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.category-compact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.category-compact-item:hover::before,
.category-compact-item.active::before {
    opacity: 1;
}

.category-compact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.category-compact-item.active {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    border-color: var(--primary-color);
}

.category-compact-item i,
.category-compact-item span,
.category-compact-item small {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.category-compact-item i {
    font-size: 20px;
    margin-bottom: 6px;
    color: var(--primary-color);
}

.category-compact-item:hover i,
.category-compact-item.active i {
    color: white;
}

.category-compact-item span {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
    text-align: center;
}

.category-compact-item:hover span,
.category-compact-item.active span {
    color: white;
}

.category-compact-item small {
    font-size: 11px;
    color: var(--text-light);
}

.category-compact-item:hover small,
.category-compact-item.active small {
    color: rgba(255, 255, 255, 0.8);
}

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

/* 精选模型 */
.featured-models {
    padding: 40px 0;
    background-color: var(--bg-secondary);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.filter-tabs {
    display: flex;
    gap: 8px;
    background-color: var(--bg-secondary);
    padding: 6px;
    border-radius: var(--radius-md);
}

.filter-tab {
    padding: 10px 24px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
}

.filter-tab:hover {
    color: var(--text-primary);
}

.filter-tab.active {
    background-color: var(--primary-color);
    color: white;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.model-card {
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.model-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.model-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

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

/* 3D模型预览容器 */
.model-3d-preview {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.model-3d-preview canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.model-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    transition: var(--transition);
}

.model-card:hover .model-overlay {
    opacity: 1;
}

.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-primary);
}

.btn-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* 点赞按钮特殊样式 */
.btn-icon.like-btn:hover {
    background-color: #3b82f6;
}

.btn-icon.like-btn .fas.fa-thumbs-up {
    color: #3b82f6;
}

.btn-icon.like-btn:hover .fas.fa-thumbs-up,
.btn-icon.like-btn:hover .far.fa-thumbs-up {
    color: white;
}

.model-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-featured {
    background-color: var(--primary-color);
    color: white;
}

.badge-new {
    background-color: var(--secondary-color);
    color: white;
}

.badge-premium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.badge-free {
    background-color: var(--text-primary);
    color: white;
}

.model-info {
    padding: 20px;
}

.model-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    height: 27px; /* 固定为一行高度: 18px * 1.5 = 27px */
    cursor: help; /* 提示用户可以悬停查看 */
}

.model-author {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: help;
}

.model-author:hover {
    color: var(--primary-color);
}

.model-author:hover i {
    transform: scale(1.1);
}

.model-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.model-specs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spec-item {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    background-color: var(--bg-secondary);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.spec-item i {
    color: var(--primary-color);
    font-size: 11px;
}

.model-tags {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.model-tag {
    font-size: 11px;
    padding: 3px 8px;
    background-color: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 4px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    flex-shrink: 0;
    white-space: nowrap;
}

.model-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    /* 已移除底部边框线和padding-bottom，界面更简洁 */
}

.model-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.model-rating i {
    color: var(--accent-color);
}

.model-rating span {
    font-weight: 600;
}

.rating-count {
    color: var(--text-light);
    font-weight: 400;
}

.model-stats {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* model-footer 已移除，保留样式定义以防其他页面使用 */
.model-footer {
    display: none; /* 主页已移除底部价格和下载按钮 */
}

.model-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-current {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.price-original {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
}

.btn-add-cart {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.btn-add-cart:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.load-more-container {
    text-align: center;
    margin-top: 60px;
}

/* 功能特点 */
.features {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 40px 24px;
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 成为设计师 */
.become-seller {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.seller-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.seller-text h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
}

.seller-text p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.seller-benefits {
    list-style: none;
    margin-bottom: 40px;
}

.seller-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 16px;
}

.seller-benefits i {
    color: var(--secondary-color);
    font-size: 20px;
}

.seller-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.seller-stats-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-xl);
    min-width: 320px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row .stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.stat-row .stat-value {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
}

/* 页脚 */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 60px 0 30px;
}


.footer-bottom {
    text-align: center;
    padding: 30px 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-links .separator {
    color: rgba(255, 255, 255, 0.3);
}

.footer-links a i {
    margin-right: 4px;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-4px);
}

.back-to-top.visible {
    display: flex;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .nav-content {
        flex-wrap: wrap;
    }
    
    .nav-search {
        order: 3;
        flex-basis: 100%;
        max-width: 100%;
    }
    
    .seller-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .models-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: 24px;
    }
    
    .filter-tabs {
        width: 100%;
        justify-content: space-between;
    }
    
    .nav-links {
        display: none;
    }
}

/* 通用模态框 */
.modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

/* 3D模型查看器弹窗 */
.model-viewer-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.model-viewer-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    pointer-events: none;
}

.modal.active .modal-overlay,
.auth-modal.active .modal-overlay,
.model-viewer-modal.active .modal-overlay {
    pointer-events: auto;
    cursor: pointer;
}

.modal-content {
    position: relative;
    width: 95%;
    max-width: 1600px;
    height: 92vh;
    background: var(--bg-primary);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
}

.modal-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.modal-body {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    height: 100%;
    gap: 0;
}

/* 图片画廊容器 */
.image-gallery-container {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px;
    overflow-y: auto;
    height: 100%;
}

/* 图片画廊滚动条美化 */
.image-gallery-container::-webkit-scrollbar {
    width: 8px;
}

.image-gallery-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.image-gallery-container::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 4px;
    transition: background 0.3s;
}

.image-gallery-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* 主图查看器 */
.main-image-viewer {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 比例 */
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.main-image-viewer img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    animation: imageLoad 0.5s ease;
}

.main-image-viewer:hover img {
    transform: scale(1.02);
}

/* 图片加载占位符 */
.main-image-viewer.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border: 4px solid rgba(99, 102, 241, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 图片导航按钮 */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.gallery-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.gallery-nav.prev {
    left: 24px;
}

.gallery-nav.next {
    right: 24px;
}

/* 图片计数器 */
.image-counter {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* 缩略图容器 */
.thumbnails-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 12px 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    flex-shrink: 0;
}

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

.thumbnails-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.thumbnails-container::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 4px;
    transition: background 0.3s;
}

.thumbnails-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.thumbnail-item {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
}

.thumbnail-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(99, 102, 241, 0);
    transition: all 0.3s;
    z-index: 1;
}

.thumbnail-item:hover::before {
    background: rgba(99, 102, 241, 0.2);
}

.thumbnail-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.thumbnail-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

.thumbnail-item.active::before {
    background: rgba(99, 102, 241, 0.1);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 模型价格显示 */
.model-price {
    padding: 20px 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-top: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.model-price:hover {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

.model-price .price-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.model-price .price-label::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    flex-shrink: 0;
}

.model-price .price-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

/* 免费模型样式变体 */
.model-price.free:hover {
    border-color: var(--secondary-color);
}

.model-price.free .price-label::before {
    background: var(--secondary-color);
}

.model-price.free .price-value {
    color: var(--secondary-color);
}

/* 评论区域 */
.model-comments {
    margin-top: 32px;
}

.model-comments h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.model-comments h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.model-comments h3 #commentCount {
    color: var(--primary-color);
    font-weight: 700;
}

/* 评论表单 */
.comment-form {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.comment-form:focus-within {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

.comment-form textarea {
    width: 100%;
    border: none;
    background: transparent;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    outline: none;
    min-height: 80px;
}

.comment-form textarea::placeholder {
    color: var(--text-light);
}

.comment-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.char-count {
    font-size: 12px;
    color: var(--text-secondary);
}

.char-count #charCount {
    color: var(--primary-color);
    font-weight: 600;
}

.comment-form .btn-primary {
    padding: 8px 20px;
    font-size: 14px;
}

/* 评论列表 */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 无评论提示 */
.no-comments {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-comments i {
    font-size: 48px;
    color: var(--border-color);
    margin-bottom: 16px;
    display: block;
}

.no-comments p {
    font-size: 14px;
    margin: 0;
}

/* 单条评论 */
.comment-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.comment-item:hover {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.comment-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.comment-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.comment-username {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.comment-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.comment-actions {
    display: flex;
    gap: 8px;
}

.comment-action-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-action-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
}

.comment-action-btn.active {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.comment-action-btn.liked {
    color: #ef4444;
}

.comment-action-btn.liked:hover {
    background: rgba(239, 68, 68, 0.1);
}

.comment-action-btn.liked i {
    animation: likeHeart 0.3s ease;
}

.comment-action-btn i {
    font-size: 12px;
}

@keyframes likeHeart {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.comment-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    word-wrap: break-word;
}

/* 评论底部操作栏 */
.comment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.comment-actions-left {
    display: flex;
    gap: 4px;
}

/* 回复输入框 */
.reply-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    display: none;
}

.reply-form.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 300px;
    }
}

.reply-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.reply-input-wrapper textarea {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    transition: all 0.3s ease;
}

.reply-input-wrapper textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.reply-input-wrapper textarea::placeholder {
    color: var(--text-light);
}

.reply-submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.reply-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.reply-cancel-btn {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.reply-cancel-btn:hover {
    background: white;
    border-color: var(--text-secondary);
}

/* 嵌套回复 */
.replies-container {
    margin-top: 16px;
    padding-left: 48px;
    border-left: 2px solid var(--border-color);
}

.reply-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.reply-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.reply-item:last-child {
    margin-bottom: 0;
}

.reply-to {
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reply-to:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* 加载更多回复 */
.load-more-replies {
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 13px;
    padding: 8px 16px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
}

.load-more-replies:hover {
    background: rgba(99, 102, 241, 0.1);
    border-radius: 6px;
}

/* 评论动画 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.comment-item {
    animation: fadeInUp 0.3s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 旧的3D查看器样式（保留以防其他页面使用） */
.viewer-container {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

#modelViewer3D {
    width: 100%;
    height: 100%;
}

#modelViewer3D canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* 专业工具栏 */
.viewer-toolbar {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 100;
}

/* 全屏模式下的工具栏 */
.model-viewer-modal:fullscreen .viewer-toolbar,
.model-viewer-modal:-webkit-full-screen .viewer-toolbar,
.model-viewer-modal:-moz-full-screen .viewer-toolbar,
.model-viewer-modal:-ms-fullscreen .viewer-toolbar {
    position: fixed;
    z-index: 10001;
}

.toolbar-group {
    position: absolute;
    pointer-events: auto;
}

/* 左上角 - 主要控制 */
.toolbar-top-left {
    top: 16px;
    left: 16px;
    display: flex;
    gap: 8px;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(12px);
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 右上角 - 视图控制 */
.toolbar-top-right {
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(12px);
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 右侧 - 材质和光照面板 */
.toolbar-right {
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(12px);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    width: 200px;
    max-height: 80vh;
    overflow-y: auto;
}

/* 底部 - 控制提示 */
.toolbar-bottom {
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 24px;
    background: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(12px);
    padding: 10px 20px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 工具栏按钮 */
.toolbar-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: white;
    font-size: 16px;
}

.toolbar-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.toolbar-btn.active {
    background: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

/* 分隔线 */
.toolbar-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.15);
    align-self: center;
}

.toolbar-divider-h {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 12px 0;
}

/* 工具栏小节标题 */
.toolbar-section {
    margin-bottom: 12px;
}

.toolbar-section:last-child {
    margin-bottom: 0;
}

.toolbar-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toolbar-section-title i {
    color: var(--primary-light);
    font-size: 14px;
}

/* 材质色块网格 */
.material-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.material-swatch {
    background: transparent;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.material-swatch:hover {
    border-color: var(--primary-light);
    transform: scale(1.05);
}

.material-swatch.active {
    border-color: var(--primary-color);
}

.material-swatch.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.swatch-color {
    width: 100%;
    height: 48px;
    border-radius: 6px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 光照按钮 */
.lighting-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.lighting-compact-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.lighting-compact-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-light);
}

.lighting-compact-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* 控制提示 */
.control-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
}

.control-hint i {
    color: var(--primary-light);
    font-size: 14px;
}

.viewer-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    z-index: 5;
}

.viewer-loading.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--primary-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.viewer-info {
    padding: 40px 32px;
    overflow-y: auto;
    background: #ffffff;
}

/* 美化滚动条 */
.viewer-info::-webkit-scrollbar {
    width: 10px;
}

.viewer-info::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 5px;
}

.viewer-info::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 5px;
    transition: background 0.3s;
}

.viewer-info::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.viewer-info h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
    line-height: 1.3;
}

.model-meta-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-radius: 16px;
    border: 2px solid rgba(99, 102, 241, 0.1);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 15px;
    padding: 12px;
    background: white;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.meta-item.clickable {
    cursor: pointer;
}

.meta-item.clickable:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.15);
}

.meta-item.clickable:active {
    transform: translateY(-1px);
}

.meta-item i {
    color: var(--primary-color);
    width: 24px;
    font-size: 18px;
    transition: all 0.3s ease;
}

.meta-item.clickable:hover i {
    transform: scale(1.15);
}

.viewer-info .model-description,
.viewer-info .model-specs {
    margin-bottom: 32px;
}

.viewer-info .model-specs {
    display: block !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
}

.viewer-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.viewer-info h3::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.viewer-info .model-description p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
}

.viewer-info .model-specs ul {
    list-style: none;
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.viewer-info .model-specs ul li {
    padding: 12px 0 !important;
    color: var(--text-secondary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    background: transparent !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    display: block !important;
}

.viewer-info .model-specs ul li:last-child {
    border-bottom: none !important;
}

.viewer-info .model-specs ul li:hover {
    background: transparent !important;
    color: var(--text-primary) !important;
    transform: none !important;
    padding-left: 0 !important;
    box-shadow: none !important;
}

.viewer-info .model-specs ul li strong {
    color: var(--text-primary) !important;
    margin-right: 12px !important;
    font-weight: 600 !important;
    display: inline-block !important;
    min-width: 90px !important;
}

.viewer-actions {
    position: sticky;
    bottom: 0;
    background: var(--bg-primary);
    padding: 24px 0;
    border-top: 2px solid var(--border-color);
}

.price-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.price-label {
    font-size: 16px;
    color: var(--text-secondary);
}

.price-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.viewer-actions button {
    width: 100%;
    margin-bottom: 12px;
}

.viewer-actions button:last-child {
    margin-bottom: 0;
}

@media (max-width: 1200px) {
    .modal-body {
        grid-template-columns: 1.5fr 1fr;
    }
}

@media (max-width: 1024px) {
    .modal-body {
        grid-template-columns: 1fr;
        grid-template-rows: 55vh auto;
    }
    
    .image-gallery-container {
        padding: 24px;
    }
    
    .viewer-container {
        height: 100%;
    }
    
    .viewer-info {
        height: auto;
        max-height: 45vh;
    }
    
    .model-meta-info {
        grid-template-columns: 1fr;
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        max-width: 100%;
    }
    
    .modal-body {
        grid-template-rows: 50vh auto;
    }
    
    .image-gallery-container {
        padding: 16px;
        gap: 12px;
    }
    
    .main-image-viewer {
        border-radius: 12px;
    }
    
    .thumbnails-container {
        gap: 12px;
        padding: 8px 4px;
    }
    
    .thumbnail-item {
        width: 80px;
        height: 60px;
        border-radius: 8px;
    }
    
    .gallery-nav {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    
    .gallery-nav.prev {
        left: 12px;
    }
    
    .gallery-nav.next {
        right: 12px;
    }
    
    .image-counter {
        bottom: 12px;
        right: 12px;
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .viewer-info {
        padding: 24px 20px;
    }
    
    .viewer-info h2 {
        font-size: 24px;
    }
    
    .viewer-info h3 {
        font-size: 18px;
    }
    
    .model-meta-info {
        padding: 16px;
        gap: 12px;
    }
    
    .meta-item {
        padding: 10px;
        font-size: 14px;
    }
    
    .model-price {
        padding: 16px 20px;
        margin-top: 16px;
    }
    
    .model-price .price-label {
        font-size: 13px;
    }
    
    .model-price .price-label::before {
        width: 6px;
        height: 6px;
    }
    
    .model-price .price-value {
        font-size: 20px;
    }
    
    .viewer-controls-hint {
        flex-direction: column;
        gap: 8px;
        font-size: 11px;
        padding: 8px 12px;
    }
    
    /* 评论响应式 */
    .model-comments {
        margin-top: 24px;
    }
    
    .model-comments h3 {
        font-size: 18px;
    }
    
    .comment-form {
        padding: 12px;
    }
    
    .comment-form textarea {
        font-size: 14px;
        min-height: 60px;
    }
    
    .comment-form-footer {
        margin-top: 8px;
        padding-top: 8px;
    }
    
    .comment-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .comment-username {
        font-size: 13px;
    }
    
    .comment-time {
        font-size: 11px;
    }
    
    .comment-content {
        font-size: 13px;
    }
    
    .replies-container {
        padding-left: 24px;
        border-left-width: 1px;
    }
    
    .reply-item {
        padding: 10px;
    }
    
    .reply-input-wrapper {
        flex-direction: column;
    }
    
    .reply-input-wrapper textarea {
        min-height: 50px;
        font-size: 14px;
    }
    
    .reply-input-wrapper > div {
        width: 100%;
        justify-content: flex-end;
    }
    
    .reply-submit-btn,
    .reply-cancel-btn {
        flex: 1;
        max-width: 120px;
    }
    
    .comment-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .replies-container {
        padding-left: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-tab {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .viewer-controls-hint {
        display: none;
    }
    
    .viewer-info h2 {
        font-size: 22px;
    }
}

/* 登录注册弹窗 */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
}

.auth-modal.active {
    display: flex;
}

.auth-modal-content {
    position: relative;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

.auth-header {
    text-align: center;
    padding: 40px 40px 30px;
    border-bottom: 1px solid var(--border-color);
}

.auth-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-form {
    padding: 30px 40px 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group label i {
    color: var(--primary-color);
    font-size: 16px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
    background-color: var(--bg-secondary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--bg-primary);
}

/* 输入框错误状态 */
.form-group input.input-error,
.input-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    animation: shake 0.3s ease-in-out;
}

.form-group input.input-error:focus,
.input-error:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* 错误抖动动画 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* 输入成功状态 */
.form-group input.input-success {
    border-color: #10b981 !important;
    background-color: #f0fdf4 !important;
}

.form-group input.input-success:focus {
    border-color: #059669 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 45px;
}

/* 邮箱验证码组 */
.email-verification-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.email-verification-group input {
    flex: 1;
}

.email-verification-group .btn-send-code {
    white-space: nowrap;
    padding: 12px 20px;
    min-width: 140px;
    flex-shrink: 0;
}

/* 设计师申请表单样式 */
.designer-benefits {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border: 2px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 30px;
}

.designer-benefits h4 {
    color: var(--primary-color);
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-primary);
}

.benefit-item i {
    color: var(--secondary-color);
    font-size: 16px;
}

/* 文件上传区域 */
.upload-area {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.02);
}

.upload-area i {
    font-size: 48px;
    color: var(--text-light);
    display: block;
    margin-bottom: 12px;
}

.upload-area .upload-text {
    color: var(--text-secondary);
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.upload-area .upload-hint {
    color: var(--text-light);
    margin: 8px 0 0 0;
    font-size: 12px;
}

/* 模型预览网格 */
.preview-grid {
    display: none;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
}

.model-preview-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    transition: var(--transition);
}

.model-preview-item:hover {
    border-color: var(--primary-color);
    background: white;
    box-shadow: var(--shadow-md);
}

.model-icon {
    position: relative;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.model-icon i {
    color: white;
    font-size: 24px;
}

.model-type {
    position: absolute;
    bottom: -6px;
    right: -6px;
    background: var(--accent-color);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
}

.model-info {
    flex: 1;
    min-width: 0;
}

.model-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.model-size {
    font-size: 12px;
    color: var(--text-secondary);
}

.preview-remove-btn {
    flex-shrink: 0;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--transition);
}

.preview-remove-btn:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.1);
}

/* 协议勾选框 */
.agreement-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.agreement-box:hover {
    background: rgba(99, 102, 241, 0.02);
    border-color: var(--primary-color);
}

.agreement-box input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--primary-color);
}

.agreement-box label {
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
    cursor: pointer;
    flex: 1;
}

.agreement-box a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.agreement-box a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* 提示信息 */
.info-box {
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 16px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.info-box i {
    color: var(--primary-color);
    margin-right: 6px;
}

/* textarea样式 */
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    resize: vertical;
    font-size: 14px;
    transition: var(--transition);
    background-color: var(--bg-secondary);
    line-height: 1.6;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--bg-primary);
}

/* tel和url输入框样式 */
.form-group input[type="tel"],
.form-group input[type="url"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
    background-color: var(--bg-secondary);
}

.form-group input[type="tel"]:focus,
.form-group input[type="url"]:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--bg-primary);
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--primary-color);
}

.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background-color: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.strength-fill {
    height: 100%;
    width: 0;
    background-color: var(--text-light);
    transition: all 0.3s ease;
}

.strength-fill.weak {
    width: 33%;
    background-color: #ef4444;
}

.strength-fill.medium {
    width: 66%;
    background-color: #f59e0b;
}

.strength-fill.strong {
    width: 100%;
    background-color: #10b981;
}

.strength-text {
    font-size: 12px;
    color: var(--text-secondary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--primary-dark);
}

.btn-block {
    width: 100%;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 24px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background-color: var(--border-color);
}

.auth-divider span {
    position: relative;
    background-color: var(--bg-primary);
    padding: 0 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-social {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-secondary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
    font-size: 14px;
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-wechat {
    color: #09bb07;
    border-color: #09bb07;
}

.btn-wechat:hover {
    background-color: #09bb07;
    color: white;
}

.btn-qq {
    color: #12b7f5;
    border-color: #12b7f5;
}

.btn-qq:hover {
    background-color: #12b7f5;
    color: white;
}

.auth-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 32px;
    padding-top: 8px;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.auth-footer a:hover {
    color: var(--primary-dark);
}

/* 模态框底部按钮区域 */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.account-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.account-type-option {
    cursor: pointer;
}

.account-type-option input[type="radio"] {
    display: none;
}

.account-type-card {
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    background-color: var(--bg-secondary);
}

.account-type-option input[type="radio"]:checked + .account-type-card {
    border-color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.05);
}

.account-type-card i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.account-type-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.account-type-card p {
    font-size: 12px;
    color: var(--text-secondary);
}

.account-type-option:hover .account-type-card {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 协议内容样式 */
.agreement-content {
    font-size: 14px;
    line-height: 1.8;
}

.agreement-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.agreement-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

.agreement-content p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.agreement-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.agreement-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.agreement-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.agreement-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.agreement-content a:hover {
    color: var(--accent-color);
}

/* 协议内容滚动条美化 */
.agreement-content::-webkit-scrollbar {
    width: 8px;
}

.agreement-content::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-radius: 4px;
}

.agreement-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.agreement-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

@media (max-width: 768px) {
    .auth-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .auth-header {
        padding: 30px 24px 20px;
    }
    
    .auth-form {
        padding: 20px 24px 30px;
    }
    
    .social-login {
        grid-template-columns: 1fr;
    }
    
    .account-type-selector {
        grid-template-columns: 1fr;
    }
}

/* 用户菜单 */
.user-menu {
    position: relative;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: var(--bg-secondary);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.user-avatar:hover {
    background-color: var(--primary-color);
    color: white;
}

.user-avatar i {
    font-size: 20px;
}

.user-avatar img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 220px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 1000;
    pointer-events: none;
}

/* 创建一个桥接区域，防止鼠标移动时意外离开菜单 */
.user-dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.user-dropdown.show::before {
    pointer-events: auto;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    position: relative;
}

/* 会员中心菜单项 - 与其他菜单项一致 */
.menu-badge {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 600;
    margin-left: auto;
}


.user-dropdown a:hover {
    background-color: var(--bg-secondary);
    color: var(--primary-color);
}

.user-dropdown a i {
    width: 16px;
    color: var(--text-secondary);
}

.user-dropdown a:hover i {
    color: var(--primary-color);
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 8px 0;
}

/* 用户信息区域 */
.user-info {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    margin: -8px 0 0 0;
}

.user-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.user-email {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 6px;
}

.user-type {
    display: inline-block;
    font-size: 11px;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    margin-top: 4px;
}

/* 响应式调整 - 工具栏 */
@media (max-width: 1024px) {
    .toolbar-right {
        width: 180px;
        padding: 12px;
    }
    
    .material-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .swatch-color {
        height: 40px;
    }
}

@media (max-width: 768px) {
    .toolbar-top-left,
    .toolbar-top-right {
        background: rgba(17, 24, 39, 0.9);
        padding: 6px;
    }
    
    .toolbar-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .toolbar-right {
        top: auto;
        bottom: 70px;
        right: 10px;
        transform: none;
        width: 160px;
    }
    
    .toolbar-bottom {
        gap: 16px;
        padding: 8px 16px;
        font-size: 11px;
    }
    
    .control-hint span {
        display: none;
    }
    
    .control-hint i {
        font-size: 16px;
    }
}
