.goods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 0;
}

.goods-item {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.goods-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.goods-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background-color: #f5f5f5;
}

.goods-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.goods-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.goods-price {
    font-size: 18px;
    font-weight: 600;
    color: #FF6B35;
    margin-top: auto;
}

.goods-price::before {
    content: '¥';
    font-size: 14px;
    margin-right: 2px;
}

.goods-sales {
    font-size: 13px;
    color: #999;
    margin-top: 6px;
}

.goods-detail {
    padding: 0;
}

.goods-detail-image {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.goods-detail-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.3;
}

.goods-detail-price {
    font-size: 28px;
    font-weight: 700;
    color: #FF6B35;
    margin-bottom: 20px;
}

.goods-detail-price::before {
    content: '¥';
    font-size: 18px;
    margin-right: 4px;
}

.goods-detail-info {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 800px;
}

.goods-detail-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    max-width: 500px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 0;
}

.video-item {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.video-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.video-thumbnail {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    background-color: #f5f5f5;
    position: relative;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.video-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.video-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.video-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

.profile-header {
    background: linear-gradient(135deg, #FF6B35 0%, #ff8c5a 100%);
    padding: 40px 30px;
    color: #fff;
    text-align: center;
    border-radius: 0;
    margin: 0;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}

.profile-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.profile-vip {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(255, 215, 0, 0.9);
    color: #333;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 30px;
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-size: 24px;
    font-weight: 600;
}

.profile-stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.profile-menu {
    padding: 0;
    margin-top: 20px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    margin-bottom: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.profile-menu-item:hover {
    background-color: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.profile-menu-icon {
    font-size: 24px;
    margin-right: 15px;
}

.profile-menu-arrow {
    color: #999;
    font-size: 18px;
}

.ai-tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 0;
}

.ai-tool-item {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.ai-tool-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.ai-tool-icon {
    font-size: 56px;
    margin-bottom: 15px;
}

.ai-tool-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.ai-tool-points {
    font-size: 14px;
    color: #FF6B35;
    margin-top: 0;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 60px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 30px;
}

.upload-area:hover {
    border-color: #FF6B35;
    background-color: #fff8f5;
}

.upload-area.dragover {
    border-color: #FF6B35;
    background-color: #fff8f5;
}

.upload-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.upload-text {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

.upload-hint {
    font-size: 14px;
    color: #999;
    margin-top: 0;
}

.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.image-preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.image-preview-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.image-preview-remove:hover {
    background-color: rgba(220, 53, 69, 0.9);
    transform: scale(1.1);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 30px 0;
}

.pagination-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
}

.pagination-item:hover {
    background-color: #f5f5f5;
    border-color: #ddd;
}

.pagination-item.active {
    background-color: #FF6B35;
    color: #fff;
    border-color: #FF6B35;
}

.pagination-item.disabled {
    color: #999;
    cursor: not-allowed;
    border-color: #f0f0f0;
}

.pagination-item.disabled:hover {
    background-color: transparent;
    border-color: #f0f0f0;
}

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

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background-color: transparent;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.toast.show {
    opacity: 1;
    visibility: visible;
}

.toast-success {
    background-color: rgba(40, 167, 69, 0.9);
}

.toast-error {
    background-color: rgba(220, 53, 69, 0.9);
}

.toast-info {
    background-color: rgba(23, 162, 184, 0.9);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top-color: #FF6B35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 32px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 32px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.switch input:checked + .switch-slider {
    background-color: #FF6B35;
}

.switch input:checked + .switch-slider:before {
    transform: translateX(28px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .goods-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .goods-title {
        font-size: 14px;
    }
    
    .goods-price {
        font-size: 16px;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .video-title {
        font-size: 14px;
    }
    
    .profile-header {
        padding: 30px 20px;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
    }
    
    .profile-name {
        font-size: 20px;
    }
    
    .profile-stats {
        gap: 30px;
    }
    
    .ai-tool-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }
    
    .ai-tool-item {
        padding: 20px;
        min-height: 160px;
    }
    
    .ai-tool-icon {
        font-size: 40px;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
    
    .upload-icon {
        font-size: 48px;
    }
    
    .image-preview {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 10px;
    }
    
    .modal-content {
        padding: 20px;
        max-width: 90%;
    }
}

/* 桌面端增强样式 */
@media (min-width: 1024px) {
    .goods-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 24px;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 24px;
    }
    
    .ai-tool-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 24px;
    }
    
    .goods-detail {
        display: flex;
        flex-wrap: wrap;
        gap: 40px;
    }
    
    .goods-detail-image {
        flex: 0 0 400px;
    }
    
    .goods-detail-info {
        flex: 1;
        min-width: 400px;
    }
}