/* 成品列表页 */
.products-body {
    margin: 0;
    min-height: 100vh;
    overflow: auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

.products-card {
    flex: 1;
    max-width: 1200px;
    margin: 20px auto;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.products-card .login-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.products-card .login-bar-right {
    display: flex;
    align-items: center;
}

.products-body .user-info {
    position: relative;
}

.products-content {
    padding: 24px 30px 30px;
}

.products-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.back-link {
    color: #495057;
    text-decoration: none;
    font-size: 0.95rem;
}

.back-link:hover {
    color: #007bff;
}

.products-content .auth-title {
    margin-bottom: 24px;
}

.products-loading,
.products-empty {
    text-align: center;
    color: #6c757d;
    padding: 48px 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 150px);
    gap: 20px;
}

.product-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product-img-wrap {
    width: 150px;
    height: 300px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-name {
    padding: 12px;
    font-size: 0.9rem;
    color: #333;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
